@bleedingdev/modern-js-utils 3.9.3-ultramodern.6 → 3.9.3-ultramodern.8

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 (80) hide show
  1. package/dist/compiled/address/provenance.json +1 -1
  2. package/dist/compiled/browserslist/index.js +7 -7
  3. package/dist/compiled/browserslist/provenance.json +1 -1
  4. package/dist/compiled/chalk/provenance.json +1 -1
  5. package/dist/compiled/chokidar/index.d.mts +18 -9
  6. package/dist/compiled/chokidar/index.d.ts +18 -9
  7. package/dist/compiled/chokidar/index.js +194 -171
  8. package/dist/compiled/chokidar/index.mjs +94 -71
  9. package/dist/compiled/chokidar/provenance.json +2 -2
  10. package/dist/compiled/commander/provenance.json +1 -1
  11. package/dist/compiled/debug/provenance.json +1 -1
  12. package/dist/compiled/dotenv-expand/LICENSE +11 -7
  13. package/dist/compiled/dotenv-expand/declaration-licenses/dotenv-expand/LICENSE +11 -7
  14. package/dist/compiled/dotenv-expand/index.js +5545 -61
  15. package/dist/compiled/dotenv-expand/licenses-cjs.txt +12 -7
  16. package/dist/compiled/dotenv-expand/package.json +1 -1
  17. package/dist/compiled/dotenv-expand/provenance.json +7 -7
  18. package/dist/compiled/execa/index.d.mts +67 -33
  19. package/dist/compiled/execa/index.d.ts +67 -33
  20. package/dist/compiled/execa/index.js +1848 -1369
  21. package/dist/compiled/execa/index.mjs +1851 -1372
  22. package/dist/compiled/execa/package.json +1 -1
  23. package/dist/compiled/execa/provenance.json +3 -3
  24. package/dist/compiled/filesize/index.js +26 -25
  25. package/dist/compiled/filesize/index.js.LICENSE.txt +1 -1
  26. package/dist/compiled/filesize/index.mjs +25 -24
  27. package/dist/compiled/filesize/index.mjs.LICENSE.txt +1 -1
  28. package/dist/compiled/filesize/package.json +1 -1
  29. package/dist/compiled/filesize/provenance.json +4 -4
  30. package/dist/compiled/fs-extra/provenance.json +1 -1
  31. package/dist/compiled/glob/provenance.json +3 -3
  32. package/dist/compiled/globby/index.js +431 -139
  33. package/dist/compiled/globby/index.mjs +576 -284
  34. package/dist/compiled/globby/provenance.json +1 -1
  35. package/dist/compiled/gzip-size/provenance.json +1 -1
  36. package/dist/compiled/import-lazy/provenance.json +1 -1
  37. package/dist/compiled/inquirer/index.d.mts +10 -0
  38. package/dist/compiled/inquirer/index.d.ts +10 -0
  39. package/dist/compiled/inquirer/index.js +112 -96
  40. package/dist/compiled/inquirer/index.mjs +98 -82
  41. package/dist/compiled/inquirer/licenses-cjs.txt +26 -0
  42. package/dist/compiled/inquirer/licenses-esm.txt +26 -0
  43. package/dist/compiled/inquirer/package.json +1 -1
  44. package/dist/compiled/inquirer/provenance.json +18 -18
  45. package/dist/compiled/js-yaml/index.js +258 -208
  46. package/dist/compiled/js-yaml/index.js.LICENSE.txt +1 -1
  47. package/dist/compiled/js-yaml/index.mjs +328 -278
  48. package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -1
  49. package/dist/compiled/js-yaml/package.json +1 -1
  50. package/dist/compiled/js-yaml/provenance.json +4 -4
  51. package/dist/compiled/json5/provenance.json +1 -1
  52. package/dist/compiled/lodash/common/function.d.ts +2 -2
  53. package/dist/compiled/lodash/provenance.json +2 -2
  54. package/dist/compiled/mime-types/provenance.json +1 -1
  55. package/dist/compiled/minimist/provenance.json +1 -1
  56. package/dist/compiled/nanoid/index.d.mts +3 -3
  57. package/dist/compiled/nanoid/index.d.ts +3 -3
  58. package/dist/compiled/nanoid/index.js +10 -10
  59. package/dist/compiled/nanoid/index.mjs +10 -10
  60. package/dist/compiled/nanoid/package.json +1 -1
  61. package/dist/compiled/nanoid/provenance.json +4 -4
  62. package/dist/compiled/ora/index.js +310 -286
  63. package/dist/compiled/ora/index.mjs +651 -627
  64. package/dist/compiled/ora/provenance.json +1 -1
  65. package/dist/compiled/pkg-up/provenance.json +1 -1
  66. package/dist/compiled/semver/provenance.json +1 -1
  67. package/dist/compiled/signale/provenance.json +1 -1
  68. package/dist/compiled/slash/provenance.json +1 -1
  69. package/dist/compiled/strip-ansi/index.js +1 -1
  70. package/dist/compiled/strip-ansi/index.mjs +3 -3
  71. package/dist/compiled/strip-ansi/provenance.json +1 -1
  72. package/dist/compiled/tsconfig-paths/provenance.json +1 -1
  73. package/dist/compiled/upath/provenance.json +1 -1
  74. package/dist/compiled/url-join/index.js +56 -29
  75. package/dist/compiled/url-join/index.mjs +57 -30
  76. package/dist/compiled/url-join/package.json +1 -1
  77. package/dist/compiled/url-join/provenance.json +4 -4
  78. package/dist/types/cli/commands.d.ts +1 -1
  79. package/dist/types/compiled.d.ts +7 -7
  80. package/package.json +8 -8
