Skip to content

Commit

Permalink
replacing @hapi/joi with joi
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiwycherley committed Oct 11, 2023
1 parent 6ba85ce commit 0cf6277
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install nodejs
uses: actions/setup-node@v1
with:
node-version: "16.x"
node-version: "18.x"

- name: Install node dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion config/schema.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Joi = require('@hapi/joi')
const Joi = require('joi')

module.exports = Joi.object({
aws: Joi.object().required().keys({
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers/schemas.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Joi = require('@hapi/joi')
const Joi = require('joi')

const getMessageEventSchema = Joi.object({
pathParameters: Joi.object().required().keys({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "The Environment Agency",
"license": "OGL",
"dependencies": {
"@hapi/joi": "^17.1.1",
"feed": "4.2.2",
"joi": "^17.11.0",
"moment": "^2.29.4",
"pg": "8.11.3",
"sql": "0.78.0",
Expand Down
4 changes: 2 additions & 2 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ frameworkVersion: '3'
useDotenv: true
provider:
name: aws
runtime: nodejs16.x
runtime: nodejs18.x
role: ${env:SLS_LAMBA_ROLE}
stage: ${env:TARGET_ENV_NAME}
region: ${env:TARGET_REGION}
Expand All @@ -30,4 +30,4 @@ functions:
timeout: 12
archiveMessages:
handler: lib/functions/archiveMessages.archiveMessages
timeout: 240
timeout: 240

0 comments on commit 0cf6277

Please sign in to comment.