@feathersjs/authentication-local
Advanced tools
Comparing version 4.5.11 to 4.5.12
@@ -6,2 +6,13 @@ # Change Log | ||
## [4.5.12](https://github.com/feathersjs/feathers/compare/v4.5.11...v4.5.12) (2022-01-06) | ||
### Bug Fixes | ||
* Update all dependencies for crow release ([#2520](https://github.com/feathersjs/feathers/issues/2520)) ([1c63e6b](https://github.com/feathersjs/feathers/commit/1c63e6be37ff85edbe8dd318415ca6919864c033)) | ||
## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05) | ||
@@ -8,0 +19,0 @@ |
@@ -20,3 +20,3 @@ "use strict"; | ||
const debug_1 = __importDefault(require("debug")); | ||
const debug = debug_1.default('@feathersjs/authentication-local/hooks/hash-password'); | ||
const debug = (0, debug_1.default)('@feathersjs/authentication-local/hooks/hash-password'); | ||
function hashPassword(field, options = {}) { | ||
@@ -45,3 +45,3 @@ if (!field) { | ||
const addHashedPassword = (data) => __awaiter(this, void 0, void 0, function* () { | ||
const password = get_1.default(data, field); | ||
const password = (0, get_1.default)(data, field); | ||
if (password === undefined) { | ||
@@ -52,3 +52,3 @@ debug(`hook.data.${field} is undefined, not hashing password`); | ||
const hashedPassword = yield localStrategy.hashPassword(password, params); | ||
return set_1.default(cloneDeep_1.default(data), field, hashedPassword); | ||
return (0, set_1.default)((0, cloneDeep_1.default)(data), field, hashedPassword); | ||
}); | ||
@@ -55,0 +55,0 @@ context.data = Array.isArray(data) ? yield Promise.all(data.map(addHashedPassword)) : |
@@ -13,3 +13,3 @@ "use strict"; | ||
? current.toJSON() : current; | ||
return omit_1.default(data, fields); | ||
return (0, omit_1.default)(data, fields); | ||
} | ||
@@ -16,0 +16,0 @@ return current; |
@@ -22,3 +22,3 @@ "use strict"; | ||
const authentication_1 = require("@feathersjs/authentication"); | ||
const debug = debug_1.default('@feathersjs/authentication-local/strategy'); | ||
const debug = (0, debug_1.default)('@feathersjs/authentication-local/strategy'); | ||
class LocalStrategy extends authentication_1.AuthenticationBaseStrategy { | ||
@@ -82,3 +82,3 @@ verifyConfiguration() { | ||
// find password in entity, this allows for dot notation | ||
const hash = get_1.default(entity, entityPasswordField); | ||
const hash = (0, get_1.default)(entity, entityPasswordField); | ||
if (!hash) { | ||
@@ -106,3 +106,3 @@ debug(`Record is missing the '${entityPasswordField}' password field`); | ||
const password = data[passwordField]; | ||
const result = yield this.findEntity(username, omit_1.default(params, 'provider')); | ||
const result = yield this.findEntity(username, (0, omit_1.default)(params, 'provider')); | ||
yield this.comparePassword(result, password); | ||
@@ -109,0 +109,0 @@ return { |
{ | ||
"name": "@feathersjs/authentication-local", | ||
"description": "Local authentication strategy for @feathers/authentication", | ||
"version": "4.5.11", | ||
"version": "4.5.12", | ||
"homepage": "https://feathersjs.com", | ||
@@ -55,21 +55,21 @@ "main": "lib/", | ||
"dependencies": { | ||
"@feathersjs/authentication": "^4.5.11", | ||
"@feathersjs/errors": "^4.5.11", | ||
"@feathersjs/feathers": "^4.5.11", | ||
"@feathersjs/authentication": "^4.5.12", | ||
"@feathersjs/errors": "^4.5.12", | ||
"@feathersjs/feathers": "^4.5.12", | ||
"bcryptjs": "^2.4.3", | ||
"debug": "^4.3.1", | ||
"lodash": "^4.17.20" | ||
"debug": "^4.3.3", | ||
"lodash": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@types/bcryptjs": "^2.4.2", | ||
"@types/debug": "^4.1.5", | ||
"@types/lodash": "^4.14.165", | ||
"@types/mocha": "^8.0.4", | ||
"@types/node": "^14.14.10", | ||
"mocha": "^8.2.1", | ||
"@types/debug": "^4.1.7", | ||
"@types/lodash": "^4.14.178", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^17.0.8", | ||
"mocha": "^9.1.3", | ||
"shx": "^0.3.3", | ||
"ts-node": "^9.1.0", | ||
"typescript": "^4.1.2" | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.5.4" | ||
}, | ||
"gitHead": "de0526849eb36ab6ef19ef1764e0d9e0a6ccbd81" | ||
"gitHead": "8697ecc85808437e9aab63e5d2327679340c5401" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57341
Updated@feathersjs/errors@^4.5.12
Updated@feathersjs/feathers@^4.5.12
Updateddebug@^4.3.3
Updatedlodash@^4.17.21