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.
Files changed (35) hide show
  1. package/dist/{chunk-WQRLPDXE.js → chunk-3LN7HI45.js} +192 -328
  2. package/dist/chunk-3LN7HI45.js.map +1 -0
  3. package/dist/{chunk-F6ZPROGL.js → chunk-AM7QCF4I.js} +19 -33
  4. package/dist/chunk-AM7QCF4I.js.map +1 -0
  5. package/dist/{chunk-UX6IDOAX.js → chunk-HI3XD4NV.js} +111 -111
  6. package/dist/chunk-HI3XD4NV.js.map +1 -0
  7. package/dist/{chunk-D42UTWJ7.js → chunk-IFNHRAHG.js} +4 -30
  8. package/dist/chunk-IFNHRAHG.js.map +1 -0
  9. package/dist/{chunk-7FVNJHQY.js → chunk-OJCXV4BY.js} +17 -18
  10. package/dist/chunk-OJCXV4BY.js.map +1 -0
  11. package/dist/index.all.cjs +321 -420
  12. package/dist/index.all.cjs.map +1 -1
  13. package/dist/index.all.d.ts +1 -1
  14. package/dist/index.all.js +5 -574
  15. package/dist/index.all.js.map +1 -1
  16. package/dist/index.browser.cjs +222 -365
  17. package/dist/index.browser.cjs.map +1 -1
  18. package/dist/index.browser.js +4 -530
  19. package/dist/index.browser.js.map +1 -1
  20. package/dist/index.log.cjs +33 -13
  21. package/dist/index.log.cjs.map +1 -1
  22. package/dist/index.log.js +2 -14
  23. package/dist/index.log.js.map +1 -1
  24. package/dist/index.node.cjs +307 -403
  25. package/dist/index.node.cjs.map +1 -1
  26. package/dist/index.node.d.ts +1 -1
  27. package/dist/index.node.js +3 -552
  28. package/dist/index.node.js.map +1 -1
  29. package/dist/{log-util-6f64500b.d.ts → log-util-f17f30b5.d.ts} +11 -1
  30. package/package.json +9 -8
  31. package/dist/chunk-7FVNJHQY.js.map +0 -1
  32. package/dist/chunk-D42UTWJ7.js.map +0 -1
  33. package/dist/chunk-F6ZPROGL.js.map +0 -1
  34. package/dist/chunk-UX6IDOAX.js.map +0 -1
  35. package/dist/chunk-WQRLPDXE.js.map +0 -1
@@ -1,4 +1,5 @@
1
- "use strict";
1
+ 'use strict';
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -18,7 +19,10 @@ var __copyProps = (to, from, except, desc) => {
18
19
  }
19
20
  return to;
20
21
  };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
22
26
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
27
 
24
28
  // src/index.node.ts
