ctx-core 5.19.0 → 5.19.2

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.
@@ -64,7 +64,4 @@ export function fn_pipe<A, B, C, D, E, F, G, H, I, J, K>(
64
64
  _6:($:G)=>H,
65
65
  _7:($:H)=>I,
66
66
  _8:($:I
67
- )=>J, ...args:(($:any)=>any)[]):K
68
- export {
69
- fn_pipe as _p_,
70
- }
67
+ )=>J, ...args:(($:unknown)=>unknown)[]):K
@@ -5,7 +5,3 @@
5
5
  export function fn_pipe(...args) {
6
6
  return args.reduce((acc, el)=>el(acc))
7
7
  }
8
- export {
9
- fn_pipe as _p_,
10
- fn_pipe as P,
11
- }
@@ -1,18 +1,14 @@
1
1
  import { test } from 'uvu'
2
2
  import { equal, is } from 'uvu/assert'
3
- import { _p_, fn_pipe } from '../fn_pipe/index.js'
3
+ import { fn_pipe } from '../fn_pipe/index.js'
4
4
  test('fn_pipe|synchronous', ()=>{
5
5
  const o = {}
6
6
  is(o, fn_pipe(o, $=>$))
7
7
  equal({ foo: 'bar', o }, fn_pipe(o, $=>$, o=>({ foo: 'bar', o })))
8
- is(o, _p_(o, $=>$))
9
- equal({ foo: 'bar', o }, _p_(o, $=>$, o=>({ foo: 'bar', o })))
10
8
  })
11
9
  test('fn_pipe|async', async ()=>{
12
10
  const o = { one: 1 }
13
11
  equal({ one: 1, foo: 'bar', baz: 'quux' },
14
12
  await fn_pipe(o, async ()=>({ ...o, foo: 'bar' }), $=>$.then($=>({ ...$, baz: 'quux' }))))
15
- equal({ one: 1, foo: 'bar', baz: 'quux' },
16
- await _p_(o, async ()=>({ ...o, foo: 'bar' }), $=>$.then($=>({ ...$, baz: 'quux' }))))
17
13
  })
18
14
  test.run()
@@ -1,4 +1,9 @@
1
+ import { fn_pipe } from '../all/fn_pipe/index.js'
1
2
  import { run } from '../all/run/index.js'
3
+ export {
4
+ fn_pipe as _p_,
5
+ fn_pipe as P,
6
+ }
2
7
  export { run as _ }
3
8
  export * from '../all/LessThan/index.js'
4
9
  export * from '../all/NumericRange/index.js'
package/function/index.js CHANGED
@@ -1,4 +1,9 @@
1
+ import { fn_pipe } from '../all/fn_pipe/index.js'
1
2
  import { run } from '../all/run/index.js'
3
+ export {
4
+ fn_pipe as _p_,
5
+ fn_pipe as P,
6
+ }
2
7
  export { run as _ }
3
8
  export * from '../all/LessThan/index.js'
4
9
  export * from '../all/NumericRange/index.js'
