Skip to content

Commit 11cbadd

Browse files
committed
Updated from @hapi/joi to joi for schema validation due to deprecation
1 parent 2956fd3 commit 11cbadd

File tree

3 files changed

+37
-32
lines changed

3 files changed

+37
-32
lines changed

accounts/accounts.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const express = require('express');
22
const router = express.Router();
3-
const Joi = require('@hapi/joi');
3+
const Joi = require('joi');
44
const validateRequest = require('_middleware/validate-request');
55
const authorize = require('_middleware/authorize')
66
const Role = require('_helpers/role');

package-lock.json

+33-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"start:dev": "nodemon ./server.js"
1313
},
1414
"dependencies": {
15-
"@hapi/joi": "^17.1.1",
1615
"bcryptjs": "^2.4.3",
1716
"body-parser": "^1.19.0",
1817
"cookie-parser": "^1.4.5",
1918
"cors": "^2.8.5",
20-
"express": "^4.17.1",
2119
"express-jwt": "^6.0.0",
20+
"express": "^4.17.1",
21+
"joi": "^17.1.1",
2222
"jsonwebtoken": "^8.5.1",
2323
"mongodb": "^3.5.7",
24-
"mongoose": "^5.9.11",
24+
"mongoose": "^5.9.25",
2525
"nodemailer": "^6.4.6",
2626
"rootpath": "^0.1.2",
2727
"swagger-ui-express": "^4.1.4",

0 commit comments

Comments
 (0)