@thi.ng/compose 2.1.64 → 2.1.65

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-22T11:59:16Z
3
+ - **Last updated**: 2024-02-25T14:07:53Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/compose",
3
- "version": "2.1.64",
3
+ "version": "2.1.65",
4
4
  "description": "Optimized functional composition helpers",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,7 +35,7 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.25",
38
+ "@thi.ng/api": "^8.9.26",
39
39
  "@thi.ng/errors": "^2.4.18"
40
40
  },
41
41
  "devDependencies": {
@@ -105,5 +105,5 @@
105
105
  "default": "./trampoline.js"
106
106
  }
107
107
  },
108
- "gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
108
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
109
109
  }
package/promisify.d.ts CHANGED
@@ -9,6 +9,8 @@ import type { Fn, Fn2 } from "@thi.ng/api";
9
9
  *
10
10
  * @example
11
11
  * ```ts
12
+ * import { promisify } from "@thi.ng/compose";
13
+ *
12
14
  * (async () => {
13
15
  * const body = await promisify(partial(fs.readFile, "foo.txt"));
14
16
  * console.log(body.toString());
package/thread-first.d.ts CHANGED
@@ -13,6 +13,8 @@ import type { FnAny } from "@thi.ng/api";
13
13
  *
14
14
  * @example
15
15
  * ```ts
16
+ * import { threadFirst } from "@thi.ng/compose";
17
+ *
16
18
  * const neg = (x) => -x;
17
19
  * const sub = (a, b) => a - b;
18
20
  * const div = (a, b) => a / b;
package/thread-last.d.ts CHANGED
@@ -13,6 +13,8 @@ import type { FnAny } from "@thi.ng/api";
13
13
  *
14
14
  * @example
15
15
  * ```ts
16
+ * import { threadLast } from "@thi.ng/compose";
17
+ *
16
18
  * const neg = (x) => -x;
17
19
  * const sub = (a, b) => a - b;
18
20
  * const div = (a, b) => a / b;
package/trampoline.d.ts CHANGED
@@ -15,6 +15,8 @@ import type { Fn0 } from "@thi.ng/api";
15
15
  *
16
16
  * @example
17
17
  * ```ts
18
+ * import { trampoline } from "@thi.ng/compose";
19
+ *
18
20
  * const countdown = (acc, x) =>
19
21
  * x >= 0 ?
20
22
  * () => (acc.push(x), countdown(acc, x-1)) :