@storm-software/linting-tools 1.132.82 → 1.132.84

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 (50) hide show
  1. package/bin/{chunk-BZBPOGLD.js → chunk-44ZHXM2A.js} +2 -2
  2. package/bin/{chunk-6NMQSJ45.js → chunk-4522FOPX.js} +3 -3
  3. package/bin/{chunk-N3J3XBTW.js → chunk-BQ6FPZ3D.js} +2 -2
  4. package/bin/{chunk-G7XTVUXQ.js → chunk-CEOYJPB2.js} +1 -1
  5. package/bin/{chunk-JUHKVXVB.cjs → chunk-D6MZSV4T.cjs} +5 -5
  6. package/bin/{chunk-RMYW4BMO.cjs → chunk-DITHJ7WM.cjs} +5 -5
  7. package/bin/{chunk-LTEMM6OK.js → chunk-HYL6Y2ZL.js} +2 -2
  8. package/bin/{chunk-RRAW5BU3.js → chunk-I4VKOBYO.js} +2 -2
  9. package/bin/{chunk-TZLEELSJ.cjs → chunk-IFOPV3OR.cjs} +2 -2
  10. package/bin/{chunk-G5STVDEQ.cjs → chunk-LFBJ4R2J.cjs} +181 -181
  11. package/bin/{chunk-TDCNI5HP.cjs → chunk-O6MWUECO.cjs} +20 -20
  12. package/bin/{chunk-O4U4W3YQ.cjs → chunk-ODE2DGBQ.cjs} +5 -5
  13. package/bin/{chunk-6WF54AHT.js → chunk-OFYOJ7GD.js} +2 -2
  14. package/bin/{chunk-VG5X6OBL.cjs → chunk-QLEXF3FM.cjs} +2 -2
  15. package/bin/{chunk-5GRPXDMU.js → chunk-TGQG4HFN.js} +91 -91
  16. package/bin/{chunk-EC4TR565.cjs → chunk-TIDY3MEO.cjs} +6 -6
  17. package/bin/{chunk-LPYA2BIK.js → chunk-UOAGIDYL.js} +1 -1
  18. package/bin/{chunk-6B2W5NCR.cjs → chunk-VNVLFUUL.cjs} +2 -2
  19. package/bin/{chunk-FIVIW27K.cjs → chunk-WZJQXYTN.cjs} +15 -15
  20. package/bin/{chunk-O5RFSZXE.js → chunk-ZX4WGBVK.js} +2 -2
  21. package/bin/{dist-VVOVHS2S.cjs → dist-4Y2G624Q.cjs} +6 -6
  22. package/bin/{dist-FXQ52272.js → dist-NDSR2EB6.js} +2 -2
  23. package/bin/{dist-BHTAZVGW.js → dist-PPZBVQXF.js} +8 -8
  24. package/bin/{dist-YA2R7XTW.cjs → dist-TLOV3HWE.cjs} +206 -206
  25. package/bin/{esm-TSYFFLVV.cjs → esm-4QEYUTVZ.cjs} +4 -4
  26. package/bin/{esm-JZ5ZZ7S4.js → esm-VXWIU6ES.js} +1 -1
  27. package/bin/json5-6JSAO7A7.cjs +10 -0
  28. package/bin/json5-OH2VAPKK.js +10 -0
  29. package/bin/jsonc-5AA3I6QL.cjs +15 -0
  30. package/bin/{jsonc-K3TPKJ3I.js → jsonc-7SBRZL6X.js} +3 -3
  31. package/bin/lint.cjs +4147 -5472
  32. package/bin/lint.js +7472 -8855
  33. package/bin/{multipart-parser-MCUDLSRV.js → multipart-parser-G55PS422.js} +2 -2
  34. package/bin/{multipart-parser-34AWZHAV.cjs → multipart-parser-N7BGHFG2.cjs} +6 -6
  35. package/bin/{package-json-EYNVQQI7.cjs → package-json-OAHWT6TX.cjs} +173 -155
  36. package/bin/{package-json-2ZAU7QS3.js → package-json-TP5AN27J.js} +77 -59
  37. package/bin/toml-TGPH4BVL.js +10 -0
  38. package/bin/toml-TTOUMPYI.cjs +10 -0
  39. package/bin/{utils-MAWRZUMB.cjs → utils-DJF3ARFK.cjs} +5 -5
  40. package/bin/{utils-V6MLQYRC.js → utils-JSNMBAH6.js} +2 -2
  41. package/bin/yaml-BQ737IRZ.cjs +10 -0
  42. package/bin/yaml-C4PLWN7E.js +10 -0
  43. package/package.json +4 -4
  44. package/bin/json5-COTEGXGA.js +0 -10
  45. package/bin/json5-RFMUFFIT.cjs +0 -10
  46. package/bin/jsonc-7QYMR2LO.cjs +0 -15
  47. package/bin/toml-6LSHH67K.cjs +0 -10
  48. package/bin/toml-X5O4PQOH.js +0 -10
  49. package/bin/yaml-GWNO6GAW.cjs +0 -10
  50. package/bin/yaml-Q3CNUTKJ.js +0 -10
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  require_semver
3
- } from "./chunk-5GRPXDMU.js";
3
+ } from "./chunk-TGQG4HFN.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __dirname,
7
7
  __require,
