@storm-software/linting-tools 1.119.40 → 1.119.41

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; } var _class;
2
2
 
3
- var _chunkGMUTFKUHcjs = require('./chunk-GMUTFKUH.cjs');
3
+ var _chunkNAZXIZNZcjs = require('./chunk-NAZXIZNZ.cjs');
4
4
 
5
5
 
6
6
 
@@ -2908,13 +2908,13 @@ var require_registry_auth_token = _chunkTGX6Z6KZcjs.__commonJS.call(void 0, {
2908
2908
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
2909
2909
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
2910
2910
 
2911
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/index.js
2911
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/index.js
2912
2912
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
2913
2913
 
2914
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/Ky.js
2914
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/core/Ky.js
2915
2915
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
2916
2916
 
2917
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/errors/HTTPError.js
2917
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/errors/HTTPError.js
2918
2918
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
2919
2919
  var HTTPError = class extends Error {
2920
2920
  static {
@@ -2936,7 +2936,7 @@ var HTTPError = class extends Error {
2936
2936
  }
2937
2937
  };
2938
2938
 
2939
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/errors/TimeoutError.js
2939
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/errors/TimeoutError.js
2940
2940
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
2941
2941
  var TimeoutError = class extends Error {
2942
2942
  static {
@@ -2950,10 +2950,10 @@ var TimeoutError = class extends Error {
2950
2950
  }
2951
2951
  };
2952
2952
 
2953
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/body.js
2953
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/body.js
2954
2954
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
2955
2955
 
2956
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/constants.js
2956
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/core/constants.js
2957
2957
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
2958
2958
  var supportsRequestStreams = (() => {
2959
2959
  let duplexAccessed = false;
@@ -3036,7 +3036,7 @@ var requestOptionsRegistry = {
3036
3036
  priority: true
3037
3037
  };
3038
3038
 
3039
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/body.js
3039
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/body.js
3040
3040
  var getBodySize = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (body) => {
3041
3041
  if (!body) {
3042
3042
  return 0;
@@ -3173,14 +3173,14 @@ var streamRequest = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (reque
3173
3173
  });
3174
3174
  }, "streamRequest");
3175
3175
 
3176
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/merge.js
3176
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/merge.js
3177
3177
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
3178
3178
 
3179
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/is.js
3179
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/is.js
3180
3180
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
3181
3181
  var isObject = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (value) => value !== null && typeof value === "object", "isObject");
3182
3182
 
3183
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/merge.js
3183
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/merge.js
3184
3184
  var validateAndMerge = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (...sources) => {
3185
3185
  for (const source of sources) {
3186
3186
  if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
@@ -3248,7 +3248,7 @@ var deepMerge = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (...source
3248
3248
  return returnValue;
3249
3249
  }, "deepMerge");
3250
3250
 
3251
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/normalize.js
3251
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/normalize.js
3252
3252
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
3253
3253
  var normalizeRequestMethod = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (input) => requestMethods.includes(input) ? input.toUpperCase() : input, "normalizeRequestMethod");
3254
3254
  var retryMethods = [
@@ -3301,7 +3301,7 @@ var normalizeRetryOptions = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0
3301
3301
  };
3302
3302
  }, "normalizeRetryOptions");
3303
3303
 
3304
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/timeout.js
3304
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/timeout.js
3305
3305
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
3306
3306
  async function timeout(request, init, abortController, options) {
3307
3307
  return new Promise((resolve, reject) => {
@@ -3318,7 +3318,7 @@ async function timeout(request, init, abortController, options) {
3318
3318
  }
3319
3319
  _chunkTGX6Z6KZcjs.__name.call(void 0, timeout, "timeout");
3320
3320
 
3321
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/delay.js
3321
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/delay.js
3322
3322
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
3323
3323
  async function delay(ms, { signal }) {
3324
3324
  return new Promise((resolve, reject) => {
@@ -3341,7 +3341,7 @@ async function delay(ms, { signal }) {
3341
3341
  }
3342
3342
  _chunkTGX6Z6KZcjs.__name.call(void 0, delay, "delay");
3343
3343
 
3344
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/options.js
3344
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/options.js
3345
3345
  _chunkTGX6Z6KZcjs.init_cjs_shims.call(void 0, );
3346
3346
  var findUnknownOptions = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (request, options) => {
3347
3347
  const unknownOptions = {};
@@ -3353,7 +3353,7 @@ var findUnknownOptions = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (
3353
3353
  return unknownOptions;
3354
3354
  }, "findUnknownOptions");
3355
3355
 
3356
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/Ky.js
3356
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/core/Ky.js
3357
3357
  var Ky = (_class = class _Ky {
3358
3358
  static {
3359
3359
  _chunkTGX6Z6KZcjs.__name.call(void 0, this, "Ky");
@@ -3380,9 +3380,6 @@ var Ky = (_class = class _Ky {
3380
3380
  }
3381
3381
  throw error;
3382
3382
  }
3383
- if (!ky2.request.bodyUsed) {
3384
- await _optionalChain([ky2, 'access', _5 => _5.request, 'access', _6 => _6.body, 'optionalAccess', _7 => _7.cancel, 'call', _8 => _8()]);
3385
- }
3386
3383
  if (ky2._options.onDownloadProgress) {
3387
3384
  if (typeof ky2._options.onDownloadProgress !== "function") {
3388
3385
  throw new TypeError("The `onDownloadProgress` option must be a function");
@@ -3395,7 +3392,11 @@ var Ky = (_class = class _Ky {
3395
3392
  return response;
3396
3393
  }, "function_");
3397
3394
  const isRetriableMethod = ky2._options.retry.methods.includes(ky2.request.method.toLowerCase());
3398
- const result = isRetriableMethod ? ky2._retry(function_) : function_();
3395
+ const result = (isRetriableMethod ? ky2._retry(function_) : function_()).finally(async () => {
3396
+ if (!ky2.request.bodyUsed) {
3397
+ await _optionalChain([ky2, 'access', _5 => _5.request, 'access', _6 => _6.body, 'optionalAccess', _7 => _7.cancel, 'call', _8 => _8()]);
3398
+ }
3399
+ });
3399
3400
  for (const [type, mimeType] of Object.entries(responseTypes)) {
3400
3401
  result[type] = async () => {
3401
3402
  ky2.request.headers.set("accept", ky2.request.headers.get("accept") || mimeType);
@@ -3574,7 +3575,7 @@ var Ky = (_class = class _Ky {
3574
3575
  }
3575
3576
  }, _class);
3576
3577
 
3577
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/index.js
3578
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/index.js
3578
3579
  var createInstance = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (defaults) => {
3579
3580
  const ky2 = /* @__PURE__ */ _chunkTGX6Z6KZcjs.__name.call(void 0, (input, options) => Ky.create(input, validateAndMerge(defaults, options)), "ky");
3580
3581
  for (const method of requestMethods) {
@@ -3609,7 +3610,7 @@ _chunkTGX6Z6KZcjs.__name.call(void 0, registryUrl, "registryUrl");
3609
3610
 
3610
3611
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
3611
3612
  var import_registry_auth_token = _chunkTGX6Z6KZcjs.__toESM.call(void 0, require_registry_auth_token(), 1);
3612
- var import_semver = _chunkTGX6Z6KZcjs.__toESM.call(void 0, _chunkGMUTFKUHcjs.require_semver.call(void 0, ), 1);
3613
+ var import_semver = _chunkTGX6Z6KZcjs.__toESM.call(void 0, _chunkNAZXIZNZcjs.require_semver.call(void 0, ), 1);
3613
3614
  var PackageNotFoundError = class extends Error {
3614
3615
  static {
3615
3616
  _chunkTGX6Z6KZcjs.__name.call(void 0, this, "PackageNotFoundError");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_semver
3
- } from "./chunk-NE27PVOU.js";
3
+ } from "./chunk-VZE5Q3XL.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __dirname,
@@ -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.8.0/node_modules/ky/distribution/index.js
2912
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/index.js
2913
2913
  init_esm_shims();
2914
2914
 
2915
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/Ky.js
2915
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/core/Ky.js
2916
2916
  init_esm_shims();
2917
2917
 
2918
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/errors/HTTPError.js
2918
+ // ../../node_modules/.pnpm/ky@1.8.1/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.8.0/node_modules/ky/distribution/errors/TimeoutError.js
2940
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/errors/TimeoutError.js
2941
2941
  init_esm_shims();
2942
2942
  var TimeoutError = class extends Error {
2943
2943
  static {
@@ -2951,10 +2951,10 @@ var TimeoutError = class extends Error {
2951
2951
  }
2952
2952
  };
2953
2953
 
2954
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/body.js
2954
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/body.js
2955
2955
  init_esm_shims();
2956
2956
 
2957
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/constants.js
2957
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/core/constants.js
2958
2958
  init_esm_shims();
2959
2959
  var supportsRequestStreams = (() => {
2960
2960
  let duplexAccessed = false;
@@ -3037,7 +3037,7 @@ var requestOptionsRegistry = {
3037
3037
  priority: true
3038
3038
  };
3039
3039
 
3040
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/body.js
3040
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/body.js
3041
3041
  var getBodySize = /* @__PURE__ */ __name((body) => {
3042
3042
  if (!body) {
3043
3043
  return 0;
@@ -3174,14 +3174,14 @@ var streamRequest = /* @__PURE__ */ __name((request, onUploadProgress) => {
3174
3174
  });
3175
3175
  }, "streamRequest");
3176
3176
 
3177
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/merge.js
3177
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/merge.js
3178
3178
  init_esm_shims();
3179
3179
 
3180
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/is.js
3180
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/is.js
3181
3181
  init_esm_shims();
3182
3182
  var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object", "isObject");
3183
3183
 
3184
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/merge.js
3184
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/merge.js
3185
3185
  var validateAndMerge = /* @__PURE__ */ __name((...sources) => {
3186
3186
  for (const source of sources) {
3187
3187
  if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
@@ -3249,7 +3249,7 @@ var deepMerge = /* @__PURE__ */ __name((...sources) => {
3249
3249
  return returnValue;
3250
3250
  }, "deepMerge");
3251
3251
 
3252
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/normalize.js
3252
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/normalize.js
3253
3253
  init_esm_shims();
3254
3254
  var normalizeRequestMethod = /* @__PURE__ */ __name((input) => requestMethods.includes(input) ? input.toUpperCase() : input, "normalizeRequestMethod");
3255
3255
  var retryMethods = [
@@ -3302,7 +3302,7 @@ var normalizeRetryOptions = /* @__PURE__ */ __name((retry = {}) => {
3302
3302
  };
3303
3303
  }, "normalizeRetryOptions");
3304
3304
 
3305
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/timeout.js
3305
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/timeout.js
3306
3306
  init_esm_shims();
3307
3307
  async function timeout(request, init, abortController, options) {
3308
3308
  return new Promise((resolve, reject) => {
@@ -3319,7 +3319,7 @@ async function timeout(request, init, abortController, options) {
3319
3319
  }
3320
3320
  __name(timeout, "timeout");
3321
3321
 
3322
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/delay.js
3322
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/delay.js
3323
3323
  init_esm_shims();
3324
3324
  async function delay(ms, { signal }) {
3325
3325
  return new Promise((resolve, reject) => {
@@ -3342,7 +3342,7 @@ async function delay(ms, { signal }) {
3342
3342
  }
3343
3343
  __name(delay, "delay");
3344
3344
 
3345
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/utils/options.js
3345
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/utils/options.js
3346
3346
  init_esm_shims();
3347
3347
  var findUnknownOptions = /* @__PURE__ */ __name((request, options) => {
3348
3348
  const unknownOptions = {};
@@ -3354,7 +3354,7 @@ var findUnknownOptions = /* @__PURE__ */ __name((request, options) => {
3354
3354
  return unknownOptions;
3355
3355
  }, "findUnknownOptions");
3356
3356
 
3357
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/core/Ky.js
3357
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/core/Ky.js
3358
3358
  var Ky = class _Ky {
3359
3359
  static {
3360
3360
  __name(this, "Ky");
@@ -3381,9 +3381,6 @@ var Ky = class _Ky {
3381
3381
  }
3382
3382
  throw error;
3383
3383
  }
3384
- if (!ky2.request.bodyUsed) {
3385
- await ky2.request.body?.cancel();
3386
- }
3387
3384
  if (ky2._options.onDownloadProgress) {
3388
3385
  if (typeof ky2._options.onDownloadProgress !== "function") {
3389
3386
  throw new TypeError("The `onDownloadProgress` option must be a function");
@@ -3396,7 +3393,11 @@ var Ky = class _Ky {
3396
3393
  return response;
3397
3394
  }, "function_");
3398
3395
  const isRetriableMethod = ky2._options.retry.methods.includes(ky2.request.method.toLowerCase());
3399
- const result = isRetriableMethod ? ky2._retry(function_) : function_();
3396
+ const result = (isRetriableMethod ? ky2._retry(function_) : function_()).finally(async () => {
3397
+ if (!ky2.request.bodyUsed) {
3398
+ await ky2.request.body?.cancel();
3399
+ }
3400
+ });
3400
3401
  for (const [type, mimeType] of Object.entries(responseTypes)) {
3401
3402
  result[type] = async () => {
3402
3403
  ky2.request.headers.set("accept", ky2.request.headers.get("accept") || mimeType);
@@ -3575,7 +3576,7 @@ var Ky = class _Ky {
3575
3576
  }
3576
3577
  };
3577
3578
 
3578
- // ../../node_modules/.pnpm/ky@1.8.0/node_modules/ky/distribution/index.js
3579
+ // ../../node_modules/.pnpm/ky@1.8.1/node_modules/ky/distribution/index.js
3579
3580
  var createInstance = /* @__PURE__ */ __name((defaults) => {
3580
3581
  const ky2 = /* @__PURE__ */ __name((input, options) => Ky.create(input, validateAndMerge(defaults, options)), "ky");
3581
3582
  for (const method of requestMethods) {