@thi.ng/compose 2.1.20 → 2.1.22
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/CHANGELOG.md +1 -1
- package/README.md +7 -10
- package/comp.d.ts +2 -2
- package/comp.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/compose)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -19,7 +19,7 @@ This project is part of the
|
|
|
19
19
|
|
|
20
20
|
## About
|
|
21
21
|
|
|
22
|
-
Optimized functional composition helpers
|
|
22
|
+
Optimized functional composition helpers
|
|
23
23
|
|
|
24
24
|
## Status
|
|
25
25
|
|
|
@@ -43,11 +43,8 @@ ES module import:
|
|
|
43
43
|
|
|
44
44
|
For Node.js REPL:
|
|
45
45
|
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
node --experimental-repl-await
|
|
49
|
-
|
|
50
|
-
> const compose = await import("@thi.ng/compose");
|
|
46
|
+
```js
|
|
47
|
+
const compose = await import("@thi.ng/compose");
|
|
51
48
|
```
|
|
52
49
|
|
|
53
50
|
Package sizes (brotli'd, pre-treeshake): ESM: 751 bytes
|
|
@@ -71,7 +68,7 @@ Package sizes (brotli'd, pre-treeshake): ESM: 751 bytes
|
|
|
71
68
|
|
|
72
69
|
## Authors
|
|
73
70
|
|
|
74
|
-
Karsten Schmidt
|
|
71
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
75
72
|
|
|
76
73
|
If this project contributes to an academic publication, please cite it as:
|
|
77
74
|
|
|
@@ -86,4 +83,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
86
83
|
|
|
87
84
|
## License
|
|
88
85
|
|
|
89
|
-
© 2016 - 2022 Karsten Schmidt // Apache
|
|
86
|
+
© 2016 - 2022 Karsten Schmidt // Apache License 2.0
|
package/comp.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare function comp<A, B, C, D, E, F, G, H, I>(a: Fn<B, A>, b: Fn<C, B>
|
|
|
18
18
|
export declare function comp<A, B, C, D, E, F, G, H, I, J>(a: Fn<B, A>, b: Fn<C, B>, c: Fn<D, C>, d: Fn<E, D>, e: Fn<F, E>, f: Fn<G, F>, g: Fn<H, G>, h: Fn<I, H>, i: Fn<J, I>, j: FnAny<J>): FnAny<A>;
|
|
19
19
|
export declare function comp<A, B, C, D, E, F, G, H, I, J>(a: Fn<B, A>, b: Fn<C, B>, c: Fn<D, C>, d: Fn<E, D>, e: Fn<F, E>, f: Fn<G, F>, g: Fn<H, G>, h: Fn<I, H>, i: Fn<J, I>, j: Fn<any, J>, ...fns: FnAny<any>[]): FnAny<A>;
|
|
20
20
|
/**
|
|
21
|
-
* Similar to {@link
|
|
21
|
+
* Similar to {@link comp}, but composes given functions in left-to-right order.
|
|
22
22
|
*/
|
|
23
23
|
export declare function compL<A>(a: FnAny<A>): FnAny<A>;
|
|
24
24
|
export declare function compL<A, B>(a: FnAny<A>, b: Fn<A, B>): FnAny<B>;
|
|
@@ -32,7 +32,7 @@ export declare function compL<A, B, C, D, E, F, G, H, I>(a: FnAny<A>, b: Fn<A, B
|
|
|
32
32
|
export declare function compL<A, B, C, D, E, F, G, H, I, J>(a: FnAny<A>, b: Fn<A, B>, c: Fn<B, C>, d: Fn<C, D>, e: Fn<D, E>, f: Fn<E, F>, g: Fn<F, G>, h: Fn<G, H>, i: Fn<H, I>, j: Fn<I, J>): FnAny<J>;
|
|
33
33
|
export declare function compL<A, B, C, D, E, F, G, H, I, J>(a: FnAny<A>, b: Fn<A, B>, c: Fn<B, C>, d: Fn<C, D>, e: Fn<D, E>, f: Fn<E, F>, g: Fn<F, G>, h: Fn<G, H>, i: Fn<H, I>, j: Fn<I, J>, ...xs: Fn<any, any>[]): FnAny<any>;
|
|
34
34
|
/**
|
|
35
|
-
* @deprecated renamed to {@link
|
|
35
|
+
* @deprecated renamed to {@link compL}
|
|
36
36
|
*/
|
|
37
37
|
export declare const compI: typeof compL;
|
|
38
38
|
//# sourceMappingURL=comp.d.ts.map
|
package/comp.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/compose",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.22",
|
|
4
4
|
"description": "Optimized functional composition helpers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/errors": "^2.2.
|
|
37
|
+
"@thi.ng/api": "^8.6.1",
|
|
38
|
+
"@thi.ng/errors": "^2.2.6"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@microsoft/api-extractor": "^7.33.
|
|
42
|
-
"@thi.ng/testament": "^0.3.
|
|
41
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
42
|
+
"@thi.ng/testament": "^0.3.7",
|
|
43
43
|
"rimraf": "^3.0.2",
|
|
44
44
|
"tools": "^0.0.1",
|
|
45
|
-
"typedoc": "^0.23.
|
|
46
|
-
"typescript": "^4.
|
|
45
|
+
"typedoc": "^0.23.22",
|
|
46
|
+
"typescript": "^4.9.4"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"async",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"default": "./trampoline.js"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
109
109
|
}
|