@storm-software/linting-tools 1.131.8 → 1.131.10

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 (51) hide show
  1. package/README.md +2 -1
  2. package/bin/{chunk-SZKILJR4.cjs → chunk-3TS5TOSJ.cjs} +20 -20
  3. package/bin/{chunk-FDNMBJDJ.js → chunk-4KNQ2G53.js} +1 -1
  4. package/bin/{chunk-DHBV23JJ.cjs → chunk-57HKETJK.cjs} +6 -6
  5. package/bin/{chunk-TZKN5VL4.cjs → chunk-5SNRUCNM.cjs} +5 -5
  6. package/bin/{chunk-5IDZX5I5.js → chunk-5YVROVEW.js} +2 -2
  7. package/bin/{chunk-E6QVWJBK.js → chunk-6RY3FHZ3.js} +2 -2
  8. package/bin/{chunk-RU5SNMFV.js → chunk-APFVK62L.js} +1 -1
  9. package/bin/{chunk-SDXV7YPY.js → chunk-AXP2Q6BG.js} +2 -2
  10. package/bin/{chunk-XCWEWHEG.js → chunk-BZNDNMWQ.js} +2 -2
  11. package/bin/{chunk-GPQ3EXSW.js → chunk-CEPTY2J6.js} +2 -2
  12. package/bin/{chunk-4K3XYH76.js → chunk-CO4AUP6B.js} +1 -1
  13. package/bin/{chunk-WZRB6R42.cjs → chunk-IA2ACEV3.cjs} +2 -2
  14. package/bin/{chunk-33QPGVW3.cjs → chunk-KQLTXM5G.cjs} +14 -14
  15. package/bin/{chunk-2M57UESH.cjs → chunk-M5JTETW4.cjs} +5 -5
  16. package/bin/{chunk-N27QERDX.js → chunk-MF6MO6BG.js} +2 -2
  17. package/bin/{chunk-QY7MWVNZ.cjs → chunk-NSDZHJOF.cjs} +91 -91
  18. package/bin/{chunk-SCMHL3KF.cjs → chunk-Q4HEVJ5E.cjs} +5 -5
  19. package/bin/{chunk-76IR4C3I.cjs → chunk-SFDOHVGS.cjs} +2 -2
  20. package/bin/{chunk-HRF46AXJ.js → chunk-ULIDOEZ3.js} +2 -2
  21. package/bin/{chunk-GMYXKRA6.cjs → chunk-YAHTQIE3.cjs} +2 -2
  22. package/bin/{dist-FE6ZHWCB.cjs → dist-3ZR3XR5J.cjs} +206 -206
  23. package/bin/{dist-ZSMMV4WF.cjs → dist-OK3CE3BP.cjs} +6 -6
  24. package/bin/{dist-AW3GMB6E.js → dist-QKZCDPV6.js} +8 -8
  25. package/bin/{dist-BZG5DGPR.js → dist-VHQ2FMGW.js} +2 -2
  26. package/bin/{esm-SVEBN4MS.js → esm-P6QXSRZY.js} +1 -1
  27. package/bin/{esm-WKIWN5IZ.cjs → esm-YT4J7L4V.cjs} +4 -4
  28. package/bin/json5-BJUSMVO7.js +10 -0
  29. package/bin/json5-SYEOIYAO.cjs +10 -0
  30. package/bin/{jsonc-CIQZLV2E.js → jsonc-NE4OKOYH.js} +3 -3
  31. package/bin/jsonc-WAFR36NP.cjs +15 -0
  32. package/bin/lint.cjs +2562 -2527
  33. package/bin/lint.js +253 -220
  34. package/bin/{multipart-parser-SM5GXJIN.js → multipart-parser-MCIEAON7.js} +2 -2
  35. package/bin/{multipart-parser-Y5MVN3ZF.cjs → multipart-parser-MIC272EJ.cjs} +6 -6
  36. package/bin/{package-json-PWHSBGGM.js → package-json-2IA7FBCO.js} +64 -79
  37. package/bin/{package-json-RKY64HVK.cjs → package-json-SQWNLMCM.cjs} +157 -172
  38. package/bin/toml-6QZKNSFY.js +10 -0
  39. package/bin/toml-N6E2XBCF.cjs +10 -0
  40. package/bin/{utils-TMU2J7R4.js → utils-NZHBHNSV.js} +2 -2
  41. package/bin/{utils-MJN5KXMZ.cjs → utils-RS7CS6SE.cjs} +5 -5
  42. package/bin/yaml-MRB3DWC4.cjs +10 -0
  43. package/bin/yaml-X3ZLHGYD.js +10 -0
  44. package/package.json +2 -2
  45. package/bin/json5-GPKLZTTL.cjs +0 -10
  46. package/bin/json5-QNTLRXAX.js +0 -10
  47. package/bin/jsonc-VCPC456T.cjs +0 -15
  48. package/bin/toml-2RXZXXD7.js +0 -10
  49. package/bin/toml-55EAY7MF.cjs +0 -10
  50. package/bin/yaml-AAH742IK.cjs +0 -10
  51. package/bin/yaml-QA6BLBI6.js +0 -10
