@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 CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
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
@@ -1,5 +1,5 @@
1
1
  const into = (dest, src, max = Infinity) => {
2
- for (let x of src) {
2
+ for (const x of src) {
3
3
  if (--max < 0) break;
4
4
  dest.push(x);
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/arrays",
3
- "version": "2.14.2",
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.9",
43
- "@thi.ng/checks": "^3.7.25",
44
- "@thi.ng/compare": "^2.4.35",
45
- "@thi.ng/equiv": "^2.1.99",
46
- "@thi.ng/errors": "^2.5.49",
47
- "@thi.ng/random": "^4.1.34"
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": "fdca77cabf47dd23a9ab17a5ca13e3060075c12c\n"
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 (let d of nodeDeps) sort(d, [...path, d]);
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 (let id in nodes) sort(id, [id]);
16
+ for (const id in nodes) sort(id, [id]);
17
17
  return topology;
18
18
  };
19
19
  export {