@storm-software/linting-tools 1.128.13 → 1.128.14

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.
@@ -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.9.1/node_modules/ky/distribution/index.js
2722
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/index.js
2723
2723
  init_esm_shims();
2724
2724
 
2725
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/core/Ky.js
2725
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/core/Ky.js
2726
2726
  init_esm_shims();
2727
2727
 
2728
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/errors/HTTPError.js
2728
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/errors/HTTPError.js
2729
2729
  init_esm_shims();
2730
2730
  var HTTPError = class extends Error {
2731
2731
  response;
@@ -2744,7 +2744,7 @@ var HTTPError = class extends Error {
2744
2744
  }
2745
2745
  };
2746
2746
 
2747
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/errors/TimeoutError.js
2747
+ // ../../node_modules/.pnpm/ky@1.10.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.9.1/node_modules/ky/distribution/utils/body.js
2758
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/body.js
2759
2759
  init_esm_shims();
2760
2760
 
2761
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/core/constants.js
2761
+ // ../../node_modules/.pnpm/ky@1.10.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.9.1/node_modules/ky/distribution/utils/body.js
2841
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/body.js
2842
2842
  var getBodySize = (body) => {
2843
2843
  if (!body) {
2844
2844
  return 0;
@@ -2953,14 +2953,14 @@ var streamRequest = (request, onUploadProgress, originalBody) => {
2953
2953
  });
2954
2954
  };
2955
2955
 
2956
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/merge.js
2956
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/merge.js
2957
2957
  init_esm_shims();
2958
2958
 
2959
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/is.js
2959
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/is.js
2960
2960
  init_esm_shims();
2961
2961
  var isObject = (value) => value !== null && typeof value === "object";
2962
2962
 
