@thi.ng/arrays 2.14.2 → 2.14.3
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/into.js +1 -1
- package/package.json +8 -8
- package/topo-sort.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/into.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/arrays",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.3",
|
|
4
4
|
"description": "Array / Arraylike utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.12.
|
|
43
|
-
"@thi.ng/checks": "^3.
|
|
44
|
-
"@thi.ng/compare": "^2.4.
|
|
45
|
-
"@thi.ng/equiv": "^2.1.
|
|
46
|
-
"@thi.ng/errors": "^2.5.
|
|
47
|
-
"@thi.ng/random": "^4.1.
|
|
42
|
+
"@thi.ng/api": "^8.12.10",
|
|
43
|
+
"@thi.ng/checks": "^3.8.0",
|
|
44
|
+
"@thi.ng/compare": "^2.4.36",
|
|
45
|
+
"@thi.ng/equiv": "^2.1.100",
|
|
46
|
+
"@thi.ng/errors": "^2.5.50",
|
|
47
|
+
"@thi.ng/random": "^4.1.35"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"esbuild": "^0.27.0",
|
|
@@ -187,5 +187,5 @@
|
|
|
187
187
|
"tag": "array",
|
|
188
188
|
"year": 2018
|
|
189
189
|
},
|
|
190
|
-
"gitHead": "
|
|
190
|
+
"gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
|
|
191
191
|
}
|
package/topo-sort.js
CHANGED
|
@@ -8,12 +8,12 @@ const topoSort = (nodes, deps) => {
|
|
|
8
8
|
cycles[id] = true;
|
|
9
9
|
const nodeDeps = deps(nodes[id], id);
|
|
10
10
|
if (nodeDeps) {
|
|
11
|
-
for (
|
|
11
|
+
for (const d of nodeDeps) sort(d, [...path, d]);
|
|
12
12
|
}
|
|
13
13
|
cycles[id] = false;
|
|
14
14
|
if (!topology.includes(id)) topology.push(id);
|
|
15
15
|
};
|
|
16
|
-
for (
|
|
16
|
+
for (const id in nodes) sort(id, [id]);
|
|
17
17
|
return topology;
|
|
18
18
|
};
|
|
19
19
|
export {
|