@ls-stack/utils 3.2.0 → 3.2.1
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/dist/main.d.cts +32 -2
- package/package.json +265 -100
package/dist/main.d.cts
CHANGED
|
@@ -1,2 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
///<reference path="arrayUtils.d.ts" />
|
|
2
|
+
///<reference path="assertions.d.ts" />
|
|
3
|
+
///<reference path="cache.d.ts" />
|
|
4
|
+
///<reference path="castValues.d.ts" />
|
|
5
|
+
///<reference path="consoleFmt.d.ts" />
|
|
6
|
+
///<reference path="conversions.d.ts" />
|
|
7
|
+
///<reference path="createThrottleController.d.ts" />
|
|
8
|
+
///<reference path="debounce.d.ts" />
|
|
9
|
+
///<reference path="dedent.d.ts" />
|
|
10
|
+
///<reference path="deepEqual.d.ts" />
|
|
11
|
+
///<reference path="enhancedMap.d.ts" />
|
|
12
|
+
///<reference path="exhaustiveMatch.d.ts" />
|
|
13
|
+
///<reference path="getValueStableKey.d.ts" />
|
|
14
|
+
///<reference path="interpolate.d.ts" />
|
|
15
|
+
///<reference path="levenshtein.d.ts" />
|
|
16
|
+
///<reference path="mathUtils.d.ts" />
|
|
17
|
+
///<reference path="objUtils.d.ts" />
|
|
18
|
+
///<reference path="parallelAsyncCalls.d.ts" />
|
|
19
|
+
///<reference path="promiseUtils.d.ts" />
|
|
20
|
+
///<reference path="retryOnError.d.ts" />
|
|
21
|
+
///<reference path="runShellCmd.d.ts" />
|
|
22
|
+
///<reference path="safeJson.d.ts" />
|
|
23
|
+
///<reference path="shallowEqual.d.ts" />
|
|
24
|
+
///<reference path="sleep.d.ts" />
|
|
25
|
+
///<reference path="stringUtils.d.ts" />
|
|
26
|
+
///<reference path="testUtils.d.ts" />
|
|
27
|
+
///<reference path="time.d.ts" />
|
|
28
|
+
///<reference path="tsResult.d.ts" />
|
|
29
|
+
///<reference path="typingFnUtils.d.ts" />
|
|
30
|
+
///<reference path="typingTestUtils.d.ts" />
|
|
31
|
+
///<reference path="typingUtils.d.ts" />
|
|
32
|
+
///<reference path="yamlStringify.d.ts" />
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ls-stack/utils",
|
|
3
3
|
"description": "Typescript utils",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -15,169 +15,334 @@
|
|
|
15
15
|
"main": "./dist/main.cjs",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"import":
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"import": {
|
|
19
|
+
"import": "./dist/main.js",
|
|
20
|
+
"types": "./dist/main.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"import": "./dist/main.cjs",
|
|
24
|
+
"types": "./dist/main.d.cts"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"./arrayUtils": {
|
|
23
|
-
"import":
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
"import": {
|
|
29
|
+
"import": "./dist/arrayUtils.js",
|
|
30
|
+
"types": "./dist/arrayUtils.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"import": "./dist/arrayUtils.cjs",
|
|
34
|
+
"types": "./dist/arrayUtils.d.cts"
|
|
35
|
+
}
|
|
26
36
|
},
|
|
27
37
|
"./assertions": {
|
|
28
|
-
"import":
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
"import": {
|
|
39
|
+
"import": "./dist/assertions.js",
|
|
40
|
+
"types": "./dist/assertions.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"import": "./dist/assertions.cjs",
|
|
44
|
+
"types": "./dist/assertions.d.cts"
|
|
45
|
+
}
|
|
31
46
|
},
|
|
32
47
|
"./cache": {
|
|
33
|
-
"import":
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
"import": {
|
|
49
|
+
"import": "./dist/cache.js",
|
|
50
|
+
"types": "./dist/cache.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"require": {
|
|
53
|
+
"import": "./dist/cache.cjs",
|
|
54
|
+
"types": "./dist/cache.d.cts"
|
|
55
|
+
}
|
|
36
56
|
},
|
|
37
57
|
"./castValues": {
|
|
38
|
-
"import":
|
|
39
|
-
|
|
40
|
-
|
|
58
|
+
"import": {
|
|
59
|
+
"import": "./dist/castValues.js",
|
|
60
|
+
"types": "./dist/castValues.d.ts"
|
|
61
|
+
},
|
|
62
|
+
"require": {
|
|
63
|
+
"import": "./dist/castValues.cjs",
|
|
64
|
+
"types": "./dist/castValues.d.cts"
|
|
65
|
+
}
|
|
41
66
|
},
|
|
42
67
|
"./consoleFmt": {
|
|
43
|
-
"import":
|
|
44
|
-
|
|
45
|
-
|
|
68
|
+
"import": {
|
|
69
|
+
"import": "./dist/consoleFmt.js",
|
|
70
|
+
"types": "./dist/consoleFmt.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"require": {
|
|
73
|
+
"import": "./dist/consoleFmt.cjs",
|
|
74
|
+
"types": "./dist/consoleFmt.d.cts"
|
|
75
|
+
}
|
|
46
76
|
},
|
|
47
77
|
"./conversions": {
|
|
48
|
-
"import":
|
|
49
|
-
|
|
50
|
-
|
|
78
|
+
"import": {
|
|
79
|
+
"import": "./dist/conversions.js",
|
|
80
|
+
"types": "./dist/conversions.d.ts"
|
|
81
|
+
},
|
|
82
|
+
"require": {
|
|
83
|
+
"import": "./dist/conversions.cjs",
|
|
84
|
+
"types": "./dist/conversions.d.cts"
|
|
85
|
+
}
|
|
51
86
|
},
|
|
52
87
|
"./createThrottleController": {
|
|
53
|
-
"import":
|
|
54
|
-
|
|
55
|
-
|
|
88
|
+
"import": {
|
|
89
|
+
"import": "./dist/createThrottleController.js",
|
|
90
|
+
"types": "./dist/createThrottleController.d.ts"
|
|
91
|
+
},
|
|
92
|
+
"require": {
|
|
93
|
+
"import": "./dist/createThrottleController.cjs",
|
|
94
|
+
"types": "./dist/createThrottleController.d.cts"
|
|
95
|
+
}
|
|
56
96
|
},
|
|
57
97
|
"./debounce": {
|
|
58
|
-
"import":
|
|
59
|
-
|
|
60
|
-
|
|
98
|
+
"import": {
|
|
99
|
+
"import": "./dist/debounce.js",
|
|
100
|
+
"types": "./dist/debounce.d.ts"
|
|
101
|
+
},
|
|
102
|
+
"require": {
|
|
103
|
+
"import": "./dist/debounce.cjs",
|
|
104
|
+
"types": "./dist/debounce.d.cts"
|
|
105
|
+
}
|
|
61
106
|
},
|
|
62
107
|
"./dedent": {
|
|
63
|
-
"import":
|
|
64
|
-
|
|
65
|
-
|
|
108
|
+
"import": {
|
|
109
|
+
"import": "./dist/dedent.js",
|
|
110
|
+
"types": "./dist/dedent.d.ts"
|
|
111
|
+
},
|
|
112
|
+
"require": {
|
|
113
|
+
"import": "./dist/dedent.cjs",
|
|
114
|
+
"types": "./dist/dedent.d.cts"
|
|
115
|
+
}
|
|
66
116
|
},
|
|
67
117
|
"./deepEqual": {
|
|
68
|
-
"import":
|
|
69
|
-
|
|
70
|
-
|
|
118
|
+
"import": {
|
|
119
|
+
"import": "./dist/deepEqual.js",
|
|
120
|
+
"types": "./dist/deepEqual.d.ts"
|
|
121
|
+
},
|
|
122
|
+
"require": {
|
|
123
|
+
"import": "./dist/deepEqual.cjs",
|
|
124
|
+
"types": "./dist/deepEqual.d.cts"
|
|
125
|
+
}
|
|
71
126
|
},
|
|
72
127
|
"./enhancedMap": {
|
|
73
|
-
"import":
|
|
74
|
-
|
|
75
|
-
|
|
128
|
+
"import": {
|
|
129
|
+
"import": "./dist/enhancedMap.js",
|
|
130
|
+
"types": "./dist/enhancedMap.d.ts"
|
|
131
|
+
},
|
|
132
|
+
"require": {
|
|
133
|
+
"import": "./dist/enhancedMap.cjs",
|
|
134
|
+
"types": "./dist/enhancedMap.d.cts"
|
|
135
|
+
}
|
|
76
136
|
},
|
|
77
137
|
"./exhaustiveMatch": {
|
|
78
|
-
"import":
|
|
79
|
-
|
|
80
|
-
|
|
138
|
+
"import": {
|
|
139
|
+
"import": "./dist/exhaustiveMatch.js",
|
|
140
|
+
"types": "./dist/exhaustiveMatch.d.ts"
|
|
141
|
+
},
|
|
142
|
+
"require": {
|
|
143
|
+
"import": "./dist/exhaustiveMatch.cjs",
|
|
144
|
+
"types": "./dist/exhaustiveMatch.d.cts"
|
|
145
|
+
}
|
|
81
146
|
},
|
|
82
147
|
"./getValueStableKey": {
|
|
83
|
-
"import":
|
|
84
|
-
|
|
85
|
-
|
|
148
|
+
"import": {
|
|
149
|
+
"import": "./dist/getValueStableKey.js",
|
|
150
|
+
"types": "./dist/getValueStableKey.d.ts"
|
|
151
|
+
},
|
|
152
|
+
"require": {
|
|
153
|
+
"import": "./dist/getValueStableKey.cjs",
|
|
154
|
+
"types": "./dist/getValueStableKey.d.cts"
|
|
155
|
+
}
|
|
86
156
|
},
|
|
87
157
|
"./interpolate": {
|
|
88
|
-
"import":
|
|
89
|
-
|
|
90
|
-
|
|
158
|
+
"import": {
|
|
159
|
+
"import": "./dist/interpolate.js",
|
|
160
|
+
"types": "./dist/interpolate.d.ts"
|
|
161
|
+
},
|
|
162
|
+
"require": {
|
|
163
|
+
"import": "./dist/interpolate.cjs",
|
|
164
|
+
"types": "./dist/interpolate.d.cts"
|
|
165
|
+
}
|
|
91
166
|
},
|
|
92
167
|
"./levenshtein": {
|
|
93
|
-
"import":
|
|
94
|
-
|
|
95
|
-
|
|
168
|
+
"import": {
|
|
169
|
+
"import": "./dist/levenshtein.js",
|
|
170
|
+
"types": "./dist/levenshtein.d.ts"
|
|
171
|
+
},
|
|
172
|
+
"require": {
|
|
173
|
+
"import": "./dist/levenshtein.cjs",
|
|
174
|
+
"types": "./dist/levenshtein.d.cts"
|
|
175
|
+
}
|
|
96
176
|
},
|
|
97
177
|
"./mathUtils": {
|
|
98
|
-
"import":
|
|
99
|
-
|
|
100
|
-
|
|
178
|
+
"import": {
|
|
179
|
+
"import": "./dist/mathUtils.js",
|
|
180
|
+
"types": "./dist/mathUtils.d.ts"
|
|
181
|
+
},
|
|
182
|
+
"require": {
|
|
183
|
+
"import": "./dist/mathUtils.cjs",
|
|
184
|
+
"types": "./dist/mathUtils.d.cts"
|
|
185
|
+
}
|
|
101
186
|
},
|
|
102
187
|
"./objUtils": {
|
|
103
|
-
"import":
|
|
104
|
-
|
|
105
|
-
|
|
188
|
+
"import": {
|
|
189
|
+
"import": "./dist/objUtils.js",
|
|
190
|
+
"types": "./dist/objUtils.d.ts"
|
|
191
|
+
},
|
|
192
|
+
"require": {
|
|
193
|
+
"import": "./dist/objUtils.cjs",
|
|
194
|
+
"types": "./dist/objUtils.d.cts"
|
|
195
|
+
}
|
|
106
196
|
},
|
|
107
197
|
"./parallelAsyncCalls": {
|
|
108
|
-
"import":
|
|
109
|
-
|
|
110
|
-
|
|
198
|
+
"import": {
|
|
199
|
+
"import": "./dist/parallelAsyncCalls.js",
|
|
200
|
+
"types": "./dist/parallelAsyncCalls.d.ts"
|
|
201
|
+
},
|
|
202
|
+
"require": {
|
|
203
|
+
"import": "./dist/parallelAsyncCalls.cjs",
|
|
204
|
+
"types": "./dist/parallelAsyncCalls.d.cts"
|
|
205
|
+
}
|
|
111
206
|
},
|
|
112
207
|
"./promiseUtils": {
|
|
113
|
-
"import":
|
|
114
|
-
|
|
115
|
-
|
|
208
|
+
"import": {
|
|
209
|
+
"import": "./dist/promiseUtils.js",
|
|
210
|
+
"types": "./dist/promiseUtils.d.ts"
|
|
211
|
+
},
|
|
212
|
+
"require": {
|
|
213
|
+
"import": "./dist/promiseUtils.cjs",
|
|
214
|
+
"types": "./dist/promiseUtils.d.cts"
|
|
215
|
+
}
|
|
116
216
|
},
|
|
117
217
|
"./retryOnError": {
|
|
118
|
-
"import":
|
|
119
|
-
|
|
120
|
-
|
|
218
|
+
"import": {
|
|
219
|
+
"import": "./dist/retryOnError.js",
|
|
220
|
+
"types": "./dist/retryOnError.d.ts"
|
|
221
|
+
},
|
|
222
|
+
"require": {
|
|
223
|
+
"import": "./dist/retryOnError.cjs",
|
|
224
|
+
"types": "./dist/retryOnError.d.cts"
|
|
225
|
+
}
|
|
121
226
|
},
|
|
122
227
|
"./runShellCmd": {
|
|
123
|
-
"import":
|
|
124
|
-
|
|
125
|
-
|
|
228
|
+
"import": {
|
|
229
|
+
"import": "./dist/runShellCmd.js",
|
|
230
|
+
"types": "./dist/runShellCmd.d.ts"
|
|
231
|
+
},
|
|
232
|
+
"require": {
|
|
233
|
+
"import": "./dist/runShellCmd.cjs",
|
|
234
|
+
"types": "./dist/runShellCmd.d.cts"
|
|
235
|
+
}
|
|
126
236
|
},
|
|
127
237
|
"./safeJson": {
|
|
128
|
-
"import":
|
|
129
|
-
|
|
130
|
-
|
|
238
|
+
"import": {
|
|
239
|
+
"import": "./dist/safeJson.js",
|
|
240
|
+
"types": "./dist/safeJson.d.ts"
|
|
241
|
+
},
|
|
242
|
+
"require": {
|
|
243
|
+
"import": "./dist/safeJson.cjs",
|
|
244
|
+
"types": "./dist/safeJson.d.cts"
|
|
245
|
+
}
|
|
131
246
|
},
|
|
132
247
|
"./shallowEqual": {
|
|
133
|
-
"import":
|
|
134
|
-
|
|
135
|
-
|
|
248
|
+
"import": {
|
|
249
|
+
"import": "./dist/shallowEqual.js",
|
|
250
|
+
"types": "./dist/shallowEqual.d.ts"
|
|
251
|
+
},
|
|
252
|
+
"require": {
|
|
253
|
+
"import": "./dist/shallowEqual.cjs",
|
|
254
|
+
"types": "./dist/shallowEqual.d.cts"
|
|
255
|
+
}
|
|
136
256
|
},
|
|
137
257
|
"./sleep": {
|
|
138
|
-
"import":
|
|
139
|
-
|
|
140
|
-
|
|
258
|
+
"import": {
|
|
259
|
+
"import": "./dist/sleep.js",
|
|
260
|
+
"types": "./dist/sleep.d.ts"
|
|
261
|
+
},
|
|
262
|
+
"require": {
|
|
263
|
+
"import": "./dist/sleep.cjs",
|
|
264
|
+
"types": "./dist/sleep.d.cts"
|
|
265
|
+
}
|
|
141
266
|
},
|
|
142
267
|
"./stringUtils": {
|
|
143
|
-
"import":
|
|
144
|
-
|
|
145
|
-
|
|
268
|
+
"import": {
|
|
269
|
+
"import": "./dist/stringUtils.js",
|
|
270
|
+
"types": "./dist/stringUtils.d.ts"
|
|
271
|
+
},
|
|
272
|
+
"require": {
|
|
273
|
+
"import": "./dist/stringUtils.cjs",
|
|
274
|
+
"types": "./dist/stringUtils.d.cts"
|
|
275
|
+
}
|
|
146
276
|
},
|
|
147
277
|
"./testUtils": {
|
|
148
|
-
"import":
|
|
149
|
-
|
|
150
|
-
|
|
278
|
+
"import": {
|
|
279
|
+
"import": "./dist/testUtils.js",
|
|
280
|
+
"types": "./dist/testUtils.d.ts"
|
|
281
|
+
},
|
|
282
|
+
"require": {
|
|
283
|
+
"import": "./dist/testUtils.cjs",
|
|
284
|
+
"types": "./dist/testUtils.d.cts"
|
|
285
|
+
}
|
|
151
286
|
},
|
|
152
287
|
"./time": {
|
|
153
|
-
"import":
|
|
154
|
-
|
|
155
|
-
|
|
288
|
+
"import": {
|
|
289
|
+
"import": "./dist/time.js",
|
|
290
|
+
"types": "./dist/time.d.ts"
|
|
291
|
+
},
|
|
292
|
+
"require": {
|
|
293
|
+
"import": "./dist/time.cjs",
|
|
294
|
+
"types": "./dist/time.d.cts"
|
|
295
|
+
}
|
|
156
296
|
},
|
|
157
297
|
"./tsResult": {
|
|
158
|
-
"import":
|
|
159
|
-
|
|
160
|
-
|
|
298
|
+
"import": {
|
|
299
|
+
"import": "./dist/tsResult.js",
|
|
300
|
+
"types": "./dist/tsResult.d.ts"
|
|
301
|
+
},
|
|
302
|
+
"require": {
|
|
303
|
+
"import": "./dist/tsResult.cjs",
|
|
304
|
+
"types": "./dist/tsResult.d.cts"
|
|
305
|
+
}
|
|
161
306
|
},
|
|
162
307
|
"./typingFnUtils": {
|
|
163
|
-
"import":
|
|
164
|
-
|
|
165
|
-
|
|
308
|
+
"import": {
|
|
309
|
+
"import": "./dist/typingFnUtils.js",
|
|
310
|
+
"types": "./dist/typingFnUtils.d.ts"
|
|
311
|
+
},
|
|
312
|
+
"require": {
|
|
313
|
+
"import": "./dist/typingFnUtils.cjs",
|
|
314
|
+
"types": "./dist/typingFnUtils.d.cts"
|
|
315
|
+
}
|
|
166
316
|
},
|
|
167
317
|
"./typingTestUtils": {
|
|
168
|
-
"import":
|
|
169
|
-
|
|
170
|
-
|
|
318
|
+
"import": {
|
|
319
|
+
"import": "./dist/typingTestUtils.js",
|
|
320
|
+
"types": "./dist/typingTestUtils.d.ts"
|
|
321
|
+
},
|
|
322
|
+
"require": {
|
|
323
|
+
"import": "./dist/typingTestUtils.cjs",
|
|
324
|
+
"types": "./dist/typingTestUtils.d.cts"
|
|
325
|
+
}
|
|
171
326
|
},
|
|
172
327
|
"./typingUtils": {
|
|
173
|
-
"import":
|
|
174
|
-
|
|
175
|
-
|
|
328
|
+
"import": {
|
|
329
|
+
"import": "./dist/typingUtils.js",
|
|
330
|
+
"types": "./dist/typingUtils.d.ts"
|
|
331
|
+
},
|
|
332
|
+
"require": {
|
|
333
|
+
"import": "./dist/typingUtils.cjs",
|
|
334
|
+
"types": "./dist/typingUtils.d.cts"
|
|
335
|
+
}
|
|
176
336
|
},
|
|
177
337
|
"./yamlStringify": {
|
|
178
|
-
"import":
|
|
179
|
-
|
|
180
|
-
|
|
338
|
+
"import": {
|
|
339
|
+
"import": "./dist/yamlStringify.js",
|
|
340
|
+
"types": "./dist/yamlStringify.d.ts"
|
|
341
|
+
},
|
|
342
|
+
"require": {
|
|
343
|
+
"import": "./dist/yamlStringify.cjs",
|
|
344
|
+
"types": "./dist/yamlStringify.d.cts"
|
|
345
|
+
}
|
|
181
346
|
}
|
|
182
347
|
},
|
|
183
348
|
"engines": {
|