@@ -1 +1 @@
1
- {"name":"execa","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"version":"10.0.1","funding":"https://github.com/sindresorhus/execa?sponsor=1","license":"MIT","types":"index.d.ts"}
1
+ {"name":"execa","author":"Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)","version":"10.1.1","funding":"https://github.com/sindresorhus/execa?sponsor=1","license":"MIT","types":"index.d.ts"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "execa",
3
3
  "sourceName": "execa",
4
- "version": "10.0.1",
4
+ "version": "10.1.1",
5
5
  "entrySha256": "a6cb277ae582a4259bf823949a11849872598897429cdc01ff677491ef60a51f",
6
6
  "license": "MIT",
7
7
  "repository": "sindresorhus/execa",
@@ -11,9 +11,9 @@
11
11
  "declarationSources": [
12
12
  {
13
13
  "name": "execa",
14
- "version": "10.0.1",
14
+ "version": "10.1.1",
15
15
  "license": "MIT"
16
16
  }
17
17
  ],
18
- "lockfileSha256": "486928a3a1b80a640cc67d3eeba705a259b639085fe1299dd4f566602b51ede6"
18
+ "lockfileSha256": "581051621a0801558eea756bc6ec0f69d769c47dae2513e61f5cf51555720121"
19
19
  }
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @copyright 2026 Jason Mulligan <jason.mulligan@avoidwork.com>
11
11
  * @license BSD-3-Clause
12
- * @version 11.0.25
12
+ * @version 11.0.26
13
13
  */ const i = "Invalid number";
14
14
  const n = "Invalid rounding method";
15
15
  const o = "Invalid precision";
@@ -132,9 +132,9 @@
132
132
  1e21,
133
133
  1e24
134
134
  ];
