ctx-core 5.25.4 → 5.26.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/event_log/index.js +17 -14
- package/all/html_style/index.d.ts +5 -0
- package/all/html_style/index.js +32 -18
- package/all/html_style/index.test.ts +36 -13
- package/all/px_rem/index.d.ts +2 -0
- package/all/px_rem/index.js +5 -0
- package/html/index.d.ts +2 -2
- package/html/index.js +2 -2
- package/package.json +252 -253
package/all/event_log/index.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { be_memo_pair_ } from '../be_memo_pair/index.js'
|
|
2
1
|
import { be_sig_triple_ } from '../be_sig_triple/index.js'
|
|
2
|
+
import { memo_ } from '../rmemo/index.js'
|
|
3
3
|
const [
|
|
4
|
-
,
|
|
5
|
-
_event_log_,
|
|
6
|
-
_event_log__set,
|
|
7
|
-
] = be_sig_triple_(()=>[])
|
|
8
|
-
export const [
|
|
9
4
|
event_log$_,
|
|
10
5
|
event_log_,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
event_log__set,
|
|
7
|
+
] = be_sig_triple_(
|
|
8
|
+
()=>[],
|
|
9
|
+
{ id: 'event_log' }
|
|
10
|
+
).add((ctx, event_log$)=>
|
|
11
|
+
memo_(()=>{
|
|
12
|
+
if (event_log$().length > event_log_limit_(ctx)) {
|
|
13
|
+
event_log$().splice(event_log$().length - event_log_limit_(ctx) + 1)
|
|
14
|
+
}
|
|
15
|
+
}))
|
|
16
|
+
export {
|
|
17
|
+
event_log$_,
|
|
18
|
+
event_log_,
|
|
19
|
+
event_log$_ as event_log__
|
|
20
|
+
}
|
|
18
21
|
export const [
|
|
19
22
|
event_log_limit$_,
|
|
20
23
|
event_log_limit_,
|
|
@@ -22,5 +25,5 @@ export const [
|
|
|
22
25
|
] = be_sig_triple_(()=>10000)
|
|
23
26
|
export { event_log_limit__set as event_log__set_limit, }
|
|
24
27
|
export function event_log__add(ctx, record) {
|
|
25
|
-
|
|
28
|
+
event_log__set(ctx, [record, ...(event_log$_(ctx).val ?? [])])
|
|
26
29
|
}
|
|
@@ -8,3 +8,8 @@ export declare function html_style_(...style_def_a:html_attr_def_T[]):string
|
|
|
8
8
|
export declare function html_style__(
|
|
9
9
|
...memo_style_def_a:html_attr_def_T[]
|
|
10
10
|
):(...style_def_a:html_attr_def_T[])=>string
|
|
11
|
+
export declare function background_image_style_(background_url:string):string
|
|
12
|
+
export declare function background_image_style_o_(background_url:string):{
|
|
13
|
+
'background-image': string
|
|
14
|
+
}
|
|
15
|
+
export declare function html_style_url_(url:string):string
|
package/all/html_style/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="../attr/index.d.ts" />
|
|
2
2
|
import { isArray } from '../isArray/index.js'
|
|
3
|
-
const eol_semicolon_regex = /;\s*$/
|
|
4
3
|
/**
|
|
5
4
|
* Returns class style attribute from obj
|
|
6
5
|
* @param {attr_def_T}style_def_a
|
|
@@ -9,39 +8,54 @@ const eol_semicolon_regex = /;\s*$/
|
|
|
9
8
|
* style_({position: 'absolute, left: '5px'}) // returns 'position: absolute; left: 5px;'
|
|
10
9
|
*/
|
|
11
10
|
export function html_style_(...style_def_a) {
|
|
12
|
-
|
|
13
|
-
for (let
|
|
14
|
-
const style_def = style_def_a[i]
|
|
11
|
+
let a = []
|
|
12
|
+
for (let style_def of style_def_a) {
|
|
15
13
|
if (typeof style_def === 'string') {
|
|
16
|
-
a.push(
|
|
14
|
+
a.push(style_def.replace(/;$/, '') + ';')
|
|
17
15
|
} else if (isArray(style_def)) {
|
|
18
|
-
a.push(...style_def.map(
|
|
16
|
+
a.push(...style_def.map($=>$.replace(/;$/, '') + ';'))
|
|
19
17
|
} else if (typeof style_def === 'object') {
|
|
20
18
|
for (let key in style_def) {
|
|
21
19
|
const val = style_def[key]
|
|
22
|
-
if (val != null) a.push(`${key}
|
|
20
|
+
if (val != null) a.push(`${key}:${val};`)
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
23
|
}
|
|
26
24
|
return a.join(' ')
|
|
27
25
|
}
|
|
28
26
|
/**
|
|
29
|
-
* @param {
|
|
27
|
+
* @param {attr_def_T}memo_style_def_a
|
|
28
|
+
* @returns {(...style_def_a:string[])=>string}
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
export function html_style__(memo_style_def_a) {
|
|
32
|
+
return (...style_a)=>html_style_(memo_style_def_a, ...style_a)
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @param {string}background_url
|
|
30
36
|
* @returns {string}
|
|
31
37
|
* @private
|
|
32
38
|
*/
|
|
33
|
-
function
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
: `${style};`
|
|
38
|
-
)
|
|
39
|
+
export function background_image_style_(background_url) {
|
|
40
|
+
return html_style_({
|
|
41
|
+
'background-image': html_style_url_(background_url)
|
|
42
|
+
})
|
|
39
43
|
}
|
|
40
44
|
/**
|
|
41
|
-
* @param {
|
|
42
|
-
* @returns {
|
|
45
|
+
* @param {string}background_url
|
|
46
|
+
* @returns {{'background-image': string}}
|
|
43
47
|
* @private
|
|
44
48
|
*/
|
|
45
|
-
export function
|
|
46
|
-
return
|
|
49
|
+
export function background_image_style_o_(background_url) {
|
|
50
|
+
return {
|
|
51
|
+
'background-image': html_style_url_(background_url)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @param {string}url
|
|
56
|
+
* @returns {string}
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
export function html_style_url_(url) {
|
|
60
|
+
return 'url(' + '\'' + url + '\')'
|
|
47
61
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { test } from 'uvu'
|
|
2
2
|
import { equal } from 'uvu/assert'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
background_image_style_,
|
|
5
|
+
background_image_style_o_,
|
|
6
|
+
html_style_,
|
|
7
|
+
html_style__,
|
|
8
|
+
html_style_url_
|
|
9
|
+
} from './index.js'
|
|
4
10
|
test('html_style_', ()=>{
|
|
5
11
|
equal(
|
|
6
12
|
html_style_('display: block', 'position: absolute'),
|
|
@@ -13,37 +19,37 @@ test('html_style_', ()=>{
|
|
|
13
19
|
position: 'absolute',
|
|
14
20
|
top: null,
|
|
15
21
|
}),
|
|
16
|
-
'display: block; position:
|
|
22
|
+
'display: block; position:absolute;')
|
|
17
23
|
equal(
|
|
18
24
|
html_style_({
|
|
19
25
|
display: 'block',
|
|
20
26
|
top: null,
|
|
21
27
|
}, 'position: absolute'),
|
|
22
|
-
'display:
|
|
28
|
+
'display:block; position: absolute;')
|
|
23
29
|
equal(
|
|
24
30
|
html_style_({
|
|
25
31
|
display: 'block',
|
|
26
32
|
top: null,
|
|
27
33
|
}, ['position: absolute']),
|
|
28
|
-
'display:
|
|
34
|
+
'display:block; position: absolute;')
|
|
29
35
|
equal(
|
|
30
36
|
html_style_({
|
|
31
37
|
display: 'block',
|
|
32
38
|
top: null,
|
|
33
39
|
}, ['position: absolute; top: 0']),
|
|
34
|
-
'display:
|
|
40
|
+
'display:block; position: absolute; top: 0;')
|
|
35
41
|
equal(
|
|
36
42
|
html_style_({
|
|
37
43
|
display: 'block',
|
|
38
44
|
top: null,
|
|
39
45
|
}, ['position: absolute; top: 0']),
|
|
40
|
-
'display:
|
|
46
|
+
'display:block; position: absolute; top: 0;')
|
|
41
47
|
equal(
|
|
42
48
|
html_style_({
|
|
43
49
|
display: 'block',
|
|
44
50
|
top: null,
|
|
45
51
|
}, ['position: absolute; top: 0;']),
|
|
46
|
-
'display:
|
|
52
|
+
'display:block; position: absolute; top: 0;')
|
|
47
53
|
})
|
|
48
54
|
test('html_style__', ()=>{
|
|
49
55
|
equal(
|
|
@@ -57,36 +63,53 @@ test('html_style__', ()=>{
|
|
|
57
63
|
position: 'absolute',
|
|
58
64
|
top: null,
|
|
59
65
|
}),
|
|
60
|
-
'display: block; position:
|
|
66
|
+
'display: block; position:absolute;')
|
|
61
67
|
equal(
|
|
62
68
|
html_style__({
|
|
63
69
|
display: 'block',
|
|
64
70
|
top: null,
|
|
65
71
|
})('position: absolute'),
|
|
66
|
-
'display:
|
|
72
|
+
'display:block; position: absolute;')
|
|
67
73
|
equal(
|
|
68
74
|
html_style__({
|
|
69
75
|
display: 'block',
|
|
70
76
|
top: null,
|
|
71
77
|
})(['position: absolute']),
|
|
72
|
-
'display:
|
|
78
|
+
'display:block; position: absolute;')
|
|
73
79
|
equal(
|
|
74
80
|
html_style__({
|
|
75
81
|
display: 'block',
|
|
76
82
|
top: null,
|
|
77
83
|
})(['position: absolute; top: 0']),
|
|
78
|
-
'display:
|
|
84
|
+
'display:block; position: absolute; top: 0;')
|
|
79
85
|
equal(
|
|
80
86
|
html_style__({
|
|
81
87
|
display: 'block',
|
|
82
88
|
top: null,
|
|
83
89
|
})(['position: absolute; top: 0']),
|
|
84
|
-
'display:
|
|
90
|
+
'display:block; position: absolute; top: 0;')
|
|
85
91
|
equal(
|
|
86
92
|
html_style__({
|
|
87
93
|
display: 'block',
|
|
88
94
|
top: null,
|
|
89
95
|
})(['position: absolute; top: 0;']),
|
|
90
|
-
'display:
|
|
96
|
+
'display:block; position: absolute; top: 0;')
|
|
97
|
+
})
|
|
98
|
+
test('background_image_style_', ()=>{
|
|
99
|
+
equal(
|
|
100
|
+
background_image_style_('/foo/bar.svg'),
|
|
101
|
+
"background-image:url('/foo/bar.svg');")
|
|
102
|
+
})
|
|
103
|
+
test('background_image_style_o_', ()=>{
|
|
104
|
+
equal(
|
|
105
|
+
background_image_style_o_('/foo/bar.svg'),
|
|
106
|
+
{
|
|
107
|
+
'background-image': "url('/foo/bar.svg')"
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
test('style_url_', ()=>{
|
|
111
|
+
equal(
|
|
112
|
+
html_style_url_('/foo/bar.svg'),
|
|
113
|
+
"url('/foo/bar.svg')")
|
|
91
114
|
})
|
|
92
115
|
test.run()
|
package/html/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.js'
|
|
|
3
3
|
import { html_attrs_ } from '../all/html_attrs/index.js'
|
|
4
4
|
import { html_class_, html_class__ } from '../all/html_class/index.js'
|
|
5
5
|
import { html_dataset__data_attrs_ } from '../all/html_dataset__data_attrs/index.js'
|
|
6
|
-
import { html_style_, html_style__ } from '../all/html_style/index.js'
|
|
6
|
+
import { html_style_, html_style__, html_style_url_ } from '../all/html_style/index.js'
|
|
7
7
|
import { html_style__assign } from '../all/html_style__assign/index.js'
|
|
8
8
|
import { html_styles_o_ } from '../all/html_styles_o/index.js'
|
|
9
9
|
import { js_html_ } from '../all/js_html/index.js'
|
|
@@ -25,7 +25,7 @@ export { html_attrs_ as attrs_, html_attrs_ as _attrs }
|
|
|
25
25
|
export { html_class_ as class_, html_class_ as _class, }
|
|
26
26
|
export { html_class__ as class__, html_class__ as class_2, }
|
|
27
27
|
export { html_dataset__data_attrs_ as dataset__data_attrs_ }
|
|
28
|
-
export { html_style_ as style_, html_style_ as _style, }
|
|
28
|
+
export { html_style_ as style_, html_style_ as _style, html_style_url_ as style_url_ }
|
|
29
29
|
export { html_style__ as style__, html_style__ as style_2, }
|
|
30
30
|
export {
|
|
31
31
|
html_style__assign as assign_style,
|
package/html/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.js'
|
|
|
3
3
|
import { html_attrs_ } from '../all/html_attrs/index.js'
|
|
4
4
|
import { html_class_, html_class__ } from '../all/html_class/index.js'
|
|
5
5
|
import { html_dataset__data_attrs_ } from '../all/html_dataset__data_attrs/index.js'
|
|
6
|
-
import { html_style_, html_style__ } from '../all/html_style/index.js'
|
|
6
|
+
import { html_style_, html_style__, html_style_url_ } from '../all/html_style/index.js'
|
|
7
7
|
import { html_style__assign } from '../all/html_style__assign/index.js'
|
|
8
8
|
import { html_styles_o_ } from '../all/html_styles_o/index.js'
|
|
9
9
|
import { js_html_ } from '../all/js_html/index.js'
|
|
@@ -25,7 +25,7 @@ export { html_attrs_ as attrs_, html_attrs_ as _attrs }
|
|
|
25
25
|
export { html_class_ as class_, html_class_ as _class, }
|
|
26
26
|
export { html_class__ as class__, html_class__ as class_2, }
|
|
27
27
|
export { html_dataset__data_attrs_ as dataset__data_attrs_ }
|
|
28
|
-
export { html_style_ as style_, html_style_ as _style, }
|
|
28
|
+
export { html_style_ as style_, html_style_ as _style, html_style_url_ as style_url_ }
|
|
29
29
|
export { html_style__ as style__, html_style__ as style_2, }
|
|
30
30
|
export {
|
|
31
31
|
html_style__assign as assign_style,
|
package/package.json
CHANGED
|
@@ -1,254 +1,253 @@
|
|
|
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
|
-
|
|
254
|
-
}
|
|
2
|
+
"name": "ctx-core",
|
|
3
|
+
"version": "5.26.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
|
+
"devDependencies": {
|
|
137
|
+
"@arethetypeswrong/cli": "^0.13.5",
|
|
138
|
+
"@ctx-core/preprocess": "^0.1.1",
|
|
139
|
+
"@size-limit/preset-small-lib": "^11.0.2",
|
|
140
|
+
"@types/node": "^20.11.5",
|
|
141
|
+
"@types/sinon": "^17.0.3",
|
|
142
|
+
"c8": "^9.1.0",
|
|
143
|
+
"check-dts": "^0.7.2",
|
|
144
|
+
"esbuild": "^0.19.11",
|
|
145
|
+
"esmock": "^2.6.2",
|
|
146
|
+
"sinon": "^17.0.1",
|
|
147
|
+
"size-limit": "^11.0.2",
|
|
148
|
+
"tsx": "^4.7.0",
|
|
149
|
+
"typescript": "next",
|
|
150
|
+
"uvu": "^0.5.6"
|
|
151
|
+
},
|
|
152
|
+
"publishConfig": {
|
|
153
|
+
"access": "public",
|
|
154
|
+
"cache": "~/.npm"
|
|
155
|
+
},
|
|
156
|
+
"sideEffects": false,
|
|
157
|
+
"size-limit": [
|
|
158
|
+
{
|
|
159
|
+
"name": "ctx_",
|
|
160
|
+
"import": {
|
|
161
|
+
"./be": "{ ctx_ }"
|
|
162
|
+
},
|
|
163
|
+
"limit": "33 B"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "ns_ctx_",
|
|
167
|
+
"import": {
|
|
168
|
+
"./be": "{ ns_ctx_ }"
|
|
169
|
+
},
|
|
170
|
+
"limit": "85 B"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "be_",
|
|
174
|
+
"import": {
|
|
175
|
+
"./be": "{ be_ }"
|
|
176
|
+
},
|
|
177
|
+
"limit": "99 B"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "be_ ctx_",
|
|
181
|
+
"import": {
|
|
182
|
+
"./be": "{ be_, ctx_ }"
|
|
183
|
+
},
|
|
184
|
+
"limit": "131 B"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "be_ ns_ctx_",
|
|
188
|
+
"import": {
|
|
189
|
+
"./be": "{ be_, ctx_, ns_ctx_ }"
|
|
190
|
+
},
|
|
191
|
+
"limit": "191 B"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "be_ ctx_ ns_ctx_",
|
|
195
|
+
"import": {
|
|
196
|
+
"./be": "{ be_, ctx_, ns_ctx_ }"
|
|
197
|
+
},
|
|
198
|
+
"limit": "191 B"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "memo_",
|
|
202
|
+
"import": {
|
|
203
|
+
"./rmemo": "{ memo_ }"
|
|
204
|
+
},
|
|
205
|
+
"limit": "352 B"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "memo_ sig_",
|
|
209
|
+
"import": {
|
|
210
|
+
"./rmemo": "{ sig_, memo_ }"
|
|
211
|
+
},
|
|
212
|
+
"limit": "370 B"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "memo_ sig_ be_ ctx_",
|
|
216
|
+
"import": {
|
|
217
|
+
"./rmemo": "{ sig_, memo_, be_, ctx_ }"
|
|
218
|
+
},
|
|
219
|
+
"limit": "471 B"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "memo_ sig_ be_ ctx_ be_memo_pair_ be_sig_triple_",
|
|
223
|
+
"import": {
|
|
224
|
+
"./rmemo": "{ sig_, memo_, be_, ctx_, be_memo_pair_, be_sig_triple_ }"
|
|
225
|
+
},
|
|
226
|
+
"limit": "570 B"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "uuid",
|
|
230
|
+
"import": {
|
|
231
|
+
"./uuid": "{ uuid_ }"
|
|
232
|
+
},
|
|
233
|
+
"limit": "39 B"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "short uuid",
|
|
237
|
+
"import": {
|
|
238
|
+
"./uuid": "{ short_uuid_ }"
|
|
239
|
+
},
|
|
240
|
+
"limit": "116 B"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"scripts": {
|
|
244
|
+
"build": ":",
|
|
245
|
+
"clean": ":",
|
|
246
|
+
"exec": "$@",
|
|
247
|
+
"test": "pnpm run /^test:/",
|
|
248
|
+
"test:size": "size-limit",
|
|
249
|
+
"test:type": "check-dts",
|
|
250
|
+
"test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
|
|
251
|
+
"disable:test:coverage": "c8 pnpm test:unit"
|
|
252
|
+
}
|
|
253
|
+
}
|