zeed 0.8.1 → 0.8.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.
@@ -1,555 +1,4 @@
1
- import {
2
- FileStorage,
3
- LoggerFileHandler,
4
- LoggerNodeHandler,
5
- colorString,
6
- colorStringList,
7
- ensureFolder,
8
- exists,
9
- getSourceLocation,
10
- getSourceLocationByPrecedingPattern,
11
- getStack,
12
- getStackLlocationList,
13
- loggerStackTraceDebug,
14
- parseArgs,
15
- pbcopy,
16
- readText,
17
- removeFolder,
18
- setupEnv,
19
- stringToPath,
20
- toHumanReadableFilePath,
21
- toPath,
22
- valueToPath,
23
- writeText
24
- } from "./chunk-HI3XD4NV.js";
25
- import {
26
- Channel,
27
- CryptoEncoder,
28
- Currency,
29
- DAY_MS,
30
- Day,
31
- Emitter,
32
- JsonEncoder,
33
- LocalChannel,
34
- LoggerMemoryHandler,
35
- MemStorage,
36
- NoopEncoder,
37
- PoolTaskIdConflictResolution,
38
- PoolTaskState,
39
- PubSub,
40
- SerialQueue,
41
- Uint8ArrayToHexDump,
42
- Uint8ArrayToJson,
43
- Uint8ArrayToString,
44
- XRX,
45
- _decodeUtf8Polyfill,
46
- _encodeUtf8Polyfill,
47
- arrayAvg,
48
- arrayBatches,
49
- arrayEmptyInPlace,
50
- arrayFilterInPlace,
51
- arrayFlatten,
52
- arrayIntersection,
53
- arrayIsEqual,
54
- arrayMax,
55
- arrayMin,
56
- arrayMinus,
57
- arrayRandomElement,
58
- arrayRemoveElement,
59
- arraySetElement,
60
- arrayShuffle,
61
- arrayShuffleForce,
62
- arrayShuffleInPlace,
63
- arraySorted,
64
- arraySortedNumbers,
65
- arraySum,
66
- arraySymmetricDifference,
67
- arrayToggleInPlace,
68
- arrayUnion,
69
- arrayUnique,
70
- avg,
71
- between,
72
- cloneJsonObject,
73
- cloneObject,
74
- cmp,
75
- composeOrderby,
76
- createArray,
77
- createLocalChannelPair,
78
- createPromise,
79
- createPromiseProxy,
80
- csv,
81
- currency,
82
- dateStringToDays,
83
- day,
84
- dayDay,
85
- dayDiff,
86
- dayFromAny,
87
- dayFromDate,
88
- dayFromDateGMT,
89
- dayFromParts,
90
- dayFromString,
91
- dayFromTimestamp,
92
- dayFromToday,
93
- dayMonth,
94
- dayMonthStart,
95
- dayOffset,
96
- dayToDate,
97
- dayToDateGMT,
98
- dayToParts,
99
- dayToString,
100
- dayToTimestamp,
101
- dayYear,
102
- dayYearStart,
103
- debounce,
104
- decimal,
105
- decimalCentsPart,
106
- decimalFromCents,
107
- decimalToCents,
108
- decodeBase16,
109
- decodeBase32,
110
- decodeBase58,
111
- decodeBase62,
112
- decodeBase64,
113
- decrypt,
114
- deriveKeyPbkdf2,
115
- detect,
116
- digest,
117
- empty,
118
- encodeBase16,
119
- encodeBase32,
120
- encodeBase58,
121
- encodeBase62,
122
- encodeBase64,
123
- encodeQuery,
124
- encrypt,
125
- endSortWeight,
126
- ensureKey,
127
- ensureKeyAsync,
128
- equalBinary,
129
- escapeHTML,
130
- escapeRegExp,
131
- fetchBasic,
132
- fetchJson,
133
- fetchOptionsBasicAuth,
134
- fetchOptionsFormURLEncoded,
135
- fetchOptionsJson,
136
- fetchText,
137
- fixBrokenUth8String,
138
- forEachDay,
139
- forTimes,
140
- formatMessages,
141
- fromBase64,
142
- fromCamelCase,
143
- getGlobal,
144
- getGlobalEmitter,
145
- getNavigator,
146
- getSecureRandom,
147
- getSecureRandomIfPossible,
148
- getWindow,
149
- immediate,
150
- isBrowser,
151
- isEven,
152
- isHalf,
153
- isLocalHost,
154
- isPrime,
155
- isPrimeRX,
156
- isPromise,
157
- isTimeout,
158
- joinToUint8Array,
159
- jsonStringify,
160
- jsonToUint8Array,
161
- last,
162
- lazyListener,
163
- linkifyPlainText,
164
- memoize,
165
- messages,
166
- moveSortWeight,
167
- parseBasicAuth,
168
- parseOrderby,
169
- parseQuery,
170
- platform,
171
- promisify,
172
- qid,
173
- randomBoolean,
174
- randomFloat,
175
- randomInt,
176
- randomUint8Array,
177
- regExpEscape,
178
- regExpString,
179
- renderMessages,
180
- roundDown,
181
- roundHalfAwayFromZero,
182
- roundHalfDown,
183
- roundHalfEven,
184
- roundHalfOdd,
185
- roundHalfTowardsZero,
186
- roundHalfUp,
187
- roundUp,
188
- size,
189
- sleep,
190
- sortedItems,
191
- sortedOrderby,
192
- startSortWeight,
193
- stringToBoolean,
194
- stringToFloat,
195
- stringToInteger,
196
- stringToUInt8Array,
197
- suid,
198
- suidBytes,
199
- suidBytesDate,
200
- suidDate,
201
- sum,
202
- throttle,
203
- timeout,
204
- timeoutReached,
205
- timoutError,
206
- toBase64,
207
- toBase64Url,
208
- toBool,
209
- toCamelCase,
210
- toCapitalize,
211
- toCapitalizeWords,
212
- toFloat,
213
- toHex,
214
- toHumanReadableUrl,
215
- toInt,
216
- toString,
217
- toUint8Array,
218
- toValidFilename,
219
- today,
220
- tryTimeout,
221
- uname,
222
- unescapeHTML,
223
- useAsyncMutex,
224
- useBase,
225
- useDefer,
226
- useDispose,
227
- useDisposer,
228
- useEventListener,
229
- useExitHandler,
230
- useInterval,
231
- useMessageHub,
232
- useMutex,
233
- usePool,
234
- usePubSub,
235
- useRPC,
236
- useTimeout,
237
- uuid,
238
- uuid32Decode,
239
- uuid32Encode,
240
- uuid32bit,
241
- uuidB32,
242
- uuidBytes,
243
- uuidDecode,
244
- uuidEncode,
245
- uuidv4,
246
- valueToBoolean,
247
- valueToFloat,
248
- valueToInteger,
249
- valueToString,
250
- waitOn
251
- } from "./chunk-3LN7HI45.js";
252
- import {
253
- LogLevel,
254
- LogLevelAlias,
255
- Logger,
256
- LoggerConsoleHandler,
257
- LoggerContext,
258
- deepEqual,
259
- deepMerge,
260
- formatMilliseconds,
261
- getGlobalContext,
262
- getNamespaceFilterString,
263
- getTimestamp,
264
- isArray,
265
- isBoolean,
266
- isInteger,
267
- isNullOrUndefined,
268
- isNumber,
269
- isObject,
270
- isPrimitive,
271
- isRecord,
272
- isSafeInteger,
273
- isString,
274
- isUint8Array,
275
- parseDate,
276
- parseLogLevel,
277
- useLevelFilter,
278
- useNamespaceFilter
279
- } from "./chunk-AM7QCF4I.js";
280
- export {
281
- Channel,
282
- CryptoEncoder,
283
- Currency,
284
- DAY_MS,
285
- Day,
286
- Emitter,
287
- FileStorage,
288
- JsonEncoder,
289
- LocalChannel,
290
- LogLevel,
291
- LogLevelAlias,
292
- Logger,
293
- LoggerConsoleHandler,
294
- LoggerContext,
295
- LoggerFileHandler,
296
- LoggerMemoryHandler,
297
- LoggerNodeHandler,
298
- MemStorage,
299
- NoopEncoder,
300
- PoolTaskIdConflictResolution,
301
- PoolTaskState,
302
- PubSub,
303
- SerialQueue,
304
- Uint8ArrayToHexDump,
305
- Uint8ArrayToJson,
306
- Uint8ArrayToString,
307
- XRX,
308
- _decodeUtf8Polyfill,
309
- _encodeUtf8Polyfill,
310
- arrayAvg,
311
- arrayBatches,
312
- arrayEmptyInPlace,
313
- arrayFilterInPlace,
314
- arrayFlatten,
315
- arrayIntersection,
316
- arrayIsEqual,
317
- arrayMax,
318
- arrayMin,
319
- arrayMinus,
320
- arrayRandomElement,
321
- arrayRemoveElement,
322
- arraySetElement,
323
- arrayShuffle,
324
- arrayShuffleForce,
325
- arrayShuffleInPlace,
326
- arraySorted,
327
- arraySortedNumbers,
328
- arraySum,
329
- arraySymmetricDifference,
330
- arrayToggleInPlace,
331
- arrayUnion,
332
- arrayUnique,
333
- avg,
334
- between,
335
- cloneJsonObject,
336
- cloneObject,
337
- cmp,
338
- colorString,
339
- colorStringList,
340
- composeOrderby,
341
- createArray,
342
- createLocalChannelPair,
343
- createPromise,
344
- createPromiseProxy,
345
- csv,
346
- currency,
347
- dateStringToDays,
348
- day,
349
- dayDay,
350
- dayDiff,
351
- dayFromAny,
352
- dayFromDate,
353
- dayFromDateGMT,
354
- dayFromParts,
355
- dayFromString,
356
- dayFromTimestamp,
357
- dayFromToday,
358
- dayMonth,
359
- dayMonthStart,
360
- dayOffset,
361
- dayToDate,
362
- dayToDateGMT,
363
- dayToParts,
364
- dayToString,
365
- dayToTimestamp,
366
- dayYear,
367
- dayYearStart,
368
- debounce,
369
- decimal,
370
- decimalCentsPart,
371
- decimalFromCents,
372
- decimalToCents,
373
- decodeBase16,
374
- decodeBase32,
375
- decodeBase58,
376
- decodeBase62,
377
- decodeBase64,
378
- decrypt,
379
- deepEqual,
380
- deepMerge,
381
- deriveKeyPbkdf2,
382
- detect,
383
- digest,
384
- empty,
385
- encodeBase16,
386
- encodeBase32,
387
- encodeBase58,
388
- encodeBase62,
389
- encodeBase64,
390
- encodeQuery,
391
- encrypt,
392
- endSortWeight,
393
- ensureFolder,
394
- ensureKey,
395
- ensureKeyAsync,
396
- equalBinary,
397
- escapeHTML,
398
- escapeRegExp,
399
- exists,
400
- fetchBasic,
401
- fetchJson,
402
- fetchOptionsBasicAuth,
403
- fetchOptionsFormURLEncoded,
404
- fetchOptionsJson,
405
- fetchText,
406
- fixBrokenUth8String,
407
- forEachDay,
408
- forTimes,
409
- formatMessages,
410
- formatMilliseconds,
411
- fromBase64,
412
- fromCamelCase,
413
- getGlobal,
414
- getGlobalContext,
415
- getGlobalEmitter,
416
- getNamespaceFilterString,
417
- getNavigator,
418
- getSecureRandom,
419
- getSecureRandomIfPossible,
420
- getSourceLocation,
421
- getSourceLocationByPrecedingPattern,
422
- getStack,
423
- getStackLlocationList,
424
- getTimestamp,
425
- getWindow,
426
- immediate,
427
- isArray,
428
- isBoolean,
429
- isBrowser,
430
- isEven,
431
- isHalf,
432
- isInteger,
433
- isLocalHost,
434
- isNullOrUndefined,
435
- isNumber,
436
- isObject,
437
- isPrime,
438
- isPrimeRX,
439
- isPrimitive,
440
- isPromise,
441
- isRecord,
442
- isSafeInteger,
443
- isString,
444
- isTimeout,
445
- isUint8Array,
446
- joinToUint8Array,
447
- jsonStringify,
448
- jsonToUint8Array,
449
- last,
450
- lazyListener,
451
- linkifyPlainText,
452
- loggerStackTraceDebug,
453
- memoize,
454
- messages,
455
- moveSortWeight,
456
- parseArgs,
457
- parseBasicAuth,
458
- parseDate,
459
- parseLogLevel,
460
- parseOrderby,
461
- parseQuery,
462
- pbcopy,
463
- platform,
464
- promisify,
465
- qid,
466
- randomBoolean,
467
- randomFloat,
468
- randomInt,
469
- randomUint8Array,
470
- readText,
471
- regExpEscape,
472
- regExpString,
473
- removeFolder,
474
- renderMessages,
475
- roundDown,
476
- roundHalfAwayFromZero,
477
- roundHalfDown,
478
- roundHalfEven,
479
- roundHalfOdd,
480
- roundHalfTowardsZero,
481
- roundHalfUp,
482
- roundUp,
483
- setupEnv,
484
- size,
485
- sleep,
486
- sortedItems,
487
- sortedOrderby,
488
- startSortWeight,
489
- stringToBoolean,
490
- stringToFloat,
491
- stringToInteger,
492
- stringToPath,
493
- stringToUInt8Array,
494
- suid,
495
- suidBytes,
496
- suidBytesDate,
497
- suidDate,
498
- sum,
499
- throttle,
500
- timeout,
501
- timeoutReached,
502
- timoutError,
503
- toBase64,
504
- toBase64Url,
505
- toBool,
506
- toCamelCase,
507
- toCapitalize,
508
- toCapitalizeWords,
509
- toFloat,
510
- toHex,
511
- toHumanReadableFilePath,
512
- toHumanReadableUrl,
513
- toInt,
514
- toPath,
515
- toString,
516
- toUint8Array,
517
- toValidFilename,
518
- today,
519
- tryTimeout,
520
- uname,
521
- unescapeHTML,
522
- useAsyncMutex,
523
- useBase,
524
- useDefer,
525
- useDispose,
526
- useDisposer,
527
- useEventListener,
528
- useExitHandler,
529
- useInterval,
530
- useLevelFilter,
531
- useMessageHub,
532
- useMutex,
533
- useNamespaceFilter,
534
- usePool,
535
- usePubSub,
536
- useRPC,
537
- useTimeout,
538
- uuid,
539
- uuid32Decode,
540
- uuid32Encode,
541
- uuid32bit,
542
- uuidB32,
543
- uuidBytes,
544
- uuidDecode,
545
- uuidEncode,
546
- uuidv4,
547
- valueToBoolean,
548
- valueToFloat,
549
- valueToInteger,
550
- valueToPath,
551
- valueToString,
552
- waitOn,
553
- writeText
554
- };
1
+ export { FileStorage, LoggerFileHandler, LoggerNodeHandler, colorString, colorStringList, ensureFolder, exists, getSourceLocation, getSourceLocationByPrecedingPattern, getStack, getStackLlocationList, loggerStackTraceDebug, parseArgs, pbcopy, readText, removeFolder, setupEnv, stringToPath, toHumanReadableFilePath, toPath, valueToPath, writeText } from './chunk-HI3XD4NV.js';
2
+ export { Channel, CryptoEncoder, Currency, DAY_MS, Day, Emitter, JsonEncoder, LocalChannel, LoggerMemoryHandler, MemStorage, NoopEncoder, PoolTaskIdConflictResolution, PoolTaskState, PubSub, SerialQueue, Uint8ArrayToHexDump, Uint8ArrayToJson, Uint8ArrayToString, XRX, _decodeUtf8Polyfill, _encodeUtf8Polyfill, arrayAvg, arrayBatches, arrayEmptyInPlace, arrayFilterInPlace, arrayFlatten, arrayIntersection, arrayIsEqual, arrayMax, arrayMin, arrayMinus, arrayRandomElement, arrayRemoveElement, arraySetElement, arrayShuffle, arrayShuffleForce, arrayShuffleInPlace, arraySorted, arraySortedNumbers, arraySum, arraySymmetricDifference, arrayToggleInPlace, arrayUnion, arrayUnique, avg, between, cloneJsonObject, cloneObject, cmp, composeOrderby, createArray, createLocalChannelPair, createPromise, createPromiseProxy, csv, currency, dateStringToDays, day, dayDay, dayDiff, dayFromAny, dayFromDate, dayFromDateGMT, dayFromParts, dayFromString, dayFromTimestamp, dayFromToday, dayMonth, dayMonthStart, dayOffset, dayToDate, dayToDateGMT, dayToParts, dayToString, dayToTimestamp, dayYear, dayYearStart, debounce, decimal, decimalCentsPart, decimalFromCents, decimalToCents, decodeBase16, decodeBase32, decodeBase58, decodeBase62, decodeBase64, decrypt, deriveKeyPbkdf2, detect, digest, empty, encodeBase16, encodeBase32, encodeBase58, encodeBase62, encodeBase64, encodeQuery, encrypt, endSortWeight, ensureKey, ensureKeyAsync, equalBinary, escapeHTML, escapeRegExp, fetchBasic, fetchJson, fetchOptionsBasicAuth, fetchOptionsFormURLEncoded, fetchOptionsJson, fetchText, fixBrokenUth8String, forEachDay, forTimes, formatMessages, fromBase64, fromCamelCase, getGlobal, getGlobalEmitter, getNavigator, getSecureRandom, getSecureRandomIfPossible, getWindow, immediate, isBrowser, isEven, isHalf, isLocalHost, isPrime, isPrimeRX, isPromise, isTimeout, joinToUint8Array, jsonStringify, jsonToUint8Array, last, lazyListener, linkifyPlainText, memoize, messages, moveSortWeight, parseBasicAuth, parseOrderby, parseQuery, platform, promisify, qid, randomBoolean, randomFloat, randomInt, randomUint8Array, regExpEscape, regExpString, renderMessages, roundDown, roundHalfAwayFromZero, roundHalfDown, roundHalfEven, roundHalfOdd, roundHalfTowardsZero, roundHalfUp, roundUp, size, sleep, sortedItems, sortedOrderby, startSortWeight, stringToBoolean, stringToFloat, stringToInteger, stringToUInt8Array, suid, suidBytes, suidBytesDate, suidDate, sum, throttle, timeout, timeoutReached, timoutError, toBase64, toBase64Url, toBool, toCamelCase, toCapitalize, toCapitalizeWords, toFloat, toHex, toHumanReadableUrl, toInt, toString, toUint8Array, toValidFilename, today, tryTimeout, uname, unescapeHTML, useAsyncMutex, useBase, useDefer, useDispose, useDisposer, useEventListener, useExitHandler, useInterval, useMessageHub, useMutex, usePool, usePubSub, useRPC, useTimeout, uuid, uuid32Decode, uuid32Encode, uuid32bit, uuidB32, uuidBytes, uuidDecode, uuidEncode, uuidv4, valueToBoolean, valueToFloat, valueToInteger, valueToString, waitOn } from './chunk-3LN7HI45.js';
3
+ export { LogLevel, LogLevelAlias, Logger, LoggerConsoleHandler, LoggerContext, deepEqual, deepMerge, formatMilliseconds, getGlobalContext, getNamespaceFilterString, getTimestamp, isArray, isBoolean, isInteger, isNullOrUndefined, isNumber, isObject, isPrimitive, isRecord, isSafeInteger, isString, isUint8Array, parseDate, parseLogLevel, useLevelFilter, useNamespaceFilter } from './chunk-AM7QCF4I.js';
555
4
  //# sourceMappingURL=index.node.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zeed",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "🌱 Simple foundation library",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -50,7 +50,7 @@
50
50
  "clean": "rm -rf dist",
51
51
  "check": "tsc --noEmit -p tsconfig.json",
52
52
  "build": "npm run clean && npm run build:tsup",
53
- "build:tsup": "tsup src/index.*.ts --format esm,cjs --dts --sourcemap --keep-names",
53
+ "build:tsup": "tsup src/index.*.ts --format esm,cjs --dts --sourcemap --keep-names --treeshake",
54
54
  "watch": "npm run build:tsup -- --watch",
55
55
  "prepublishOnly": "npm run build && npm run test:publish",
56
56
  "coverage": "vitest src --global --run --coverage",