@feathersjs/authentication-local 5.0.0-pre.31 → 5.0.0-pre.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/hooks/hash-password.d.ts +1 -0
- package/lib/hooks/hash-password.js +1 -0
- package/lib/hooks/hash-password.js.map +1 -1
- package/lib/hooks/protect.d.ts +1 -1
- package/lib/hooks/protect.js +1 -1
- package/package.json +11 -11
- package/src/hooks/hash-password.ts +1 -0
- package/src/hooks/protect.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-pre.33](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.32...v5.0.0-pre.33) (2022-11-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @feathersjs/authentication-local
|
|
9
|
+
|
|
10
|
+
# [5.0.0-pre.32](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.31...v5.0.0-pre.32) (2022-10-26)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @feathersjs/authentication-local
|
|
13
|
+
|
|
6
14
|
# [5.0.0-pre.31](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.30...v5.0.0-pre.31) (2022-10-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @feathersjs/authentication-local
|
|
@@ -8,5 +8,6 @@ export interface HashPasswordOptions {
|
|
|
8
8
|
* @param field
|
|
9
9
|
* @param options
|
|
10
10
|
* @returns
|
|
11
|
+
* @see https://dove.feathersjs.com/api/authentication/local.html#passwordhash
|
|
11
12
|
*/
|
|
12
13
|
export default function hashPassword(field: string, options?: HashPasswordOptions): (context: HookContext, next?: NextFunction) => Promise<any>;
|
|
@@ -14,6 +14,7 @@ const debug = (0, commons_1.createDebug)('@feathersjs/authentication-local/hooks
|
|
|
14
14
|
* @param field
|
|
15
15
|
* @param options
|
|
16
16
|
* @returns
|
|
17
|
+
* @see https://dove.feathersjs.com/api/authentication/local.html#passwordhash
|
|
17
18
|
*/
|
|
18
19
|
function hashPassword(field, options = {}) {
|
|
19
20
|
if (!field) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hash-password.js","sourceRoot":"","sources":["../../src/hooks/hash-password.ts"],"names":[],"mappings":";;;;;AAAA,qDAA4B;AAC5B,qDAA4B;AAC5B,iEAAwC;AACxC,+CAA+C;AAC/C,iDAAiD;AAIjD,MAAM,KAAK,GAAG,IAAA,qBAAW,EAAC,sDAAsD,CAAC,CAAA;AAOjF
|
|
1
|
+
{"version":3,"file":"hash-password.js","sourceRoot":"","sources":["../../src/hooks/hash-password.ts"],"names":[],"mappings":";;;;;AAAA,qDAA4B;AAC5B,qDAA4B;AAC5B,iEAAwC;AACxC,+CAA+C;AAC/C,iDAAiD;AAIjD,MAAM,KAAK,GAAG,IAAA,qBAAW,EAAC,sDAAsD,CAAC,CAAA;AAOjF;;;;;;GAMG;AACH,SAAwB,YAAY,CAAC,KAAa,EAAE,UAA+B,EAAE;IACnF,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAA;KACtE;IAED,OAAO,KAAK,EAAE,OAAoB,EAAE,IAAmB,EAAE,EAAE;QACzD,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;QAErC,IAAI,IAAI,KAAK,SAAS,EAAE;YACtB,MAAM,WAAW,GAAG,GAAG,CAAC,qBAAqB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAA;YACrE,MAAM,EAAE,QAAQ,GAAG,OAAO,EAAE,GAAG,OAAO,CAAA;YAEtC,IAAI,CAAC,WAAW,IAAI,OAAO,WAAW,CAAC,aAAa,KAAK,UAAU,EAAE;gBACnE,MAAM,IAAI,mBAAU,CAAC,2DAA2D,CAAC,CAAA;aAClF;YAED,MAAM,CAAC,aAAa,CAAC,GAAG,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAoB,CAAA;YAE9E,IAAI,CAAC,aAAa,IAAI,OAAO,aAAa,CAAC,YAAY,KAAK,UAAU,EAAE;gBACtE,MAAM,IAAI,mBAAU,CAAC,mBAAmB,QAAQ,6BAA6B,CAAC,CAAA;aAC/E;YAED,MAAM,iBAAiB,GAAG,KAAK,EAAE,IAAS,EAAE,EAAE;gBAC5C,MAAM,QAAQ,GAAG,IAAA,aAAG,EAAC,IAAI,EAAE,KAAK,CAAC,CAAA;gBAEjC,IAAI,QAAQ,KAAK,SAAS,EAAE;oBAC1B,KAAK,CAAC,aAAa,KAAK,qCAAqC,CAAC,CAAA;oBAC9D,OAAO,IAAI,CAAA;iBACZ;gBAED,MAAM,cAAc,GAAW,MAAM,aAAa,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;gBAEjF,OAAO,IAAA,aAAG,EAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAA;YACpD,CAAC,CAAA;YAED,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;gBAChC,CAAC,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;gBAChD,CAAC,CAAC,MAAM,iBAAiB,CAAC,IAAI,CAAC,CAAA;SAClC;QAED,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;YAC9B,OAAO,IAAI,EAAE,CAAA;SACd;IACH,CAAC,CAAA;AACH,CAAC;AA5CD,+BA4CC"}
|
package/lib/hooks/protect.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HookContext, NextFunction } from '@feathersjs/feathers';
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated For reliable safe data representations use Feathers schema dispatch resolvers.
|
|
4
|
-
*
|
|
4
|
+
* @see https://dove.feathersjs.comapi/authentication/local.html#protecting-fields
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: (...fields: string[]) => (context: HookContext, next?: NextFunction) => Promise<void>;
|
|
7
7
|
export default _default;
|
package/lib/hooks/protect.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const omit_1 = __importDefault(require("lodash/omit"));
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated For reliable safe data representations use Feathers schema dispatch resolvers.
|
|
9
|
-
*
|
|
9
|
+
* @see https://dove.feathersjs.comapi/authentication/local.html#protecting-fields
|
|
10
10
|
*/
|
|
11
11
|
exports.default = (...fields) => {
|
|
12
12
|
const o = (current) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/authentication-local",
|
|
3
3
|
"description": "Local authentication strategy for @feathers/authentication",
|
|
4
|
-
"version": "5.0.0-pre.
|
|
4
|
+
"version": "5.0.0-pre.33",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/",
|
|
7
7
|
"types": "lib/",
|
|
@@ -53,24 +53,24 @@
|
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@feathersjs/authentication": "^5.0.0-pre.
|
|
57
|
-
"@feathersjs/commons": "^5.0.0-pre.
|
|
58
|
-
"@feathersjs/errors": "^5.0.0-pre.
|
|
59
|
-
"@feathersjs/feathers": "^5.0.0-pre.
|
|
56
|
+
"@feathersjs/authentication": "^5.0.0-pre.33",
|
|
57
|
+
"@feathersjs/commons": "^5.0.0-pre.33",
|
|
58
|
+
"@feathersjs/errors": "^5.0.0-pre.33",
|
|
59
|
+
"@feathersjs/feathers": "^5.0.0-pre.33",
|
|
60
60
|
"bcryptjs": "^2.4.3",
|
|
61
61
|
"lodash": "^4.17.21"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@feathersjs/memory": "^5.0.0-pre.
|
|
65
|
-
"@feathersjs/schema": "^5.0.0-pre.
|
|
64
|
+
"@feathersjs/memory": "^5.0.0-pre.33",
|
|
65
|
+
"@feathersjs/schema": "^5.0.0-pre.33",
|
|
66
66
|
"@types/bcryptjs": "^2.4.2",
|
|
67
|
-
"@types/lodash": "^4.14.
|
|
67
|
+
"@types/lodash": "^4.14.187",
|
|
68
68
|
"@types/mocha": "^10.0.0",
|
|
69
|
-
"@types/node": "^18.
|
|
70
|
-
"mocha": "^10.
|
|
69
|
+
"@types/node": "^18.11.9",
|
|
70
|
+
"mocha": "^10.1.0",
|
|
71
71
|
"shx": "^0.3.4",
|
|
72
72
|
"ts-node": "^10.9.1",
|
|
73
73
|
"typescript": "^4.8.4"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "89f516bcb1457e23a02c6212e9cd8bacc4d267d4"
|
|
76
76
|
}
|
|
@@ -18,6 +18,7 @@ export interface HashPasswordOptions {
|
|
|
18
18
|
* @param field
|
|
19
19
|
* @param options
|
|
20
20
|
* @returns
|
|
21
|
+
* @see https://dove.feathersjs.com/api/authentication/local.html#passwordhash
|
|
21
22
|
*/
|
|
22
23
|
export default function hashPassword(field: string, options: HashPasswordOptions = {}) {
|
|
23
24
|
if (!field) {
|
package/src/hooks/protect.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { HookContext, NextFunction } from '@feathersjs/feathers'
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated For reliable safe data representations use Feathers schema dispatch resolvers.
|
|
6
|
-
*
|
|
6
|
+
* @see https://dove.feathersjs.comapi/authentication/local.html#protecting-fields
|
|
7
7
|
*/
|
|
8
8
|
export default (...fields: string[]) => {
|
|
9
9
|
const o = (current: any) => {
|