@the-w1zard/the-registry 1.0.8 → 1.0.9
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/index.d.ts +13 -13
- package/dist/index.js +1 -1
- package/package.json +57 -57
- package/src/index.d.ts +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare class Registry extends EventEmitter {
|
|
|
69
69
|
get<T = A>(key: S): T | UD;
|
|
70
70
|
get<T = A>(key: S, fallback: T): T;
|
|
71
71
|
getAll(): A;
|
|
72
|
-
has(key: A):
|
|
72
|
+
has(key: A): boolean;
|
|
73
73
|
freeze(): void;
|
|
74
74
|
wait(key: A, { predicate, timeout, immediate, signal }?: A): Promise<any>;
|
|
75
75
|
waitChange(key: A, opts?: {}): Promise<any>;
|
|
@@ -78,20 +78,20 @@ export declare class Registry extends EventEmitter {
|
|
|
78
78
|
setIfPresent(key: A, value: U): boolean;
|
|
79
79
|
replace(key: A, value: U): boolean;
|
|
80
80
|
update(key: A, fn: (old: A, has: B) => A, initial: U): any;
|
|
81
|
-
inc(key: A, by?: number):
|
|
81
|
+
inc(key: A, by?: number): number;
|
|
82
82
|
touch(key: A): boolean;
|
|
83
|
-
toJSON(): any
|
|
84
|
-
entries(): any
|
|
85
|
-
keys(): any
|
|
86
|
-
values(): any
|
|
87
|
-
find(pred: A): any;
|
|
83
|
+
toJSON(): OB<any>;
|
|
84
|
+
entries(): A2I<[any, any]>;
|
|
85
|
+
keys(): A2I<any>;
|
|
86
|
+
values(): A2I<any>;
|
|
87
|
+
find(pred: A): [any, any];
|
|
88
88
|
findKey(pred: A): any;
|
|
89
|
-
group(fn: A): any
|
|
90
|
-
pick(keys: A): any
|
|
91
|
-
omit(keys: A): any
|
|
89
|
+
group(fn: A): M2I<unknown, A2<any>>;
|
|
90
|
+
pick(keys: A): M2I<any, any>;
|
|
91
|
+
omit(keys: A): M2I<any, any>;
|
|
92
92
|
snapshot(): A;
|
|
93
|
-
equals(other: A):
|
|
94
|
-
snapshotSubs(): any
|
|
93
|
+
equals(other: A): boolean;
|
|
94
|
+
snapshotSubs(): M2I<any, any>;
|
|
95
95
|
nextWaiterId: number;
|
|
96
96
|
private nextDeferId;
|
|
97
97
|
private draining;
|
|
@@ -206,7 +206,7 @@ export declare class Registry extends EventEmitter {
|
|
|
206
206
|
(deps: S | S[], fn: (v?: A) => V): N;
|
|
207
207
|
/** advance every multi-label waiter on this label */
|
|
208
208
|
releaseMulti: (k: S, v: A) => void;
|
|
209
|
-
cancel: (id: N) => B;
|
|
209
|
+
cancel: (id: N | S) => B;
|
|
210
210
|
wait_and_promise: <T = any>(timeoutMs: N, key: S, isOpen: B, current: A) => Promise<T>;
|
|
211
211
|
};
|
|
212
212
|
defer: {
|
package/dist/index.js
CHANGED
|
@@ -540,7 +540,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
540
540
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
541
541
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
542
542
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
543
|
-
if (n === "Map" || n === "Set") return Array.from(
|
|
543
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
544
544
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
545
545
|
}
|
|
546
546
|
function _wrap_async_generator(fn) {
|
package/package.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@the-w1zard/the-registry",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"sideEffects": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"default": "./dist/index.js"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"dist",
|
|
15
|
-
"./src/index.d.ts"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"1": "git add .",
|
|
19
|
-
"2": "git commit -m \"first commit\"",
|
|
20
|
-
"3": "git pull",
|
|
21
|
-
"4": "git push",
|
|
22
|
-
"5": "npm version patch",
|
|
23
|
-
"6": "git push",
|
|
24
|
-
"7": "git push --tags",
|
|
25
|
-
"8": "npm publish --access public",
|
|
26
|
-
"build": "tsc --emitDeclarationOnly && rspack build",
|
|
27
|
-
"dev": "rspack serve",
|
|
28
|
-
"check": "tsc --noEmit",
|
|
29
|
-
"*": "npm run 1 && npm run 2 && npm run 3 && npm run 4 && npm run 5 && npm run 6 && npm run 7 && npm run 8"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@babel/parser": "^8.1.
|
|
33
|
-
"@babel/traverse": "^8.1.
|
|
34
|
-
"@babel/types": "^8.1.
|
|
35
|
-
"@rspack/cli": "^2.3.
|
|
36
|
-
"@rspack/core": "^2.3.
|
|
37
|
-
"@rspack/dev-server": "^2.2.2",
|
|
38
|
-
"@the-w1zard/alias_types": "^1.0.
|
|
39
|
-
"@the-w1zard/types": "^1.0.
|
|
40
|
-
"@tsconfig/node-lts": "^24.0.
|
|
41
|
-
"@types/node": "^24.
|
|
42
|
-
"typescript": "^7.0.2"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@the-w1zard/dx": "^1.0.
|
|
46
|
-
},
|
|
47
|
-
"imports": {
|
|
48
|
-
"#STR": "@the-w1zard/app_store",
|
|
49
|
-
"#tc": "./src/the-cloud.ts",
|
|
50
|
-
"#the-cloud": "./src/the-cloud.ts",
|
|
51
|
-
"#PRIM": "@the-w1zard/prims",
|
|
52
|
-
"#sauron": "./src/index.ts",
|
|
53
|
-
"#sr": "./src/sauron.ts",
|
|
54
|
-
"#SS": "@the-w1zard/solutions",
|
|
55
|
-
"#HPR": "@the-w1zard/prim_helpers"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@the-w1zard/the-registry",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"./src/index.d.ts"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"1": "git add .",
|
|
19
|
+
"2": "git commit -m \"first commit\"",
|
|
20
|
+
"3": "git pull",
|
|
21
|
+
"4": "git push",
|
|
22
|
+
"5": "npm version patch",
|
|
23
|
+
"6": "git push",
|
|
24
|
+
"7": "git push --tags",
|
|
25
|
+
"8": "npm publish --access public",
|
|
26
|
+
"build": "tsc --emitDeclarationOnly && rspack build",
|
|
27
|
+
"dev": "rspack serve",
|
|
28
|
+
"check": "tsc --noEmit",
|
|
29
|
+
"*": "npm run 1 && npm run 2 && npm run 3 && npm run 4 && npm run 5 && npm run 6 && npm run 7 && npm run 8"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@babel/parser": "^8.1.2",
|
|
33
|
+
"@babel/traverse": "^8.1.2",
|
|
34
|
+
"@babel/types": "^8.1.2",
|
|
35
|
+
"@rspack/cli": "^2.3.2",
|
|
36
|
+
"@rspack/core": "^2.3.2",
|
|
37
|
+
"@rspack/dev-server": "^2.2.2",
|
|
38
|
+
"@the-w1zard/alias_types": "^1.0.8",
|
|
39
|
+
"@the-w1zard/types": "^1.0.14",
|
|
40
|
+
"@tsconfig/node-lts": "^24.0.1",
|
|
41
|
+
"@types/node": "^24.19.2",
|
|
42
|
+
"typescript": "^7.0.2"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@the-w1zard/dx": "^1.0.27"
|
|
46
|
+
},
|
|
47
|
+
"imports": {
|
|
48
|
+
"#STR": "@the-w1zard/app_store",
|
|
49
|
+
"#tc": "./src/the-cloud.ts",
|
|
50
|
+
"#the-cloud": "./src/the-cloud.ts",
|
|
51
|
+
"#PRIM": "@the-w1zard/prims",
|
|
52
|
+
"#sauron": "./src/index.ts",
|
|
53
|
+
"#sr": "./src/sauron.ts",
|
|
54
|
+
"#SS": "@the-w1zard/solutions",
|
|
55
|
+
"#HPR": "@the-w1zard/prim_helpers"
|
|
56
|
+
}
|
|
57
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -70,7 +70,12 @@ interface EnvDetectionState {
|
|
|
70
70
|
adapters: S[]; // full scan
|
|
71
71
|
ready: B;
|
|
72
72
|
}
|
|
73
|
-
type Maelstrom_Waiter = {
|
|
73
|
+
type Maelstrom_Waiter = {
|
|
74
|
+
nodeId?: string;
|
|
75
|
+
predicate?: (value: any) => boolean;
|
|
76
|
+
resolve?: (value: any) => void;
|
|
77
|
+
reject?: (error: any) => void;
|
|
78
|
+
id: S; deps: S[]; fn: (v?: A) => V; ready: SET<S> };
|
|
74
79
|
type DeferredState = "pending" | "running";
|
|
75
80
|
type DeferredTask = { id: N; deps: S[]; fn: (...v: A[]) => A; state: DeferredState };
|
|
76
81
|
type DeferredStats = { registered: N; executed: N; completed: N; failed: N; cancelled: N };
|