package/package.json CHANGED
@@ -1,251 +1,252 @@
1
1
  {
2
- "name": "ctx-core",
3
- "version": "5.19.0",
4
- "description": "ctx-core core library",
5
- "keywords": [
6
- "ctx-core",
7
- "array",
8
- "combinators",
9
- "function",
10
- "object",
11
- "set"
12
- ],
13
- "homepage": "https://github.com/ctx-core/ctx-core#readme",
14
- "bugs": {
15
- "url": "https://github.com/ctx-core/ctx-core/issues"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "https://github.com/ctx-core/ctx-core.git"
20
- },
21
- "license": "Apache-2.0",
22
- "author": "Brian Takita",
23
- "type": "module",
24
- "files": [
25
- "*.d.ts",
26
- "*.js",
27
- "*.json",
28
- "all",
29
- "array",
30
- "atob",
31
- "base16",
32
- "be",
33
- "btoa",
34
- "buffer",
35
- "chain",
36
- "class",
37
- "cli-args",
38
- "color",
39
- "combinators",
40
- "crypto",
41
- "currency",
42
- "data",
43
- "date",
44
- "debounce",
45
- "deep_equal",
46
- "env",
47
- "error",
48
- "falsy",
49
- "fetch",
50
- "fibonacci",
51
- "fs",
52
- "function",
53
- "functional",
54
- "html",
55
- "http",
56
- "math",
57
- "matrix",
58
- "nullish",
59
- "number",
60
- "object",
61
- "promise",
62
- "queue",
63
- "random",
64
- "regex",
65
- "rmemo",
66
- "run",
67
- "set",
68
- "sleep",
69
- "stream",
70
- "string",
71
- "tempfile",
72
- "test",
73
- "time",
74
- "tuple",
75
- "types",
76
- "uri",
77
- "uuid",
78
- "package.json"
79
- ],
80
- "exports": {
81
- ".": "./index.js",
82
- "./all": "./all/index.js",
83
- "./array": "./array/index.js",
84
- "./atob": "./atob/index.js",
85
- "./base16": "./base16/index.js",
86
- "./be": "./be/index.js",
87
- "./btoa": "./btoa/index.js",
88
- "./buffer": "./buffer/index.js",
89
- "./chain": "./chain/index.js",
90
- "./class": "./class/index.js",
91
- "./cli-args": "./cli-args/index.js",
92
- "./color": "./color/index.js",
93
- "./combinators": "./combinators/index.js",
94
- "./crypto": "./crypto/index.js",
95
- "./currency": "./currency/index.js",
96
- "./data": "./data/index.js",
97
- "./date": "./date/index.js",
98
- "./debounce": "./debounce/index.js",
99
- "./deep_equal": "./deep_equal/index.js",
100
- "./env": "./env/index.js",
101
- "./error": "./error/index.js",
102
- "./falsy": "./falsy/index.js",
103
- "./fetch": "./fetch/index.js",
104
- "./fibonacci": "./fibonacci/index.js",
105
- "./fs": "./fs/index.js",
106
- "./function": "./function/index.js",
107
- "./functional": "./functional/index.js",
108
- "./html": "./html/index.js",
109
- "./http": "./http/index.js",
110
- "./math": "./math/index.js",
111
- "./matrix": "./matrix/index.js",
112
- "./nullish": "./nullish/index.js",
113
- "./number": "./number/index.js",
114
- "./object": "./object/index.js",
115
- "./promise": "./promise/index.js",
116
- "./queue": "./queue/index.js",
117
- "./random": "./random/index.js",
118
- "./regex": "./regex/index.js",
119
- "./rmemo": "./rmemo/index.js",
120
- "./run": "./run/index.js",
121
- "./set": "./set/index.js",
122
- "./sleep": "./sleep/index.js",
123
- "./stream": "./stream/index.js",
124
- "./string": "./string/index.js",
125
- "./tempfile": "./tempfile/index.js",
126
- "./test": "./test/index.js",
127
- "./time": "./time/index.js",
128
- "./tuple": "./tuple/index.js",
129
- "./types": "./types/index.js",
130
- "./uri": "./uri/index.js",
131
- "./uuid": "./uuid/index.js",
132
- "./package.json": "./package.json"
133
- },
134
- "devDependencies": {
135
- "@arethetypeswrong/cli": "^0.13.5",
136
- "@ctx-core/preprocess": "^0.1.1",
137
- "@size-limit/preset-small-lib": "^11.0.1",
138
- "@types/node": "^20.11.3",
139
- "@types/sinon": "^17.0.3",
140
- "c8": "^9.1.0",
141
- "check-dts": "^0.7.2",
142
- "esbuild": "^0.19.11",
143
- "esmock": "^2.6.2",
144
- "sinon": "^17.0.1",
145
- "size-limit": "^11.0.1",
146
- "tsx": "^4.7.0",
147
- "typescript": "next",
148
- "uvu": "^0.5.6"
149
- },
150
- "publishConfig": {
151
- "access": "public",
152
- "cache": "~/.npm"
153
- },
154
- "sideEffects": false,
155
- "size-limit": [
156
- {
157
- "name": "ctx_",
158
- "import": {
159
- "./be": "{ ctx_ }"
160
- },
161
- "limit": "33 B"
162
- },
163
- {
164
- "name": "ns_ctx_",
165
- "import": {
166
- "./be": "{ ns_ctx_ }"
167
- },
168
- "limit": "85 B"
169
- },
170
- {
171
- "name": "be_",
172
- "import": {
173
- "./be": "{ be_ }"
174
- },
175
- "limit": "99 B"
176
- },
177
- {
178
- "name": "be_ ctx_",
179
- "import": {
180
- "./be": "{ be_, ctx_ }"
181
- },
182
- "limit": "131 B"
183
- },
184
- {
185
- "name": "be_ ns_ctx_",
186
- "import": {
187
- "./be": "{ be_, ctx_, ns_ctx_ }"
188
- },
189
- "limit": "190 B"
190
- },
191
- {
192
- "name": "be_ ctx_ ns_ctx_",
193
- "import": {
194
- "./be": "{ be_, ctx_, ns_ctx_ }"
195
- },
196
- "limit": "190 B"
197
- },
198
- {
199
- "name": "memo_",
200
- "import": {
201
- "./rmemo": "{ memo_ }"
202
- },
203
- "limit": "352 B"
204
- },
205
- {
206
- "name": "memo_ sig_",
207
- "import": {
208
- "./rmemo": "{ sig_, memo_ }"
209
- },
210
- "limit": "370 B"
211
- },
212
- {
213
- "name": "memo_ sig_ be_ ctx_",
214
- "import": {
215
- "./rmemo": "{ sig_, memo_, be_, ctx_ }"
216
- },
217
- "limit": "471 B"
218
- },
219
- {
220
- "name": "memo_ sig_ be_ ctx_ be_memo_pair_ be_sig_triple_",
221
- "import": {
222
- "./rmemo": "{ sig_, memo_, be_, ctx_, be_memo_pair_, be_sig_triple_ }"
223
- },
224
- "limit": "576 B"
225
- },
226
- {
227
- "name": "uuid",
228
- "import": {
229
- "./uuid": "{ uuid_ }"
230
- },
231
- "limit": "39 B"
232
- },
233
- {
234
- "name": "short uuid",
235
- "import": {
236
- "./uuid": "{ short_uuid_ }"
237
- },
238
- "limit": "116 B"
239
- }
240
- ],
241
- "scripts": {
242
- "build": ":",
243
- "clean": ":",
244
- "exec": "$@",
245
- "test": "pnpm run /^test:/",
246
- "test:size": "size-limit",
247
- "test:type": "check-dts",
248
- "test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
249
- "disable:test:coverage": "c8 pnpm test:unit"
250
- }
2
+ "name": "ctx-core",
3
+ "version": "5.19.2",
4
+ "description": "ctx-core core library",
5
+ "keywords": [
6
+ "ctx-core",
7
+ "array",
8
+ "combinators",
9
+ "function",
10
+ "object",
11
+ "set"
12
+ ],
13
+ "homepage": "https://github.com/ctx-core/ctx-core#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/ctx-core/ctx-core/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/ctx-core/ctx-core.git"
20
+ },
21
+ "license": "Apache-2.0",
22
+ "author": "Brian Takita",
23
+ "type": "module",
24
+ "files": [
25
+ "*.d.ts",
26
+ "*.js",
27
+ "*.json",
28
+ "all",
29
+ "array",
30
+ "atob",
31
+ "base16",
32
+ "be",
33
+ "btoa",
34
+ "buffer",
35
+ "chain",
36
+ "class",
37
+ "cli-args",
38
+ "color",
39
+ "combinators",
40
+ "crypto",
41
+ "currency",
42
+ "data",
43
+ "date",
44
+ "debounce",
45
+ "deep_equal",
46
+ "env",
47
+ "error",
48
+ "falsy",
49
+ "fetch",
50
+ "fibonacci",
51
+ "fs",
52
+ "function",
53
+ "functional",
54
+ "html",
55
+ "http",
56
+ "math",
57
+ "matrix",
58
+ "nullish",
59
+ "number",
60
+ "object",
61
+ "promise",
62
+ "queue",
63
+ "random",
64
+ "regex",
65
+ "rmemo",
66
+ "run",
67
+ "set",
68
+ "sleep",
69
+ "stream",
70
+ "string",
71
+ "tempfile",
72
+ "test",
73
+ "time",
74
+ "tuple",
75
+ "types",
76
+ "uri",
77
+ "uuid",
78
+ "package.json"
79
+ ],
80
+ "exports": {
81
+ ".": "./index.js",
82
+ "./all": "./all/index.js",
83
+ "./array": "./array/index.js",
84
+ "./atob": "./atob/index.js",
85
+ "./base16": "./base16/index.js",
86
+ "./be": "./be/index.js",
87
+ "./btoa": "./btoa/index.js",
88
+ "./buffer": "./buffer/index.js",
89
+ "./chain": "./chain/index.js",
90
+ "./class": "./class/index.js",
91
+ "./cli-args": "./cli-args/index.js",
92
+ "./color": "./color/index.js",
93
+ "./combinators": "./combinators/index.js",
94
+ "./crypto": "./crypto/index.js",
95
+ "./currency": "./currency/index.js",
96
+ "./data": "./data/index.js",
97
+ "./date": "./date/index.js",
98
+ "./debounce": "./debounce/index.js",
99
+ "./deep_equal": "./deep_equal/index.js",
100
+ "./env": "./env/index.js",
101
+ "./error": "./error/index.js",
102
+ "./falsy": "./falsy/index.js",
103
+ "./fetch": "./fetch/index.js",
104
+ "./fibonacci": "./fibonacci/index.js",
105
+ "./fs": "./fs/index.js",
106
+ "./function": "./function/index.js",
107
+ "./functional": "./functional/index.js",
108
+ "./html": "./html/index.js",
109
+ "./http": "./http/index.js",
110
+ "./math": "./math/index.js",
111
+ "./matrix": "./matrix/index.js",
112
+ "./nullish": "./nullish/index.js",
113
+ "./number": "./number/index.js",
114
+ "./object": "./object/index.js",
115
+ "./promise": "./promise/index.js",
116
+ "./queue": "./queue/index.js",
117
+ "./random": "./random/index.js",
118
+ "./regex": "./regex/index.js",
119
+ "./rmemo": "./rmemo/index.js",
120
+ "./run": "./run/index.js",
121
+ "./set": "./set/index.js",
122
+ "./sleep": "./sleep/index.js",
123
+ "./stream": "./stream/index.js",
124
+ "./string": "./string/index.js",
125
+ "./tempfile": "./tempfile/index.js",
126
+ "./test": "./test/index.js",
127
+ "./time": "./time/index.js",
128
+ "./tuple": "./tuple/index.js",
129
+ "./types": "./types/index.js",
130
+ "./uri": "./uri/index.js",
131
+ "./uuid": "./uuid/index.js",
132
+ "./package.json": "./package.json"
133
+ },
134
+ "scripts": {
135
+ "build": ":",
136
+ "clean": ":",
137
+ "exec": "$@",
138
+ "prepublishOnly": "pnpm clean && pnpm build && pnpm test",
139
+ "test": "pnpm run /^test:/",
140
+ "test:size": "size-limit",
141
+ "test:type": "check-dts",
142
+ "test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
143
+ "disable:test:coverage": "c8 pnpm test:unit"
144
+ },
145
+ "devDependencies": {
146
+ "@arethetypeswrong/cli": "^0.13.5",
147
+ "@ctx-core/preprocess": "^0.1.1",
148
+ "@size-limit/preset-small-lib": "^11.0.2",
149
+ "@types/node": "^20.11.4",
150
+ "@types/sinon": "^17.0.3",
151
+ "c8": "^9.1.0",
152
+ "check-dts": "^0.7.2",
153
+ "esbuild": "^0.19.11",
154
+ "esmock": "^2.6.2",
155
+ "sinon": "^17.0.1",
156
+ "size-limit": "^11.0.2",
157
+ "tsx": "^4.7.0",
158
+ "typescript": "next",
159
+ "uvu": "^0.5.6"
160
+ },
161
+ "publishConfig": {
162
+ "access": "public",
163
+ "cache": "~/.npm"
164
+ },
165
+ "sideEffects": false,
166
+ "size-limit": [
167
+ {
168
+ "name": "ctx_",
169
+ "import": {
170
+ "./be": "{ ctx_ }"
171
+ },
172
+ "limit": "33 B"
173
+ },
174
+ {
175
+ "name": "ns_ctx_",
176
+ "import": {
177
+ "./be": "{ ns_ctx_ }"
178
+ },
179
+ "limit": "85 B"
180
+ },
181
+ {
182
+ "name": "be_",
183
+ "import": {
184
+ "./be": "{ be_ }"
185
+ },
186
+ "limit": "99 B"
187
+ },
188
+ {
189
+ "name": "be_ ctx_",
190
+ "import": {
191
+ "./be": "{ be_, ctx_ }"
192
+ },
193
+ "limit": "131 B"
194
+ },
195
+ {
196
+ "name": "be_ ns_ctx_",
197
+ "import": {
198
+ "./be": "{ be_, ctx_, ns_ctx_ }"
199
+ },
200
+ "limit": "190 B"
201
+ },
202
+ {
203
+ "name": "be_ ctx_ ns_ctx_",
204
+ "import": {
205
+ "./be": "{ be_, ctx_, ns_ctx_ }"
206
+ },
207
+ "limit": "190 B"
208
+ },
209
+ {
210
+ "name": "memo_",
211
+ "import": {
212
+ "./rmemo": "{ memo_ }"
213
+ },
214
+ "limit": "352 B"
215
+ },
216
+ {
217
+ "name": "memo_ sig_",
218
+ "import": {
219
+ "./rmemo": "{ sig_, memo_ }"
220
+ },
221
+ "limit": "370 B"
222
+ },
223
+ {
224
+ "name": "memo_ sig_ be_ ctx_",
225
+ "import": {
226
+ "./rmemo": "{ sig_, memo_, be_, ctx_ }"
227
+ },
228
+ "limit": "471 B"
229
+ },
230
+ {
231
+ "name": "memo_ sig_ be_ ctx_ be_memo_pair_ be_sig_triple_",
232
+ "import": {
233
+ "./rmemo": "{ sig_, memo_, be_, ctx_, be_memo_pair_, be_sig_triple_ }"
234
+ },
235
+ "limit": "576 B"
236
+ },
237
+ {
238
+ "name": "uuid",
239
+ "import": {
240
+ "./uuid": "{ uuid_ }"
241
+ },
242
+ "limit": "39 B"
243
+ },
244
+ {
245
+ "name": "short uuid",
246
+ "import": {
247
+ "./uuid": "{ short_uuid_ }"
248
+ },
249
+ "limit": "116 B"
250
+ }
251
+ ]
251
252
  }