@@ -199,6 +203,7 @@ __export(index_node_exports, {
199
203
  memoize: () => memoize,
200
204
  messages: () => messages,
201
205
  moveSortWeight: () => moveSortWeight,
206
+ parseArgs: () => parseArgs,
202
207
  parseBasicAuth: () => parseBasicAuth,
203
208
  parseDate: () => parseDate,
204
209
  parseLogLevel: () => parseLogLevel,
@@ -421,7 +426,9 @@ function getNamespaceFilterString(defaultNamespaceFilter2) {
421
426
  return defaultNamespaceFilter2;
422
427
  }
423
428
  __name(getNamespaceFilterString, "getNamespaceFilterString");
424
- var defaultNamespaceFilter = getNamespaceFilterString(typeof process !== "undefined" ? process.env.ZEED ?? process.env.DEBUG : typeof localStorage !== "undefined" ? localStorage.zeed ?? localStorage.debug : "*");
429
+ var defaultNamespaceFilter = getNamespaceFilterString(
430
+ typeof process !== "undefined" ? process.env.ZEED ?? process.env.DEBUG : typeof localStorage !== "undefined" ? localStorage.zeed ?? localStorage.debug : "*"
431
+ );
425
432
  function useNamespaceFilter(filter = defaultNamespaceFilter) {
426
433
  let fn;
427
434
  let reject = [];
@@ -604,13 +611,25 @@ function LoggerContext(prefix = "") {
604
611
  log12.assertEqual = function(value, expected, ...args) {
605
612
  let equal = deepEqual(value, expected);
606
613
  if (!equal) {
607
- log12.assert(equal, `Assert did fail. Expected ${expected} got ${value}`, expected, value, ...args);
614
+ log12.assert(
615
+ equal,
616
+ `Assert did fail. Expected ${expected} got ${value}`,
617
+ expected,
618
+ value,
619
+ ...args
620
+ );
608
621
  }
609
622
  };
610
623
  log12.assertNotEqual = function(value, expected, ...args) {
611
624
  let equal = deepEqual(value, expected);
612
625
  if (equal) {
613
- log12.assert(equal, `Assert did fail. Expected ${expected} not to be equal with ${value}`, expected, value, ...args);
626
+ log12.assert(
627
+ equal,
628
+ `Assert did fail. Expected ${expected} not to be equal with ${value}`,
629
+ expected,
630
+ value,
631
+ ...args
632
+ );
614
633
  }
615
634
  };
616
635
  return log12;
@@ -890,9 +909,11 @@ function Uint8ArrayToJson(data) {
890
909
  }
891
910
  __name(Uint8ArrayToJson, "Uint8ArrayToJson");
892
911
  function Uint8ArrayToHexDump(buffer, blockSize) {
893
- if (typeof buffer === "string") {
894
- } else if (buffer instanceof ArrayBuffer && buffer.byteLength !== void 0) {
895
- buffer = String.fromCharCode.apply(String, [].slice.call(new Uint8Array(buffer)));
912
+ if (typeof buffer === "string") ; else if (buffer instanceof ArrayBuffer && buffer.byteLength !== void 0) {
913
+ buffer = String.fromCharCode.apply(
914
+ String,
915
+ [].slice.call(new Uint8Array(buffer))
916
+ );
896
917
  } else if (Array.isArray(buffer)) {
897
918
  buffer = String.fromCharCode.apply(String, buffer);
898
919
  } else if (buffer.constructor === Uint8Array) {
@@ -936,27 +957,45 @@ var DEFAULT_HASH_ALG = "SHA-256";
936
957
  var DEFAULT_CRYPTO_ALG = "AES-GCM";
937
958
  var DEFAULT_DERIVE_ALG = "PBKDF2";
938
959
  async function digest(message, algorithm = DEFAULT_HASH_ALG) {
939
- return toUint8Array(await crypto.subtle.digest(algorithm, toUint8Array(message)));
960
+ return toUint8Array(
961
+ await crypto.subtle.digest(algorithm, toUint8Array(message))
962
+ );
940
963
  }
941
964
  __name(digest, "digest");
942
965
  async function deriveKeyPbkdf2(secret, opt = {}) {
943
966
  const secretBuffer = toUint8Array(secret);
944
- const keyMaterial = await crypto.subtle.importKey("raw", secretBuffer, DEFAULT_DERIVE_ALG, false, ["deriveKey"]);
945
- return await crypto.subtle.deriveKey({
946
- name: DEFAULT_DERIVE_ALG,
947
- salt: opt.salt ? toUint8Array(opt.salt) : new Uint8Array(0),
948
- iterations: opt.iterations ?? 1e5,
949
- hash: DEFAULT_HASH_ALG
950
- }, keyMaterial, {
951
- name: DEFAULT_CRYPTO_ALG,
952
- length: 256
953
- }, true, ["encrypt", "decrypt"]);
967
+ const keyMaterial = await crypto.subtle.importKey(
968
+ "raw",
969
+ secretBuffer,
970
+ DEFAULT_DERIVE_ALG,
971
+ false,
972
+ ["deriveKey"]
973
+ );
974
+ return await crypto.subtle.deriveKey(
975
+ {
976
+ name: DEFAULT_DERIVE_ALG,
977
+ salt: opt.salt ? toUint8Array(opt.salt) : new Uint8Array(0),
978
+ iterations: opt.iterations ?? 1e5,
979
+ hash: DEFAULT_HASH_ALG
980
+ },
981
+ keyMaterial,
982
+ {
983
+ name: DEFAULT_CRYPTO_ALG,
984
+ length: 256
985
+ },
986
+ true,
987
+ ["encrypt", "decrypt"]
988
+ );
954
989
  }
955
990
  __name(deriveKeyPbkdf2, "deriveKeyPbkdf2");
956
991
  var MAGIC_ID = new Uint8Array([1, 1]);
957
992
  async function encrypt(data, key) {
958
993
  const iv = randomUint8Array(12);
959
- const cipher = await crypto.subtle.encrypt({ name: DEFAULT_CRYPTO_ALG, iv }, key, data);
994
+ const cipher = await crypto.subtle.encrypt(
995
+ { name: DEFAULT_CRYPTO_ALG, iv },
996
+ key,
997
+ data
998
+ );
960
999
  const binCypher = new Uint8Array(cipher);
961
1000
  const bufferLength = MAGIC_ID.length + iv.length + binCypher.length;
962
1001
  const buffer = new Uint8Array(bufferLength);
@@ -976,15 +1015,17 @@ async function decrypt(data, key) {
976
1015
  }
977
1016
  let iv = data.subarray(2, 2 + 12);
978
1017
  let cipher = data.subarray(2 + 12, data.length);
979
- const plain = await crypto.subtle.decrypt({ name: DEFAULT_CRYPTO_ALG, iv }, key, cipher);
1018
+ const plain = await crypto.subtle.decrypt(
1019
+ { name: DEFAULT_CRYPTO_ALG, iv },
1020
+ key,
1021
+ cipher
1022
+ );
980
1023
  return new Uint8Array(plain);
981
1024
  }
982
1025
  __name(decrypt, "decrypt");
983
1026
 
984
1027
  // src/common/csv.ts
985
1028
  var separator = ",";
986
- var preventCast = false;
987
- var ignoreNullOrUndefined = true;
988
1029
  function filterFloat(value) {
989
1030
  if (/^([-+])?([0-9]+(\.[0-9]+)?|Infinity)$/.test(value)) {
990
1031
  return Number(value);
@@ -993,12 +1034,9 @@ function filterFloat(value) {
993
1034
  }
994
1035
  __name(filterFloat, "filterFloat");
995
1036
  function escape2(field) {
996
- if (ignoreNullOrUndefined && field == void 0) {
1037
+ if (field == void 0) {
997
1038
  return "";
998
1039
  }
999
- if (preventCast) {
1000
- return '="' + String(field).replace(/"/g, '""') + '"';
1001
- }
1002
1040
  if (!isNaN(filterFloat(field)) && isFinite(field)) {
1003
1041
  return parseFloat(field);
1004
1042
  }
@@ -1199,11 +1237,17 @@ function arrayRandomElement(array) {
1199
1237
  }
1200
1238
  __name(arrayRandomElement, "arrayRandomElement");
1201
1239
  function arrayMax(...array) {
1202
- return arrayFlatten(array).reduce((acc, value) => acc != null ? value > acc ? value : acc : value, void 0);
1240
+ return arrayFlatten(array).reduce(
1241
+ (acc, value) => acc != null ? value > acc ? value : acc : value,
1242
+ void 0
1243
+ );
1203
1244
  }
1204
1245
  __name(arrayMax, "arrayMax");
1205
1246
  function arrayMin(...array) {
1206
- return arrayFlatten(array).reduce((acc, value) => acc != null ? value < acc ? value : acc : value, void 0);
1247
+ return arrayFlatten(array).reduce(
1248
+ (acc, value) => acc != null ? value < acc ? value : acc : value,
1249
+ void 0
1250
+ );
1207
1251
  }
1208
1252
  __name(arrayMin, "arrayMin");
1209
1253
  function arraySum(...array) {
@@ -1557,15 +1601,24 @@ var _Currency = class {
1557
1601
  }
1558
1602
  add(number) {
1559
1603
  let { intValue, _settings, _precision } = this;
1560
- return currency((intValue += parse(number, _settings)) / (_settings.fromCents ? 1 : _precision), _settings);
1604
+ return currency(
1605
+ (intValue += parse(number, _settings)) / (_settings.fromCents ? 1 : _precision),
1606
+ _settings
1607
+ );
1561
1608
  }
1562
1609
  subtract(number) {
1563
1610
  let { intValue, _settings, _precision } = this;
1564
- return currency((intValue -= parse(number, _settings)) / (_settings.fromCents ? 1 : _precision), _settings);
1611
+ return currency(
1612
+ (intValue -= parse(number, _settings)) / (_settings.fromCents ? 1 : _precision),
1613
+ _settings
1614
+ );
1565
1615
  }
1566
1616
  multiply(number) {
1567
1617
  let { intValue, _settings, _precision } = this;
1568
- return currency((intValue *= number) / (_settings.fromCents ? 1 : pow(_precision)), _settings);
1618
+ return currency(
1619
+ (intValue *= number) / (_settings.fromCents ? 1 : pow(_precision)),
1620
+ _settings
1621
+ );
1569
1622
  }
1570
1623
  divide(number) {
1571
1624
  let { intValue, _settings } = this;
@@ -1596,13 +1649,18 @@ var _Currency = class {
1596
1649
  }
1597
1650
  toString() {
1598
1651
  let { intValue, _precision, _settings } = this;
1599
- return rounding(intValue / _precision, _settings.increment).toFixed(_settings.precision);
1652
+ return rounding(intValue / _precision, _settings.increment).toFixed(
1653
+ _settings.precision
1654
+ );
1600
1655
  }
1601
1656
  toJSON() {
1602
1657
  return this.value;
1603
1658
  }
1604
1659
  static sum(...array) {
1605
- return arrayFlatten(array).reduce((acc, value) => currency(acc).add(value), this.zero);
1660
+ return arrayFlatten(array).reduce(
1661
+ (acc, value) => currency(acc).add(value),
1662
+ this.zero
1663
+ );
1606
1664
  }
1607
1665
  static avg(...array) {
1608
1666
  let arr = arrayFlatten(array);
@@ -1640,7 +1698,10 @@ function parse(value, opts, useRounding = true) {
1640
1698
  __name(parse, "parse");
1641
1699
  function format(currency2, settings) {
1642
1700
  let { pattern: pattern2, negativePattern, symbol, separator: separator2, decimal: decimal2, groups } = settings, split = ("" + currency2).replace(/^-/, "").split("."), dollars = split[0], cents = split[1];
1643
- return (currency2.value >= 0 ? pattern2 : negativePattern).replace("!", symbol).replace("#", dollars.replace(groups, "$1" + separator2) + (cents ? decimal2 + cents : ""));
1701
+ return (currency2.value >= 0 ? pattern2 : negativePattern).replace("!", symbol).replace(
1702
+ "#",
1703
+ dollars.replace(groups, "$1" + separator2) + (cents ? decimal2 + cents : "")
1704
+ );
1644
1705
  }
1645
1706
  __name(format, "format");
1646
1707
 
@@ -1663,7 +1724,11 @@ function dayToParts(day2) {
1663
1724
  }
1664
1725
  __name(dayToParts, "dayToParts");
1665
1726
  function dayToDate(day2, gmt = false) {
1666
- return gmt ? new Date(`${dayToString(day2)}T00:00:00.000Z`) : new Date(day2 / 1e4, day2 / 100 % 100 - 1, day2 % 100);
1727
+ return gmt ? new Date(`${dayToString(day2)}T00:00:00.000Z`) : new Date(
1728
+ day2 / 1e4,
1729
+ day2 / 100 % 100 - 1,
1730
+ day2 % 100
1731
+ );
1667
1732
  }
1668
1733
  __name(dayToDate, "dayToDate");
1669
1734
  function dayFromToday() {
@@ -1851,7 +1916,9 @@ function waitOn(obj, event, timeoutMS = 1e3) {
1851
1916
  }
1852
1917
  __name(waitOn, "waitOn");
1853
1918
  function isPromise(value) {
1854
- return Boolean(value && (value instanceof Promise || typeof value.then === "function"));
1919
+ return Boolean(
1920
+ value && (value instanceof Promise || typeof value.then === "function")
1921
+ );
1855
1922
  }
1856
1923
  __name(isPromise, "isPromise");
1857
1924
  function promisify(value) {
@@ -1887,7 +1954,9 @@ var Day = class {
1887
1954
  return Day.from(+dateString.replace(/[^0-9]/g, "").slice(0, 8));
1888
1955
  }
1889
1956
  static fromDate(date, gmt = false) {
1890
- return gmt ? Day.fromString(date.toISOString().substr(0, 10)) : Day.from(date.getFullYear() * 1e4 + (date.getMonth() + 1) * 100 + date.getDate());
1957
+ return gmt ? Day.fromString(date.toISOString().substr(0, 10)) : Day.from(
1958
+ date.getFullYear() * 1e4 + (date.getMonth() + 1) * 100 + date.getDate()
1959
+ );
1891
1960
  }
1892
1961
  static fromDateGMT(date) {
1893
1962
  return Day.fromDate(date, true);
@@ -1921,7 +1990,11 @@ var Day = class {
1921
1990
  return baseString.slice(0, 4) + sep + baseString.slice(4, 6) + sep + baseString.slice(6, 8);
1922
1991
  }
1923
1992
  toDate(gmt = false) {
1924
- return gmt ? new Date(`${this.toString()}T00:00:00.000Z`) : new Date(this.days / 1e4, this.days / 100 % 100 - 1, this.days % 100);
1993
+ return gmt ? new Date(`${this.toString()}T00:00:00.000Z`) : new Date(
1994
+ this.days / 1e4,
1995
+ this.days / 100 % 100 - 1,
1996
+ this.days % 100
1997
+ );
1925
1998
  }
1926
1999
  toDateGMT() {
1927
2000
  return this.toDate(true);
@@ -1936,7 +2009,9 @@ var Day = class {
1936
2009
  return Math.floor(this.days % 100);
1937
2010
  }
1938
2011
  dayOffset(offset) {
1939
- return Day.fromDateGMT(new Date(this.toDateGMT().getTime() + offset * DAY_MS));
2012
+ return Day.fromDateGMT(
2013
+ new Date(this.toDateGMT().getTime() + offset * DAY_MS)
2014
+ );
1940
2015
  }
1941
2016
  monthStart() {
1942
2017
  return Day.from([this.year, this.month, 1]);
@@ -1954,7 +2029,9 @@ var Day = class {
1954
2029
  }
1955
2030
  daysUntil(otherDay) {
1956
2031
  var _a2;
1957
- return Math.round((((_a2 = new Day(otherDay)) == null ? void 0 : _a2.toDateGMT().getTime()) - this.toDateGMT().getTime()) / DAY_MS);
2032
+ return Math.round(
2033
+ (((_a2 = new Day(otherDay)) == null ? void 0 : _a2.toDateGMT().getTime()) - this.toDateGMT().getTime()) / DAY_MS
2034
+ );
1958
2035
  }
1959
2036
  yesterday() {
1960
2037
  return this.dayOffset(-1);
@@ -2030,7 +2107,9 @@ function toValidFilename(string) {
2030
2107
  }
2031
2108
  const replacement = "_";
2032
2109
  if (filenameReservedRegex().test(replacement) && reControlChars.test(replacement)) {
2033
- throw new Error("Replacement string cannot contain reserved filename characters");
2110
+ throw new Error(
2111
+ "Replacement string cannot contain reserved filename characters"
2112
+ );
2034
2113
  }
2035
2114
  string = string.replace(filenameReservedRegex(), replacement).replace(reControlChars, replacement).replace(reRelativePath, replacement).replace(reTrailingPeriods, "");
2036
2115
  string = windowsReservedNameRegex().test(string) ? string + replacement : string;
@@ -2121,7 +2200,9 @@ var findURL = /((?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?
2121
2200
  function linkifyPlainText(text) {
2122
2201
  return text.split(findURL).map((part, i) => {
2123
2202
  const escapedPart = escapeHTML(part);
2124
- return i % 2 ? `<a target="_blank" href="${escapedPart}">${toHumanReadableUrl(escapedPart)}</a>` : escapedPart;
2203
+ return i % 2 ? `<a target="_blank" href="${escapedPart}">${toHumanReadableUrl(
2204
+ escapedPart
2205
+ )}</a>` : escapedPart;
2125
2206
  }).join("");
2126
2207
  }
2127
2208
  __name(linkifyPlainText, "linkifyPlainText");
@@ -2138,7 +2219,9 @@ function encodeQuery(data) {
2138
2219
  }
2139
2220
  for (let v of value) {
2140
2221
  if (v != null) {
2141
- pairs.push(encodeURIComponent(key) + "=" + encodeURIComponent(String(v)));
2222
+ pairs.push(
2223
+ encodeURIComponent(key) + "=" + encodeURIComponent(String(v))
2224
+ );
2142
2225
  }
2143
2226
  }
2144
2227
  }
@@ -2429,12 +2512,16 @@ function useDefer(config = {}) {
2429
2512
  let result = step();
2430
2513
  if (isPromise(result)) {
2431
2514
  if (expectSync)
2432
- throw new Error(`Expected sync only function, but found async: ${step}`);
2515
+ throw new Error(
2516
+ `Expected sync only function, but found async: ${step}`
2517
+ );
2433
2518
  await result;
2434
2519
  }
2435
2520
  } else if (isPromise(step)) {
2436
2521
  if (expectSync)
2437
- throw new Error(`Expected sync only function, but found async: ${step}`);
2522
+ throw new Error(
2523
+ `Expected sync only function, but found async: ${step}`
2524
+ );
2438
2525
  await step;
2439
2526
  } else {
2440
2527
  throw new Error(`Unhandled disposable: ${step}`);
@@ -2603,7 +2690,9 @@ var Emitter = class {
2603
2690
  };
2604
2691
  }
2605
2692
  off(event, listener) {
2606
- this.subscribers[event] = (this.subscribers[event] || []).filter((f) => listener && f !== listener);
2693
+ this.subscribers[event] = (this.subscribers[event] || []).filter(
2694
+ (f) => listener && f !== listener
2695
+ );
2607
2696
  return this;
2608
2697
  }
2609
2698
  removeAllListeners() {
@@ -2765,7 +2854,10 @@ function qid() {
2765
2854
  }
2766
2855
  __name(qid, "qid");
2767
2856
  var pattern = "10000000-1000-4000-8000-100000000000";
2768
- var uuidv4 = typeof crypto !== "undefined" && crypto.randomUUID != null ? crypto.randomUUID : () => pattern.replace(/[018]/g, (c) => (c ^ randomUint8Array(1)[0] & 15 >> c / 4).toString(16));
2857
+ var uuidv4 = typeof crypto !== "undefined" && crypto.randomUUID != null ? crypto.randomUUID : () => pattern.replace(
2858
+ /[018]/g,
2859
+ (c) => (c ^ randomUint8Array(1)[0] & 15 >> c / 4).toString(16)
2860
+ );
2769
2861
  var ReferenceDateInMS = 16e11;
2770
2862
  function longToByteArray(long) {
2771
2863
  var byteArray = new Uint8Array([0, 0, 0, 0, 0, 0]);
@@ -2792,9 +2884,11 @@ function suidDate(id) {
2792
2884
  }
2793
2885
  __name(suidDate, "suidDate");
2794
2886
  function suidBytesDate(id) {
2795
- return new Date(ReferenceDateInMS + id.slice(0, 6).reduce((acc, byte) => {
2796
- return acc * 256 + byte;
2797
- }, 0));
2887
+ return new Date(
2888
+ ReferenceDateInMS + id.slice(0, 6).reduce((acc, byte) => {
2889
+ return acc * 256 + byte;
2890
+ }, 0)
2891
+ );
2798
2892
  }
2799
2893
  __name(suidBytesDate, "suidBytesDate");
2800
2894
 
@@ -2840,7 +2934,13 @@ function usePool(config = {}) {
2840
2934
  presentMax += max;
2841
2935
  presentResolved += state === 2 /* finished */ ? max : Math.min(max, resolved);
2842
2936
  }
2843
- events.emit("didUpdate", countMax, countResolved, presentMax, presentResolved);
2937
+ events.emit(
2938
+ "didUpdate",
2939
+ countMax,
2940
+ countResolved,
2941
+ presentMax,
2942
+ presentResolved
2943
+ );
2844
2944
  }
2845
2945
  __name(didUpdate, "didUpdate");
2846
2946
  function performNext() {
@@ -2849,7 +2949,9 @@ function usePool(config = {}) {
2849
2949
  didFinish();
2850
2950
  if (currentParallel >= maxParallel)
2851
2951
  return;
2852
- let waitingTasks = Object.values(tasks).filter((t) => t.state === 0 /* waiting */);
2952
+ let waitingTasks = Object.values(tasks).filter(
2953
+ (t) => t.state === 0 /* waiting */
2954
+ );
2853
2955
  if (waitingTasks.length > 0) {
2854
2956
  let taskInfo;
2855
2957
  for (let t of waitingTasks) {
@@ -3082,10 +3184,7 @@ var SerialQueue = class extends Emitter {
3082
3184
  }
3083
3185
  };
3084
3186
  __name(SerialQueue, "SerialQueue");
3085
-
3086
- // src/common/exec/throttle-debounce.ts
3087
- var DEBUG = false;
3088
- var log6 = DEBUG ? Logger("zeed:throttle") : () => {
3187
+ var log6 = () => {
3089
3188
  };
3090
3189
  function throttle(callback, opt = {}) {
3091
3190
  const { delay = 100, trailing = true, leading = true } = opt;
@@ -3118,10 +3217,8 @@ function throttle(callback, opt = {}) {
3118
3217
  __name(exec, "exec");
3119
3218
  trailingExec = exec;
3120
3219
  if (elapsed > delay || !timeoutID) {
3121
- DEBUG && log6("elapsed", debugElapsed());
3122
3220
  if (leading) {
3123
3221
  if (elapsed > delay) {
3124
- DEBUG && log6("\u{1F680} leading", debugElapsed());
3125
3222
  exec();
3126
3223
  } else {
3127
3224
  ++visited;
@@ -3132,16 +3229,13 @@ function throttle(callback, opt = {}) {
3132
3229
  clearExistingTimeout();
3133
3230
  checkpoint = now;
3134
3231
  timeoutID = setTimeout(() => {
3135
- DEBUG && log6("\u23F1 reached timeout", debugElapsed());
3136
3232
  timeoutID = 0;
3137
3233
  if (trailing && (!leading || visited > 0)) {
3138
- DEBUG && log6("\u{1F680} trailing", debugElapsed());
3139
3234
  trailingExec == null ? void 0 : trailingExec();
3140
3235
  }
3141
3236
  }, timeout2);
3142
3237
  } else {
3143
3238
  ++visited;
3144
- DEBUG && log6("visited", debugElapsed());
3145
3239
  }
3146
3240
  }
3147
3241
  __name(wrapper, "wrapper");
@@ -3177,7 +3271,9 @@ __name(debounce, "debounce");
3177
3271
 
3178
3272
  // src/common/localhost.ts
3179
3273
  function isLocalHost(hostname = ((_a2) => (_a2 = globalThis == null ? void 0 : globalThis.location) == null ? void 0 : _a2.hostname)() ?? "") {
3180
- return ["::ffff:127.0.0.1", "localhost", "127.0.0.1", "", "::1", "::"].includes(hostname) || hostname.startsWith("192.168.") || hostname.startsWith("10.0.") || hostname.endsWith(".local");
3274
+ return ["::ffff:127.0.0.1", "localhost", "127.0.0.1", "", "::1", "::"].includes(
3275
+ hostname
3276
+ ) || hostname.startsWith("192.168.") || hostname.startsWith("10.0.") || hostname.endsWith(".local");
3181
3277
  }
3182
3278
  __name(isLocalHost, "isLocalHost");
3183
3279
 
@@ -3384,7 +3480,12 @@ function useMessageHub(opt = {}) {
3384
3480
  args,
3385
3481
  id
3386
3482
  });
3387
- return tryTimeout(new Promise((resolve6, reject) => waitingForResponse[id] = [resolve6, reject]), timeout2);
3483
+ return tryTimeout(
3484
+ new Promise(
3485
+ (resolve6, reject) => waitingForResponse[id] = [resolve6, reject]
3486
+ ),
3487
+ timeout2
3488
+ );
3388
3489
  }, "fetchMessage");
3389
3490
  if (opt.channel) {
3390
3491
  connect(opt.channel);
@@ -3514,26 +3615,29 @@ function useRPC(functions, options) {
3514
3615
  rpcPromiseMap.delete(id);
3515
3616
  }
3516
3617
  });
3517
- return new Proxy({}, {
3518
- get(_, method) {
3519
- const sendEvent = /* @__PURE__ */ __name((...args) => {
3520
- post(serialize([2 /* event */, args, null, method]));
3521
- }, "sendEvent");
3522
- if (options.onlyEvents || eventNames.includes(method)) {
3523
- sendEvent.asEvent = sendEvent;
3524
- return sendEvent;
3618
+ return new Proxy(
3619
+ {},
3620
+ {
3621
+ get(_, method) {
3622
+ const sendEvent = /* @__PURE__ */ __name((...args) => {
3623
+ post(serialize([2 /* event */, args, null, method]));
3624
+ }, "sendEvent");
3625
+ if (options.onlyEvents || eventNames.includes(method)) {
3626
+ sendEvent.asEvent = sendEvent;
3627
+ return sendEvent;
3628
+ }
3629
+ const sendCall = /* @__PURE__ */ __name((...args) => {
3630
+ return new Promise((resolve6, reject) => {
3631
+ const id = rpcCounter++;
3632
+ rpcPromiseMap.set(id, { resolve: resolve6, reject });
3633
+ post(serialize([1 /* request */, args, id, method]));
3634
+ });
3635
+ }, "sendCall");
3636
+ sendCall.asEvent = sendEvent;
3637
+ return sendCall;
3525
3638
  }
3526
- const sendCall = /* @__PURE__ */ __name((...args) => {
3527
- return new Promise((resolve6, reject) => {
3528
- const id = rpcCounter++;
3529
- rpcPromiseMap.set(id, { resolve: resolve6, reject });
3530
- post(serialize([1 /* request */, args, id, method]));
3531
- });
3532
- }, "sendCall");
3533
- sendCall.asEvent = sendEvent;
3534
- return sendCall;
3535
3639
  }
3536
- });
3640
+ );
3537
3641
  }
3538
3642
  __name(useRPC, "useRPC");
3539
3643
 
@@ -3564,7 +3668,11 @@ async function fetchBasic(url, fetchOptions = {}, fetchFn = fetch) {
3564
3668
  let auth = parseBasicAuth(String(url));
3565
3669
  if (auth) {
3566
3670
  url = auth.url;
3567
- fetchOptions = deepMerge({}, fetchOptions, fetchOptionsBasicAuth(auth.username, auth.password));
3671
+ fetchOptions = deepMerge(
3672
+ {},
3673
+ fetchOptions,
3674
+ fetchOptionsBasicAuth(auth.username, auth.password)
3675
+ );
3568
3676
  }
3569
3677
  if (fetchOptions.headers != null && !(fetchOptions.headers instanceof Headers)) {
3570
3678
  fetchOptions.headers = new Headers(fetchOptions.headers);
@@ -3575,7 +3683,9 @@ async function fetchBasic(url, fetchOptions = {}, fetchFn = fetch) {
3575
3683
  return response;
3576
3684
  }
3577
3685
  try {
3578
- log7.warn(`Fetch of ${url} with ${fetchOptions} returned status=${response.status}`);
3686
+ log7.warn(
3687
+ `Fetch of ${url} with ${fetchOptions} returned status=${response.status}`
3688
+ );
3579
3689
  log7.warn(`Response: ${await response.text()}`);
3580
3690
  } catch (err) {
3581
3691
  log7.error("Exception:", err);
@@ -3587,15 +3697,19 @@ async function fetchBasic(url, fetchOptions = {}, fetchFn = fetch) {
3587
3697
  __name(fetchBasic, "fetchBasic");
3588
3698
  async function fetchJson(url, fetchOptions = {}, fetchFn = fetch) {
3589
3699
  try {
3590
- let res = await fetchBasic(url, [
3591
- {
3592
- method: "GET",
3593
- headers: {
3594
- Accept: "application/json"
3595
- }
3596
- },
3597
- fetchOptions
3598
- ], fetchFn);
3700
+ let res = await fetchBasic(
3701
+ url,
3702
+ [
3703
+ {
3704
+ method: "GET",
3705
+ headers: {
3706
+ Accept: "application/json"
3707
+ }
3708
+ },
3709
+ fetchOptions
3710
+ ],
3711
+ fetchFn
3712
+ );
3599
3713
  if (res) {
3600
3714
  return await res.json();
3601
3715
  }
@@ -3606,7 +3720,11 @@ async function fetchJson(url, fetchOptions = {}, fetchFn = fetch) {
3606
3720
  __name(fetchJson, "fetchJson");
3607
3721
  async function fetchText(url, fetchOptions = {}, fetchFn = fetch) {
3608
3722
  try {
3609
- let res = await fetchBasic(url, [defaultOptions, { method: "GET" }, fetchOptions], fetchFn);
3723
+ let res = await fetchBasic(
3724
+ url,
3725
+ [defaultOptions, { method: "GET" }, fetchOptions],
3726
+ fetchFn
3727
+ );
3610
3728
  if (res) {
3611
3729
  return await res.text();
3612
3730
  }
@@ -3715,7 +3833,7 @@ function useExitHandler(handler) {
3715
3833
  __name(useExitHandler, "useExitHandler");
3716
3834
 
3717
3835
  // src/common/storage/memstorage.ts
3718
- var log8 = Logger("zeed:memstorage");
3836
+ Logger("zeed:memstorage");
3719
3837
  var MemStorage = class {
3720
3838
  constructor(opt = {}) {
3721
3839
  this.store = {};
@@ -3740,6 +3858,78 @@ var MemStorage = class {
3740
3858
  };
3741
3859
  __name(MemStorage, "MemStorage");
3742
3860
 
3861
+ // src/node/args.ts
3862
+ function parseArgs(config = {}) {
3863
+ const {
3864
+ args = process.argv.slice(1),
3865
+ alias = {},
3866
+ normalize: normalize2 = toCamelCase,
3867
+ booleanArgs = [],
3868
+ listArgs = [],
3869
+ numberArgs = []
3870
+ } = config;
3871
+ let nameToAlias = Object.entries(alias).reduce((map, curr) => {
3872
+ let [name, values] = curr;
3873
+ if (typeof values === "string")
3874
+ values = [values];
3875
+ for (let value of values) {
3876
+ map[normalize2(value)] = normalize2(name);
3877
+ }
3878
+ return map;
3879
+ }, {});
3880
+ let opts = {
3881
+ _: []
3882
+ };
3883
+ function setOpt(name, value) {
3884
+ if (opts[name] == null) {
3885
+ opts[name] = value;
3886
+ } else if (typeof opts[name] === "boolean") {
3887
+ opts[name] = value;
3888
+ } else if (Array.isArray(opts[name])) {
3889
+ opts[name].push(value);
3890
+ } else {
3891
+ opts[name] = [opts[name], value];
3892
+ }
3893
+ }
3894
+ __name(setOpt, "setOpt");
3895
+ let argList = [...args];
3896
+ let arg;
3897
+ while (arg = argList.shift()) {
3898
+ let value;
3899
+ if (/^--?/.test(arg)) {
3900
+ let key = arg.replace(/^--?/, "");
3901
+ if (arg.includes("=")) {
3902
+ let [name, valuePart] = key.split("=", 2);
3903
+ key = name.trim();
3904
+ value = valuePart.trim();
3905
+ }
3906
+ key = normalize2(key);
3907
+ key = nameToAlias[key] ?? key;
3908
+ if (booleanArgs.includes(key)) {
3909
+ setOpt(key, true);
3910
+ } else {
3911
+ value = value ?? argList.shift() ?? "";
3912
+ if (numberArgs.includes(key)) {
3913
+ value = Number(value ?? 0);
3914
+ }
3915
+ if (listArgs.includes(key)) {
3916
+ if (Array.isArray(opts[key])) {
3917
+ opts[key].push(value);
3918
+ } else {
3919
+ opts[key] = [value];
3920
+ }
3921
+ } else {
3922
+ setOpt(key, value);
3923
+ }
3924
+ }
3925
+ } else {
3926
+ opts._.push(arg);
3927
+ }
3928
+ }
3929
+ return opts;
3930
+ }
3931
+ __name(parseArgs, "parseArgs");
3932
+
3743
3933
  // src/node/clipboard.ts
3744
3934
  var import_child_process = require("child_process");
3745
3935
  function pbcopy(data) {
@@ -3753,16 +3943,6 @@ function pbcopy(data) {
3753
3943
  }
3754
3944
  __name(pbcopy, "pbcopy");
3755
3945
 
3756
- // src/node/crypto.ts
3757
- var import_crypto3 = __toESM(require("crypto"), 1);
3758
- try {
3759
- if (import_crypto3.default && import_crypto3.default.webcrypto && typeof globalThis !== "undefined" && typeof globalThis.crypto === "undefined") {
3760
- globalThis.crypto = import_crypto3.default.webcrypto;
3761
- }
3762
- } catch (err) {
3763
- console.warn("Failed to polyfill webcrypto", err);
3764
- }
3765
-
3766
3946
  // src/node/env.ts
3767
3947
  var import_fs = __toESM(require("fs"), 1);
3768
3948
  var import_path = require("path");
@@ -3791,7 +3971,9 @@ function parse2(src, options = {}) {
3791
3971
  }
3792
3972
  obj[key] = val;
3793
3973
  } else {
3794
- log9.debug(`did not match key and value when parsing line ${idx + 1}: ${line}`);
3974
+ log9.debug(
3975
+ `did not match key and value when parsing line ${idx + 1}: ${line}`
3976
+ );
3795
3977
  }
3796
3978
  });
3797
3979
  return obj;
@@ -3817,7 +3999,11 @@ function setupEnv(options = {}) {
3817
3999
  try {
3818
4000
  const parsedEnv = import_fs.default.existsSync(dotenvPath) ? parse2(import_fs.default.readFileSync(dotenvPath, { encoding }), { debug }) : {};
3819
4001
  const parsedEnvLocal = import_fs.default.existsSync(dotenvPath + ".local") ? parse2(import_fs.default.readFileSync(dotenvPath + ".local", { encoding }), { debug }) : {};
3820
- const parsed = Object.assign({}, parsedEnv, parsedEnvLocal);
4002
+ const parsed = Object.assign(
4003
+ {},
4004
+ parsedEnv,
4005
+ parsedEnvLocal
4006
+ );
3821
4007
  let env = (options == null ? void 0 : options.env) ?? process.env;
3822
4008
  Object.entries(parsed).forEach(([key, value]) => {
3823
4009
  if (typeof (options == null ? void 0 : options.prefix) === "string") {
@@ -3928,7 +4114,9 @@ var FileStorage = class {
3928
4114
  allKeys() {
3929
4115
  if (this.fileKeys == null) {
3930
4116
  try {
3931
- this.fileKeys = (0, import_fs2.readdirSync)(this.dirname, { withFileTypes: true }).filter((item) => !item.isDirectory() && item.name.endsWith(this.extension)).map((item) => item.name.slice(0, -this.extensionLength)) || [];
4117
+ this.fileKeys = (0, import_fs2.readdirSync)(this.dirname, { withFileTypes: true }).filter(
4118
+ (item) => !item.isDirectory() && item.name.endsWith(this.extension)
4119
+ ).map((item) => item.name.slice(0, -this.extensionLength)) || [];
3932
4120
  } catch (err) {
3933
4121
  }
3934
4122
  }
@@ -4051,7 +4239,9 @@ function getStackLlocationList(stack) {
4051
4239
  if (typeof stack !== "string")
4052
4240
  return [];
4053
4241
  return ((_b2 = (_a2 = stack == null ? void 0 : stack.split("\n")) == null ? void 0 : _a2.map((rawLine) => {
4054
- let m = rawLine.match(/^\s+at.*(\((.*)\)|file:\/\/(.*)$)|\s*at\s(\/.*)$/);
4242
+ let m = rawLine.match(
4243
+ /^\s+at.*(\((.*)\)|file:\/\/(.*)$)|\s*at\s(\/.*)$/
4244
+ );
4055
4245
  if (m) {
4056
4246
  let line = m[3] || m[2] || m[4];
4057
4247
  if (line.endsWith(")"))
@@ -4242,7 +4432,10 @@ function LoggerNodeHandler(opt = {}) {
4242
4432
  if (stack) {
4243
4433
  let line = "";
4244
4434
  if (typeof stack === "boolean") {
4245
- line = getSourceLocationByPrecedingPattern(["at Function.", "at null.log (", "at log ("], true);
4435
+ line = getSourceLocationByPrecedingPattern(
4436
+ ["at Function.", "at null.log (", "at log ("],
4437
+ true
4438
+ );
4246
4439
  if (!line) {
4247
4440
  line = getSourceLocation(0, true);
4248
4441
  }
@@ -4269,7 +4462,10 @@ function LoggerNodeHandler(opt = {}) {
4269
4462
  break;
4270
4463
  case 3 /* error */:
4271
4464
  if (levelHelper)
4272
- args[0] = (colors2 ? colorString(`E${sep}${charLevel}${charLevel}${charLevel} `, 1 /* RED */) : `E${sep}${charLevel}${charLevel}${charLevel} `) + args[0];
4465
+ args[0] = (colors2 ? colorString(
4466
+ `E${sep}${charLevel}${charLevel}${charLevel} `,
4467
+ 1 /* RED */
4468
+ ) : `E${sep}${charLevel}${charLevel}${charLevel} `) + args[0];
4273
4469
  log11(...args);
4274
4470
  break;
4275
4471
  default:
@@ -4281,296 +4477,4 @@ function LoggerNodeHandler(opt = {}) {
4281
4477
  };
4282
4478
  }
4283
4479
  __name(LoggerNodeHandler, "LoggerNodeHandler");
4284
-
4285
- // src/node/log-context-node.ts
4286
- function setupLogContextNode() {
4287
- let handlers = [
4288
- LoggerNodeHandler({
4289
- padding: 32,
4290
- nameBrackets: false
4291
- })
4292
- ];
4293
- let logFilePath = process.env.ZEED_LOG ?? process.env.LOG;
4294
- if (logFilePath) {
4295
- handlers.unshift(LoggerFileHandler(toPath(logFilePath)));
4296
- }
4297
- Logger.setHandlers(handlers);
4298
- }
4299
- __name(setupLogContextNode, "setupLogContextNode");
4300
- setupLogContextNode();
4301
- // Annotate the CommonJS export names for ESM import in node:
4302
- 0 && (module.exports = {
4303
- Channel,
4304
- CryptoEncoder,
4305
- Currency,
4306
- DAY_MS,
4307
- Day,
4308
- Emitter,
4309
- FileStorage,
4310
- JsonEncoder,
4311
- LocalChannel,
4312
- LogLevel,
4313
- LogLevelAlias,
4314
- Logger,
4315
- LoggerConsoleHandler,
4316
- LoggerContext,
4317
- LoggerFileHandler,
4318
- LoggerMemoryHandler,
4319
- LoggerNodeHandler,
4320
- MemStorage,
4321
- NoopEncoder,
4322
- PoolTaskIdConflictResolution,
4323
- PoolTaskState,
4324
- PubSub,
4325
- SerialQueue,
4326
- Uint8ArrayToHexDump,
4327
- Uint8ArrayToJson,
4328
- Uint8ArrayToString,
4329
- XRX,
4330
- _decodeUtf8Polyfill,
4331
- _encodeUtf8Polyfill,
4332
- arrayAvg,
4333
- arrayBatches,
4334
- arrayEmptyInPlace,
4335
- arrayFilterInPlace,
4336
- arrayFlatten,
4337
- arrayIntersection,
4338
- arrayIsEqual,
4339
- arrayMax,
4340
- arrayMin,
4341
- arrayMinus,
4342
- arrayRandomElement,
4343
- arrayRemoveElement,
4344
- arraySetElement,
4345
- arrayShuffle,
4346
- arrayShuffleForce,
4347
- arrayShuffleInPlace,
4348
- arraySorted,
4349
- arraySortedNumbers,
4350
- arraySum,
4351
- arraySymmetricDifference,
4352
- arrayToggleInPlace,
4353
- arrayUnion,
4354
- arrayUnique,
4355
- avg,
4356
- between,
4357
- cloneJsonObject,
4358
- cloneObject,
4359
- cmp,
4360
- colorString,
4361
- colorStringList,
4362
- composeOrderby,
4363
- createArray,
4364
- createLocalChannelPair,
4365
- createPromise,
4366
- createPromiseProxy,
4367
- csv,
4368
- currency,
4369
- dateStringToDays,
4370
- day,
4371
- dayDay,
4372
- dayDiff,
4373
- dayFromAny,
4374
- dayFromDate,
4375
- dayFromDateGMT,
4376
- dayFromParts,
4377
- dayFromString,
4378
- dayFromTimestamp,
4379
- dayFromToday,
4380
- dayMonth,
4381
- dayMonthStart,
4382
- dayOffset,
4383
- dayToDate,
4384
- dayToDateGMT,
4385
- dayToParts,
4386
- dayToString,
4387
- dayToTimestamp,
4388
- dayYear,
4389
- dayYearStart,
4390
- debounce,
4391
- decimal,
4392
- decimalCentsPart,
4393
- decimalFromCents,
4394
- decimalToCents,
4395
- decodeBase16,
4396
- decodeBase32,
4397
- decodeBase58,
4398
- decodeBase62,
4399
- decodeBase64,
4400
- decrypt,
4401
- deepEqual,
4402
- deepMerge,
4403
- deriveKeyPbkdf2,
4404
- detect,
4405
- digest,
4406
- empty,
4407
- encodeBase16,
4408
- encodeBase32,
4409
- encodeBase58,
4410
- encodeBase62,
4411
- encodeBase64,
4412
- encodeQuery,
4413
- encrypt,
4414
- endSortWeight,
4415
- ensureFolder,
4416
- ensureKey,
4417
- ensureKeyAsync,
4418
- equalBinary,
4419
- escapeHTML,
4420
- escapeRegExp,
4421
- exists,
4422
- fetchBasic,
4423
- fetchJson,
4424
- fetchOptionsBasicAuth,
4425
- fetchOptionsFormURLEncoded,
4426
- fetchOptionsJson,
4427
- fetchText,
4428
- fixBrokenUth8String,
4429
- forEachDay,
4430
- forTimes,
4431
- formatMessages,
4432
- formatMilliseconds,
4433
- fromBase64,
4434
- fromCamelCase,
4435
- getGlobal,
4436
- getGlobalContext,
4437
- getGlobalEmitter,
4438
- getNamespaceFilterString,
4439
- getNavigator,
4440
- getSecureRandom,
4441
- getSecureRandomIfPossible,
4442
- getSourceLocation,
4443
- getSourceLocationByPrecedingPattern,
4444
- getStack,
4445
- getStackLlocationList,
4446
- getTimestamp,
4447
- getWindow,
4448
- immediate,
4449
- isArray,
4450
- isBoolean,
4451
- isBrowser,
4452
- isEven,
4453
- isHalf,
4454
- isInteger,
4455
- isLocalHost,
4456
- isNullOrUndefined,
4457
- isNumber,
4458
- isObject,
4459
- isPrime,
4460
- isPrimeRX,
4461
- isPrimitive,
4462
- isPromise,
4463
- isRecord,
4464
- isSafeInteger,
4465
- isString,
4466
- isTimeout,
4467
- isUint8Array,
4468
- joinToUint8Array,
4469
- jsonStringify,
4470
- jsonToUint8Array,
4471
- last,
4472
- lazyListener,
4473
- linkifyPlainText,
4474
- loggerStackTraceDebug,
4475
- memoize,
4476
- messages,
4477
- moveSortWeight,
4478
- parseBasicAuth,
4479
- parseDate,
4480
- parseLogLevel,
4481
- parseOrderby,
4482
- parseQuery,
4483
- pbcopy,
4484
- platform,
4485
- promisify,
4486
- qid,
4487
- randomBoolean,
4488
- randomFloat,
4489
- randomInt,
4490
- randomUint8Array,
4491
- readText,
4492
- regExpEscape,
4493
- regExpString,
4494
- removeFolder,
4495
- renderMessages,
4496
- roundDown,
4497
- roundHalfAwayFromZero,
4498
- roundHalfDown,
4499
- roundHalfEven,
4500
- roundHalfOdd,
4501
- roundHalfTowardsZero,
4502
- roundHalfUp,
4503
- roundUp,
4504
- setupEnv,
4505
- size,
4506
- sleep,
4507
- sortedItems,
4508
- sortedOrderby,
4509
- startSortWeight,
4510
- stringToBoolean,
4511
- stringToFloat,
4512
- stringToInteger,
4513
- stringToPath,
4514
- stringToUInt8Array,
4515
- suid,
4516
- suidBytes,
4517
- suidBytesDate,
4518
- suidDate,
4519
- sum,
4520
- throttle,
4521
- timeout,
4522
- timeoutReached,
4523
- timoutError,
4524
- toBase64,
4525
- toBase64Url,
4526
- toBool,
4527
- toCamelCase,
4528
- toCapitalize,
4529
- toCapitalizeWords,
4530
- toFloat,
4531
- toHex,
4532
- toHumanReadableFilePath,
4533
- toHumanReadableUrl,
4534
- toInt,
4535
- toPath,
4536
- toString,
4537
- toUint8Array,
4538
- toValidFilename,
4539
- today,
4540
- tryTimeout,
4541
- uname,
4542
- unescapeHTML,
4543
- useAsyncMutex,
4544
- useBase,
4545
- useDefer,
4546
- useDispose,
4547
- useDisposer,
4548
- useEventListener,
4549
- useExitHandler,
4550
- useInterval,
4551
- useLevelFilter,
4552
- useMessageHub,
4553
- useMutex,
4554
- useNamespaceFilter,
4555
- usePool,
4556
- usePubSub,
4557
- useRPC,
4558
- useTimeout,
4559
- uuid,
4560
- uuid32Decode,
4561
- uuid32Encode,
4562
- uuid32bit,
4563
- uuidB32,
4564
- uuidBytes,
4565
- uuidDecode,
4566
- uuidEncode,
4567
- uuidv4,
4568
- valueToBoolean,
4569
- valueToFloat,
4570
- valueToInteger,
4571
- valueToPath,
4572
- valueToString,
4573
- waitOn,
4574
- writeText
4575
- });
4576
4480
  //# sourceMappingURL=index.node.cjs.map