@thi.ng/system 3.1.85 → 3.1.87
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/package.json +5 -5
- package/system.js +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 211 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/system",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.87",
|
|
4
4
|
"description": "Minimal and explicit dependency-injection & lifecycle container for stateful app components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@thi.ng/api": "^8.12.
|
|
46
|
-
"@thi.ng/dgraph": "^2.1.
|
|
47
|
-
"@thi.ng/logger": "^3.2.
|
|
45
|
+
"@thi.ng/api": "^8.12.10",
|
|
46
|
+
"@thi.ng/dgraph": "^2.1.188",
|
|
47
|
+
"@thi.ng/logger": "^3.2.9"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"esbuild": "^0.27.0",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"thi.ng": {
|
|
89
89
|
"year": 2020
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "8625a1c6383737a8fdbe7a3f96ea3cbabc957fa6\n"
|
|
92
92
|
}
|
package/system.js
CHANGED
|
@@ -17,13 +17,13 @@ class System {
|
|
|
17
17
|
*/
|
|
18
18
|
async init() {
|
|
19
19
|
this.graph = new DGraph();
|
|
20
|
-
for (
|
|
20
|
+
for (const id in this.specs) {
|
|
21
21
|
const deps = this.specs[id].deps;
|
|
22
22
|
deps ? this.graph.addDependencies(id, deps) : this.graph.addNode(id);
|
|
23
23
|
}
|
|
24
24
|
this.topology = this.graph.sort();
|
|
25
25
|
this.components = {};
|
|
26
|
-
for (
|
|
26
|
+
for (const id of this.topology) {
|
|
27
27
|
this.components[id] = await this.specs[id].factory(this.components);
|
|
28
28
|
}
|
|
29
29
|
return this;
|