apeframework
Advanced tools
Comparing version 0.0.0-dev.5 to 0.0.0-dev.6
{ | ||
"name": "apeframework", | ||
"version": "0.0.0-dev.5", | ||
"version": "0.0.0-dev.6", | ||
"license": "MIT", | ||
@@ -28,3 +28,3 @@ "author": "Matthieu Symoens", | ||
"@fastify/swagger": "^8.15", | ||
"bcrypt": "^5.1", | ||
"bcryptjs": "^2.4", | ||
"bullmq": "^5.12", | ||
@@ -31,0 +31,0 @@ "dotenv": "^16.4", |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.Pwd = void 0; | ||
const bcrypt_1 = __importDefault(require("bcrypt")); | ||
const bcryptjs_1 = __importDefault(require("bcryptjs")); | ||
const validateHashRounds_1 = require("./validateHashRounds"); | ||
@@ -17,8 +17,8 @@ class Pwd { | ||
async hashPassword(password) { | ||
return bcrypt_1.default.hash(password, this.hashRounds); | ||
return bcryptjs_1.default.hashSync(password, this.hashRounds); | ||
} | ||
async verifyPassword(password, hash) { | ||
return bcrypt_1.default.compare(password, hash); | ||
return bcryptjs_1.default.compareSync(password, hash); | ||
} | ||
} | ||
exports.Pwd = Pwd; |
@@ -1,2 +0,2 @@ | ||
import bcrypt from 'bcrypt' | ||
import bcrypt from 'bcryptjs' | ||
import { validateHashRounds } from './validateHashRounds' | ||
@@ -18,3 +18,3 @@ | ||
): Promise<string> { | ||
return bcrypt.hash(password, this.hashRounds) | ||
return bcrypt.hashSync(password, this.hashRounds) | ||
} | ||
@@ -26,3 +26,3 @@ | ||
): Promise<boolean> { | ||
return bcrypt.compare(password, hash) | ||
return bcrypt.compareSync(password, hash) | ||
} | ||
@@ -29,0 +29,0 @@ } |
109386
+ Addedbcryptjs@^2.4
+ Addedbcryptjs@2.4.3(transitive)
- Removedbcrypt@^5.1
- Removed@mapbox/node-pre-gyp@1.0.11(transitive)
- Removedabbrev@1.1.1(transitive)
- Removedagent-base@6.0.2(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedaproba@2.0.0(transitive)
- Removedare-we-there-yet@2.0.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbcrypt@5.1.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedchownr@2.0.0(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removeddelegates@1.0.0(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedfs-minipass@2.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedgauge@3.0.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhttps-proxy-agent@5.0.1(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminipass@3.3.65.0.0(transitive)
- Removedminizlib@2.1.2(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removednode-addon-api@5.1.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removednopt@5.0.0(transitive)
- Removednpmlog@5.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedsemver@6.3.1(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedtar@6.2.1(transitive)
- Removedtr46@0.0.3(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedyallist@4.0.0(transitive)