@@ -3,11 +3,11 @@ import {
3
3
  init_node,
4
4
  init_node_fetch_native_DfbY2q_x,
5
5
  qn
6
- } from "./chunk-SDXV7YPY.js";
6
+ } from "./chunk-AXP2Q6BG.js";
7
7
  import {
8
8
  __esm,
9
9
  init_esm_shims
10
- } from "./chunk-HRF46AXJ.js";
10
+ } from "./chunk-ULIDOEZ3.js";
11
11
 
12
12
  // ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs
13
13
  function v(u) {
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkSZKILJR4cjs = require('./chunk-SZKILJR4.cjs');
4
+ var _chunk3TS5TOSJcjs = require('./chunk-3TS5TOSJ.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunk76IR4C3Icjs = require('./chunk-76IR4C3I.cjs');
9
+ var _chunkSFDOHVGScjs = require('./chunk-SFDOHVGS.cjs');
10
10
 
11
11
  // ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
12
- var require_multipart_parser = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
12
+ var require_multipart_parser = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
13
13
  "../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs"(exports) {
14
- _chunk76IR4C3Icjs.init_cjs_shims.call(void 0, );
14
+ _chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
15
15
  var y = Object.defineProperty;
16
16
  var c = (R, o) => y(R, "name", { value: o, configurable: true });
17
- var node = _chunkSZKILJR4cjs.require_node.call(void 0, );
18
- _chunk76IR4C3Icjs.__require.call(void 0, "http"), _chunk76IR4C3Icjs.__require.call(void 0, "https"), _chunk76IR4C3Icjs.__require.call(void 0, "zlib"), _chunk76IR4C3Icjs.__require.call(void 0, "stream"), _chunk76IR4C3Icjs.__require.call(void 0, "buffer"), _chunk76IR4C3Icjs.__require.call(void 0, "util"), _chunkSZKILJR4cjs.require_node_fetch_native_DhEqb06g.call(void 0, ), _chunk76IR4C3Icjs.__require.call(void 0, "url"), _chunk76IR4C3Icjs.__require.call(void 0, "net"), _chunk76IR4C3Icjs.__require.call(void 0, "fs"), _chunk76IR4C3Icjs.__require.call(void 0, "path");
17
+ var node = _chunk3TS5TOSJcjs.require_node.call(void 0, );
18
+ _chunkSFDOHVGScjs.__require.call(void 0, "http"), _chunkSFDOHVGScjs.__require.call(void 0, "https"), _chunkSFDOHVGScjs.__require.call(void 0, "zlib"), _chunkSFDOHVGScjs.__require.call(void 0, "stream"), _chunkSFDOHVGScjs.__require.call(void 0, "buffer"), _chunkSFDOHVGScjs.__require.call(void 0, "util"), _chunk3TS5TOSJcjs.require_node_fetch_native_DhEqb06g.call(void 0, ), _chunkSFDOHVGScjs.__require.call(void 0, "url"), _chunkSFDOHVGScjs.__require.call(void 0, "net"), _chunkSFDOHVGScjs.__require.call(void 0, "fs"), _chunkSFDOHVGScjs.__require.call(void 0, "path");
19
19
  var s = 0;
20
20
  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++ };
21
21
  var f = 1;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  require_semver
3
- } from "./chunk-4K3XYH76.js";
3
+ } from "./chunk-CO4AUP6B.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __dirname,
7
7
  __require,