8
8
  __toESM,
9
9
  init_esm_shims
10
- } from "./chunk-6WF54AHT.js";
10
+ } from "./chunk-OFYOJ7GD.js";
11
11
 
12
12
  // ../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js
13
13
  var require_ini = __commonJS({
@@ -1869,9 +1869,9 @@ var require_config_chain = __commonJS({
1869
1869
  }
1870
1870
  });
1871
1871
 
1872
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
1872
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
1873
1873
  var require_envKeyToSetting = __commonJS({
1874
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js"(exports, module) {
1874
+ "../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js"(exports, module) {
1875
1875
  init_esm_shims();
1876
1876
  module.exports = function(x) {
1877
1877
  const colonIndex = x.indexOf(":");
@@ -1880,7 +1880,7 @@ var require_envKeyToSetting = __commonJS({
1880
1880
  }
1881
1881
  const firstPart = x.substr(0, colonIndex);
1882
1882
  const secondPart = x.substr(colonIndex + 1);
1883
- return `${normalize(firstPart)}:${normalize(secondPart)}`;
1883
+ return `${firstPart}:${normalize(secondPart)}`;
1884
1884
  };
1885
1885
  function normalize(s) {
1886
1886
  s = s.toLowerCase();
@@ -1944,11 +1944,11 @@ var require_dist2 = __commonJS({
1944
1944
  }
1945
1945
  });
1946
1946
 
1947
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/util.js
1947
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/util.js
1948
1948
  import * as __import_fs4 from "fs";
1949
1949
  import * as __import_path4 from "path";
1950
1950
  var require_util = __commonJS({
1951
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/util.js"(exports) {
1951
+ "../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/util.js"(exports) {
1952
1952
  init_esm_shims();
1953
1953
  var __import__pnpm_config_envReplace = __toESM(require_dist2());
1954
1954
  var fs = __import_fs4;
@@ -1995,7 +1995,12 @@ var require_util = __commonJS({
1995
1995
  return void 0;
1996
1996
  }
1997
1997
  }
1998
- field = envReplace(field, process.env);
1998
+ const processedField = envReplace(field, process.env);
1999
+ if ((key.endsWith(":tokenHelper") || key === "tokenHelper") && processedField !== field) {
2000
+ throw new Error(`It is not allowed to use environment variables in the value of the ${key} setting.`);
2001
+ } else {
2002
+ field = processedField;
2003
+ }
1999
2004
  if (isPath) {
2000
2005
  const regex = process.platform === "win32" ? /^~(\/|\\)/ : /^~\//;
2001
2006
  if (regex.test(field) && process.env.HOME) {
@@ -2052,12 +2057,12 @@ var require_util = __commonJS({
2052
2057
  }
2053
2058
  });
2054
2059
 
2055
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/types.js
2060
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/types.js
2056
2061
  import * as __import_path5 from "path";
2057
2062
  import * as __import_stream2 from "stream";
2058
2063
  import * as __import_url2 from "url";
2059
2064
  var require_types = __commonJS({
2060
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
2065
+ "../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
2061
2066
  init_esm_shims();
2062
2067
  var path = __import_path5;
2063
2068
  var Stream = __import_stream2.Stream;
@@ -2194,11 +2199,11 @@ var require_types = __commonJS({
2194
2199
  }
2195
2200
  });
2196
2201
 
2197
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/conf.js
2202
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/conf.js
2198
2203
  import * as __import_fs5 from "fs";
2199
2204
  import * as __import_path6 from "path";
2200
2205
  var require_conf = __commonJS({
2201
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/conf.js"(exports, module) {
2206
+ "../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/conf.js"(exports, module) {
2202
2207
  init_esm_shims();
2203
2208
  var __import__pnpm_network_caFile = __toESM(require_dist());
2204
2209
  var __import_configChain = __toESM(require_config_chain());
@@ -2361,11 +2366,11 @@ var require_conf = __commonJS({
2361
2366
  }
2362
2367
  });
2363
2368
 
2364
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js
2369
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/defaults.js
2365
2370
  import * as __import_os from "os";
2366
2371
  import * as __import_path7 from "path";
2367
2372
  var require_defaults = __commonJS({
2368
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports) {
2373
+ "../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports) {
2369
2374
  init_esm_shims();
2370
2375
  var os = __import_os;
2371
2376
  var path = __import_path7;
@@ -2478,7 +2483,7 @@ var require_defaults = __commonJS({
2478
2483
  "prefer-offline": false,
2479
2484
  "prefer-online": false,
2480
2485
  prefix: globalPrefix,
2481
- production: process.env.NODE_ENV === "production",
2486
+ production: false,
2482
2487
  "progress": !process.env.TRAVIS && !process.env.CI,
2483
2488
  provenance: false,
2484
2489
  proxy: null,
@@ -2531,10 +2536,10 @@ var require_defaults = __commonJS({
2531
2536
  }
2532
2537
  });
2533
2538
 
2534
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/index.js
2539
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/index.js
2535
2540
  import * as __import_path8 from "path";
2536
2541
  var require_npm_conf = __commonJS({
2537
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/index.js"(exports, module) {
2542
+ "../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/index.js"(exports, module) {
2538
2543
  init_esm_shims();
2539
2544
  var __import___lib_conf = __toESM(require_conf());
2540
2545
  var __import___lib_defaults = __toESM(require_defaults());
@@ -2598,9 +2603,9 @@ var require_npm_conf = __commonJS({
2598
2603
  }
2599
2604
  });
2600
2605
 
2601
- // ../../node_modules/.pnpm/registry-auth-token@5.1.0/node_modules/registry-auth-token/index.js
2606
+ // ../../node_modules/.pnpm/registry-auth-token@5.1.1/node_modules/registry-auth-token/index.js
2602
2607
  var require_registry_auth_token = __commonJS({
2603
- "../../node_modules/.pnpm/registry-auth-token@5.1.0/node_modules/registry-auth-token/index.js"(exports, module) {
2608
+ "../../node_modules/.pnpm/registry-auth-token@5.1.1/node_modules/registry-auth-token/index.js"(exports, module) {
2604
2609
  init_esm_shims();
2605
2610
  var __import__pnpm_npmConf = __toESM(require_npm_conf());
2606
2611
  var npmConf = __import__pnpm_npmConf;
@@ -2719,13 +2724,13 @@ var require_registry_auth_token = __commonJS({
2719
2724
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
2720
2725
  init_esm_shims();
2721
2726
 
2722
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/index.js
2727
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/index.js
2723
2728
  init_esm_shims();
2724
2729
 
2725
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/core/Ky.js
2730
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/core/Ky.js
2726
2731
  init_esm_shims();
2727
2732
 
2728
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/errors/HTTPError.js
2733
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/HTTPError.js
2729
2734
  init_esm_shims();
2730
2735
  var HTTPError = class extends Error {
2731
2736
  response;
@@ -2744,7 +2749,7 @@ var HTTPError = class extends Error {
2744
2749
  }
2745
2750
  };
2746
2751
 
2747
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/errors/NonError.js
2752
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/NonError.js
2748
2753
  init_esm_shims();
2749
2754
  var NonError = class extends Error {
2750
2755
  name = "NonError";
@@ -2764,7 +2769,7 @@ var NonError = class extends Error {
2764
2769
  }
2765
2770
  };
2766
2771
 
2767
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/errors/ForceRetryError.js
2772
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/ForceRetryError.js
2768
2773
  init_esm_shims();
2769
2774
  var ForceRetryError = class extends Error {
2770
2775
  name = "ForceRetryError";
@@ -2780,10 +2785,10 @@ var ForceRetryError = class extends Error {
2780
2785
  }
2781
2786
  };
2782
2787
 
2783
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/body.js
2788
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/body.js
2784
2789
  init_esm_shims();
2785
2790
 
2786
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/core/constants.js
2791
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/core/constants.js
2787
2792
  init_esm_shims();
2788
2793
  var supportsRequestStreams = (() => {
2789
2794
  let duplexAccessed = false;
@@ -2873,7 +2878,7 @@ var requestOptionsRegistry = {
2873
2878
  duplex: true
2874
2879
  };
2875
2880
 
2876
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/body.js
2881
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/body.js
2877
2882
  var getBodySize = (body) => {
2878
2883
  if (!body) {
2879
2884
  return 0;
@@ -2966,14 +2971,14 @@ var streamRequest = (request, onUploadProgress, originalBody) => {
2966
2971
  });
2967
2972
  };
2968
2973
 
2969
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/merge.js
2974
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/merge.js
2970
2975
  init_esm_shims();
2971
2976
 
2972
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/is.js
2977
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/is.js
2973
2978
  init_esm_shims();
2974
2979
  var isObject = (value) => value !== null && typeof value === "object";
2975
2980
 
2976
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/merge.js
2981
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/merge.js
2977
2982
  var validateAndMerge = (...sources) => {
2978
2983
  for (const source of sources) {
2979
2984
  if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
@@ -3099,13 +3104,10 @@ var deepMerge = (...sources) => {
3099
3104
  returnValue.signal = signals.at(-1);
3100
3105
  }
3101
3106
  }
3102
- if (returnValue.context === void 0) {
3103
- returnValue.context = {};
3104
- }
3105
3107
  return returnValue;
3106
3108
  };
3107
3109
 
3108
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/normalize.js
3110
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/normalize.js
3109
3111
  init_esm_shims();
3110
3112
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
3111
3113
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
@@ -3132,6 +3134,7 @@ var normalizeRetryOptions = (retry2 = {}) => {
3132
3134
  if (retry2.methods && !Array.isArray(retry2.methods)) {
3133
3135
  throw new Error("retry.methods must be an array");
3134
3136
  }
3137
+ retry2.methods &&= retry2.methods.map((method) => method.toLowerCase());
3135
3138
  if (retry2.statusCodes && !Array.isArray(retry2.statusCodes)) {
3136
3139
  throw new Error("retry.statusCodes must be an array");
3137
3140
  }
@@ -3142,10 +3145,10 @@ var normalizeRetryOptions = (retry2 = {}) => {
3142
3145
  };
3143
3146
  };
3144
3147
 
3145
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/timeout.js
3148
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/timeout.js
3146
3149
  init_esm_shims();
3147
3150
 
3148
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/errors/TimeoutError.js
3151
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/TimeoutError.js
3149
3152
  init_esm_shims();
3150
3153
  var TimeoutError = class extends Error {
3151
3154
  request;
@@ -3156,7 +3159,7 @@ var TimeoutError = class extends Error {
3156
3159
  }
3157
3160
  };
3158
3161
 
3159
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/timeout.js
3162
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/timeout.js
3160
3163
  async function timeout(request, init, abortController, options) {
3161
3164
  return new Promise((resolve, reject) => {
3162
3165
  const timeoutId = setTimeout(() => {
@@ -3171,7 +3174,7 @@ async function timeout(request, init, abortController, options) {
3171
3174
  });
3172
3175
  }
3173
3176
 
3174
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/delay.js
3177
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/delay.js
3175
3178
  init_esm_shims();
3176
3179
  async function delay(ms, { signal }) {
3177
3180
  return new Promise((resolve, reject) => {
@@ -3190,7 +3193,7 @@ async function delay(ms, { signal }) {
3190
3193
  });
3191
3194
  }
3192
3195
 
3193
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/options.js
3196
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/options.js
3194
3197
  init_esm_shims();
3195
3198
  var findUnknownOptions = (request, options) => {
3196
3199
  const unknownOptions = {};
@@ -3223,7 +3226,7 @@ var hasSearchParameters = (search) => {
3223
3226
  return Boolean(search);
3224
3227
  };
3225
3228
 
3226
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/utils/type-guards.js
3229
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/type-guards.js
3227
3230
  init_esm_shims();
3228
3231
  function isHTTPError(error) {
3229
3232
  return error instanceof HTTPError || error?.name === HTTPError.name;
@@ -3232,7 +3235,7 @@ function isTimeoutError(error) {
3232
3235
  return error instanceof TimeoutError || error?.name === TimeoutError.name;
3233
3236
  }
3234
3237
 
3235
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/core/Ky.js
3238
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/core/Ky.js
3236
3239
  var Ky = class _Ky {
3237
3240
  static create(input, options) {
3238
3241
  const ky2 = new _Ky(input, options);
@@ -3244,17 +3247,27 @@ var Ky = class _Ky {
3244
3247
  let response = await ky2.#fetch();
3245
3248
  for (const hook of ky2.#options.hooks.afterResponse) {
3246
3249
  const clonedResponse = ky2.#decorateResponse(response.clone());
3247
- const modifiedResponse = await hook(ky2.request, ky2.#getNormalizedOptions(), clonedResponse, { retryCount: ky2.#retryCount });
3248
- if (modifiedResponse instanceof globalThis.Response) {
3249
- response = modifiedResponse;
3250
+ let modifiedResponse;
3251
+ try {
3252
+ modifiedResponse = await hook(ky2.request, ky2.#getNormalizedOptions(), clonedResponse, { retryCount: ky2.#retryCount });
3253
+ } catch (error) {
3254
+ ky2.#cancelResponseBody(clonedResponse);
3255
+ ky2.#cancelResponseBody(response);
3256
+ throw error;
3250
3257
  }
3251
3258
  if (modifiedResponse instanceof RetryMarker) {
3252
- await Promise.all([
3253
- clonedResponse.body?.cancel(),
3254
- response.body?.cancel()
3255
- ]);
3259
+ ky2.#cancelResponseBody(clonedResponse);
3260
+ ky2.#cancelResponseBody(response);
3256
3261
  throw new ForceRetryError(modifiedResponse.options);
3257
3262
  }
3263
+ const nextResponse = modifiedResponse instanceof globalThis.Response ? modifiedResponse : response;
3264
+ if (clonedResponse !== nextResponse) {
3265
+ ky2.#cancelResponseBody(clonedResponse);
3266
+ }
3267
+ if (response !== nextResponse) {
3268
+ ky2.#cancelResponseBody(response);
3269
+ }
3270
+ response = nextResponse;
3258
3271
  }
3259
3272
  ky2.#decorateResponse(response);
3260
3273
  if (!response.ok && (typeof ky2.#options.throwHttpErrors === "function" ? ky2.#options.throwHttpErrors(response.status) : ky2.#options.throwHttpErrors)) {
@@ -3271,20 +3284,16 @@ var Ky = class _Ky {
3271
3284
  if (!supportsResponseStreams) {
3272
3285
  throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");
3273
3286
  }
3274
- return streamResponse(response.clone(), ky2.#options.onDownloadProgress);
3287
+ const progressResponse = response.clone();
3288
+ ky2.#cancelResponseBody(response);
3289
+ return streamResponse(progressResponse, ky2.#options.onDownloadProgress);
3275
3290
  }
3276
3291
  return response;
3277
3292
  };
3278
- const result = ky2.#retry(function_).finally(async () => {
3293
+ const result = ky2.#retry(function_).finally(() => {
3279
3294
  const originalRequest = ky2.#originalRequest;
3280
- const cleanupPromises = [];
3281
- if (originalRequest && !originalRequest.bodyUsed) {
3282
- cleanupPromises.push(originalRequest.body?.cancel());
3283
- }
3284
- if (!ky2.request.bodyUsed) {
3285
- cleanupPromises.push(ky2.request.body?.cancel());
3286
- }
3287
- await Promise.all(cleanupPromises);
3295
+ ky2.#cancelBody(originalRequest?.body ?? void 0);
3296
+ ky2.#cancelBody(ky2.request.body ?? void 0);
3288
3297
  });
3289
3298
  for (const [type, mimeType] of Object.entries(responseTypes)) {
3290
3299
  if (type === "bytes" && typeof globalThis.Response?.prototype?.bytes !== "function") {
@@ -3458,6 +3467,15 @@ var Ky = class _Ky {
3458
3467
  }
3459
3468
  return response;
3460
3469
  }
3470
+ #cancelBody(body) {
3471
+ if (!body) {
3472
+ return;
3473
+ }
3474
+ void body.cancel().catch(() => void 0);
3475
+ }
3476
+ #cancelResponseBody(response) {
3477
+ this.#cancelBody(response.body ?? void 0);
3478
+ }
3461
3479
  async #retry(function_) {
3462
3480
  try {
3463
3481
  return await function_();
@@ -3535,7 +3553,7 @@ var Ky = class _Ky {
3535
3553
  }
3536
3554
  };
3537
3555
 
3538
- // ../../node_modules/.pnpm/ky@1.14.1/node_modules/ky/distribution/index.js
3556
+ // ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/index.js
3539
3557
  var createInstance = (defaults) => {
3540
3558
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
3541
3559
  for (const method of requestMethods) {
@@ -0,0 +1,10 @@
1
+ import {
2
+ ae,
3
+ ue
4
+ } from "./chunk-BQ6FPZ3D.js";
5
+ import "./chunk-UOAGIDYL.js";
6
+ import "./chunk-OFYOJ7GD.js";
7
+ export {
8
+ ae as parseTOML,
9
+ ue as stringifyTOML
10
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkD6MZSV4Tcjs = require('./chunk-D6MZSV4T.cjs');
5
+ require('./chunk-IFOPV3OR.cjs');
6
+ require('./chunk-VNVLFUUL.cjs');
7
+
8
+
9
+
10
+ exports.parseTOML = _chunkD6MZSV4Tcjs.ae; exports.stringifyTOML = _chunkD6MZSV4Tcjs.ue;
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkVG5X6OBLcjs = require('./chunk-VG5X6OBL.cjs');
4
+ var _chunkQLEXF3FMcjs = require('./chunk-QLEXF3FM.cjs');
5
5
 
6
6
 
7
- var _chunk6B2W5NCRcjs = require('./chunk-6B2W5NCR.cjs');
7
+ var _chunkVNVLFUULcjs = require('./chunk-VNVLFUUL.cjs');
8
8
 
9
9
  // ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/utils/index.mjs
10
- _chunk6B2W5NCRcjs.init_cjs_shims.call(void 0, );
10
+ _chunkVNVLFUULcjs.init_cjs_shims.call(void 0, );
11
11
  function diff(obj1, obj2) {
12
12
  const h1 = _toHashedObject(obj1);
13
13
  const h2 = _toHashedObject(obj2);
@@ -39,7 +39,7 @@ function _diff(h1, h2) {
39
39
  }
40
40
  function _toHashedObject(obj, key = "") {
41
41
  if (obj && typeof obj !== "object") {
42
- return new DiffHashedObject(key, obj, _chunkVG5X6OBLcjs.serialize.call(void 0, obj));
42
+ return new DiffHashedObject(key, obj, _chunkQLEXF3FMcjs.serialize.call(void 0, obj));
43
43
  }
44
44
  const props = {};
45
45
  const hashes = [];
@@ -98,4 +98,4 @@ var DiffHashedObject = class {
98
98
 
99
99
 
100
100
 
101
- exports.diff = diff; exports.isEqual = _chunkVG5X6OBLcjs.isEqual;
101
+ exports.diff = diff; exports.isEqual = _chunkQLEXF3FMcjs.isEqual;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  isEqual,
3
3
  serialize
4
- } from "./chunk-G7XTVUXQ.js";
4
+ } from "./chunk-CEOYJPB2.js";
5
5
  import {
6
6
  init_esm_shims
7
- } from "./chunk-6WF54AHT.js";
7
+ } from "./chunk-OFYOJ7GD.js";
8
8
 
9
9
  // ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/utils/index.mjs
10
10
  init_esm_shims();
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkDITHJ7WMcjs = require('./chunk-DITHJ7WM.cjs');
5
+ require('./chunk-IFOPV3OR.cjs');
6
+ require('./chunk-VNVLFUUL.cjs');
7
+
8
+
9
+
10
+ exports.parseYAML = _chunkDITHJ7WMcjs.Ar; exports.stringifyYAML = _chunkDITHJ7WMcjs.vr;
@@ -0,0 +1,10 @@
1
+ import {
2
+ Ar,
3
+ vr
4
+ } from "./chunk-44ZHXM2A.js";
5
+ import "./chunk-UOAGIDYL.js";
6
+ import "./chunk-OFYOJ7GD.js";
7
+ export {
8
+ Ar as parseYAML,
9
+ vr as stringifyYAML
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.132.82",
3
+ "version": "1.132.84",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "repository": {
@@ -121,7 +121,7 @@
121
121
  "devDependencies": {
122
122
  "@manypkg/cli": "^0.23.0",
123
123
  "@manypkg/get-packages": "^2.2.2",
124
- "@types/node": "^24.10.4",
124
+ "@types/node": "^24.10.13",
125
125
  "alex": "^11.0.1",
126
126
  "check-dependency-version-consistency": "4.1.0",
127
127
  "commander": "^12.1.0",
@@ -129,7 +129,7 @@
129
129
  "dpdm": "3.14.0",
130
130
  "fs-extra": "11.2.0",
131
131
  "glob": "^11.1.0",
132
- "knip": "^5.76.3",
132
+ "knip": "^5.84.1",
133
133
  "octokit": "4.0.2",
134
134
  "p-limit": "5.0.0",
135
135
  "rehype-parse": "9.0.0",
@@ -149,5 +149,5 @@
149
149
  "vfile-reporter": "8.1.1"
150
150
  },
151
151
  "publishConfig": { "access": "public" },
152
- "gitHead": "282913d6672835512eeea3570f24995dfb7e40c6"
152
+ "gitHead": "ba13eafff9d45759d5a5d4947f0b38ee79000e15"
153
153
  }
@@ -1,10 +0,0 @@
1
- import {
2
- cu,
3
- ou
4
- } from "./chunk-O5RFSZXE.js";
5
- import "./chunk-LPYA2BIK.js";
6
- import "./chunk-6WF54AHT.js";
7
- export {
8
- ou as parseJSON5,
9
- cu as stringifyJSON5
10
- };
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkO4U4W3YQcjs = require('./chunk-O4U4W3YQ.cjs');
5
- require('./chunk-TZLEELSJ.cjs');
6
- require('./chunk-6B2W5NCR.cjs');
7
-
8
-
9
-
10
- exports.parseJSON5 = _chunkO4U4W3YQcjs.ou; exports.stringifyJSON5 = _chunkO4U4W3YQcjs.cu;
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkEC4TR565cjs = require('./chunk-EC4TR565.cjs');
5
- require('./chunk-TZLEELSJ.cjs');
6
-
7
-
8
- var _chunk6B2W5NCRcjs = require('./chunk-6B2W5NCR.cjs');
9
-
10
- // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/jsonc.mjs
11
- _chunk6B2W5NCRcjs.init_cjs_shims.call(void 0, );
12
-
13
-
14
-
15
- exports.parseJSONC = _chunkEC4TR565cjs.h; exports.stringifyJSONC = _chunkEC4TR565cjs.d;
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkJUHKVXVBcjs = require('./chunk-JUHKVXVB.cjs');
5
- require('./chunk-TZLEELSJ.cjs');
6
- require('./chunk-6B2W5NCR.cjs');
7
-
8
-
9
-
10
- exports.parseTOML = _chunkJUHKVXVBcjs.ae; exports.stringifyTOML = _chunkJUHKVXVBcjs.ue;
@@ -1,10 +0,0 @@
1
- import {
2
- ae,
3
- ue
4
- } from "./chunk-N3J3XBTW.js";
5
- import "./chunk-LPYA2BIK.js";
6
- import "./chunk-6WF54AHT.js";
7
- export {
8
- ae as parseTOML,
9
- ue as stringifyTOML
10
- };
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkRMYW4BMOcjs = require('./chunk-RMYW4BMO.cjs');
5
- require('./chunk-TZLEELSJ.cjs');
6
- require('./chunk-6B2W5NCR.cjs');
7
-
8
-
9
-
10
- exports.parseYAML = _chunkRMYW4BMOcjs.Ar; exports.stringifyYAML = _chunkRMYW4BMOcjs.vr;
@@ -1,10 +0,0 @@
1
- import {
2
- Ar,
3
- vr
4
- } from "./chunk-BZBPOGLD.js";
5
- import "./chunk-LPYA2BIK.js";
6
- import "./chunk-6WF54AHT.js";
7
- export {
8
- Ar as parseYAML,
9
- vr as stringifyYAML
10
- };