@storm-software/linting-tools 1.119.24 → 1.119.25

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 (100) hide show
  1. package/README.md +1 -1
  2. package/{dist/chunk-YGKJSNX7.js → bin/chunk-32XQHFGE.js} +2 -2
  3. package/{dist/chunk-ZDJ6A2LW.cjs → bin/chunk-3UGTJRWY.cjs} +152 -152
  4. package/{dist/chunk-SG7EAXX4.cjs → bin/chunk-4RF6THIX.cjs} +138 -138
  5. package/{dist/chunk-EF2QNWS4.cjs → bin/chunk-C22CM2QI.cjs} +243 -231
  6. package/bin/{chunk-2KDMIKWU.cjs → chunk-EIO5QEUI.cjs} +11 -11
  7. package/{dist/chunk-YPA2QUMR.cjs → bin/chunk-I2JYD3H6.cjs} +24 -19
  8. package/{dist/chunk-SQCSB444.cjs → bin/chunk-JMC2RKOQ.cjs} +32 -32
  9. package/{dist/chunk-NBPTD76Q.js → bin/chunk-K6MMXF46.js} +2 -2
  10. package/{dist/chunk-A4TZZH23.js → bin/chunk-LIJ5WV4A.js} +2 -2
  11. package/bin/{chunk-2HPUSEOW.cjs → chunk-LKG4W7DJ.cjs} +2 -2
  12. package/bin/{chunk-HEZ4RO23.js → chunk-MABAGCQ6.js} +41 -29
  13. package/{dist/chunk-PQ5PUA5Y.cjs → bin/chunk-MMZUGSMN.cjs} +40 -40
  14. package/bin/{chunk-2IE4DLUN.js → chunk-NDKCDPQO.js} +1 -1
  15. package/bin/{chunk-NJWQ5DAN.js → chunk-NDQ2CW4A.js} +2 -2
  16. package/bin/{chunk-BPGBQ4AU.cjs → chunk-PDUGQAZO.cjs} +388 -388
  17. package/bin/{chunk-BLCDYU3V.js → chunk-RBBW5SMK.js} +1 -1
  18. package/{dist/chunk-F6SMOBG3.js → bin/chunk-RHDLCCAJ.js} +20 -15
  19. package/bin/{chunk-FH3GDOOO.js → chunk-ULL57BC3.js} +2 -2
  20. package/bin/{chunk-VO3ZJK3W.js → chunk-ZJGO7CH5.js} +2 -2
  21. package/bin/{chunk-B5GG3XCQ.cjs → chunk-ZTPDBXJ7.cjs} +44 -44
  22. package/bin/{dist-RWR2JNAL.js → dist-LKHUGSWR.js} +5 -5
  23. package/bin/{dist-OHY4PLS2.cjs → dist-NMN4MHNO.cjs} +989 -989
  24. package/{dist/dist-7LMLAWUP.cjs → bin/dist-UIFUFPNF.cjs} +11 -11
  25. package/bin/{dist-VFELXY4D.js → dist-VQR5XTRX.js} +8 -8
  26. package/{dist/esm-HY37SH6N.js → bin/esm-RKT3LFXX.js} +1 -1
  27. package/{dist/esm-XU4H3B2N.cjs → bin/esm-U35YC6KQ.cjs} +46 -46
  28. package/bin/json5-CWKRIV7X.js +10 -0
  29. package/bin/json5-XI6JKVFM.cjs +10 -0
  30. package/{dist/jsonc-KYPEKHOV.js → bin/jsonc-6CGHMLZO.js} +3 -3
  31. package/bin/jsonc-BYJLN6Q4.cjs +15 -0
  32. package/bin/lint.cjs +31839 -31612
  33. package/bin/lint.js +5153 -4925
  34. package/{dist/multipart-parser-5HBMD6JO.js → bin/multipart-parser-LGBOR4F3.js} +2 -2
  35. package/{dist/multipart-parser-CF3BQORX.cjs → bin/multipart-parser-TTCELASL.cjs} +11 -11
  36. package/bin/{package-json-V5Z5DK5X.js → package-json-ITRNRAWE.js} +250 -153
  37. package/{dist/package-json-6XHUARKD.cjs → bin/package-json-L3F3J6R4.cjs} +487 -390
  38. package/bin/toml-I3FOMOEL.js +10 -0
  39. package/bin/toml-YQ3ON7DN.cjs +10 -0
  40. package/{dist/utils-DUARF7MU.js → bin/utils-ITF452JH.js} +3 -3
  41. package/bin/{utils-ZLRC2VXJ.cjs → utils-ZQ55RYQ3.cjs} +11 -11
  42. package/bin/yaml-EMLF46N6.js +10 -0
  43. package/bin/yaml-WRJ2JXLS.cjs +10 -0
  44. package/{bin/chunk-YGKJSNX7.js → dist/chunk-32XQHFGE.js} +2 -2
  45. package/{bin/chunk-ZDJ6A2LW.cjs → dist/chunk-3UGTJRWY.cjs} +152 -152
  46. package/{bin/chunk-SG7EAXX4.cjs → dist/chunk-4RF6THIX.cjs} +138 -138
  47. package/{bin/chunk-EF2QNWS4.cjs → dist/chunk-C22CM2QI.cjs} +243 -231
  48. package/dist/{chunk-2KDMIKWU.cjs → chunk-EIO5QEUI.cjs} +11 -11
  49. package/{bin/chunk-YPA2QUMR.cjs → dist/chunk-I2JYD3H6.cjs} +24 -19
  50. package/{bin/chunk-SQCSB444.cjs → dist/chunk-JMC2RKOQ.cjs} +32 -32
  51. package/{bin/chunk-NBPTD76Q.js → dist/chunk-K6MMXF46.js} +2 -2
  52. package/{bin/chunk-A4TZZH23.js → dist/chunk-LIJ5WV4A.js} +2 -2
  53. package/dist/{chunk-2HPUSEOW.cjs → chunk-LKG4W7DJ.cjs} +2 -2
  54. package/dist/{chunk-HEZ4RO23.js → chunk-MABAGCQ6.js} +41 -29
  55. package/{bin/chunk-PQ5PUA5Y.cjs → dist/chunk-MMZUGSMN.cjs} +40 -40
  56. package/dist/{chunk-2IE4DLUN.js → chunk-NDKCDPQO.js} +1 -1
  57. package/dist/{chunk-NJWQ5DAN.js → chunk-NDQ2CW4A.js} +2 -2
  58. package/dist/{chunk-BPGBQ4AU.cjs → chunk-PDUGQAZO.cjs} +388 -388
  59. package/dist/{chunk-BLCDYU3V.js → chunk-RBBW5SMK.js} +1 -1
  60. package/{bin/chunk-F6SMOBG3.js → dist/chunk-RHDLCCAJ.js} +20 -15
  61. package/dist/{chunk-FH3GDOOO.js → chunk-ULL57BC3.js} +2 -2
  62. package/dist/{chunk-VO3ZJK3W.js → chunk-ZJGO7CH5.js} +2 -2
  63. package/dist/{chunk-B5GG3XCQ.cjs → chunk-ZTPDBXJ7.cjs} +44 -44
  64. package/dist/{dist-RWR2JNAL.js → dist-LKHUGSWR.js} +5 -5
  65. package/dist/{dist-OHY4PLS2.cjs → dist-NMN4MHNO.cjs} +989 -989
  66. package/{bin/dist-7LMLAWUP.cjs → dist/dist-UIFUFPNF.cjs} +11 -11
  67. package/dist/{dist-VFELXY4D.js → dist-VQR5XTRX.js} +8 -8
  68. package/{bin/esm-HY37SH6N.js → dist/esm-RKT3LFXX.js} +1 -1
  69. package/{bin/esm-XU4H3B2N.cjs → dist/esm-U35YC6KQ.cjs} +46 -46
  70. package/dist/index.cjs +31834 -31607
  71. package/dist/index.js +5153 -4925
  72. package/dist/json5-CWKRIV7X.js +10 -0
  73. package/dist/json5-XI6JKVFM.cjs +10 -0
  74. package/{bin/jsonc-KYPEKHOV.js → dist/jsonc-6CGHMLZO.js} +3 -3
  75. package/dist/jsonc-BYJLN6Q4.cjs +15 -0
  76. package/{bin/multipart-parser-5HBMD6JO.js → dist/multipart-parser-LGBOR4F3.js} +2 -2
  77. package/{bin/multipart-parser-CF3BQORX.cjs → dist/multipart-parser-TTCELASL.cjs} +11 -11
  78. package/dist/{package-json-V5Z5DK5X.js → package-json-ITRNRAWE.js} +250 -153
  79. package/{bin/package-json-6XHUARKD.cjs → dist/package-json-L3F3J6R4.cjs} +487 -390
  80. package/dist/toml-I3FOMOEL.js +10 -0
  81. package/dist/toml-YQ3ON7DN.cjs +10 -0
  82. package/{bin/utils-DUARF7MU.js → dist/utils-ITF452JH.js} +3 -3
  83. package/dist/{utils-ZLRC2VXJ.cjs → utils-ZQ55RYQ3.cjs} +11 -11
  84. package/dist/yaml-EMLF46N6.js +10 -0
  85. package/dist/yaml-WRJ2JXLS.cjs +10 -0
  86. package/package.json +1 -1
  87. package/bin/json5-3VVARTPN.cjs +0 -10
  88. package/bin/json5-WUIP5FMS.js +0 -10
  89. package/bin/jsonc-IS6EPVRJ.cjs +0 -15
  90. package/bin/toml-BAOM6BGG.js +0 -10
  91. package/bin/toml-JQMR5ASK.cjs +0 -10
  92. package/bin/yaml-LF4MDF3I.cjs +0 -10
  93. package/bin/yaml-TI2L6CZN.js +0 -10
  94. package/dist/json5-3VVARTPN.cjs +0 -10
  95. package/dist/json5-WUIP5FMS.js +0 -10
  96. package/dist/jsonc-IS6EPVRJ.cjs +0 -15
  97. package/dist/toml-BAOM6BGG.js +0 -10
  98. package/dist/toml-JQMR5ASK.cjs +0 -10
  99. package/dist/yaml-LF4MDF3I.cjs +0 -10
  100. package/dist/yaml-TI2L6CZN.js +0 -10
