zeed 0.7.167 → 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.
- package/dist/{chunk-WQRLPDXE.js → chunk-3LN7HI45.js} +192 -328
- package/dist/chunk-3LN7HI45.js.map +1 -0
- package/dist/{chunk-F6ZPROGL.js → chunk-AM7QCF4I.js} +19 -33
- package/dist/chunk-AM7QCF4I.js.map +1 -0
- package/dist/{chunk-UX6IDOAX.js → chunk-HI3XD4NV.js} +111 -111
- package/dist/chunk-HI3XD4NV.js.map +1 -0
- package/dist/{chunk-D42UTWJ7.js → chunk-IFNHRAHG.js} +4 -30
- package/dist/chunk-IFNHRAHG.js.map +1 -0
- package/dist/{chunk-7FVNJHQY.js → chunk-OJCXV4BY.js} +17 -18
- package/dist/chunk-OJCXV4BY.js.map +1 -0
- package/dist/index.all.cjs +321 -420
- package/dist/index.all.cjs.map +1 -1
- package/dist/index.all.d.ts +1 -1
- package/dist/index.all.js +5 -574
- package/dist/index.all.js.map +1 -1
- package/dist/index.browser.cjs +222 -365
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +4 -530
- package/dist/index.browser.js.map +1 -1
- package/dist/index.log.cjs +33 -13
- package/dist/index.log.cjs.map +1 -1
- package/dist/index.log.js +2 -14
- package/dist/index.log.js.map +1 -1
- package/dist/index.node.cjs +307 -403
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.js +3 -552
- package/dist/index.node.js.map +1 -1
- package/dist/{log-util-6f64500b.d.ts → log-util-f17f30b5.d.ts} +11 -1
- package/package.json +9 -8
- package/dist/chunk-7FVNJHQY.js.map +0 -1
- package/dist/chunk-D42UTWJ7.js.map +0 -1
- package/dist/chunk-F6ZPROGL.js.map +0 -1
- package/dist/chunk-UX6IDOAX.js.map +0 -1
- package/dist/chunk-WQRLPDXE.js.map +0 -1
package/dist/index.browser.js
CHANGED
|
@@ -1,531 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
urlBase64ToUint8Array
|
|
6
|
-
} from "./chunk-D42UTWJ7.js";
|
|
7
|
-
import {
|
|
8
|
-
LoggerBrowserHandler,
|
|
9
|
-
LoggerBrowserSetupDebugFactory,
|
|
10
|
-
activateConsoleDebug,
|
|
11
|
-
selectColor,
|
|
12
|
-
supportsColors
|
|
13
|
-
} from "./chunk-7FVNJHQY.js";
|
|
14
|
-
import {
|
|
15
|
-
Channel,
|
|
16
|
-
CryptoEncoder,
|
|
17
|
-
Currency,
|
|
18
|
-
DAY_MS,
|
|
19
|
-
Day,
|
|
20
|
-
Emitter,
|
|
21
|
-
JsonEncoder,
|
|
22
|
-
LocalChannel,
|
|
23
|
-
LoggerMemoryHandler,
|
|
24
|
-
MemStorage,
|
|
25
|
-
NoopEncoder,
|
|
26
|
-
PoolTaskIdConflictResolution,
|
|
27
|
-
PoolTaskState,
|
|
28
|
-
PubSub,
|
|
29
|
-
SerialQueue,
|
|
30
|
-
Uint8ArrayToHexDump,
|
|
31
|
-
Uint8ArrayToJson,
|
|
32
|
-
Uint8ArrayToString,
|
|
33
|
-
XRX,
|
|
34
|
-
_decodeUtf8Polyfill,
|
|
35
|
-
_encodeUtf8Polyfill,
|
|
36
|
-
arrayAvg,
|
|
37
|
-
arrayBatches,
|
|
38
|
-
arrayEmptyInPlace,
|
|
39
|
-
arrayFilterInPlace,
|
|
40
|
-
arrayFlatten,
|
|
41
|
-
arrayIntersection,
|
|
42
|
-
arrayIsEqual,
|
|
43
|
-
arrayMax,
|
|
44
|
-
arrayMin,
|
|
45
|
-
arrayMinus,
|
|
46
|
-
arrayRandomElement,
|
|
47
|
-
arrayRemoveElement,
|
|
48
|
-
arraySetElement,
|
|
49
|
-
arrayShuffle,
|
|
50
|
-
arrayShuffleForce,
|
|
51
|
-
arrayShuffleInPlace,
|
|
52
|
-
arraySorted,
|
|
53
|
-
arraySortedNumbers,
|
|
54
|
-
arraySum,
|
|
55
|
-
arraySymmetricDifference,
|
|
56
|
-
arrayToggleInPlace,
|
|
57
|
-
arrayUnion,
|
|
58
|
-
arrayUnique,
|
|
59
|
-
avg,
|
|
60
|
-
between,
|
|
61
|
-
cloneJsonObject,
|
|
62
|
-
cloneObject,
|
|
63
|
-
cmp,
|
|
64
|
-
composeOrderby,
|
|
65
|
-
createArray,
|
|
66
|
-
createLocalChannelPair,
|
|
67
|
-
createPromise,
|
|
68
|
-
createPromiseProxy,
|
|
69
|
-
csv,
|
|
70
|
-
currency,
|
|
71
|
-
dateStringToDays,
|
|
72
|
-
day,
|
|
73
|
-
dayDay,
|
|
74
|
-
dayDiff,
|
|
75
|
-
dayFromAny,
|
|
76
|
-
dayFromDate,
|
|
77
|
-
dayFromDateGMT,
|
|
78
|
-
dayFromParts,
|
|
79
|
-
dayFromString,
|
|
80
|
-
dayFromTimestamp,
|
|
81
|
-
dayFromToday,
|
|
82
|
-
dayMonth,
|
|
83
|
-
dayMonthStart,
|
|
84
|
-
dayOffset,
|
|
85
|
-
dayToDate,
|
|
86
|
-
dayToDateGMT,
|
|
87
|
-
dayToParts,
|
|
88
|
-
dayToString,
|
|
89
|
-
dayToTimestamp,
|
|
90
|
-
dayYear,
|
|
91
|
-
dayYearStart,
|
|
92
|
-
debounce,
|
|
93
|
-
decimal,
|
|
94
|
-
decimalCentsPart,
|
|
95
|
-
decimalFromCents,
|
|
96
|
-
decimalToCents,
|
|
97
|
-
decodeBase16,
|
|
98
|
-
decodeBase32,
|
|
99
|
-
decodeBase58,
|
|
100
|
-
decodeBase62,
|
|
101
|
-
decodeBase64,
|
|
102
|
-
decrypt,
|
|
103
|
-
deriveKeyPbkdf2,
|
|
104
|
-
detect,
|
|
105
|
-
digest,
|
|
106
|
-
empty,
|
|
107
|
-
encodeBase16,
|
|
108
|
-
encodeBase32,
|
|
109
|
-
encodeBase58,
|
|
110
|
-
encodeBase62,
|
|
111
|
-
encodeBase64,
|
|
112
|
-
encodeQuery,
|
|
113
|
-
encrypt,
|
|
114
|
-
endSortWeight,
|
|
115
|
-
ensureKey,
|
|
116
|
-
ensureKeyAsync,
|
|
117
|
-
equalBinary,
|
|
118
|
-
escapeHTML,
|
|
119
|
-
escapeRegExp,
|
|
120
|
-
fetchBasic,
|
|
121
|
-
fetchJson,
|
|
122
|
-
fetchOptionsBasicAuth,
|
|
123
|
-
fetchOptionsFormURLEncoded,
|
|
124
|
-
fetchOptionsJson,
|
|
125
|
-
fetchText,
|
|
126
|
-
fixBrokenUth8String,
|
|
127
|
-
forEachDay,
|
|
128
|
-
forTimes,
|
|
129
|
-
formatMessages,
|
|
130
|
-
fromBase64,
|
|
131
|
-
fromCamelCase,
|
|
132
|
-
getGlobal,
|
|
133
|
-
getGlobalEmitter,
|
|
134
|
-
getNavigator,
|
|
135
|
-
getSecureRandom,
|
|
136
|
-
getSecureRandomIfPossible,
|
|
137
|
-
getWindow,
|
|
138
|
-
immediate,
|
|
139
|
-
isBrowser,
|
|
140
|
-
isEven,
|
|
141
|
-
isHalf,
|
|
142
|
-
isLocalHost,
|
|
143
|
-
isPrime,
|
|
144
|
-
isPrimeRX,
|
|
145
|
-
isPromise,
|
|
146
|
-
isTimeout,
|
|
147
|
-
joinToUint8Array,
|
|
148
|
-
jsonStringify,
|
|
149
|
-
jsonToUint8Array,
|
|
150
|
-
last,
|
|
151
|
-
lazyListener,
|
|
152
|
-
linkifyPlainText,
|
|
153
|
-
memoize,
|
|
154
|
-
messages,
|
|
155
|
-
moveSortWeight,
|
|
156
|
-
parseBasicAuth,
|
|
157
|
-
parseOrderby,
|
|
158
|
-
parseQuery,
|
|
159
|
-
platform,
|
|
160
|
-
promisify,
|
|
161
|
-
qid,
|
|
162
|
-
randomBoolean,
|
|
163
|
-
randomFloat,
|
|
164
|
-
randomInt,
|
|
165
|
-
randomUint8Array,
|
|
166
|
-
regExpEscape,
|
|
167
|
-
regExpString,
|
|
168
|
-
renderMessages,
|
|
169
|
-
roundDown,
|
|
170
|
-
roundHalfAwayFromZero,
|
|
171
|
-
roundHalfDown,
|
|
172
|
-
roundHalfEven,
|
|
173
|
-
roundHalfOdd,
|
|
174
|
-
roundHalfTowardsZero,
|
|
175
|
-
roundHalfUp,
|
|
176
|
-
roundUp,
|
|
177
|
-
size,
|
|
178
|
-
sleep,
|
|
179
|
-
sortedItems,
|
|
180
|
-
sortedOrderby,
|
|
181
|
-
startSortWeight,
|
|
182
|
-
stringToBoolean,
|
|
183
|
-
stringToFloat,
|
|
184
|
-
stringToInteger,
|
|
185
|
-
stringToUInt8Array,
|
|
186
|
-
suid,
|
|
187
|
-
suidBytes,
|
|
188
|
-
suidBytesDate,
|
|
189
|
-
suidDate,
|
|
190
|
-
sum,
|
|
191
|
-
throttle,
|
|
192
|
-
timeout,
|
|
193
|
-
timeoutReached,
|
|
194
|
-
timoutError,
|
|
195
|
-
toBase64,
|
|
196
|
-
toBase64Url,
|
|
197
|
-
toBool,
|
|
198
|
-
toCamelCase,
|
|
199
|
-
toCapitalize,
|
|
200
|
-
toCapitalizeWords,
|
|
201
|
-
toFloat,
|
|
202
|
-
toHex,
|
|
203
|
-
toHumanReadableUrl,
|
|
204
|
-
toInt,
|
|
205
|
-
toString,
|
|
206
|
-
toUint8Array,
|
|
207
|
-
toValidFilename,
|
|
208
|
-
today,
|
|
209
|
-
tryTimeout,
|
|
210
|
-
uname,
|
|
211
|
-
unescapeHTML,
|
|
212
|
-
useAsyncMutex,
|
|
213
|
-
useBase,
|
|
214
|
-
useDefer,
|
|
215
|
-
useDispose,
|
|
216
|
-
useDisposer,
|
|
217
|
-
useEventListener,
|
|
218
|
-
useExitHandler,
|
|
219
|
-
useInterval,
|
|
220
|
-
useMessageHub,
|
|
221
|
-
useMutex,
|
|
222
|
-
usePool,
|
|
223
|
-
usePubSub,
|
|
224
|
-
useRPC,
|
|
225
|
-
useTimeout,
|
|
226
|
-
uuid,
|
|
227
|
-
uuid32Decode,
|
|
228
|
-
uuid32Encode,
|
|
229
|
-
uuid32bit,
|
|
230
|
-
uuidB32,
|
|
231
|
-
uuidBytes,
|
|
232
|
-
uuidDecode,
|
|
233
|
-
uuidEncode,
|
|
234
|
-
uuidv4,
|
|
235
|
-
valueToBoolean,
|
|
236
|
-
valueToFloat,
|
|
237
|
-
valueToInteger,
|
|
238
|
-
valueToString,
|
|
239
|
-
waitOn
|
|
240
|
-
} from "./chunk-WQRLPDXE.js";
|
|
241
|
-
import {
|
|
242
|
-
LogLevel,
|
|
243
|
-
LogLevelAlias,
|
|
244
|
-
Logger,
|
|
245
|
-
LoggerConsoleHandler,
|
|
246
|
-
LoggerContext,
|
|
247
|
-
deepEqual,
|
|
248
|
-
deepMerge,
|
|
249
|
-
formatMilliseconds,
|
|
250
|
-
getGlobalContext,
|
|
251
|
-
getNamespaceFilterString,
|
|
252
|
-
getTimestamp,
|
|
253
|
-
isArray,
|
|
254
|
-
isBoolean,
|
|
255
|
-
isInteger,
|
|
256
|
-
isNullOrUndefined,
|
|
257
|
-
isNumber,
|
|
258
|
-
isObject,
|
|
259
|
-
isPrimitive,
|
|
260
|
-
isRecord,
|
|
261
|
-
isSafeInteger,
|
|
262
|
-
isString,
|
|
263
|
-
isUint8Array,
|
|
264
|
-
parseDate,
|
|
265
|
-
parseLogLevel,
|
|
266
|
-
useLevelFilter,
|
|
267
|
-
useNamespaceFilter
|
|
268
|
-
} from "./chunk-F6ZPROGL.js";
|
|
269
|
-
export {
|
|
270
|
-
Channel,
|
|
271
|
-
CryptoEncoder,
|
|
272
|
-
Currency,
|
|
273
|
-
DAY_MS,
|
|
274
|
-
Day,
|
|
275
|
-
Emitter,
|
|
276
|
-
JsonEncoder,
|
|
277
|
-
LocalChannel,
|
|
278
|
-
LocalStorage,
|
|
279
|
-
LogLevel,
|
|
280
|
-
LogLevelAlias,
|
|
281
|
-
Logger,
|
|
282
|
-
LoggerBrowserClassicHandler,
|
|
283
|
-
LoggerBrowserHandler,
|
|
284
|
-
LoggerBrowserSetupDebugFactory,
|
|
285
|
-
LoggerConsoleHandler,
|
|
286
|
-
LoggerContext,
|
|
287
|
-
LoggerMemoryHandler,
|
|
288
|
-
MemStorage,
|
|
289
|
-
NoopEncoder,
|
|
290
|
-
PoolTaskIdConflictResolution,
|
|
291
|
-
PoolTaskState,
|
|
292
|
-
PubSub,
|
|
293
|
-
SerialQueue,
|
|
294
|
-
Uint8ArrayToHexDump,
|
|
295
|
-
Uint8ArrayToJson,
|
|
296
|
-
Uint8ArrayToString,
|
|
297
|
-
XRX,
|
|
298
|
-
_decodeUtf8Polyfill,
|
|
299
|
-
_encodeUtf8Polyfill,
|
|
300
|
-
activateConsoleDebug,
|
|
301
|
-
arrayAvg,
|
|
302
|
-
arrayBatches,
|
|
303
|
-
arrayEmptyInPlace,
|
|
304
|
-
arrayFilterInPlace,
|
|
305
|
-
arrayFlatten,
|
|
306
|
-
arrayIntersection,
|
|
307
|
-
arrayIsEqual,
|
|
308
|
-
arrayMax,
|
|
309
|
-
arrayMin,
|
|
310
|
-
arrayMinus,
|
|
311
|
-
arrayRandomElement,
|
|
312
|
-
arrayRemoveElement,
|
|
313
|
-
arraySetElement,
|
|
314
|
-
arrayShuffle,
|
|
315
|
-
arrayShuffleForce,
|
|
316
|
-
arrayShuffleInPlace,
|
|
317
|
-
arraySorted,
|
|
318
|
-
arraySortedNumbers,
|
|
319
|
-
arraySum,
|
|
320
|
-
arraySymmetricDifference,
|
|
321
|
-
arrayToggleInPlace,
|
|
322
|
-
arrayUnion,
|
|
323
|
-
arrayUnique,
|
|
324
|
-
avg,
|
|
325
|
-
between,
|
|
326
|
-
cloneJsonObject,
|
|
327
|
-
cloneObject,
|
|
328
|
-
cmp,
|
|
329
|
-
composeOrderby,
|
|
330
|
-
createArray,
|
|
331
|
-
createLocalChannelPair,
|
|
332
|
-
createPromise,
|
|
333
|
-
createPromiseProxy,
|
|
334
|
-
csv,
|
|
335
|
-
currency,
|
|
336
|
-
dateStringToDays,
|
|
337
|
-
day,
|
|
338
|
-
dayDay,
|
|
339
|
-
dayDiff,
|
|
340
|
-
dayFromAny,
|
|
341
|
-
dayFromDate,
|
|
342
|
-
dayFromDateGMT,
|
|
343
|
-
dayFromParts,
|
|
344
|
-
dayFromString,
|
|
345
|
-
dayFromTimestamp,
|
|
346
|
-
dayFromToday,
|
|
347
|
-
dayMonth,
|
|
348
|
-
dayMonthStart,
|
|
349
|
-
dayOffset,
|
|
350
|
-
dayToDate,
|
|
351
|
-
dayToDateGMT,
|
|
352
|
-
dayToParts,
|
|
353
|
-
dayToString,
|
|
354
|
-
dayToTimestamp,
|
|
355
|
-
dayYear,
|
|
356
|
-
dayYearStart,
|
|
357
|
-
debounce,
|
|
358
|
-
decimal,
|
|
359
|
-
decimalCentsPart,
|
|
360
|
-
decimalFromCents,
|
|
361
|
-
decimalToCents,
|
|
362
|
-
decodeBase16,
|
|
363
|
-
decodeBase32,
|
|
364
|
-
decodeBase58,
|
|
365
|
-
decodeBase62,
|
|
366
|
-
decodeBase64,
|
|
367
|
-
decrypt,
|
|
368
|
-
deepEqual,
|
|
369
|
-
deepMerge,
|
|
370
|
-
deriveKeyPbkdf2,
|
|
371
|
-
detect,
|
|
372
|
-
digest,
|
|
373
|
-
empty,
|
|
374
|
-
encodeBase16,
|
|
375
|
-
encodeBase32,
|
|
376
|
-
encodeBase58,
|
|
377
|
-
encodeBase62,
|
|
378
|
-
encodeBase64,
|
|
379
|
-
encodeQuery,
|
|
380
|
-
encrypt,
|
|
381
|
-
endSortWeight,
|
|
382
|
-
ensureKey,
|
|
383
|
-
ensureKeyAsync,
|
|
384
|
-
equalBinary,
|
|
385
|
-
escapeHTML,
|
|
386
|
-
escapeRegExp,
|
|
387
|
-
fetchBasic,
|
|
388
|
-
fetchJson,
|
|
389
|
-
fetchOptionsBasicAuth,
|
|
390
|
-
fetchOptionsFormURLEncoded,
|
|
391
|
-
fetchOptionsJson,
|
|
392
|
-
fetchText,
|
|
393
|
-
fixBrokenUth8String,
|
|
394
|
-
forEachDay,
|
|
395
|
-
forTimes,
|
|
396
|
-
formatMessages,
|
|
397
|
-
formatMilliseconds,
|
|
398
|
-
fromBase64,
|
|
399
|
-
fromCamelCase,
|
|
400
|
-
getGlobal,
|
|
401
|
-
getGlobalContext,
|
|
402
|
-
getGlobalEmitter,
|
|
403
|
-
getNamespaceFilterString,
|
|
404
|
-
getNavigator,
|
|
405
|
-
getSecureRandom,
|
|
406
|
-
getSecureRandomIfPossible,
|
|
407
|
-
getTimestamp,
|
|
408
|
-
getWindow,
|
|
409
|
-
gravatarURLByEmail,
|
|
410
|
-
immediate,
|
|
411
|
-
isArray,
|
|
412
|
-
isBoolean,
|
|
413
|
-
isBrowser,
|
|
414
|
-
isEven,
|
|
415
|
-
isHalf,
|
|
416
|
-
isInteger,
|
|
417
|
-
isLocalHost,
|
|
418
|
-
isNullOrUndefined,
|
|
419
|
-
isNumber,
|
|
420
|
-
isObject,
|
|
421
|
-
isPrime,
|
|
422
|
-
isPrimeRX,
|
|
423
|
-
isPrimitive,
|
|
424
|
-
isPromise,
|
|
425
|
-
isRecord,
|
|
426
|
-
isSafeInteger,
|
|
427
|
-
isString,
|
|
428
|
-
isTimeout,
|
|
429
|
-
isUint8Array,
|
|
430
|
-
joinToUint8Array,
|
|
431
|
-
jsonStringify,
|
|
432
|
-
jsonToUint8Array,
|
|
433
|
-
last,
|
|
434
|
-
lazyListener,
|
|
435
|
-
linkifyPlainText,
|
|
436
|
-
memoize,
|
|
437
|
-
messages,
|
|
438
|
-
moveSortWeight,
|
|
439
|
-
parseBasicAuth,
|
|
440
|
-
parseDate,
|
|
441
|
-
parseLogLevel,
|
|
442
|
-
parseOrderby,
|
|
443
|
-
parseQuery,
|
|
444
|
-
platform,
|
|
445
|
-
promisify,
|
|
446
|
-
qid,
|
|
447
|
-
randomBoolean,
|
|
448
|
-
randomFloat,
|
|
449
|
-
randomInt,
|
|
450
|
-
randomUint8Array,
|
|
451
|
-
regExpEscape,
|
|
452
|
-
regExpString,
|
|
453
|
-
renderMessages,
|
|
454
|
-
roundDown,
|
|
455
|
-
roundHalfAwayFromZero,
|
|
456
|
-
roundHalfDown,
|
|
457
|
-
roundHalfEven,
|
|
458
|
-
roundHalfOdd,
|
|
459
|
-
roundHalfTowardsZero,
|
|
460
|
-
roundHalfUp,
|
|
461
|
-
roundUp,
|
|
462
|
-
selectColor,
|
|
463
|
-
size,
|
|
464
|
-
sleep,
|
|
465
|
-
sortedItems,
|
|
466
|
-
sortedOrderby,
|
|
467
|
-
startSortWeight,
|
|
468
|
-
stringToBoolean,
|
|
469
|
-
stringToFloat,
|
|
470
|
-
stringToInteger,
|
|
471
|
-
stringToUInt8Array,
|
|
472
|
-
suid,
|
|
473
|
-
suidBytes,
|
|
474
|
-
suidBytesDate,
|
|
475
|
-
suidDate,
|
|
476
|
-
sum,
|
|
477
|
-
supportsColors,
|
|
478
|
-
throttle,
|
|
479
|
-
timeout,
|
|
480
|
-
timeoutReached,
|
|
481
|
-
timoutError,
|
|
482
|
-
toBase64,
|
|
483
|
-
toBase64Url,
|
|
484
|
-
toBool,
|
|
485
|
-
toCamelCase,
|
|
486
|
-
toCapitalize,
|
|
487
|
-
toCapitalizeWords,
|
|
488
|
-
toFloat,
|
|
489
|
-
toHex,
|
|
490
|
-
toHumanReadableUrl,
|
|
491
|
-
toInt,
|
|
492
|
-
toString,
|
|
493
|
-
toUint8Array,
|
|
494
|
-
toValidFilename,
|
|
495
|
-
today,
|
|
496
|
-
tryTimeout,
|
|
497
|
-
uname,
|
|
498
|
-
unescapeHTML,
|
|
499
|
-
urlBase64ToUint8Array,
|
|
500
|
-
useAsyncMutex,
|
|
501
|
-
useBase,
|
|
502
|
-
useDefer,
|
|
503
|
-
useDispose,
|
|
504
|
-
useDisposer,
|
|
505
|
-
useEventListener,
|
|
506
|
-
useExitHandler,
|
|
507
|
-
useInterval,
|
|
508
|
-
useLevelFilter,
|
|
509
|
-
useMessageHub,
|
|
510
|
-
useMutex,
|
|
511
|
-
useNamespaceFilter,
|
|
512
|
-
usePool,
|
|
513
|
-
usePubSub,
|
|
514
|
-
useRPC,
|
|
515
|
-
useTimeout,
|
|
516
|
-
uuid,
|
|
517
|
-
uuid32Decode,
|
|
518
|
-
uuid32Encode,
|
|
519
|
-
uuid32bit,
|
|
520
|
-
uuidB32,
|
|
521
|
-
uuidBytes,
|
|
522
|
-
uuidDecode,
|
|
523
|
-
uuidEncode,
|
|
524
|
-
uuidv4,
|
|
525
|
-
valueToBoolean,
|
|
526
|
-
valueToFloat,
|
|
527
|
-
valueToInteger,
|
|
528
|
-
valueToString,
|
|
529
|
-
waitOn
|
|
530
|
-
};
|
|
1
|
+
export { LocalStorage, LoggerBrowserClassicHandler, gravatarURLByEmail, urlBase64ToUint8Array } from './chunk-IFNHRAHG.js';
|
|
2
|
+
export { LoggerBrowserHandler, LoggerBrowserSetupDebugFactory, activateConsoleDebug, selectColor, supportsColors } from './chunk-OJCXV4BY.js';
|
|
3
|
+
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';
|
|
4
|
+
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';
|
|
531
5
|
//# sourceMappingURL=index.browser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/index.log.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -88,7 +89,9 @@ function getNamespaceFilterString(defaultNamespaceFilter2) {
|
|
|
88
89
|
return defaultNamespaceFilter2;
|
|
89
90
|
}
|
|
90
91
|
__name(getNamespaceFilterString, "getNamespaceFilterString");
|
|
91
|
-
var defaultNamespaceFilter = getNamespaceFilterString(
|
|
92
|
+
var defaultNamespaceFilter = getNamespaceFilterString(
|
|
93
|
+
typeof process !== "undefined" ? process.env.ZEED ?? process.env.DEBUG : typeof localStorage !== "undefined" ? localStorage.zeed ?? localStorage.debug : "*"
|
|
94
|
+
);
|
|
92
95
|
function useNamespaceFilter(filter = defaultNamespaceFilter) {
|
|
93
96
|
let fn;
|
|
94
97
|
let reject = [];
|
|
@@ -261,13 +264,25 @@ function LoggerContext(prefix = "") {
|
|
|
261
264
|
log.assertEqual = function(value, expected, ...args) {
|
|
262
265
|
let equal = deepEqual(value, expected);
|
|
263
266
|
if (!equal) {
|
|
264
|
-
log.assert(
|
|
267
|
+
log.assert(
|
|
268
|
+
equal,
|
|
269
|
+
`Assert did fail. Expected ${expected} got ${value}`,
|
|
270
|
+
expected,
|
|
271
|
+
value,
|
|
272
|
+
...args
|
|
273
|
+
);
|
|
265
274
|
}
|
|
266
275
|
};
|
|
267
276
|
log.assertNotEqual = function(value, expected, ...args) {
|
|
268
277
|
let equal = deepEqual(value, expected);
|
|
269
278
|
if (equal) {
|
|
270
|
-
log.assert(
|
|
279
|
+
log.assert(
|
|
280
|
+
equal,
|
|
281
|
+
`Assert did fail. Expected ${expected} not to be equal with ${value}`,
|
|
282
|
+
expected,
|
|
283
|
+
value,
|
|
284
|
+
...args
|
|
285
|
+
);
|
|
271
286
|
}
|
|
272
287
|
};
|
|
273
288
|
return log;
|
|
@@ -593,13 +608,25 @@ function LoggerBrowserSetupDebugFactory(opt = {}) {
|
|
|
593
608
|
log.assertEqual = function(value, expected, ...args) {
|
|
594
609
|
let equal = deepEqual(value, expected);
|
|
595
610
|
if (!equal) {
|
|
596
|
-
log.assert(
|
|
611
|
+
log.assert(
|
|
612
|
+
equal,
|
|
613
|
+
`Assert did fail. Expected ${expected} got ${value}`,
|
|
614
|
+
expected,
|
|
615
|
+
value,
|
|
616
|
+
...args
|
|
617
|
+
);
|
|
597
618
|
}
|
|
598
619
|
};
|
|
599
620
|
log.assertNotEqual = function(value, expected, ...args) {
|
|
600
621
|
let equal = deepEqual(value, expected);
|
|
601
622
|
if (equal) {
|
|
602
|
-
log.assert(
|
|
623
|
+
log.assert(
|
|
624
|
+
equal,
|
|
625
|
+
`Assert did fail. Expected ${expected} not to be equal with ${value}`,
|
|
626
|
+
expected,
|
|
627
|
+
value,
|
|
628
|
+
...args
|
|
629
|
+
);
|
|
603
630
|
}
|
|
604
631
|
};
|
|
605
632
|
} else {
|
|
@@ -626,11 +653,4 @@ function activateConsoleDebug(opt = {}) {
|
|
|
626
653
|
console.info("activateConsoleDebug is activated by default in browsers");
|
|
627
654
|
}
|
|
628
655
|
__name(activateConsoleDebug, "activateConsoleDebug");
|
|
629
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
630
|
-
0 && (module.exports = {
|
|
631
|
-
Logger,
|
|
632
|
-
LoggerBrowserHandler,
|
|
633
|
-
LoggerBrowserSetupDebugFactory,
|
|
634
|
-
activateConsoleDebug
|
|
635
|
-
});
|
|
636
656
|
//# sourceMappingURL=index.log.cjs.map
|