@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 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/dist/create-physical-store-tests'
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 {...any} roles A list of roles
18
- * @returns if the current authorization status from the identity context
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 {...any} roles A list of roles
18
- * @returns if the current authorization status from the identity context
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
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * Generates a random port number for testing purposes
3
3
  * @returns the next port number starting from 14000 to 16000
4
4
  */
5
5
  export declare const getPort: () => number;
@@ -6,7 +6,7 @@ const portGenerator = function* () {
6
6
  }
7
7
  };
8
8
  /**
9
- *
9
+ * Generates a random port number for testing purposes
10
10
  * @returns the next port number starting from 14000 to 16000
11
11
  */
12
12
  export const getPort = () => portGenerator().next().value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@furystack/core",
3
- "version": "15.0.27",
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.7.2",
43
+ "@types/node": "^24.10.1",
44
44
  "typescript": "^5.9.3",
45
- "vitest": "^3.2.4"
45
+ "vitest": "^4.0.10"
46
46
  },
47
47
  "dependencies": {
48
- "@furystack/inject": "^12.0.21",
49
- "@furystack/utils": "^8.1.3"
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 {...any} roles A list of roles
23
- * @returns if the current authorization status from the identity context
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)
@@ -7,7 +7,7 @@ const portGenerator = function* () {
7
7
  }
8
8
 
9
9
  /**
10
- *
10
+ * Generates a random port number for testing purposes
11
11
  * @returns the next port number starting from 14000 to 16000
12
12
  */
13
13
  export const getPort = () => portGenerator().next().value