diff --git a/lib/auth/email/index.ts b/lib/auth/email/index.ts index 28295e07..8ee746d3 100644 --- a/lib/auth/email/index.ts +++ b/lib/auth/email/index.ts @@ -1,6 +1,6 @@ import {Router} from "express"; import * as passport from "passport"; -import * as validator from "validator"; +import validator from "validator"; import {Strategy as LocalStrategy} from 'passport-local'; import * as config from '../../config'; diff --git a/package-lock.json b/package-lock.json index 57b1edd3..1b150c15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1562,6 +1562,12 @@ "@types/node": "*" } }, + "@types/validator": { + "version": "13.1.4", + "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.1.4.tgz", + "integrity": "sha512-19C02B8mr53HufY7S+HO/EHBD7a/R22IwEwyqiHaR19iwL37dN3o0M8RianVInfSSqP7InVSg/o0mUATM4JWsQ==", + "dev": true + }, "@typescript-eslint/eslint-plugin": { "version": "4.26.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.26.1.tgz", @@ -15203,9 +15209,9 @@ "integrity": "sha1-1WgS4cAXpuTnw+Ojeh2m143TyT4=" }, "sequelize": { - "version": "5.21.3", - "resolved": "https://registry.npmjs.org/sequelize/-/sequelize-5.21.3.tgz", - "integrity": "sha512-ptdeAxwTY0zbj7AK8m+SH3z52uHVrt/qmOTSIGo/kyfnSp3h5HeKlywkJf5GEk09kuRrPHfWARVSXH1W3IGU7g==", + "version": "5.22.4", + "resolved": "https://registry.npmjs.org/sequelize/-/sequelize-5.22.4.tgz", + "integrity": "sha512-xFQQ38HPg7EyDRDA+NdzMSRWbo9m6Z/RxpjnkBl3ggyQG+jRrup48x0jaw4Ox42h56wFnXOBC2NZOkTJfZeWCw==", "requires": { "bluebird": "^3.5.0", "cls-bluebird": "^2.1.0", @@ -15225,11 +15231,11 @@ }, "dependencies": { "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", "requires": { - "ms": "^2.1.1" + "ms": "2.1.2" } }, "semver": { diff --git a/package.json b/package.json index b4d3c628..c4ba9414 100644 --- a/package.json +++ b/package.json @@ -95,8 +95,8 @@ "readline-sync": "~1.4.7", "request": "~2.88.0", "scrypt-kdf": "^2.0.1", - "sequelize": "5.21.3", - "sequelize-cli": "~5.5.1", + "sequelize": "5.22.4", + "sequelize-cli": "5.5.1", "shortid": "~2.2.14", "socket.io": "~2.2.0", "toobusy-js": "~0.5.1", @@ -118,6 +118,7 @@ "@types/node": "~12.20.15", "@types/passport-google-oauth20": "^2.0.8", "@types/qs": "^6.9.6", + "@types/validator": "^13.1.4", "@typescript-eslint/eslint-plugin": "^4.26.1", "@typescript-eslint/parser": "^4.26.1", "acorn": "~6.1.1",