8
8
  __toESM,
9
9
  init_esm_shims
10
- } from "./chunk-HRF46AXJ.js";
10
+ } from "./chunk-ULIDOEZ3.js";
11
11
 
12
12
  // ../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js
13
13
  var require_ini = __commonJS({
@@ -2719,13 +2719,13 @@ var require_registry_auth_token = __commonJS({
2719
2719
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
2720
2720
  init_esm_shims();
2721
2721
 
2722
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/index.js
2722
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/index.js
2723
2723
  init_esm_shims();
2724
2724
 
2725
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/core/Ky.js
2725
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/Ky.js
2726
2726
  init_esm_shims();
2727
2727
 
2728
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/errors/HTTPError.js
2728
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/errors/HTTPError.js
2729
2729
  init_esm_shims();
2730
2730
  var HTTPError = class extends Error {
2731
2731
  response;
@@ -2733,7 +2733,7 @@ var HTTPError = class extends Error {
2733
2733
  options;
2734
2734
  constructor(response, request, options) {
2735
2735
  const code = response.status || response.status === 0 ? response.status : "";
2736
- const title = response.statusText || "";
2736
+ const title = response.statusText ?? "";
2737
2737
  const status = `${code} ${title}`.trim();
2738
2738
  const reason = status ? `status code ${status}` : "an unknown error";
2739
2739
  super(`Request failed with ${reason}: ${request.method} ${request.url}`);
@@ -2744,7 +2744,7 @@ var HTTPError = class extends Error {
2744
2744
  }
2745
2745
  };
2746
2746
 
2747
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/errors/TimeoutError.js
2747
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/errors/TimeoutError.js
2748
2748
  init_esm_shims();
2749
2749
  var TimeoutError = class extends Error {
2750
2750
  request;
@@ -2755,10 +2755,10 @@ var TimeoutError = class extends Error {
2755
2755
  }
2756
2756
  };
2757
2757
 
2758
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/body.js
2758
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/body.js
2759
2759
  init_esm_shims();
2760
2760
 
2761
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/core/constants.js
2761
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/constants.js
2762
2762
  init_esm_shims();
2763
2763
  var supportsRequestStreams = (() => {
2764
2764
  let duplexAccessed = false;
@@ -2838,7 +2838,7 @@ var requestOptionsRegistry = {
2838
2838
  priority: true
2839
2839
  };
2840
2840
 
2841
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/body.js
2841
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/body.js
2842
2842
  var getBodySize = (body) => {
2843
2843
  if (!body) {
2844
2844
  return 0;
@@ -2877,90 +2877,68 @@ var getBodySize = (body) => {
2877
2877
  }
2878
2878
  return 0;
2879
2879
  };
2880
- var streamResponse = (response, onDownloadProgress) => {
2881
- const totalBytes = Number(response.headers.get("content-length")) || 0;
2880
+ var withProgress = (stream, totalBytes, onProgress) => {
2881
+ let previousChunk;
2882
2882
  let transferredBytes = 0;
2883
+ return stream.pipeThrough(new TransformStream({
2884
+ transform(currentChunk, controller) {
2885
+ controller.enqueue(currentChunk);
2886
+ if (previousChunk) {
2887
+ transferredBytes += previousChunk.byteLength;
2888
+ let percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
2889
+ if (percent >= 1) {
2890
+ percent = 1 - Number.EPSILON;
2891
+ }
2892
+ onProgress?.({ percent, totalBytes: Math.max(totalBytes, transferredBytes), transferredBytes }, previousChunk);
2893
+ }
2894
+ previousChunk = currentChunk;
2895
+ },
2896
+ flush() {
2897
+ if (previousChunk) {
2898
+ transferredBytes += previousChunk.byteLength;
2899
+ onProgress?.({ percent: 1, totalBytes: Math.max(totalBytes, transferredBytes), transferredBytes }, previousChunk);
2900
+ }
2901
+ }
2902
+ }));
2903
+ };
2904
+ var streamResponse = (response, onDownloadProgress) => {
2905
+ if (!response.body) {
2906
+ return response;
2907
+ }
2883
2908
  if (response.status === 204) {
2884
- if (onDownloadProgress) {
2885
- onDownloadProgress({ percent: 1, totalBytes, transferredBytes }, new Uint8Array());
2886
- }
2887
2909
  return new Response(null, {
2888
2910
  status: response.status,
2889
2911
  statusText: response.statusText,
2890
2912
  headers: response.headers
2891
2913
  });
2892
2914
  }
2893
- return new Response(new ReadableStream({
2894
- async start(controller) {
2895
- const reader = response.body.getReader();
2896
- if (onDownloadProgress) {
2897
- onDownloadProgress({ percent: 0, transferredBytes: 0, totalBytes }, new Uint8Array());
2898
- }
2899
- async function read() {
2900
- const { done, value } = await reader.read();
2901
- if (done) {
2902
- controller.close();
2903
- return;
2904
- }
2905
- if (onDownloadProgress) {
2906
- transferredBytes += value.byteLength;
2907
- const percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
2908
- onDownloadProgress({ percent, transferredBytes, totalBytes }, value);
2909
- }
2910
- controller.enqueue(value);
2911
- await read();
2912
- }
2913
- await read();
2914
- }
2915
- }), {
2915
+ const totalBytes = Number(response.headers.get("content-length")) || 0;
2916
+ return new Response(withProgress(response.body, totalBytes, onDownloadProgress), {
2916
2917
  status: response.status,
2917
2918
  statusText: response.statusText,
2918
2919
  headers: response.headers
2919
2920
  });
2920
2921
  };
2921
2922
  var streamRequest = (request, onUploadProgress, originalBody) => {
2923
+ if (!request.body) {
2924
+ return request;
2925
+ }
2922
2926
  const totalBytes = getBodySize(originalBody ?? request.body);
2923
- let transferredBytes = 0;
2924
2927
  return new Request(request, {
2925
2928
  // @ts-expect-error - Types are outdated.
2926
2929
  duplex: "half",
2927
- body: new ReadableStream({
2928
- async start(controller) {
2929
- const reader = request.body instanceof ReadableStream ? request.body.getReader() : new Response("").body.getReader();
2930
- async function read() {
2931
- const { done, value } = await reader.read();
2932
- if (done) {
2933
- if (onUploadProgress) {
2934
- onUploadProgress({ percent: 1, transferredBytes, totalBytes: Math.max(totalBytes, transferredBytes) }, new Uint8Array());
2935
- }
2936
- controller.close();
2937
- return;
2938
- }
2939
- transferredBytes += value.byteLength;
2940
- let percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
2941
- if (totalBytes < transferredBytes || percent === 1) {
2942
- percent = 0.99;
2943
- }
2944
- if (onUploadProgress) {
2945
- onUploadProgress({ percent: Number(percent.toFixed(2)), transferredBytes, totalBytes }, value);
2946
- }
2947
- controller.enqueue(value);
2948
- await read();
2949
- }
2950
- await read();
2951
- }
2952
- })
2930
+ body: withProgress(request.body, totalBytes, onUploadProgress)
2953
2931
  });
2954
2932
  };
2955
2933
 
2956
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/merge.js
2934
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/merge.js
2957
2935
  init_esm_shims();
2958
2936
 
2959
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/is.js
2937
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/is.js
2960
2938
  init_esm_shims();
2961
2939
  var isObject = (value) => value !== null && typeof value === "object";
2962
2940
 
2963
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/merge.js
2941
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/merge.js
2964
2942
  var validateAndMerge = (...sources) => {
2965
2943
  for (const source of sources) {
2966
2944
  if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
@@ -3021,7 +2999,7 @@ var deepMerge = (...sources) => {
3021
2999
  return returnValue;
3022
3000
  };
3023
3001
 
3024
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/normalize.js
3002
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/normalize.js
3025
3003
  init_esm_shims();
3026
3004
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
3027
3005
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
@@ -3055,7 +3033,7 @@ var normalizeRetryOptions = (retry = {}) => {
3055
3033
  };
3056
3034
  };
3057
3035
 
3058
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/timeout.js
3036
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/timeout.js
3059
3037
  init_esm_shims();
3060
3038
  async function timeout(request, init, abortController, options) {
3061
3039
  return new Promise((resolve, reject) => {
@@ -3071,7 +3049,7 @@ async function timeout(request, init, abortController, options) {
3071
3049
  });
3072
3050
  }
3073
3051
 
3074
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/delay.js
3052
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/delay.js
3075
3053
  init_esm_shims();
3076
3054
  async function delay(ms, { signal }) {
3077
3055
  return new Promise((resolve, reject) => {
@@ -3090,7 +3068,7 @@ async function delay(ms, { signal }) {
3090
3068
  });
3091
3069
  }
3092
3070
 
3093
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/options.js
3071
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/options.js
3094
3072
  init_esm_shims();
3095
3073
  var findUnknownOptions = (request, options) => {
3096
3074
  const unknownOptions = {};
@@ -3120,7 +3098,7 @@ var hasSearchParameters = (search) => {
3120
3098
  return Boolean(search);
3121
3099
  };
3122
3100
 
3123
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/core/Ky.js
3101
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/Ky.js
3124
3102
  var Ky = class _Ky {
3125
3103
  static create(input, options) {
3126
3104
  const ky2 = new _Ky(input, options);
@@ -3157,9 +3135,15 @@ var Ky = class _Ky {
3157
3135
  };
3158
3136
  const isRetriableMethod = ky2._options.retry.methods.includes(ky2.request.method.toLowerCase());
3159
3137
  const result = (isRetriableMethod ? ky2._retry(function_) : function_()).finally(async () => {
3138
+ const originalRequest = ky2._originalRequest;
3139
+ const cleanupPromises = [];
3140
+ if (originalRequest && !originalRequest.bodyUsed) {
3141
+ cleanupPromises.push(originalRequest.body?.cancel());
3142
+ }
3160
3143
  if (!ky2.request.bodyUsed) {
3161
- await ky2.request.body?.cancel();
3144
+ cleanupPromises.push(ky2.request.body?.cancel());
3162
3145
  }
3146
+ await Promise.all(cleanupPromises);
3163
3147
  });
3164
3148
  for (const [type, mimeType] of Object.entries(responseTypes)) {
3165
3149
  if (type === "bytes" && typeof globalThis.Response?.prototype?.bytes !== "function") {
@@ -3198,6 +3182,7 @@ var Ky = class _Ky {
3198
3182
  _retryCount = 0;
3199
3183
  _input;
3200
3184
  _options;
3185
+ _originalRequest;
3201
3186
  // eslint-disable-next-line complexity
3202
3187
  constructor(input, options = {}) {
3203
3188
  this._input = input;
@@ -3333,16 +3318,16 @@ var Ky = class _Ky {
3333
3318
  }
3334
3319
  }
3335
3320
  const nonRequestOptions = findUnknownOptions(this.request, this._options);
3336
- const mainRequest = this.request;
3337
- this.request = mainRequest.clone();
3321
+ this._originalRequest = this.request;
3322
+ this.request = this._originalRequest.clone();
3338
3323
  if (this._options.timeout === false) {
3339
- return this._options.fetch(mainRequest, nonRequestOptions);
3324
+ return this._options.fetch(this._originalRequest, nonRequestOptions);
3340
3325
  }
3341
- return timeout(mainRequest, nonRequestOptions, this.abortController, this._options);
3326
+ return timeout(this._originalRequest, nonRequestOptions, this.abortController, this._options);
3342
3327
  }
3343
3328
  };
3344
3329
 
3345
- // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/index.js
3330
+ // ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/index.js
3346
3331
  var createInstance = (defaults) => {
3347
3332
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
3348
3333
  for (const method of requestMethods) {