@furystack/core 15.0.27 → 15.0.29
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/README.md +1 -1
- package/esm/helpers.d.ts +2 -2
- package/esm/helpers.js +2 -2
- package/esm/port-generator.d.ts +1 -1
- package/esm/port-generator.js +1 -1
- package/package.json +5 -5
- package/src/helpers.ts +2 -2
- package/src/port-generator.ts +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ The generic way to implement authentication and authorization logic is with an I
|
|
|
23
23
|
Global Disposables is a list you can fill with disposables that will be disposed on app exit – this helps with graceful app shutdowns.
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
|
-
import { globalDisposables } from '@furystack/core/
|
|
26
|
+
import { globalDisposables } from '@furystack/core/create-physical-store-tests'
|
|
27
27
|
|
|
28
28
|
globalDisposables.add(myRootInjector)
|
|
29
29
|
```
|
package/esm/helpers.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export declare const disposeOnProcessExit: (disposable: Disposable | AsyncDispos
|
|
|
14
14
|
export declare const isAuthenticated: (injector: Injector) => Promise<boolean>;
|
|
15
15
|
/**
|
|
16
16
|
* @param injector The Injector instance
|
|
17
|
-
* @param
|
|
18
|
-
*
|
|
17
|
+
* @param roles A list of roles
|
|
18
|
+
* @returns whether the user is authorized with the specified roles from the identity context
|
|
19
19
|
*/
|
|
20
20
|
export declare const isAuthorized: (injector: Injector, ...roles: string[]) => Promise<boolean>;
|
|
21
21
|
/**
|
package/esm/helpers.js
CHANGED
|
@@ -14,8 +14,8 @@ export const disposeOnProcessExit = (disposable) => globalDisposables.add(dispos
|
|
|
14
14
|
export const isAuthenticated = async (injector) => injector.getInstance(IdentityContext).isAuthenticated();
|
|
15
15
|
/**
|
|
16
16
|
* @param injector The Injector instance
|
|
17
|
-
* @param
|
|
18
|
-
*
|
|
17
|
+
* @param roles A list of roles
|
|
18
|
+
* @returns whether the user is authorized with the specified roles from the identity context
|
|
19
19
|
*/
|
|
20
20
|
export const isAuthorized = async (injector, ...roles) => injector.getInstance(IdentityContext).isAuthorized(...roles);
|
|
21
21
|
/**
|
package/esm/port-generator.d.ts
CHANGED
package/esm/port-generator.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/core",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.29",
|
|
4
4
|
"description": "Core FuryStack package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://github.com/furystack/furystack",
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^24.
|
|
43
|
+
"@types/node": "^24.10.1",
|
|
44
44
|
"typescript": "^5.9.3",
|
|
45
|
-
"vitest": "^
|
|
45
|
+
"vitest": "^4.0.10"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@furystack/inject": "^12.0.
|
|
49
|
-
"@furystack/utils": "^8.1.
|
|
48
|
+
"@furystack/inject": "^12.0.23",
|
|
49
|
+
"@furystack/utils": "^8.1.5"
|
|
50
50
|
},
|
|
51
51
|
"gitHead": "1045d854bfd8c475b7035471d130d401417a2321"
|
|
52
52
|
}
|
package/src/helpers.ts
CHANGED
|
@@ -19,8 +19,8 @@ export const isAuthenticated = async (injector: Injector) => injector.getInstanc
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @param injector The Injector instance
|
|
22
|
-
* @param
|
|
23
|
-
*
|
|
22
|
+
* @param roles A list of roles
|
|
23
|
+
* @returns whether the user is authorized with the specified roles from the identity context
|
|
24
24
|
*/
|
|
25
25
|
export const isAuthorized = async (injector: Injector, ...roles: string[]) =>
|
|
26
26
|
injector.getInstance(IdentityContext).isAuthorized(...roles)
|
package/src/port-generator.ts
CHANGED