@thi.ng/compose 3.0.46 → 3.0.48
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 +4 -4
- package/thread-first.js +1 -1
- package/thread-last.js +1 -1
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 212 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.
|
|
3
|
+
"version": "3.0.48",
|
|
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.
|
|
43
|
-
"@thi.ng/errors": "^2.
|
|
42
|
+
"@thi.ng/api": "^8.12.11",
|
|
43
|
+
"@thi.ng/errors": "^2.6.0"
|
|
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": "
|
|
110
|
+
"gitHead": "e7a21b9d2a188fa04d4c893d8531c40fbc0f4c06\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 (
|
|
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 (
|
|
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;
|