2963
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/merge.js
2963
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/merge.js
2964
2964
  var validateAndMerge = (...sources) => {
2965
2965
  for (const source of sources) {
2966
2966
  if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
@@ -3021,7 +3021,7 @@ var deepMerge = (...sources) => {
3021
3021
  return returnValue;
3022
3022
  };
3023
3023
 
3024
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/normalize.js
3024
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/normalize.js
3025
3025
  init_esm_shims();
3026
3026
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
3027
3027
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
@@ -3055,7 +3055,7 @@ var normalizeRetryOptions = (retry = {}) => {
3055
3055
  };
3056
3056
  };
3057
3057
 
3058
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/timeout.js
3058
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/timeout.js
3059
3059
  init_esm_shims();
3060
3060
  async function timeout(request, init, abortController, options) {
3061
3061
  return new Promise((resolve, reject) => {
@@ -3071,7 +3071,7 @@ async function timeout(request, init, abortController, options) {
3071
3071
  });
3072
3072
  }
3073
3073
 
3074
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/delay.js
3074
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/delay.js
3075
3075
  init_esm_shims();
3076
3076
  async function delay(ms, { signal }) {
3077
3077
  return new Promise((resolve, reject) => {
@@ -3090,7 +3090,7 @@ async function delay(ms, { signal }) {
3090
3090
  });
3091
3091
  }
3092
3092
 
3093
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/options.js
3093
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/options.js
3094
3094
  init_esm_shims();
3095
3095
  var findUnknownOptions = (request, options) => {
3096
3096
  const unknownOptions = {};
@@ -3120,7 +3120,7 @@ var hasSearchParameters = (search) => {
3120
3120
  return Boolean(search);
3121
3121
  };
3122
3122
 
3123
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/core/Ky.js
3123
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/core/Ky.js
3124
3124
  var Ky = class _Ky {
3125
3125
  static create(input, options) {
3126
3126
  const ky2 = new _Ky(input, options);
@@ -3172,20 +3172,27 @@ var Ky = class _Ky {
3172
3172
  if (response.status === 204) {
3173
3173
  return "";
3174
3174
  }
3175
- const arrayBuffer = await response.clone().arrayBuffer();
3176
- const responseSize = arrayBuffer.byteLength;
3177
- if (responseSize === 0) {
3175
+ const text = await response.text();
3176
+ if (text === "") {
3178
3177
  return "";
3179
3178
  }
3180
3179
  if (options.parseJson) {
3181
- return options.parseJson(await response.text());
3180
+ return options.parseJson(text);
3182
3181
  }
3182
+ return JSON.parse(text);
3183
3183
  }
3184
3184
  return response[type]();
3185
3185
  };
3186
3186
  }
3187
3187
  return result;
3188
3188
  }
3189
+ // eslint-disable-next-line unicorn/prevent-abbreviations
3190
+ static #normalizeSearchParams(searchParams) {
3191
+ if (searchParams && typeof searchParams === "object" && !Array.isArray(searchParams) && !(searchParams instanceof URLSearchParams)) {
3192
+ return Object.fromEntries(Object.entries(searchParams).filter(([, value]) => value !== void 0));
3193
+ }
3194
+ return searchParams;
3195
+ }
3189
3196
  request;
3190
3197
  abortController;
3191
3198
  _retryCount = 0;
@@ -3237,7 +3244,7 @@ var Ky = class _Ky {
3237
3244
  }
3238
3245
  this.request = new globalThis.Request(this._input, this._options);
3239
3246
  if (hasSearchParameters(this._options.searchParams)) {
3240
- const textSearchParams = typeof this._options.searchParams === "string" ? this._options.searchParams.replace(/^\?/, "") : new URLSearchParams(this._options.searchParams).toString();
3247
+ const textSearchParams = typeof this._options.searchParams === "string" ? this._options.searchParams.replace(/^\?/, "") : new URLSearchParams(_Ky.#normalizeSearchParams(this._options.searchParams)).toString();
3241
3248
  const searchParams = "?" + textSearchParams;
3242
3249
  const url = this.request.url.replace(/(?:\?.*?)?(?=#|$)/, searchParams);
3243
3250
  if ((supportsFormData && this._options.body instanceof globalThis.FormData || this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers["content-type"])) {
@@ -3335,7 +3342,7 @@ var Ky = class _Ky {
3335
3342
  }
3336
3343
  };
3337
3344
 
3338
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/index.js
3345
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/index.js
3339
3346
  var createInstance = (defaults) => {
3340
3347
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
3341
3348
  for (const method of requestMethods) {
@@ -2682,13 +2682,13 @@ var require_registry_auth_token = _chunk3IVWJLOIcjs.__commonJS.call(void 0, {
2682
2682
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
2683
2683
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2684
2684
 
2685
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/index.js
2685
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/index.js
2686
2686
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2687
2687
 
2688
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/core/Ky.js
2688
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/core/Ky.js
2689
2689
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2690
2690
 
2691
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/errors/HTTPError.js
2691
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/errors/HTTPError.js
2692
2692
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2693
2693
  var HTTPError = class extends Error {
2694
2694
 
@@ -2707,7 +2707,7 @@ var HTTPError = class extends Error {
2707
2707
  }
2708
2708
  };
2709
2709
 
2710
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/errors/TimeoutError.js
2710
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/errors/TimeoutError.js
2711
2711
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2712
2712
  var TimeoutError = class extends Error {
2713
2713
 
@@ -2718,10 +2718,10 @@ var TimeoutError = class extends Error {
2718
2718
  }
2719
2719
  };
2720
2720
 
2721
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/body.js
2721
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/body.js
2722
2722
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2723
2723
 
2724
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/core/constants.js
2724
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/core/constants.js
2725
2725
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2726
2726
  var supportsRequestStreams = (() => {
2727
2727
  let duplexAccessed = false;
@@ -2801,7 +2801,7 @@ var requestOptionsRegistry = {
2801
2801
  priority: true
2802
2802
  };
2803
2803
 
2804
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/body.js
2804
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/body.js
2805
2805
  var getBodySize = (body) => {
2806
2806
  if (!body) {
2807
2807
  return 0;
@@ -2916,14 +2916,14 @@ var streamRequest = (request, onUploadProgress, originalBody) => {
2916
2916
  });
2917
2917
  };
2918
2918
 
2919
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/merge.js
2919
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/merge.js
2920
2920
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2921
2921
 
2922
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/is.js
2922
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/is.js
2923
2923
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2924
2924
  var isObject = (value) => value !== null && typeof value === "object";
2925
2925
 
2926
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/merge.js
2926
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/merge.js
2927
2927
  var validateAndMerge = (...sources) => {
2928
2928
  for (const source of sources) {
2929
2929
  if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
@@ -2984,7 +2984,7 @@ var deepMerge = (...sources) => {
2984
2984
  return returnValue;
2985
2985
  };
2986
2986
 
2987
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/normalize.js
2987
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/normalize.js
2988
2988
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
2989
2989
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
2990
2990
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
@@ -3018,7 +3018,7 @@ var normalizeRetryOptions = (retry = {}) => {
3018
3018
  };
3019
3019
  };
3020
3020
 
3021
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/timeout.js
3021
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/timeout.js
3022
3022
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
3023
3023
  async function timeout(request, init, abortController, options) {
3024
3024
  return new Promise((resolve, reject) => {
@@ -3034,7 +3034,7 @@ async function timeout(request, init, abortController, options) {
3034
3034
  });
3035
3035
  }
3036
3036
 
3037
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/delay.js
3037
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/delay.js
3038
3038
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
3039
3039
  async function delay(ms, { signal }) {
3040
3040
  return new Promise((resolve, reject) => {
@@ -3053,7 +3053,7 @@ async function delay(ms, { signal }) {
3053
3053
  });
3054
3054
  }
3055
3055
 
3056
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/utils/options.js
3056
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/utils/options.js
3057
3057
  _chunk3IVWJLOIcjs.init_cjs_shims.call(void 0, );
3058
3058
  var findUnknownOptions = (request, options) => {
3059
3059
  const unknownOptions = {};
@@ -3083,7 +3083,7 @@ var hasSearchParameters = (search) => {
3083
3083
  return Boolean(search);
3084
3084
  };
3085
3085
 
3086
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/core/Ky.js
3086
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/core/Ky.js
3087
3087
  var Ky = (_class = class _Ky {
3088
3088
  static create(input, options) {
3089
3089
  const ky2 = new _Ky(input, options);
@@ -3135,20 +3135,27 @@ var Ky = (_class = class _Ky {
3135
3135
  if (response.status === 204) {
3136
3136
  return "";
3137
3137
  }
3138
- const arrayBuffer = await response.clone().arrayBuffer();
3139
- const responseSize = arrayBuffer.byteLength;
3140
- if (responseSize === 0) {
3138
+ const text = await response.text();
3139
+ if (text === "") {
3141
3140
  return "";
3142
3141
  }
3143
3142
  if (options.parseJson) {
3144
- return options.parseJson(await response.text());
3143
+ return options.parseJson(text);
3145
3144
  }
3145
+ return JSON.parse(text);
3146
3146
  }
3147
3147
  return response[type]();
3148
3148
  };
3149
3149
  }
3150
3150
  return result;
3151
3151
  }
3152
+ // eslint-disable-next-line unicorn/prevent-abbreviations
3153
+ static #normalizeSearchParams(searchParams) {
3154
+ if (searchParams && typeof searchParams === "object" && !Array.isArray(searchParams) && !(searchParams instanceof URLSearchParams)) {
3155
+ return Object.fromEntries(Object.entries(searchParams).filter(([, value]) => value !== void 0));
3156
+ }
3157
+ return searchParams;
3158
+ }
3152
3159
 
3153
3160
 
3154
3161
  __init() {this._retryCount = 0}
@@ -3200,7 +3207,7 @@ var Ky = (_class = class _Ky {
3200
3207
  }
3201
3208
  this.request = new globalThis.Request(this._input, this._options);
3202
3209
  if (hasSearchParameters(this._options.searchParams)) {
3203
- const textSearchParams = typeof this._options.searchParams === "string" ? this._options.searchParams.replace(/^\?/, "") : new URLSearchParams(this._options.searchParams).toString();
3210
+ const textSearchParams = typeof this._options.searchParams === "string" ? this._options.searchParams.replace(/^\?/, "") : new URLSearchParams(_Ky.#normalizeSearchParams(this._options.searchParams)).toString();
3204
3211
  const searchParams = "?" + textSearchParams;
3205
3212
  const url = this.request.url.replace(/(?:\?.*?)?(?=#|$)/, searchParams);
3206
3213
  if ((supportsFormData && this._options.body instanceof globalThis.FormData || this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers["content-type"])) {
@@ -3298,7 +3305,7 @@ var Ky = (_class = class _Ky {
3298
3305
  }
3299
3306
  }, _class);
3300
3307
 
3301
- // ../../node_modules/.pnpm/ky@1.9.1/node_modules/ky/distribution/index.js
3308
+ // ../../node_modules/.pnpm/ky@1.10.0/node_modules/ky/distribution/index.js
3302
3309
  var createInstance = (defaults) => {
3303
3310
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
3304
3311
  for (const method of requestMethods) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.128.13",
3
+ "version": "1.128.14",
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": {
@@ -149,5 +149,5 @@
149
149
  "vfile-reporter": "8.1.1"
150
150
  },
151
151
  "publishConfig": { "access": "public" },
152
- "gitHead": "99ce6b979dc4fb39d2c34edbebfb26b20dc3ba9d"
152
+ "gitHead": "ead820214c8c4cf25d5311c154819f2c2f8f7356"
153
153
  }