@asyra/system-context 0.5.3 → 0.6.1
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/system-context.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class SystemContext implements SystemContextAPIs {
|
|
|
12
12
|
applyValidatedManagedProperties: ManagedPropertyStateAPIs['applyValidatedManagedProperties'];
|
|
13
13
|
loadManagedProperties: ManagedPropertyStateAPIs['loadManagedProperties'];
|
|
14
14
|
saveManagedProperties: ManagedPropertyStateAPIs['saveManagedProperties'];
|
|
15
|
-
constructor(deps
|
|
15
|
+
constructor(deps?: HandlerDeps);
|
|
16
16
|
resetRuntime(): void;
|
|
17
17
|
}
|
|
18
18
|
declare const systemContext: SystemContext;
|
package/dist/system-context.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAllAPIs } from './apis/index.js';
|
|
2
|
-
import { managedPropertyState } from './states/index.js';
|
|
2
|
+
import { ManagedPropertyState, managedPropertyState } from './states/index.js';
|
|
3
3
|
export class SystemContext {
|
|
4
4
|
deps;
|
|
5
5
|
getSystemContextSnapshot;
|
|
@@ -13,7 +13,9 @@ export class SystemContext {
|
|
|
13
13
|
applyValidatedManagedProperties;
|
|
14
14
|
loadManagedProperties;
|
|
15
15
|
saveManagedProperties;
|
|
16
|
-
constructor(deps
|
|
16
|
+
constructor(deps = {
|
|
17
|
+
managedPropertyState: new ManagedPropertyState()
|
|
18
|
+
}) {
|
|
17
19
|
this.deps = deps;
|
|
18
20
|
const apis = createAllAPIs(deps);
|
|
19
21
|
Object.assign(this, apis);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyra/system-context",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Provides reactive system parameters, tool states, and feature access control for the core application.",
|
|
5
5
|
"author": "Asa Tsai",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/karote00/asyra.git",
|
|
10
10
|
"directory": "packages/system-context"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://asyra-framework.
|
|
12
|
+
"homepage": "https://asyra-framework.pages.dev",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": "24.x"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"has:test": "find . -type f \\( -name \"*.test.ts\" -o -name \"*.test.tsx\" \\) | grep -q .",
|
|
39
39
|
"test": "yarn has:test && vitest || echo 'No test files found. Skipping test.'",
|
|
40
40
|
"test:local": "vitest run",
|
|
41
|
-
"test:ci": "yarn has:test && vitest run --coverage --reporter=default --reporter=junit
|
|
41
|
+
"test:ci": "yarn has:test && vitest run --coverage --reporter=default --reporter=junit"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@vitest/coverage-v8": "^3.2.6",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"vitest": "^3.2.6"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@asyra/utils": "0.
|
|
49
|
+
"@asyra/utils": "0.6.1",
|
|
50
50
|
"rxjs": "^7.8.1"
|
|
51
51
|
}
|
|
52
52
|
}
|