@thi.ng/compose 3.0.45 → 3.0.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/compose",
3
- "version": "3.0.45",
3
+ "version": "3.0.47",
4
4
  "description": "Optimized functional composition helpers",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,8 +39,8 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.12.8",
43
- "@thi.ng/errors": "^2.5.48"
42
+ "@thi.ng/api": "^8.12.10",
43
+ "@thi.ng/errors": "^2.5.50"
44
44
  },
45
45
  "devDependencies": {
46
46
  "esbuild": "^0.27.0",
@@ -107,5 +107,5 @@
107
107
  "thi.ng": {
108
108
  "alias": "comp"
109
109
  },
110
- "gitHead": "be6e7657b1e5c54d7d648d1b52888a7297e95a17\n"
110
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
111
111
  }
package/thread-first.js CHANGED
@@ -4,7 +4,7 @@ const threadFirst = (init, ...fns) => fns.reduce(
4
4
  );
5
5
  const threadFirstAsync = async (init, ...fns) => {
6
6
  let res = await init;
7
- for (let expr of fns) {
7
+ for (const expr of fns) {
8
8
  res = await (typeof expr === "function" ? expr(res) : expr[0](res, ...expr.slice(1)));
9
9
  }
10
10
  return res;
package/thread-last.js CHANGED
@@ -4,7 +4,7 @@ const threadLast = (init, ...fns) => fns.reduce(
4
4
  );
5
5
  const threadLastAsync = async (init, ...fns) => {
6
6
  let res = await init;
7
- for (let expr of fns) {
7
+ for (const expr of fns) {
8
8
  res = await (typeof expr === "function" ? expr(res) : expr[0](...expr.slice(1), res));
9
9
  }
10
10
  return res;