135
- const T = Math.log(1024);
136
- const z = Math.log(1e3);
137
- const F = {
135
+ const F = Math.log(1024);
136
+ const T = Math.log(1e3);
137
+ const z = {
138
138
  [r]: {
139
139
  isDecimal: true,
140
140
  ceil: 1e3,
@@ -152,7 +152,7 @@
152
152
  }
153
153
  };
154
154
  function getBaseConfiguration(e, t) {
155
- if (F[e]) return F[e];
155
+ if (z[e]) return z[e];
156
156
  if (2 === t) return {
157
157
  isDecimal: false,
158
158
  ceil: 1024,
@@ -164,10 +164,11 @@
164
164
  actualStandard: s
165
165
  };
166
166
  }
167
- function handleZeroValue(e, t, i, n, o, l, s, r, c, u, p) {
168
- let b;
169
- b = e > 0 ? 0..toPrecision(e) : c && u > 0 ? 0..toFixed(u) : 0;
167
+ function handleZeroValue(e, t, i, n, o, l, s, r, c, u, p, b = M, m = {}, y = M) {
168
+ let B;
169
+ B = e > 0 ? 0..toPrecision(e) : c && u > 0 ? 0..toFixed(u) : 0;
170
170
  if (s === h) return 0;
171
+ B = applyNumberFormatting(e <= 0 && (true === b || b.length > 0) ? 0 : B, b, m, y, c && e <= 0, u, Math.round);
171
172
  if (!p) p = i ? v.symbol[t].bits[0] : v.symbol[t].bytes[0];
172
173
  if (n[p]) p = n[p];
173
174
  if (o) if (l[0]) p = l[0];
@@ -177,16 +178,16 @@
177
178
  else p += f;
178
179
  }
179
180
  if (s === d) return [
180
- b,
181
+ B,
181
182
  p
182
183
  ];
183
184
  if (s === g) return {
184
- value: b,
185
+ value: B,
185
186
  symbol: p,
186
187
  exponent: 0,
187
188
  unit: p
188
189
  };
189
- return b + r + p;
190
+ return B + r + p;
190
191
  }
191
192
  function calculateOptimizedValue(e, t, i, n, o, l = true) {
192
193
  let s;
@@ -293,7 +294,7 @@
293
294
  function calculateExponent(e, t, i, n, o) {
294
295
  if ("string" == typeof t) t = Number(t);
295
296
  if (-1 === t || isNaN(t)) {
296
- t = n ? Math.floor(Math.log(e) / z) : Math.floor(Math.log(e) / T);
297
+ t = n ? Math.floor(Math.log(e) / T) : Math.floor(Math.log(e) / F);
297
298
  if (t < 0) t = 0;
298
299
  } else t = t < 0 ? 0 : Math.floor(t);
299
300
  if (t > 8) {
@@ -359,45 +360,45 @@
359
360
  return l;
360
361
  }
361
362
  function filesize(e, { bits: t = false, pad: o = false, base: l = -1, round: s = 2, locale: r = M, localeOptions: a = {}, separator: c = M, spacer: f = x, symbols: u = {}, standard: p = M, output: b = y, fullform: d = false, fullforms: g = [], exponent: N = -1, roundingMethod: S = B, precision: w = 0 } = {}) {
362
- let E = N, v, I = [], O = 0, T = M;
363
- const z = "bigint" == typeof e;
363
+ let E = N, v, I = [], O = 0, F = M;
364
+ const T = "bigint" == typeof e;
364
365
  v = Number(e);
365
366
  if (isNaN(v)) throw new TypeError(i);
366
367
  if (!isFinite(v)) throw new TypeError(i);
367
- const { isDecimal: F, ceil: P, actualStandard: C } = getBaseConfiguration(p, l);
368
+ const { isDecimal: z, ceil: P, actualStandard: C } = getBaseConfiguration(p, l);
368
369
  const D = true === d, V = v < 0, $ = Math[S];
369
370
  if (typeof $ !== m) throw new TypeError(n);
370
371
  if (V) v = -v;
371
- if (0 === v) return handleZeroValue(w, C, t, u, D, g, b, f, o, s);
372
- const Z = z ? V ? -BigInt(e) : BigInt(e) : null;
372
+ if (0 === v) return handleZeroValue(w, C, t, u, D, g, b, f, o, s, void 0, r, a, c);
373
+ const Z = T ? V ? -BigInt(e) : BigInt(e) : null;
373
374
  let j = w;
374
- if (z) {
375
- const { e: e, precision: t } = calculateBigIntExponent(Z, E, N, F, w);
375
+ if (T) {
376
+ const { e: e, precision: t } = calculateBigIntExponent(Z, E, N, z, w);
376
377
  E = e;
377
378
  j = t;
378
379
  } else {
379
- const { e: e, precision: t } = calculateExponent(v, E, N, F, w);
380
+ const { e: e, precision: t } = calculateExponent(v, E, N, z, w);
380
381
  E = e;
381
382
  j = t;
382
383
  }
383
384
  const G = -1 === N || isNaN(N);
384
385
  let k;
385
- k = z ? calculateBigIntValue(Z, E, F, t, P, G) : calculateOptimizedValue(v, E, F, t, P, G);
386
+ k = T ? calculateBigIntValue(Z, E, z, t, P, G) : calculateOptimizedValue(v, E, z, t, P, G);
386
387
  O = k.result;
387
388
  E = k.e;
388
389
  const J = applyRounding(O, P, E, s, $, G);
389
390
  I[0] = J.value;
390
391
  E = J.e;
391
392
  if (j > 0) {
392
- const e = applyPrecisionHandling(I[0], j, E, v, F, t, P, $, s, N);
393
+ const e = applyPrecisionHandling(I[0], j, E, v, z, t, P, $, s, N);
393
394
  I[0] = e.value;
394
395
  E = e.e;
395
396
  }
396
397
  if (b === h) return E;
397
- T = resolveSymbol(C, t, E, F);
398
- I[1] = T;
398
+ F = resolveSymbol(C, t, E, z);
399
+ I[1] = F;
399
400
  decorateResult(I, V, u, r, a, c, o, s, D, g, C, E, t, $);
400
- return formatOutput(I, E, T, b, f);
401
+ return formatOutput(I, E, F, b, f);
401
402
  }
402
403
  function partial({ bits: e = false, pad: t = false, base: i = -1, round: n = 2, locale: o = M, separator: l = M, spacer: s = x, standard: r = M, output: a = y, fullform: c = false, exponent: f = -1, roundingMethod: u = B, precision: p = 0, localeOptions: b = {}, symbols: d = {}, fullforms: m = [] } = {}) {
403
404
  function safeClone(e) {
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @copyright 2026 Jason Mulligan <jason.mulligan@avoidwork.com>
5
5
  * @license BSD-3-Clause
6
- * @version 11.0.25
6
+ * @version 11.0.26
7
7
  */
@@ -23,7 +23,7 @@ e.d(t, {
23
23
  *
24
24
  * @copyright 2026 Jason Mulligan <jason.mulligan@avoidwork.com>
25
25
  * @license BSD-3-Clause
26
- * @version 11.0.25
26
+ * @version 11.0.26
27
27
  */ const i = "Invalid number";
28
28
  const n = "Invalid rounding method";
29
29
  const o = "Invalid precision";
@@ -147,8 +147,8 @@ const I = [
147
147
  1e24
148
148
  ];
149
149
  const P = Math.log(1024);
150
- const T = Math.log(1e3);
151
- const z = {
150
+ const F = Math.log(1e3);
151
+ const T = {
152
152
  [s]: {
153
153
  isDecimal: true,
154
154
  ceil: 1e3,
@@ -166,7 +166,7 @@ const z = {
166
166
  }
167
167
  };
168
168
  function getBaseConfiguration(e, t) {
169
- if (z[e]) return z[e];
169
+ if (T[e]) return T[e];
170
170
  if (2 === t) return {
171
171
  isDecimal: false,
172
172
  ceil: 1024,
@@ -178,10 +178,11 @@ function getBaseConfiguration(e, t) {
178
178
  actualStandard: r
179
179
  };
180
180
  }
181
- function handleZeroValue(e, t, i, n, o, l, r, s, c, u, p) {
182
- let b;
183
- b = e > 0 ? 0..toPrecision(e) : c && u > 0 ? 0..toFixed(u) : 0;
181
+ function handleZeroValue(e, t, i, n, o, l, r, s, c, u, p, b = M, m = {}, y = M) {
182
+ let B;
183
+ B = e > 0 ? 0..toPrecision(e) : c && u > 0 ? 0..toFixed(u) : 0;
184
184
  if (r === h) return 0;
185
+ B = applyNumberFormatting(e <= 0 && (true === b || b.length > 0) ? 0 : B, b, m, y, c && e <= 0, u, Math.round);
185
186
  if (!p) p = i ? x.symbol[t].bits[0] : x.symbol[t].bytes[0];
186
187
  if (n[p]) p = n[p];
187
188
  if (o) if (l[0]) p = l[0];
@@ -191,16 +192,16 @@ function handleZeroValue(e, t, i, n, o, l, r, s, c, u, p) {
191
192
  else p += f;
192
193
  }
193
194
  if (r === d) return [
194
- b,
195
+ B,
195
196
  p
196
197
  ];
197
198
  if (r === g) return {
198
- value: b,
199
+ value: B,
199
200
  symbol: p,
200
201
  exponent: 0,
201
202
  unit: p
202
203
  };
203
- return b + s + p;
204
+ return B + s + p;
204
205
  }
205
206
  function calculateOptimizedValue(e, t, i, n, o, l = true) {
206
207
  let r;
@@ -307,7 +308,7 @@ function applyNumberFormatting(e, t, i, n, o, l, r) {
307
308
  function calculateExponent(e, t, i, n, o) {
308
309
  if ("string" == typeof t) t = Number(t);
309
310
  if (-1 === t || isNaN(t)) {
310
- t = n ? Math.floor(Math.log(e) / T) : Math.floor(Math.log(e) / P);
311
+ t = n ? Math.floor(Math.log(e) / F) : Math.floor(Math.log(e) / P);
311
312
  if (t < 0) t = 0;
312
313
  } else t = t < 0 ? 0 : Math.floor(t);
313
314
  if (t > 8) {
@@ -374,41 +375,41 @@ function formatOutput(e, t, i, n, o) {
374
375
  }
375
376
  function filesize(e, { bits: t = false, pad: o = false, base: l = -1, round: r = 2, locale: s = M, localeOptions: a = {}, separator: c = M, spacer: f = S, symbols: u = {}, standard: p = M, output: b = y, fullform: d = false, fullforms: g = [], exponent: N = -1, roundingMethod: v = B, precision: O = 0 } = {}) {
376
377
  let w = N, x, E = [], I = 0, P = M;
377
- const T = "bigint" == typeof e;
378
+ const F = "bigint" == typeof e;
378
379
  x = Number(e);
379
380
  if (isNaN(x)) throw new TypeError(i);
380
381
  if (!isFinite(x)) throw new TypeError(i);
381
- const { isDecimal: z, ceil: F, actualStandard: C } = getBaseConfiguration(p, l);
382
+ const { isDecimal: T, ceil: z, actualStandard: C } = getBaseConfiguration(p, l);
382
383
  const D = true === d, j = x < 0, V = Math[v];
383
384
  if (typeof V !== m) throw new TypeError(n);
384
385
  if (j) x = -x;
385
- if (0 === x) return handleZeroValue(O, C, t, u, D, g, b, f, o, r);
386
- const $ = T ? j ? -BigInt(e) : BigInt(e) : null;
386
+ if (0 === x) return handleZeroValue(O, C, t, u, D, g, b, f, o, r, void 0, s, a, c);
387
+ const $ = F ? j ? -BigInt(e) : BigInt(e) : null;
387
388
  let Z = O;
388
- if (T) {
389
- const { e: e, precision: t } = calculateBigIntExponent($, w, N, z, O);
389
+ if (F) {
390
+ const { e: e, precision: t } = calculateBigIntExponent($, w, N, T, O);
390
391
  w = e;
391
392
  Z = t;
392
393
  } else {
393
- const { e: e, precision: t } = calculateExponent(x, w, N, z, O);
394
+ const { e: e, precision: t } = calculateExponent(x, w, N, T, O);
394
395
  w = e;
395
396
  Z = t;
396
397
  }
397
398
  const G = -1 === N || isNaN(N);
398
399
  let k;
399
- k = T ? calculateBigIntValue($, w, z, t, F, G) : calculateOptimizedValue(x, w, z, t, F, G);
400
+ k = F ? calculateBigIntValue($, w, T, t, z, G) : calculateOptimizedValue(x, w, T, t, z, G);
400
401
  I = k.result;
401
402
  w = k.e;
402
- const J = applyRounding(I, F, w, r, V, G);
403
+ const J = applyRounding(I, z, w, r, V, G);
403
404
  E[0] = J.value;
404
405
  w = J.e;
405
406
  if (Z > 0) {
406
- const e = applyPrecisionHandling(E[0], Z, w, x, z, t, F, V, r, N);
407
+ const e = applyPrecisionHandling(E[0], Z, w, x, T, t, z, V, r, N);
407
408
  E[0] = e.value;
408
409
  w = e.e;
409
410
  }
410
411
  if (b === h) return w;
411
- P = resolveSymbol(C, t, w, z);
412
+ P = resolveSymbol(C, t, w, T);
412
413
  E[1] = P;
413
414
  decorateResult(E, j, u, s, a, c, o, r, D, g, C, w, t, V);
414
415
  return formatOutput(E, w, P, b, f);
@@ -445,6 +446,6 @@ function partial({ bits: e = false, pad: t = false, base: i = -1, round: n = 2,
445
446
  precision: p
446
447
  });
447
448
  }
448
- var F = t.O;
449
+ var z = t.O;
449
450
  var C = t.v;
450
- export { F as filesize, C as partial };
451
+ export { z as filesize, C as partial };
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @copyright 2026 Jason Mulligan <jason.mulligan@avoidwork.com>
5
5
  * @license BSD-3-Clause
6
- * @version 11.0.25
6
+ * @version 11.0.26
7
7
  */
@@ -1 +1 @@
1
- {"name":"filesize","author":"Jason Mulligan <jason.mulligan@avoidwork.com>","version":"11.0.25","license":"BSD-3-Clause","types":"index.d.ts"}
1
+ {"name":"filesize","author":"Jason Mulligan <jason.mulligan@avoidwork.com>","version":"11.0.26","license":"BSD-3-Clause","types":"index.d.ts"}
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "filesize",
3
3
  "sourceName": "filesize",
4
- "version": "11.0.25",
5
- "entrySha256": "9336d81cada40a4de13545fdd186cee029e9e905407b22e6de2bb8a22abb8e67",
4
+ "version": "11.0.26",
5
+ "entrySha256": "6a498d7fbb1eeb3334fdc1747357eb2c3fdc557499ae664170d205d8a13593dc",
6
6
  "license": "BSD-3-Clause",
7
7
  "repository": {
8
8
  "type": "git",
@@ -14,9 +14,9 @@
14
14
  "declarationSources": [
15
15
  {
16
16
  "name": "filesize",
17
- "version": "11.0.25",
17
+ "version": "11.0.26",
18
18
  "license": "BSD-3-Clause"
19
19
  }
20
20
  ],
21
- "lockfileSha256": "486928a3a1b80a640cc67d3eeba705a259b639085fe1299dd4f566602b51ede6"
21
+ "lockfileSha256": "581051621a0801558eea756bc6ec0f69d769c47dae2513e61f5cf51555720121"
22
22
  }
@@ -23,5 +23,5 @@
23
23
  "license": "MIT"
24
24
  }
25
25
  ],
26
- "lockfileSha256": "486928a3a1b80a640cc67d3eeba705a259b639085fe1299dd4f566602b51ede6"
26
+ "lockfileSha256": "581051621a0801558eea756bc6ec0f69d769c47dae2513e61f5cf51555720121"
27
27
  }
@@ -19,12 +19,12 @@
19
19
  },
20
20
  {
21
21
  "name": "lru-cache",
22
- "version": "11.5.2",
22
+ "version": "11.5.3",
23
23
  "license": "BlueOak-1.0.0"
24
24
  },
25
25
  {
26
26
  "name": "minimatch",
27
- "version": "10.2.5",
27
+ "version": "10.2.6",
28
28
  "license": "BlueOak-1.0.0"
29
29
  },
30
30
  {
@@ -38,5 +38,5 @@
38
38
  "license": "BlueOak-1.0.0"
39
39
  }
40
40
  ],
41
- "lockfileSha256": "486928a3a1b80a640cc67d3eeba705a259b639085fe1299dd4f566602b51ede6"
41
+ "lockfileSha256": "581051621a0801558eea756bc6ec0f69d769c47dae2513e61f5cf51555720121"
42
42
  }