Skip to content

Commit

Permalink
Switch to joi
Browse files Browse the repository at this point in the history
  • Loading branch information
stanlemon committed Sep 16, 2023
1 parent a652fa0 commit 18f12d3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 47 deletions.
49 changes: 6 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@hapi/joi": "^17.1.1",
"@sendgrid/mail": "^7.7.0",
"@stanlemon/webdev": "^0.1.125",
"bcryptjs": "^2.4.3",
Expand All @@ -49,6 +48,7 @@
"express-rate-limit": "^7.0.1",
"express-session": "^1.17.3",
"helmet": "^7.0.0",
"joi": "^17.10.1",
"jsonwebtoken": "^9.0.2",
"knex": "^2.5.1",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion src/schema/tag.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Joi = require("@hapi/joi");
const Joi = require("joi");

const schema = Joi.object().keys({
id: Joi.number().allow(null).optional().label("Tag id"),
Expand Down
2 changes: 1 addition & 1 deletion src/schema/task.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Joi = require("@hapi/joi");
const Joi = require("joi");

const schema = Joi.object().keys({
id: Joi.number().allow(null).optional().label("Task id"),
Expand Down
2 changes: 1 addition & 1 deletion src/schema/user.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Joi = require("@hapi/joi");
const Joi = require("joi");

const keys = {
name: Joi.string().required().label("Name"),
Expand Down

0 comments on commit 18f12d3

Please sign in to comment.