ctx-core 5.23.0 → 5.24.0
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/all/be_/index.d.ts +32 -5
- package/all/be_/index.js +28 -0
- package/all/be_/index.test.ts +37 -12
- package/all/be_memo_pair/index.d.ts +1 -2
- package/all/be_memosig_triple/index.test.ts +1 -1
- package/all/ctx/index.d.ts +6 -2
- package/package.json +253 -252
package/all/be_/index.d.ts
CHANGED
|
@@ -17,7 +17,34 @@ export declare function be_<
|
|
|
17
17
|
ctx_T extends Ctx_wide_T<ns_T> = Ctx_wide_T<ns_T>,
|
|
18
18
|
>(
|
|
19
19
|
val__new:be__val__new_T<val_T, ns_T, ctx_T>,
|
|
20
|
-
config
|
|
20
|
+
...config:
|
|
21
|
+
ns_T extends ''
|
|
22
|
+
? []|[config:be_config_T<ns_T>]
|
|
23
|
+
: [config:be_config_T<ns_T>]
|
|
24
|
+
):Be<val_T, ns_T, ctx_T>
|
|
25
|
+
export declare function ns_be_<
|
|
26
|
+
val_T,
|
|
27
|
+
ns_T extends string,
|
|
28
|
+
ctx_T extends Ctx_wide_T<ns_T> = Ctx_wide_T<ns_T>,
|
|
29
|
+
>(
|
|
30
|
+
ns:ns_T,
|
|
31
|
+
val__new:be__val__new_T<val_T, ns_T, ctx_T>
|
|
32
|
+
):Be<val_T, ns_T, ctx_T>
|
|
33
|
+
export declare function id_be_<
|
|
34
|
+
val_T,
|
|
35
|
+
ctx_T extends Ctx_wide_T<''> = Ctx_wide_T<''>,
|
|
36
|
+
>(
|
|
37
|
+
id:string,
|
|
38
|
+
val__new:be__val__new_T<val_T, '', ctx_T>
|
|
39
|
+
):Be<val_T, '', ctx_T>
|
|
40
|
+
export declare function ns_id_be_<
|
|
41
|
+
val_T,
|
|
42
|
+
ns_T extends string,
|
|
43
|
+
ctx_T extends Ctx_wide_T<ns_T> = Ctx_wide_T<ns_T>,
|
|
44
|
+
>(
|
|
45
|
+
ns:ns_T,
|
|
46
|
+
id:string,
|
|
47
|
+
val__new:be__val__new_T<val_T, ns_T, ctx_T>
|
|
21
48
|
):Be<val_T, ns_T, ctx_T>
|
|
22
49
|
export declare function ctx__set<
|
|
23
50
|
val_T,
|
|
@@ -88,10 +115,10 @@ export type be_o_T<
|
|
|
88
115
|
ns:ns_T
|
|
89
116
|
is_be:true
|
|
90
117
|
}
|
|
91
|
-
export type be_config_T<ns_T extends string = string> =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
118
|
+
export type be_config_T<ns_T extends string = string> =
|
|
119
|
+
ns_T extends ''
|
|
120
|
+
? { id?:string, ns?:ns_T }
|
|
121
|
+
: { id?:string, ns:ns_T }
|
|
95
122
|
export type BeMap<
|
|
96
123
|
ns_T extends string = ''
|
|
97
124
|
> =
|
package/all/be_/index.js
CHANGED
|
@@ -40,6 +40,34 @@ export function be_(val__new, config) {
|
|
|
40
40
|
be.is_be = true
|
|
41
41
|
return be
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @param {string}ns
|
|
45
|
+
* @param {be__val__new_T}val__new
|
|
46
|
+
* @returns {Be}
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
export function ns_be_(ns, val__new) {
|
|
50
|
+
return be_(val__new, { ns })
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @param {string}id
|
|
54
|
+
* @param {be__val__new_T}val__new
|
|
55
|
+
* @returns {Be}
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
export function id_be_(id, val__new) {
|
|
59
|
+
return be_(val__new, { id })
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @param {string}ns
|
|
63
|
+
* @param {string}id
|
|
64
|
+
* @param {be__val__new_T}val__new
|
|
65
|
+
* @returns {Be}
|
|
66
|
+
* @private
|
|
67
|
+
*/
|
|
68
|
+
export function ns_id_be_(ns, id, val__new) {
|
|
69
|
+
return be_(val__new, { ns, id })
|
|
70
|
+
}
|
|
43
71
|
/**
|
|
44
72
|
* Auto-memoization function for the Ctx.
|
|
45
73
|
* Memoized on globalThis to allow packages being loaded multiple times, which can happen during bundling.
|
package/all/be_/index.test.ts
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
type Ctx_s_T,
|
|
20
20
|
type Ctx_s_wide_T,
|
|
21
21
|
type Ctx_wide_T,
|
|
22
|
-
globalThis__be_,
|
|
22
|
+
globalThis__be_, id_be_, ns_be_, ns_id_be_,
|
|
23
23
|
ondelete_be_
|
|
24
24
|
} from '../be_/index.js'
|
|
25
25
|
import { ctx__new, ns_ctx__new } from '../ctx/index.js'
|
|
@@ -88,7 +88,9 @@ test('be_|ns_ctx__new', ()=>{
|
|
|
88
88
|
equal(ctx1.s[''].has(root_.id), false)
|
|
89
89
|
equal(ctx2.s[''].has(root_.id), false)
|
|
90
90
|
equal(ctx3.s[''].has(root_.id), true)
|
|
91
|
-
const child_ = be_(
|
|
91
|
+
const child_ = be_(
|
|
92
|
+
ctx=>root_(ctx) + 1,
|
|
93
|
+
{ id: 'child_' })
|
|
92
94
|
equal(child_(ctx), 2)
|
|
93
95
|
equal(ctx0.s[''].has(child_.id), true)
|
|
94
96
|
equal(ctx1.s[''].has(child_.id), false)
|
|
@@ -101,13 +103,14 @@ test('be_|ns', ()=>{
|
|
|
101
103
|
const ctx1 = ns_ctx__new('ctx1')
|
|
102
104
|
const ctx = ns_ctx__new(ctx0, ctx1)
|
|
103
105
|
const be__ctx_a:Ctx_wide_T<'ctx1'>[] = []
|
|
104
|
-
const root_ = be_(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
const root_ = be_<number, 'ctx1'>(
|
|
107
|
+
ctx=>{
|
|
108
|
+
be__ctx_a.push(ctx)
|
|
109
|
+
return 1
|
|
110
|
+
}, {
|
|
111
|
+
id: 'root_',
|
|
112
|
+
ns: 'ctx1',
|
|
113
|
+
})
|
|
111
114
|
equal(root_(ctx), 1)
|
|
112
115
|
equal(be__ctx_a, [ctx])
|
|
113
116
|
// @ts-expect-error TS2322
|
|
@@ -148,7 +151,7 @@ test('be_|ns|types', ()=>{
|
|
|
148
151
|
? typeof ctx
|
|
149
152
|
: never>>
|
|
150
153
|
type test_ctx_Ctx = Expect<Equal<typeof ctx, Ctx<''|'ctx1'>>>
|
|
151
|
-
const root_ = be_(
|
|
154
|
+
const root_ = be_<number, 'ctx1'>(
|
|
152
155
|
ctx=>{
|
|
153
156
|
type test_be_ctx_argument = Expect<Equal<typeof ctx, Ctx_wide_T<'ctx1'>>>
|
|
154
157
|
return 1
|
|
@@ -207,6 +210,29 @@ test('be_|circular dependency|DEBUG=1', async ()=>{
|
|
|
207
210
|
await unlink(tempfile)
|
|
208
211
|
}
|
|
209
212
|
})
|
|
213
|
+
test('ns_be_', ()=>{
|
|
214
|
+
const valid_ctx = ns_ctx__new('test_ns')
|
|
215
|
+
const val_ = ns_be_('test_ns', ()=>true)
|
|
216
|
+
equal(val_(valid_ctx), true)
|
|
217
|
+
// @ts-expect-error TS2322
|
|
218
|
+
throws(()=>val_(ctx__new()))
|
|
219
|
+
})
|
|
220
|
+
test('id_be_', ()=>{
|
|
221
|
+
const valid_ctx = ctx__new()
|
|
222
|
+
const val_ = id_be_('test_id', ()=>true)
|
|
223
|
+
equal(val_(valid_ctx), true)
|
|
224
|
+
equal(val_.id, 'test_id')
|
|
225
|
+
// @ts-expect-error TS2322
|
|
226
|
+
throws(()=>val_(ns_ctx__new('test_ns')))
|
|
227
|
+
})
|
|
228
|
+
test('ns_id_be_', ()=>{
|
|
229
|
+
const valid_ctx = ns_ctx__new('test_ns')
|
|
230
|
+
const val_ = ns_id_be_('test_ns', 'test_id', ()=>true)
|
|
231
|
+
equal(val_(valid_ctx), true)
|
|
232
|
+
equal(val_.id, 'test_id')
|
|
233
|
+
// @ts-expect-error TS2322
|
|
234
|
+
throws(()=>val_(ctx__new()))
|
|
235
|
+
})
|
|
210
236
|
test('ctx__set', ()=>{
|
|
211
237
|
const ctx0 = ns_ctx__new('ctx0')
|
|
212
238
|
const ctx1 = ctx__new()
|
|
@@ -288,8 +314,7 @@ test('ctx__delete|be', ()=>{
|
|
|
288
314
|
// @ts-expect-error TS7053
|
|
289
315
|
equal(ctx1.s[''], undefined)
|
|
290
316
|
const ns__num_ =
|
|
291
|
-
|
|
292
|
-
{ ns: 'ctx1' })
|
|
317
|
+
ns_be_('ctx1', ()=>1)
|
|
293
318
|
ns__num_(ns_ctx)
|
|
294
319
|
// @ts-expect-error TS2345
|
|
295
320
|
equal(ctx0.s[''].has(ns__num_.id), false)
|
|
@@ -12,8 +12,7 @@ export declare function be_memo_pair_<
|
|
|
12
12
|
E = unknown,
|
|
13
13
|
ctx_T extends Ctx_wide_T<ns_T> = Ctx_wide_T<ns_T>,
|
|
14
14
|
>(
|
|
15
|
-
rmemo__new:(ctx:ctx_T, memo:sig_T<val_T, E>)=>val_T,
|
|
16
|
-
config?:be_config_T
|
|
15
|
+
rmemo__new:(ctx:ctx_T, memo:sig_T<val_T, E>)=>val_T, config?:be_config_T<ns_T>
|
|
17
16
|
):be_memo_pair_T<val_T, ns_T, E, ctx_T>
|
|
18
17
|
export type be_memo_pair_T<
|
|
19
18
|
val_T,
|
|
@@ -60,7 +60,7 @@ test('be_memosig_triple_|+id|+ns', ()=>{
|
|
|
60
60
|
foobar$_,
|
|
61
61
|
foobar_,
|
|
62
62
|
foobar__set,
|
|
63
|
-
] = be_memosig_triple_(
|
|
63
|
+
] = be_memosig_triple_<number, 'test_ns'>(
|
|
64
64
|
ctx=>{
|
|
65
65
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
66
66
|
type test_ctx = Expect<Equal<typeof ctx, Ctx_wide_T<'test_ns'>>>
|
package/all/ctx/index.d.ts
CHANGED
|
@@ -2,8 +2,12 @@ import type { Ctx } from '../be_/index.js'
|
|
|
2
2
|
import type { TupleToUnion } from '../tuple/index.js'
|
|
3
3
|
export declare function ctx__new():Ctx<''>
|
|
4
4
|
export { ctx__new as ctx_ }
|
|
5
|
-
export declare function ns_ctx__new<
|
|
6
|
-
|
|
5
|
+
export declare function ns_ctx__new<
|
|
6
|
+
ns0_T extends string|Ctx,
|
|
7
|
+
ns_a_T extends (string|Ctx)[]
|
|
8
|
+
>(
|
|
9
|
+
ns0:ns0_T,
|
|
10
|
+
...ns_a:ns_a_T
|
|
7
11
|
):Ctx<Exclude<TupleToUnion<ns_a__flat_T<[ns0_T]>>|TupleToUnion<ns_a__flat_T<ns_a_T>>, undefined>>
|
|
8
12
|
export { ns_ctx__new as ns_ctx_ }
|
|
9
13
|
export declare function is_ctx_(val:unknown):boolean
|
package/package.json
CHANGED
|
@@ -1,253 +1,254 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
2
|
+
"name": "ctx-core",
|
|
3
|
+
"version": "5.24.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
|
+
"event_log",
|
|
49
|
+
"falsy",
|
|
50
|
+
"fetch",
|
|
51
|
+
"fibonacci",
|
|
52
|
+
"fs",
|
|
53
|
+
"function",
|
|
54
|
+
"functional",
|
|
55
|
+
"html",
|
|
56
|
+
"http",
|
|
57
|
+
"math",
|
|
58
|
+
"matrix",
|
|
59
|
+
"nullish",
|
|
60
|
+
"number",
|
|
61
|
+
"object",
|
|
62
|
+
"promise",
|
|
63
|
+
"queue",
|
|
64
|
+
"random",
|
|
65
|
+
"regex",
|
|
66
|
+
"rmemo",
|
|
67
|
+
"run",
|
|
68
|
+
"set",
|
|
69
|
+
"sleep",
|
|
70
|
+
"stream",
|
|
71
|
+
"string",
|
|
72
|
+
"tempfile",
|
|
73
|
+
"test",
|
|
74
|
+
"time",
|
|
75
|
+
"tuple",
|
|
76
|
+
"types",
|
|
77
|
+
"uri",
|
|
78
|
+
"uuid",
|
|
79
|
+
"package.json"
|
|
80
|
+
],
|
|
81
|
+
"exports": {
|
|
82
|
+
".": "./index.js",
|
|
83
|
+
"./all": "./all/index.js",
|
|
84
|
+
"./array": "./array/index.js",
|
|
85
|
+
"./atob": "./atob/index.js",
|
|
86
|
+
"./base16": "./base16/index.js",
|
|
87
|
+
"./be": "./be/index.js",
|
|
88
|
+
"./btoa": "./btoa/index.js",
|
|
89
|
+
"./buffer": "./buffer/index.js",
|
|
90
|
+
"./chain": "./chain/index.js",
|
|
91
|
+
"./class": "./class/index.js",
|
|
92
|
+
"./cli-args": "./cli-args/index.js",
|
|
93
|
+
"./color": "./color/index.js",
|
|
94
|
+
"./combinators": "./combinators/index.js",
|
|
95
|
+
"./crypto": "./crypto/index.js",
|
|
96
|
+
"./currency": "./currency/index.js",
|
|
97
|
+
"./data": "./data/index.js",
|
|
98
|
+
"./date": "./date/index.js",
|
|
99
|
+
"./debounce": "./debounce/index.js",
|
|
100
|
+
"./deep_equal": "./deep_equal/index.js",
|
|
101
|
+
"./env": "./env/index.js",
|
|
102
|
+
"./error": "./error/index.js",
|
|
103
|
+
"./event_log": "./event_log/index.js",
|
|
104
|
+
"./falsy": "./falsy/index.js",
|
|
105
|
+
"./fetch": "./fetch/index.js",
|
|
106
|
+
"./fibonacci": "./fibonacci/index.js",
|
|
107
|
+
"./fs": "./fs/index.js",
|
|
108
|
+
"./function": "./function/index.js",
|
|
109
|
+
"./functional": "./functional/index.js",
|
|
110
|
+
"./html": "./html/index.js",
|
|
111
|
+
"./http": "./http/index.js",
|
|
112
|
+
"./math": "./math/index.js",
|
|
113
|
+
"./matrix": "./matrix/index.js",
|
|
114
|
+
"./nullish": "./nullish/index.js",
|
|
115
|
+
"./number": "./number/index.js",
|
|
116
|
+
"./object": "./object/index.js",
|
|
117
|
+
"./promise": "./promise/index.js",
|
|
118
|
+
"./queue": "./queue/index.js",
|
|
119
|
+
"./random": "./random/index.js",
|
|
120
|
+
"./regex": "./regex/index.js",
|
|
121
|
+
"./rmemo": "./rmemo/index.js",
|
|
122
|
+
"./run": "./run/index.js",
|
|
123
|
+
"./set": "./set/index.js",
|
|
124
|
+
"./sleep": "./sleep/index.js",
|
|
125
|
+
"./stream": "./stream/index.js",
|
|
126
|
+
"./string": "./string/index.js",
|
|
127
|
+
"./tempfile": "./tempfile/index.js",
|
|
128
|
+
"./test": "./test/index.js",
|
|
129
|
+
"./time": "./time/index.js",
|
|
130
|
+
"./tuple": "./tuple/index.js",
|
|
131
|
+
"./types": "./types/index.js",
|
|
132
|
+
"./uri": "./uri/index.js",
|
|
133
|
+
"./uuid": "./uuid/index.js",
|
|
134
|
+
"./package.json": "./package.json"
|
|
135
|
+
},
|
|
136
|
+
"scripts": {
|
|
137
|
+
"build": ":",
|
|
138
|
+
"clean": ":",
|
|
139
|
+
"exec": "$@",
|
|
140
|
+
"prepublishOnly": "pnpm clean && pnpm build && pnpm test",
|
|
141
|
+
"test": "pnpm run /^test:/",
|
|
142
|
+
"test:size": "size-limit",
|
|
143
|
+
"test:type": "check-dts",
|
|
144
|
+
"test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
|
|
145
|
+
"disable:test:coverage": "c8 pnpm test:unit"
|
|
146
|
+
},
|
|
147
|
+
"devDependencies": {
|
|
148
|
+
"@arethetypeswrong/cli": "^0.13.5",
|
|
149
|
+
"@ctx-core/preprocess": "^0.1.1",
|
|
150
|
+
"@size-limit/preset-small-lib": "^11.0.2",
|
|
151
|
+
"@types/node": "^20.11.5",
|
|
152
|
+
"@types/sinon": "^17.0.3",
|
|
153
|
+
"c8": "^9.1.0",
|
|
154
|
+
"check-dts": "^0.7.2",
|
|
155
|
+
"esbuild": "^0.19.11",
|
|
156
|
+
"esmock": "^2.6.2",
|
|
157
|
+
"sinon": "^17.0.1",
|
|
158
|
+
"size-limit": "^11.0.2",
|
|
159
|
+
"tsx": "^4.7.0",
|
|
160
|
+
"typescript": "next",
|
|
161
|
+
"uvu": "^0.5.6"
|
|
162
|
+
},
|
|
163
|
+
"publishConfig": {
|
|
164
|
+
"access": "public",
|
|
165
|
+
"cache": "~/.npm"
|
|
166
|
+
},
|
|
167
|
+
"sideEffects": false,
|
|
168
|
+
"size-limit": [
|
|
169
|
+
{
|
|
170
|
+
"name": "ctx_",
|
|
171
|
+
"import": {
|
|
172
|
+
"./be": "{ ctx_ }"
|
|
173
|
+
},
|
|
174
|
+
"limit": "33 B"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "ns_ctx_",
|
|
178
|
+
"import": {
|
|
179
|
+
"./be": "{ ns_ctx_ }"
|
|
180
|
+
},
|
|
181
|
+
"limit": "85 B"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "be_",
|
|
185
|
+
"import": {
|
|
186
|
+
"./be": "{ be_ }"
|
|
187
|
+
},
|
|
188
|
+
"limit": "99 B"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "be_ ctx_",
|
|
192
|
+
"import": {
|
|
193
|
+
"./be": "{ be_, ctx_ }"
|
|
194
|
+
},
|
|
195
|
+
"limit": "131 B"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "be_ ns_ctx_",
|
|
199
|
+
"import": {
|
|
200
|
+
"./be": "{ be_, ctx_, ns_ctx_ }"
|
|
201
|
+
},
|
|
202
|
+
"limit": "191 B"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "be_ ctx_ ns_ctx_",
|
|
206
|
+
"import": {
|
|
207
|
+
"./be": "{ be_, ctx_, ns_ctx_ }"
|
|
208
|
+
},
|
|
209
|
+
"limit": "191 B"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "memo_",
|
|
213
|
+
"import": {
|
|
214
|
+
"./rmemo": "{ memo_ }"
|
|
215
|
+
},
|
|
216
|
+
"limit": "352 B"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "memo_ sig_",
|
|
220
|
+
"import": {
|
|
221
|
+
"./rmemo": "{ sig_, memo_ }"
|
|
222
|
+
},
|
|
223
|
+
"limit": "370 B"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "memo_ sig_ be_ ctx_",
|
|
227
|
+
"import": {
|
|
228
|
+
"./rmemo": "{ sig_, memo_, be_, ctx_ }"
|
|
229
|
+
},
|
|
230
|
+
"limit": "471 B"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "memo_ sig_ be_ ctx_ be_memo_pair_ be_sig_triple_",
|
|
234
|
+
"import": {
|
|
235
|
+
"./rmemo": "{ sig_, memo_, be_, ctx_, be_memo_pair_, be_sig_triple_ }"
|
|
236
|
+
},
|
|
237
|
+
"limit": "568 B"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "uuid",
|
|
241
|
+
"import": {
|
|
242
|
+
"./uuid": "{ uuid_ }"
|
|
243
|
+
},
|
|
244
|
+
"limit": "39 B"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "short uuid",
|
|
248
|
+
"import": {
|
|
249
|
+
"./uuid": "{ short_uuid_ }"
|
|
250
|
+
},
|
|
251
|
+
"limit": "116 B"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|