@@ -0,0 +1,10 @@
1
+ import {
2
+ cu,
3
+ ou
4
+ } from "./chunk-LIJ5WV4A.js";
5
+ import "./chunk-NDKCDPQO.js";
6
+ import "./chunk-ULL57BC3.js";
7
+ export {
8
+ ou as parseJSON5,
9
+ cu as stringifyJSON5
10
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkJMC2RKOQcjs = require('./chunk-JMC2RKOQ.cjs');
5
+ require('./chunk-EIO5QEUI.cjs');
6
+ require('./chunk-LKG4W7DJ.cjs');
7
+
8
+
9
+
10
+ exports.parseJSON5 = _chunkJMC2RKOQcjs.ou; exports.stringifyJSON5 = _chunkJMC2RKOQcjs.cu;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  d,
3
3
  h
4
- } from "./chunk-NJWQ5DAN.js";
5
- import "./chunk-2IE4DLUN.js";
4
+ } from "./chunk-NDQ2CW4A.js";
5
+ import "./chunk-NDKCDPQO.js";
6
6
  import {
7
7
  init_esm_shims
8
- } from "./chunk-FH3GDOOO.js";
8
+ } from "./chunk-ULL57BC3.js";
9
9
 
10
10
  // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/jsonc.mjs
11
11
  init_esm_shims();
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkZTPDBXJ7cjs = require('./chunk-ZTPDBXJ7.cjs');
5
+ require('./chunk-EIO5QEUI.cjs');
6
+
7
+
8
+ var _chunkLKG4W7DJcjs = require('./chunk-LKG4W7DJ.cjs');
9
+
10
+ // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/jsonc.mjs
11
+ _chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
12
+
13
+
14
+
15
+ exports.parseJSONC = _chunkZTPDBXJ7cjs.h; exports.stringifyJSONC = _chunkZTPDBXJ7cjs.d;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  require_node,
3
3
  require_node_fetch_native_DhEqb06g
