ctx-core 5.25.3 → 5.25.4
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/import_meta_env/index.js +7 -9
- package/all/sleep/index.test.ts +1 -1
- package/package.json +253 -252
|
@@ -3,15 +3,13 @@ export function import_meta_env_() {
|
|
|
3
3
|
}
|
|
4
4
|
export function import_meta_env__ensure() {
|
|
5
5
|
if (!import.meta.env) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
get(target, prop, receiver)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
})
|
|
6
|
+
import.meta.env = new Proxy(globalThis.process?.env ?? {}, {
|
|
7
|
+
get(target, prop, receiver) {
|
|
8
|
+
return Reflect.get(target, prop, receiver)
|
|
9
|
+
},
|
|
10
|
+
set(target, prop, value) {
|
|
11
|
+
return Reflect.get(target, prop, value)
|
|
12
|
+
}
|
|
15
13
|
})
|
|
16
14
|
}
|
|
17
15
|
return import.meta.env
|
package/all/sleep/index.test.ts
CHANGED
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.25.4",
|
|
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": "570 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
|
+
}
|