@fluojs/passport 1.0.0-beta.2 → 1.0.0-beta.3
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/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js +2 -6
- package/package.json +5 -5
package/dist/metadata.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAIxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAIxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAiElD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAkCtI;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,EAAE,WAAW,CAAC,EAAE,mBAAmB,GAAG,eAAe,GAAG,SAAS,CAM/H;AAED,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,mBAAmB,GAAG,eAAe,GAAG,SAAS,CA6B3H"}
|
package/dist/metadata.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getStandardConstructorMetadataBag, getStandardMetadataBag } from '@fluojs/core/internal';
|
|
2
2
|
import { mergeAuthRequirements, normalizeDeclaredScopes } from './scope.js';
|
|
3
3
|
const standardClassRequirementKey = Symbol.for('fluo.passport.standard.class-auth');
|
|
4
4
|
const standardMethodRequirementKey = Symbol.for('fluo.passport.standard.method-auth');
|
|
@@ -38,15 +38,11 @@ function invalidateRequirementCache(controllerType, propertyKey) {
|
|
|
38
38
|
mergedMethodRequirementCache.delete(controllerType);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function getStandardMetadataBag(target) {
|
|
42
|
-
return target[metadataSymbol];
|
|
43
|
-
}
|
|
44
41
|
function getStandardClassRequirement(target) {
|
|
45
42
|
return normalizeRequirement(getStandardMetadataBag(target)?.[standardClassRequirementKey]);
|
|
46
43
|
}
|
|
47
44
|
function getStandardMethodRequirement(target, propertyKey) {
|
|
48
|
-
const
|
|
49
|
-
const map = constructor ? getStandardMetadataBag(constructor)?.[standardMethodRequirementKey] : undefined;
|
|
45
|
+
const map = getStandardConstructorMetadataBag(target)?.[standardMethodRequirementKey];
|
|
50
46
|
return normalizeRequirement(map?.get(propertyKey));
|
|
51
47
|
}
|
|
52
48
|
export function defineAuthRequirement(target, requirement, propertyKey) {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"guard",
|
|
10
10
|
"strategy"
|
|
11
11
|
],
|
|
12
|
-
"version": "1.0.0-beta.
|
|
12
|
+
"version": "1.0.0-beta.3",
|
|
13
13
|
"private": false,
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"repository": {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@fluojs/core": "^1.0.0-beta.
|
|
40
|
-
"@fluojs/di": "^1.0.0-beta.
|
|
41
|
-
"@fluojs/http": "^1.0.0-beta.
|
|
39
|
+
"@fluojs/core": "^1.0.0-beta.2",
|
|
40
|
+
"@fluojs/di": "^1.0.0-beta.3",
|
|
41
|
+
"@fluojs/http": "^1.0.0-beta.2",
|
|
42
42
|
"@fluojs/jwt": "^1.0.0-beta.1",
|
|
43
|
-
"@fluojs/runtime": "^1.0.0-beta.
|
|
43
|
+
"@fluojs/runtime": "^1.0.0-beta.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"vitest": "^3.2.4"
|