4
- } from "./chunk-YGKJSNX7.js";
4
+ } from "./chunk-32XQHFGE.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __name,
8
8
  __require,
9
9
  init_esm_shims
10
- } from "./chunk-FH3GDOOO.js";
10
+ } from "./chunk-ULL57BC3.js";
11
11
 
12
12
  // ../../node_modules/.pnpm/node-fetch-native@1.6.6/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
13
13
  var require_multipart_parser = __commonJS({
@@ -1,23 +1,23 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkBPGBQ4AUcjs = require('./chunk-BPGBQ4AU.cjs');
4
+ var _chunkPDUGQAZOcjs = require('./chunk-PDUGQAZO.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunk2HPUSEOWcjs = require('./chunk-2HPUSEOW.cjs');
10
+ var _chunkLKG4W7DJcjs = require('./chunk-LKG4W7DJ.cjs');
11
11
 
12
12
  // ../../node_modules/.pnpm/node-fetch-native@1.6.6/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
13
- var require_multipart_parser = _chunk2HPUSEOWcjs.__commonJS.call(void 0, {
13
+ var require_multipart_parser = _chunkLKG4W7DJcjs.__commonJS.call(void 0, {
14
14
  "../../node_modules/.pnpm/node-fetch-native@1.6.6/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"(exports) {
15
- _chunk2HPUSEOWcjs.init_cjs_shims.call(void 0, );
15
+ _chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
16
16
  var N = Object.defineProperty;
17
- var c = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (_, a) => N(_, "name", { value: a, configurable: true }), "c");
18
- _chunk2HPUSEOWcjs.__require.call(void 0, "fs"), _chunk2HPUSEOWcjs.__require.call(void 0, "path");
19
- var node = _chunkBPGBQ4AUcjs.require_node.call(void 0, );
20
- _chunk2HPUSEOWcjs.__require.call(void 0, "http"), _chunk2HPUSEOWcjs.__require.call(void 0, "https"), _chunk2HPUSEOWcjs.__require.call(void 0, "zlib"), _chunk2HPUSEOWcjs.__require.call(void 0, "stream"), _chunk2HPUSEOWcjs.__require.call(void 0, "buffer"), _chunk2HPUSEOWcjs.__require.call(void 0, "util"), _chunkBPGBQ4AUcjs.require_node_fetch_native_DhEqb06g.call(void 0, ), _chunk2HPUSEOWcjs.__require.call(void 0, "url"), _chunk2HPUSEOWcjs.__require.call(void 0, "net");
17
+ var c = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (_, a) => N(_, "name", { value: a, configurable: true }), "c");
18
+ _chunkLKG4W7DJcjs.__require.call(void 0, "fs"), _chunkLKG4W7DJcjs.__require.call(void 0, "path");
19
+ var node = _chunkPDUGQAZOcjs.require_node.call(void 0, );
20
+ _chunkLKG4W7DJcjs.__require.call(void 0, "http"), _chunkLKG4W7DJcjs.__require.call(void 0, "https"), _chunkLKG4W7DJcjs.__require.call(void 0, "zlib"), _chunkLKG4W7DJcjs.__require.call(void 0, "stream"), _chunkLKG4W7DJcjs.__require.call(void 0, "buffer"), _chunkLKG4W7DJcjs.__require.call(void 0, "util"), _chunkPDUGQAZOcjs.require_node_fetch_native_DhEqb06g.call(void 0, ), _chunkLKG4W7DJcjs.__require.call(void 0, "url"), _chunkLKG4W7DJcjs.__require.call(void 0, "net");
21
21
  var s = 0;
22
22
  var S = { START_BOUNDARY: s++, HEADER_FIELD_START: s++, HEADER_FIELD: s++, HEADER_VALUE_START: s++, HEADER_VALUE: s++, HEADER_VALUE_ALMOST_DONE: s++, HEADERS_ALMOST_DONE: s++, PART_DATA_START: s++, PART_DATA: s++, END: s++ };
23
23
  var f = 1;
@@ -34,7 +34,7 @@ var require_multipart_parser = _chunk2HPUSEOWcjs.__commonJS.call(void 0, {
34
34
  }, "noop");
35
35
  var MultipartParser = class {
36
36
  static {
37
- _chunk2HPUSEOWcjs.__name.call(void 0, this, "MultipartParser");
37
+ _chunkLKG4W7DJcjs.__name.call(void 0, this, "MultipartParser");
38
38
  }
39
39
  static {
40
40
  c(this, "MultipartParser");
@@ -146,7 +146,7 @@ var require_multipart_parser = _chunk2HPUSEOWcjs.__commonJS.call(void 0, {
146
146
  let n = t.slice(t.lastIndexOf("\\") + 1);
147
147
  return n = n.replace(/%22/g, '"'), n = n.replace(/&#(\d{4});/g, (E, d) => String.fromCharCode(d)), n;
148
148
  }
149
- _chunk2HPUSEOWcjs.__name.call(void 0, _fileName, "_fileName");
149
+ _chunkLKG4W7DJcjs.__name.call(void 0, _fileName, "_fileName");
150
150
  c(_fileName, "_fileName");
151
151
  async function toFormData(_, a) {
152
152
  if (!/multipart/i.test(a)) throw new TypeError("Failed to fetch");
@@ -180,7 +180,7 @@ var require_multipart_parser = _chunk2HPUSEOWcjs.__commonJS.call(void 0, {
180
180
  for await (const i of _) n.write(i);
181
181
  return n.end(), b;
182
182
  }
183
- _chunk2HPUSEOWcjs.__name.call(void 0, toFormData, "toFormData");
183
+ _chunkLKG4W7DJcjs.__name.call(void 0, toFormData, "toFormData");
184
184
  c(toFormData, "toFormData"), exports.toFormData = toFormData;
185
185
  }
186
186
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_semver
3
- } from "./chunk-BLCDYU3V.js";
3
+ } from "./chunk-RBBW5SMK.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __dirname,
@@ -8,7 +8,7 @@ import {
8
8
  __require,
9
9
  __toESM,
10
10
  init_esm_shims
11
- } from "./chunk-FH3GDOOO.js";
11
+ } from "./chunk-ULL57BC3.js";
12
12
 
13
13
  // ../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js
14
14
  var require_ini = __commonJS({
@@ -2909,13 +2909,13 @@ var require_registry_auth_token = __commonJS({
2909
2909
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
2910
2910
  init_esm_shims();
2911
2911
 
2912
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/index.js
2912
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/index.js
2913
2913
  init_esm_shims();
2914
2914
 
2915
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/core/Ky.js
2915
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/Ky.js
2916
2916
  init_esm_shims();
2917
2917
 
2918
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/errors/HTTPError.js
2918
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/errors/HTTPError.js
2919
2919
  init_esm_shims();
2920
2920
  var HTTPError = class extends Error {
2921
2921
  static {
@@ -2937,7 +2937,7 @@ var HTTPError = class extends Error {
2937
2937
  }
2938
2938
  };
2939
2939
 
2940
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/errors/TimeoutError.js
2940
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/errors/TimeoutError.js
2941
2941
  init_esm_shims();
2942
2942
  var TimeoutError = class extends Error {
2943
2943
  static {
@@ -2951,85 +2951,10 @@ var TimeoutError = class extends Error {
2951
2951
  }
2952
2952
  };
2953
2953
 
2954
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/merge.js
2954
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/body.js
2955
2955
  init_esm_shims();
2956
2956
 
2957
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/is.js
2958
- init_esm_shims();
2959
- var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object", "isObject");
2960
-
2961
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/merge.js
2962
- var validateAndMerge = /* @__PURE__ */ __name((...sources) => {
2963
- for (const source of sources) {
2964
- if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
2965
- throw new TypeError("The `options` argument must be an object");
2966
- }
2967
- }
2968
- return deepMerge({}, ...sources);
2969
- }, "validateAndMerge");
2970
- var mergeHeaders = /* @__PURE__ */ __name((source1 = {}, source2 = {}) => {
2971
- const result = new globalThis.Headers(source1);
2972
- const isHeadersInstance = source2 instanceof globalThis.Headers;
2973
- const source = new globalThis.Headers(source2);
2974
- for (const [key, value] of source.entries()) {
2975
- if (isHeadersInstance && value === "undefined" || value === void 0) {
2976
- result.delete(key);
2977
- } else {
2978
- result.set(key, value);
2979
- }
2980
- }
2981
- return result;
2982
- }, "mergeHeaders");
2983
- function newHookValue(original, incoming, property) {
2984
- return Object.hasOwn(incoming, property) && incoming[property] === void 0 ? [] : deepMerge(original[property] ?? [], incoming[property] ?? []);
2985
- }
2986
- __name(newHookValue, "newHookValue");
2987
- var mergeHooks = /* @__PURE__ */ __name((original = {}, incoming = {}) => ({
2988
- beforeRequest: newHookValue(original, incoming, "beforeRequest"),
2989
- beforeRetry: newHookValue(original, incoming, "beforeRetry"),
2990
- afterResponse: newHookValue(original, incoming, "afterResponse"),
2991
- beforeError: newHookValue(original, incoming, "beforeError")
2992
- }), "mergeHooks");
2993
- var deepMerge = /* @__PURE__ */ __name((...sources) => {
2994
- let returnValue = {};
2995
- let headers = {};
2996
- let hooks = {};
2997
- for (const source of sources) {
2998
- if (Array.isArray(source)) {
2999
- if (!Array.isArray(returnValue)) {
3000
- returnValue = [];
3001
- }
3002
- returnValue = [
3003
- ...returnValue,
3004
- ...source
3005
- ];
3006
- } else if (isObject(source)) {
3007
- for (let [key, value] of Object.entries(source)) {
3008
- if (isObject(value) && key in returnValue) {
3009
- value = deepMerge(returnValue[key], value);
3010
- }
3011
- returnValue = {
3012
- ...returnValue,
3013
- [key]: value
3014
- };
3015
- }
3016
- if (isObject(source.hooks)) {
3017
- hooks = mergeHooks(hooks, source.hooks);
3018
- returnValue.hooks = hooks;
3019
- }
3020
- if (isObject(source.headers)) {
3021
- headers = mergeHeaders(headers, source.headers);
3022
- returnValue.headers = headers;
3023
- }
3024
- }
3025
- }
3026
- return returnValue;
3027
- }, "deepMerge");
3028
-
3029
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/normalize.js
3030
- init_esm_shims();
3031
-
3032
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/core/constants.js
2957
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/constants.js
3033
2958
  init_esm_shims();
3034
2959
  var supportsRequestStreams = (() => {
3035
2960
  let duplexAccessed = false;
@@ -3077,6 +3002,7 @@ var responseTypes = {
3077
3002
  blob: "*/*"
3078
3003
  };
3079
3004
  var maxSafeTimeout = 2147483647;
3005
+ var usualFormBoundarySize = new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length;
3080
3006
  var stop = Symbol("stop");
3081
3007
  var kyOptionKeys = {
3082
3008
  json: true,
@@ -3089,6 +3015,7 @@ var kyOptionKeys = {
3089
3015
  hooks: true,
3090
3016
  throwHttpErrors: true,
3091
3017
  onDownloadProgress: true,
3018
+ onUploadProgress: true,
3092
3019
  fetch: true
3093
3020
  };
3094
3021
  var requestOptionsRegistry = {
@@ -3110,7 +3037,220 @@ var requestOptionsRegistry = {
3110
3037
  priority: true
3111
3038
  };
3112
3039
 
3113
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/normalize.js
3040
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/body.js
3041
+ var getBodySize = /* @__PURE__ */ __name((body) => {
3042
+ if (!body) {
3043
+ return 0;
3044
+ }
3045
+ if (body instanceof FormData) {
3046
+ let size = 0;
3047
+ for (const [key, value] of body) {
3048
+ size += usualFormBoundarySize;
3049
+ size += new TextEncoder().encode(`Content-Disposition: form-data; name="${key}"`).length;
3050
+ size += typeof value === "string" ? new TextEncoder().encode(value).length : value.size;
3051
+ }
3052
+ return size;
3053
+ }
3054
+ if (body instanceof Blob) {
3055
+ return body.size;
3056
+ }
3057
+ if (body instanceof ArrayBuffer) {
3058
+ return body.byteLength;
3059
+ }
3060
+ if (typeof body === "string") {
3061
+ return new TextEncoder().encode(body).length;
3062
+ }
3063
+ if (body instanceof URLSearchParams) {
3064
+ return new TextEncoder().encode(body.toString()).length;
3065
+ }
3066
+ if ("byteLength" in body) {
3067
+ return body.byteLength;
3068
+ }
3069
+ if (typeof body === "object" && body !== null) {
3070
+ try {
3071
+ const jsonString = JSON.stringify(body);
3072
+ return new TextEncoder().encode(jsonString).length;
3073
+ } catch {
3074
+ return 0;
3075
+ }
3076
+ }
3077
+ return 0;
3078
+ }, "getBodySize");
3079
+ var streamResponse = /* @__PURE__ */ __name((response, onDownloadProgress) => {
3080
+ const totalBytes = Number(response.headers.get("content-length")) || 0;
3081
+ let transferredBytes = 0;
3082
+ if (response.status === 204) {
3083
+ if (onDownloadProgress) {
3084
+ onDownloadProgress({
3085
+ percent: 1,
3086
+ totalBytes,
3087
+ transferredBytes
3088
+ }, new Uint8Array());
3089
+ }
3090
+ return new Response(null, {
3091
+ status: response.status,
3092
+ statusText: response.statusText,
3093
+ headers: response.headers
3094
+ });
3095
+ }
3096
+ return new Response(new ReadableStream({
3097
+ async start(controller) {
3098
+ const reader = response.body.getReader();
3099
+ if (onDownloadProgress) {
3100
+ onDownloadProgress({
3101
+ percent: 0,
3102
+ transferredBytes: 0,
3103
+ totalBytes
3104
+ }, new Uint8Array());
3105
+ }
3106
+ async function read() {
3107
+ const { done, value } = await reader.read();
3108
+ if (done) {
3109
+ controller.close();
3110
+ return;
3111
+ }
3112
+ if (onDownloadProgress) {
3113
+ transferredBytes += value.byteLength;
3114
+ const percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
3115
+ onDownloadProgress({
3116
+ percent,
3117
+ transferredBytes,
3118
+ totalBytes
3119
+ }, value);
3120
+ }
3121
+ controller.enqueue(value);
3122
+ await read();
3123
+ }
3124
+ __name(read, "read");
3125
+ await read();
3126
+ }
3127
+ }), {
3128
+ status: response.status,
3129
+ statusText: response.statusText,
3130
+ headers: response.headers
3131
+ });
3132
+ }, "streamResponse");
3133
+ var streamRequest = /* @__PURE__ */ __name((request, onUploadProgress) => {
3134
+ const totalBytes = getBodySize(request.body);
3135
+ let transferredBytes = 0;
3136
+ return new Request(request, {
3137
+ // @ts-expect-error - Types are outdated.
3138
+ duplex: "half",
3139
+ body: new ReadableStream({
3140
+ async start(controller) {
3141
+ const reader = request.body instanceof ReadableStream ? request.body.getReader() : new Response("").body.getReader();
3142
+ async function read() {
3143
+ const { done, value } = await reader.read();
3144
+ if (done) {
3145
+ if (onUploadProgress) {
3146
+ onUploadProgress({
3147
+ percent: 1,
3148
+ transferredBytes,
3149
+ totalBytes: Math.max(totalBytes, transferredBytes)
3150
+ }, new Uint8Array());
3151
+ }
3152
+ controller.close();
3153
+ return;
3154
+ }
3155
+ transferredBytes += value.byteLength;
3156
+ let percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
3157
+ if (totalBytes < transferredBytes || percent === 1) {
3158
+ percent = 0.99;
3159
+ }
3160
+ if (onUploadProgress) {
3161
+ onUploadProgress({
3162
+ percent: Number(percent.toFixed(2)),
3163
+ transferredBytes,
3164
+ totalBytes
3165
+ }, value);
3166
+ }
3167
+ controller.enqueue(value);
3168
+ await read();
3169
+ }
3170
+ __name(read, "read");
3171
+ await read();
3172
+ }
3173
+ })
3174
+ });
3175
+ }, "streamRequest");
3176
+
3177
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/merge.js
3178
+ init_esm_shims();
3179
+
3180
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/is.js
3181
+ init_esm_shims();
3182
+ var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object", "isObject");
3183
+
3184
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/merge.js
3185
+ var validateAndMerge = /* @__PURE__ */ __name((...sources) => {
3186
+ for (const source of sources) {
3187
+ if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
3188
+ throw new TypeError("The `options` argument must be an object");
3189
+ }
3190
+ }
3191
+ return deepMerge({}, ...sources);
3192
+ }, "validateAndMerge");
3193
+ var mergeHeaders = /* @__PURE__ */ __name((source1 = {}, source2 = {}) => {
3194
+ const result = new globalThis.Headers(source1);
3195
+ const isHeadersInstance = source2 instanceof globalThis.Headers;
3196
+ const source = new globalThis.Headers(source2);
3197
+ for (const [key, value] of source.entries()) {
3198
+ if (isHeadersInstance && value === "undefined" || value === void 0) {
3199
+ result.delete(key);
3200
+ } else {
3201
+ result.set(key, value);
3202
+ }
3203
+ }
3204
+ return result;
3205
+ }, "mergeHeaders");
3206
+ function newHookValue(original, incoming, property) {
3207
+ return Object.hasOwn(incoming, property) && incoming[property] === void 0 ? [] : deepMerge(original[property] ?? [], incoming[property] ?? []);
3208
+ }
3209
+ __name(newHookValue, "newHookValue");
3210
+ var mergeHooks = /* @__PURE__ */ __name((original = {}, incoming = {}) => ({
3211
+ beforeRequest: newHookValue(original, incoming, "beforeRequest"),
3212
+ beforeRetry: newHookValue(original, incoming, "beforeRetry"),
3213
+ afterResponse: newHookValue(original, incoming, "afterResponse"),
3214
+ beforeError: newHookValue(original, incoming, "beforeError")
3215
+ }), "mergeHooks");
3216
+ var deepMerge = /* @__PURE__ */ __name((...sources) => {
3217
+ let returnValue = {};
3218
+ let headers = {};
3219
+ let hooks = {};
3220
+ for (const source of sources) {
3221
+ if (Array.isArray(source)) {
3222
+ if (!Array.isArray(returnValue)) {
3223
+ returnValue = [];
3224
+ }
3225
+ returnValue = [
3226
+ ...returnValue,
3227
+ ...source
3228
+ ];
3229
+ } else if (isObject(source)) {
3230
+ for (let [key, value] of Object.entries(source)) {
3231
+ if (isObject(value) && key in returnValue) {
3232
+ value = deepMerge(returnValue[key], value);
3233
+ }
3234
+ returnValue = {
3235
+ ...returnValue,
3236
+ [key]: value
3237
+ };
3238
+ }
3239
+ if (isObject(source.hooks)) {
3240
+ hooks = mergeHooks(hooks, source.hooks);
3241
+ returnValue.hooks = hooks;
3242
+ }
3243
+ if (isObject(source.headers)) {
3244
+ headers = mergeHeaders(headers, source.headers);
3245
+ returnValue.headers = headers;
3246
+ }
3247
+ }
3248
+ }
3249
+ return returnValue;
3250
+ }, "deepMerge");
3251
+
3252
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/normalize.js
3253
+ init_esm_shims();
3114
3254
  var normalizeRequestMethod = /* @__PURE__ */ __name((input) => requestMethods.includes(input) ? input.toUpperCase() : input, "normalizeRequestMethod");
3115
3255
  var retryMethods = [
3116
3256
  "get",
@@ -3162,7 +3302,7 @@ var normalizeRetryOptions = /* @__PURE__ */ __name((retry = {}) => {
3162
3302
  };
3163
3303
  }, "normalizeRetryOptions");
3164
3304
 
3165
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/timeout.js
3305
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/timeout.js
3166
3306
  init_esm_shims();
3167
3307
  async function timeout(request, init, abortController, options) {
3168
3308
  return new Promise((resolve, reject) => {
@@ -3179,7 +3319,7 @@ async function timeout(request, init, abortController, options) {
3179
3319
  }
3180
3320
  __name(timeout, "timeout");
3181
3321
 
3182
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/delay.js
3322
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/delay.js
3183
3323
  init_esm_shims();
3184
3324
  async function delay(ms, { signal }) {
3185
3325
  return new Promise((resolve, reject) => {
@@ -3202,7 +3342,7 @@ async function delay(ms, { signal }) {
3202
3342
  }
3203
3343
  __name(delay, "delay");
3204
3344
 
3205
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/options.js
3345
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/options.js
3206
3346
  init_esm_shims();
3207
3347
  var findUnknownOptions = /* @__PURE__ */ __name((request, options) => {
3208
3348
  const unknownOptions = {};
@@ -3214,7 +3354,7 @@ var findUnknownOptions = /* @__PURE__ */ __name((request, options) => {
3214
3354
  return unknownOptions;
3215
3355
  }, "findUnknownOptions");
3216
3356
 
3217
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/core/Ky.js
3357
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/Ky.js
3218
3358
  var Ky = class _Ky {
3219
3359
  static {
3220
3360
  __name(this, "Ky");
@@ -3241,6 +3381,9 @@ var Ky = class _Ky {
3241
3381
  }
3242
3382
  throw error;
3243
3383
  }
3384
+ if (!ky2.request.bodyUsed) {
3385
+ await ky2.request.body?.cancel();
3386
+ }
3244
3387
  if (ky2._options.onDownloadProgress) {
3245
3388
  if (typeof ky2._options.onDownloadProgress !== "function") {
3246
3389
  throw new TypeError("The `onDownloadProgress` option must be a function");
@@ -3248,7 +3391,7 @@ var Ky = class _Ky {
3248
3391
  if (!supportsResponseStreams) {
3249
3392
  throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");
3250
3393
  }
3251
- return ky2._stream(response.clone(), ky2._options.onDownloadProgress);
3394
+ return streamResponse(response.clone(), ky2._options.onDownloadProgress);
3252
3395
  }
3253
3396
  return response;
3254
3397
  }, "function_");
@@ -3314,15 +3457,12 @@ var Ky = class _Ky {
3314
3457
  this._input = this._options.prefixUrl + this._input;
3315
3458
  }
3316
3459
  if (supportsAbortController) {
3317
- this.abortController = new globalThis.AbortController();
3318
3460
  const originalSignal = this._options.signal ?? this._input.signal;
3319
- if (originalSignal?.aborted) {
3320
- this.abortController.abort(originalSignal?.reason);
3321
- }
3322
- originalSignal?.addEventListener("abort", () => {
3323
- this.abortController.abort(originalSignal.reason);
3324
- });
3325
- this._options.signal = this.abortController.signal;
3461
+ this.abortController = new globalThis.AbortController();
3462
+ this._options.signal = originalSignal ? AbortSignal.any([
3463
+ originalSignal,
3464
+ this.abortController.signal
3465
+ ]) : this.abortController.signal;
3326
3466
  }
3327
3467
  if (supportsRequestStreams) {
3328
3468
  this._options.duplex = "half";
@@ -3343,6 +3483,18 @@ var Ky = class _Ky {
3343
3483
  ...this.request
3344
3484
  }), this._options);
3345
3485
  }
3486
+ if (this._options.onUploadProgress) {
3487
+ if (typeof this._options.onUploadProgress !== "function") {
3488
+ throw new TypeError("The `onUploadProgress` option must be a function");
3489
+ }
3490
+ if (!supportsRequestStreams) {
3491
+ throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");
3492
+ }
3493
+ const originalBody = this.request.body;
3494
+ if (originalBody) {
3495
+ this.request = streamRequest(this.request, this._options.onUploadProgress);
3496
+ }
3497
+ }
3346
3498
  }
3347
3499
  _calculateRetryDelay(error) {
3348
3500
  this._retryCount++;
@@ -3421,64 +3573,9 @@ var Ky = class _Ky {
3421
3573
  }
3422
3574
  return timeout(mainRequest, nonRequestOptions, this.abortController, this._options);
3423
3575
  }
3424
- /* istanbul ignore next */
3425
- _stream(response, onDownloadProgress) {
3426
- const totalBytes = Number(response.headers.get("content-length")) || 0;
3427
- let transferredBytes = 0;
3428
- if (response.status === 204) {
3429
- if (onDownloadProgress) {
3430
- onDownloadProgress({
3431
- percent: 1,
3432
- totalBytes,
3433
- transferredBytes
3434
- }, new Uint8Array());
3435
- }
3436
- return new globalThis.Response(null, {
3437
- status: response.status,
3438
- statusText: response.statusText,
3439
- headers: response.headers
3440
- });
3441
- }
3442
- return new globalThis.Response(new globalThis.ReadableStream({
3443
- async start(controller) {
3444
- const reader = response.body.getReader();
3445
- if (onDownloadProgress) {
3446
- onDownloadProgress({
3447
- percent: 0,
3448
- transferredBytes: 0,
3449
- totalBytes
3450
- }, new Uint8Array());
3451
- }
3452
- async function read() {
3453
- const { done, value } = await reader.read();
3454
- if (done) {
3455
- controller.close();
3456
- return;
3457
- }
3458
- if (onDownloadProgress) {
3459
- transferredBytes += value.byteLength;
3460
- const percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
3461
- onDownloadProgress({
3462
- percent,
3463
- transferredBytes,
3464
- totalBytes
3465
- }, value);
3466
- }
3467
- controller.enqueue(value);
3468
- await read();
3469
- }
3470
- __name(read, "read");
3471
- await read();
3472
- }
3473
- }), {
3474
- status: response.status,
3475
- statusText: response.statusText,
3476
- headers: response.headers
3477
- });
3478
- }
3479
3576
  };
3480
3577
 
3481
- // ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/index.js
3578
+ // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/index.js
3482
3579
  var createInstance = /* @__PURE__ */ __name((defaults) => {
3483
3580
  const ky2 = /* @__PURE__ */ __name((input, options) => Ky.create(input, validateAndMerge(defaults, options)), "ky");
3484
3581
  for (const method of requestMethods) {