@yamada-ui/cli 1.1.1-dev-20240825094045 → 1.1.1-dev-20240825101928

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.
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
package/dist/index.js CHANGED
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  "use strict";
41
41
  getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
42
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -1167,8 +1167,6 @@ var require_semver = __commonJS({
1167
1167
  this.inc("patch", identifier, identifierBase);
1168
1168
  this.inc("pre", identifier, identifierBase);
1169
1169
  break;
1170
- // If the input is a non-prerelease version, this acts the same as
1171
- // prepatch.
1172
1170
  case "prerelease":
1173
1171
  if (this.prerelease.length === 0) {
1174
1172
  this.inc("patch", identifier, identifierBase);
@@ -1196,8 +1194,6 @@ var require_semver = __commonJS({
1196
1194
  }
1197
1195
  this.prerelease = [];
1198
1196
  break;
1199
- // This probably shouldn't be used publicly.
1200
- // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
1201
1197
  case "pre": {
1202
1198
  const base = Number(identifierBase) ? 1 : 0;
1203
1199
  if (!identifier && identifierBase === false) {
@@ -2303,7 +2299,6 @@ var require_min_version = __commonJS({
2303
2299
  compver.prerelease.push(0);
2304
2300
  }
2305
2301
  compver.raw = compver.format();
2306
- /* fallthrough */
2307
2302
  case "":
2308
2303
  case ">=":
2309
2304
  if (!setMin || gt(compver, setMin)) {
@@ -2313,7 +2308,6 @@ var require_min_version = __commonJS({
2313
2308
  case "<":
2314
2309
  case "<=":
2315
2310
  break;
2316
- /* istanbul ignore next */
2317
2311
  default:
2318
2312
  throw new Error(`Unexpected operation: ${comparator.operator}`);
2319
2313
  }
@@ -4721,7 +4715,6 @@ var require_util = __commonJS({
4721
4715
  return true;
4722
4716
  }
4723
4717
  switch (field) {
4724
- // eslint-disable-line default-case
4725
4718
  case "true": {
4726
4719
  return true;
4727
4720
  }
@@ -7311,13 +7304,13 @@ init_cjs_shims();
7311
7304
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
7312
7305
  init_cjs_shims();
7313
7306
 
7314
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/index.js
7307
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7315
7308
  init_cjs_shims();
7316
7309
 
7317
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/Ky.js
7310
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7318
7311
  init_cjs_shims();
7319
7312
 
7320
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/errors/HTTPError.js
7313
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/HTTPError.js
7321
7314
  init_cjs_shims();
7322
7315
  var HTTPError = class extends Error {
7323
7316
  response;
@@ -7336,7 +7329,7 @@ var HTTPError = class extends Error {
7336
7329
  }
7337
7330
  };
7338
7331
 
7339
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/errors/TimeoutError.js
7332
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/TimeoutError.js
7340
7333
  init_cjs_shims();
7341
7334
  var TimeoutError = class extends Error {
7342
7335
  request;
@@ -7347,14 +7340,14 @@ var TimeoutError = class extends Error {
7347
7340
  }
7348
7341
  };
7349
7342
 
7350
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/merge.js
7343
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7351
7344
  init_cjs_shims();
7352
7345
 
7353
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/is.js
7346
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/is.js
7354
7347
  init_cjs_shims();
7355
7348
  var isObject3 = (value) => value !== null && typeof value === "object";
7356
7349
 
7357
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/merge.js
7350
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7358
7351
  var validateAndMerge = (...sources) => {
7359
7352
  for (const source of sources) {
7360
7353
  if ((!isObject3(source) || Array.isArray(source)) && source !== void 0) {
@@ -7376,19 +7369,9 @@ var mergeHeaders = (source1 = {}, source2 = {}) => {
7376
7369
  }
7377
7370
  return result;
7378
7371
  };
7379
- function newHookValue(original, incoming, property) {
7380
- return Object.hasOwn(incoming, property) && incoming[property] === void 0 ? [] : deepMerge(original[property] ?? [], incoming[property] ?? []);
7381
- }
7382
- var mergeHooks = (original = {}, incoming = {}) => ({
7383
- beforeRequest: newHookValue(original, incoming, "beforeRequest"),
7384
- beforeRetry: newHookValue(original, incoming, "beforeRetry"),
7385
- afterResponse: newHookValue(original, incoming, "afterResponse"),
7386
- beforeError: newHookValue(original, incoming, "beforeError")
7387
- });
7388
7372
  var deepMerge = (...sources) => {
7389
7373
  let returnValue = {};
7390
7374
  let headers = {};
7391
- let hooks = {};
7392
7375
  for (const source of sources) {
7393
7376
  if (Array.isArray(source)) {
7394
7377
  if (!Array.isArray(returnValue)) {
@@ -7402,10 +7385,6 @@ var deepMerge = (...sources) => {
7402
7385
  }
7403
7386
  returnValue = { ...returnValue, [key]: value };
7404
7387
  }
7405
- if (isObject3(source.hooks)) {
7406
- hooks = mergeHooks(hooks, source.hooks);
7407
- returnValue.hooks = hooks;
7408
- }
7409
7388
  if (isObject3(source.headers)) {
7410
7389
  headers = mergeHeaders(headers, source.headers);
7411
7390
  returnValue.headers = headers;
@@ -7415,10 +7394,10 @@ var deepMerge = (...sources) => {
7415
7394
  return returnValue;
7416
7395
  };
7417
7396
 
7418
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/normalize.js
7397
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7419
7398
  init_cjs_shims();
7420
7399
 
7421
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/constants.js
7400
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/constants.js
7422
7401
  init_cjs_shims();
7423
7402
  var supportsRequestStreams = (() => {
7424
7403
  let duplexAccessed = false;
@@ -7492,7 +7471,7 @@ var requestOptionsRegistry = {
7492
7471
  priority: true
7493
7472
  };
7494
7473
 
7495
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/normalize.js
7474
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7496
7475
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
7497
7476
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
7498
7477
  var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
@@ -7525,7 +7504,7 @@ var normalizeRetryOptions = (retry = {}) => {
7525
7504
  };
7526
7505
  };
7527
7506
 
7528
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/timeout.js
7507
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/timeout.js
7529
7508
  init_cjs_shims();
7530
7509
  async function timeout(request, init, abortController, options) {
7531
7510
  return new Promise((resolve, reject) => {
@@ -7541,7 +7520,7 @@ async function timeout(request, init, abortController, options) {
7541
7520
  });
7542
7521
  }
7543
7522
 
7544
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/delay.js
7523
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/delay.js
7545
7524
  init_cjs_shims();
7546
7525
  async function delay(ms, { signal }) {
7547
7526
  return new Promise((resolve, reject) => {
@@ -7560,7 +7539,7 @@ async function delay(ms, { signal }) {
7560
7539
  });
7561
7540
  }
7562
7541
 
7563
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/options.js
7542
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/options.js
7564
7543
  init_cjs_shims();
7565
7544
  var findUnknownOptions = (request, options) => {
7566
7545
  const unknownOptions = {};
@@ -7572,7 +7551,7 @@ var findUnknownOptions = (request, options) => {
7572
7551
  return unknownOptions;
7573
7552
  };
7574
7553
 
7575
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/Ky.js
7554
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7576
7555
  var Ky = class _Ky {
7577
7556
  static create(input, options) {
7578
7557
  const ky2 = new _Ky(input, options);
@@ -7640,10 +7619,13 @@ var Ky = class _Ky {
7640
7619
  // eslint-disable-next-line complexity
7641
7620
  constructor(input, options = {}) {
7642
7621
  this._input = input;
7622
+ const credentials = this._input instanceof Request && "credentials" in Request.prototype ? this._input.credentials : void 0;
7643
7623
  this._options = {
7624
+ ...credentials && { credentials },
7625
+ // For exactOptionalPropertyTypes
7644
7626
  ...options,
7645
7627
  headers: mergeHeaders(this._input.headers, options.headers),
7646
- hooks: mergeHooks({
7628
+ hooks: deepMerge({
7647
7629
  beforeRequest: [],
7648
7630
  beforeRetry: [],
7649
7631
  beforeError: [],
@@ -7671,10 +7653,12 @@ var Ky = class _Ky {
7671
7653
  }
7672
7654
  if (supportsAbortController) {
7673
7655
  this.abortController = new globalThis.AbortController();
7674
- const originalSignal = this._options.signal ?? this._input.signal;
7675
- originalSignal?.addEventListener("abort", () => {
7676
- this.abortController.abort(originalSignal.reason);
7677
- });
7656
+ if (this._options.signal) {
7657
+ const originalSignal = this._options.signal;
7658
+ this._options.signal.addEventListener("abort", () => {
7659
+ this.abortController.abort(originalSignal.reason);
7660
+ });
7661
+ }
7678
7662
  this._options.signal = this.abortController.signal;
7679
7663
  }
7680
7664
  if (supportsRequestStreams) {
@@ -7704,13 +7688,11 @@ var Ky = class _Ky {
7704
7688
  if (!this._options.retry.statusCodes.includes(error.response.status)) {
7705
7689
  throw error;
7706
7690
  }
7707
- const retryAfter = error.response.headers.get("Retry-After") ?? error.response.headers.get("RateLimit-Reset") ?? error.response.headers.get("X-RateLimit-Reset") ?? error.response.headers.get("X-Rate-Limit-Reset");
7691
+ const retryAfter = error.response.headers.get("Retry-After");
7708
7692
  if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7709
7693
  let after = Number(retryAfter) * 1e3;
7710
7694
  if (Number.isNaN(after)) {
7711
7695
  after = Date.parse(retryAfter) - Date.now();
7712
- } else if (after >= Date.parse("2024-01-01")) {
7713
- after -= Date.now();
7714
7696
  }
7715
7697
  const max = this._options.retry.maxRetryAfter ?? after;
7716
7698
  return after < max ? after : max;
@@ -7814,7 +7796,7 @@ var Ky = class _Ky {
7814
7796
  }
7815
7797
  };
7816
7798
 
7817
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/index.js
7799
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7818
7800
  var createInstance = (defaults) => {
7819
7801
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
7820
7802
  for (const method of requestMethods) {
package/dist/utils/cli.js CHANGED
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  "use strict";
41
41
  getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
42
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -1167,8 +1167,6 @@ var require_semver = __commonJS({
1167
1167
  this.inc("patch", identifier, identifierBase);
1168
1168
  this.inc("pre", identifier, identifierBase);
1169
1169
  break;
1170
- // If the input is a non-prerelease version, this acts the same as
1171
- // prepatch.
1172
1170
  case "prerelease":
1173
1171
  if (this.prerelease.length === 0) {
1174
1172
  this.inc("patch", identifier, identifierBase);
@@ -1196,8 +1194,6 @@ var require_semver = __commonJS({
1196
1194
  }
1197
1195
  this.prerelease = [];
1198
1196
  break;
1199
- // This probably shouldn't be used publicly.
1200
- // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
1201
1197
  case "pre": {
1202
1198
  const base = Number(identifierBase) ? 1 : 0;
1203
1199
  if (!identifier && identifierBase === false) {
@@ -2303,7 +2299,6 @@ var require_min_version = __commonJS({
2303
2299
  compver.prerelease.push(0);
2304
2300
  }
2305
2301
  compver.raw = compver.format();
2306
- /* fallthrough */
2307
2302
  case "":
2308
2303
  case ">=":
2309
2304
  if (!setMin || gt(compver, setMin)) {
@@ -2313,7 +2308,6 @@ var require_min_version = __commonJS({
2313
2308
  case "<":
2314
2309
  case "<=":
2315
2310
  break;
2316
- /* istanbul ignore next */
2317
2311
  default:
2318
2312
  throw new Error(`Unexpected operation: ${comparator.operator}`);
2319
2313
  }
@@ -4721,7 +4715,6 @@ var require_util = __commonJS({
4721
4715
  return true;
4722
4716
  }
4723
4717
  switch (field) {
4724
- // eslint-disable-line default-case
4725
4718
  case "true": {
4726
4719
  return true;
4727
4720
  }
@@ -7223,13 +7216,13 @@ init_cjs_shims();
7223
7216
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
7224
7217
  init_cjs_shims();
7225
7218
 
7226
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/index.js
7219
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7227
7220
  init_cjs_shims();
7228
7221
 
7229
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/Ky.js
7222
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7230
7223
  init_cjs_shims();
7231
7224
 
7232
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/errors/HTTPError.js
7225
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/HTTPError.js
7233
7226
  init_cjs_shims();
7234
7227
  var HTTPError = class extends Error {
7235
7228
  response;
@@ -7248,7 +7241,7 @@ var HTTPError = class extends Error {
7248
7241
  }
7249
7242
  };
7250
7243
 
7251
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/errors/TimeoutError.js
7244
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/TimeoutError.js
7252
7245
  init_cjs_shims();
7253
7246
  var TimeoutError = class extends Error {
7254
7247
  request;
@@ -7259,14 +7252,14 @@ var TimeoutError = class extends Error {
7259
7252
  }
7260
7253
  };
7261
7254
 
7262
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/merge.js
7255
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7263
7256
  init_cjs_shims();
7264
7257
 
7265
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/is.js
7258
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/is.js
7266
7259
  init_cjs_shims();
7267
7260
  var isObject2 = (value) => value !== null && typeof value === "object";
7268
7261
 
7269
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/merge.js
7262
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7270
7263
  var validateAndMerge = (...sources) => {
7271
7264
  for (const source of sources) {
7272
7265
  if ((!isObject2(source) || Array.isArray(source)) && source !== void 0) {
@@ -7288,19 +7281,9 @@ var mergeHeaders = (source1 = {}, source2 = {}) => {
7288
7281
  }
7289
7282
  return result;
7290
7283
  };
7291
- function newHookValue(original, incoming, property) {
7292
- return Object.hasOwn(incoming, property) && incoming[property] === void 0 ? [] : deepMerge(original[property] ?? [], incoming[property] ?? []);
7293
- }
7294
- var mergeHooks = (original = {}, incoming = {}) => ({
7295
- beforeRequest: newHookValue(original, incoming, "beforeRequest"),
7296
- beforeRetry: newHookValue(original, incoming, "beforeRetry"),
7297
- afterResponse: newHookValue(original, incoming, "afterResponse"),
7298
- beforeError: newHookValue(original, incoming, "beforeError")
7299
- });
7300
7284
  var deepMerge = (...sources) => {
7301
7285
  let returnValue = {};
7302
7286
  let headers = {};
7303
- let hooks = {};
7304
7287
  for (const source of sources) {
7305
7288
  if (Array.isArray(source)) {
7306
7289
  if (!Array.isArray(returnValue)) {
@@ -7314,10 +7297,6 @@ var deepMerge = (...sources) => {
7314
7297
  }
7315
7298
  returnValue = { ...returnValue, [key]: value };
7316
7299
  }
7317
- if (isObject2(source.hooks)) {
7318
- hooks = mergeHooks(hooks, source.hooks);
7319
- returnValue.hooks = hooks;
7320
- }
7321
7300
  if (isObject2(source.headers)) {
7322
7301
  headers = mergeHeaders(headers, source.headers);
7323
7302
  returnValue.headers = headers;
@@ -7327,10 +7306,10 @@ var deepMerge = (...sources) => {
7327
7306
  return returnValue;
7328
7307
  };
7329
7308
 
7330
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/normalize.js
7309
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7331
7310
  init_cjs_shims();
7332
7311
 
7333
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/constants.js
7312
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/constants.js
7334
7313
  init_cjs_shims();
7335
7314
  var supportsRequestStreams = (() => {
7336
7315
  let duplexAccessed = false;
@@ -7404,7 +7383,7 @@ var requestOptionsRegistry = {
7404
7383
  priority: true
7405
7384
  };
7406
7385
 
7407
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/normalize.js
7386
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7408
7387
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
7409
7388
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
7410
7389
  var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
@@ -7437,7 +7416,7 @@ var normalizeRetryOptions = (retry = {}) => {
7437
7416
  };
7438
7417
  };
7439
7418
 
7440
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/timeout.js
7419
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/timeout.js
7441
7420
  init_cjs_shims();
7442
7421
  async function timeout(request, init, abortController, options) {
7443
7422
  return new Promise((resolve, reject) => {
@@ -7453,7 +7432,7 @@ async function timeout(request, init, abortController, options) {
7453
7432
  });
7454
7433
  }
7455
7434
 
7456
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/delay.js
7435
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/delay.js
7457
7436
  init_cjs_shims();
7458
7437
  async function delay(ms, { signal }) {
7459
7438
  return new Promise((resolve, reject) => {
@@ -7472,7 +7451,7 @@ async function delay(ms, { signal }) {
7472
7451
  });
7473
7452
  }
7474
7453
 
7475
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/options.js
7454
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/options.js
7476
7455
  init_cjs_shims();
7477
7456
  var findUnknownOptions = (request, options) => {
7478
7457
  const unknownOptions = {};
@@ -7484,7 +7463,7 @@ var findUnknownOptions = (request, options) => {
7484
7463
  return unknownOptions;
7485
7464
  };
7486
7465
 
7487
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/Ky.js
7466
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7488
7467
  var Ky = class _Ky {
7489
7468
  static create(input, options) {
7490
7469
  const ky2 = new _Ky(input, options);
@@ -7552,10 +7531,13 @@ var Ky = class _Ky {
7552
7531
  // eslint-disable-next-line complexity
7553
7532
  constructor(input, options = {}) {
7554
7533
  this._input = input;
7534
+ const credentials = this._input instanceof Request && "credentials" in Request.prototype ? this._input.credentials : void 0;
7555
7535
  this._options = {
7536
+ ...credentials && { credentials },
7537
+ // For exactOptionalPropertyTypes
7556
7538
  ...options,
7557
7539
  headers: mergeHeaders(this._input.headers, options.headers),
7558
- hooks: mergeHooks({
7540
+ hooks: deepMerge({
7559
7541
  beforeRequest: [],
7560
7542
  beforeRetry: [],
7561
7543
  beforeError: [],
@@ -7583,10 +7565,12 @@ var Ky = class _Ky {
7583
7565
  }
7584
7566
  if (supportsAbortController) {
7585
7567
  this.abortController = new globalThis.AbortController();
7586
- const originalSignal = this._options.signal ?? this._input.signal;
7587
- originalSignal?.addEventListener("abort", () => {
7588
- this.abortController.abort(originalSignal.reason);
7589
- });
7568
+ if (this._options.signal) {
7569
+ const originalSignal = this._options.signal;
7570
+ this._options.signal.addEventListener("abort", () => {
7571
+ this.abortController.abort(originalSignal.reason);
7572
+ });
7573
+ }
7590
7574
  this._options.signal = this.abortController.signal;
7591
7575
  }
7592
7576
  if (supportsRequestStreams) {
@@ -7616,13 +7600,11 @@ var Ky = class _Ky {
7616
7600
  if (!this._options.retry.statusCodes.includes(error.response.status)) {
7617
7601
  throw error;
7618
7602
  }
7619
- const retryAfter = error.response.headers.get("Retry-After") ?? error.response.headers.get("RateLimit-Reset") ?? error.response.headers.get("X-RateLimit-Reset") ?? error.response.headers.get("X-Rate-Limit-Reset");
7603
+ const retryAfter = error.response.headers.get("Retry-After");
7620
7604
  if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7621
7605
  let after = Number(retryAfter) * 1e3;
7622
7606
  if (Number.isNaN(after)) {
7623
7607
  after = Date.parse(retryAfter) - Date.now();
7624
- } else if (after >= Date.parse("2024-01-01")) {
7625
- after -= Date.now();
7626
7608
  }
7627
7609
  const max = this._options.retry.maxRetryAfter ?? after;
7628
7610
  return after < max ? after : max;
@@ -7726,7 +7708,7 @@ var Ky = class _Ky {
7726
7708
  }
7727
7709
  };
7728
7710
 
7729
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/index.js
7711
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7730
7712
  var createInstance = (defaults) => {
7731
7713
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
7732
7714
  for (const method of requestMethods) {
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.14_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@8.2.4_@swc+core@1.7.10_@swc+helpers@0.5.5__jiti@1.21.6_postcss@8.4.41_tsx@4.17.0_typescript@5.5.4_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  "use strict";
41
41
  getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
42
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -1167,8 +1167,6 @@ var require_semver = __commonJS({
1167
1167
  this.inc("patch", identifier, identifierBase);
1168
1168
  this.inc("pre", identifier, identifierBase);
1169
1169
  break;
1170
- // If the input is a non-prerelease version, this acts the same as
1171
- // prepatch.
1172
1170
  case "prerelease":
1173
1171
  if (this.prerelease.length === 0) {
1174
1172
  this.inc("patch", identifier, identifierBase);
@@ -1196,8 +1194,6 @@ var require_semver = __commonJS({
1196
1194
  }
1197
1195
  this.prerelease = [];
1198
1196
  break;
1199
- // This probably shouldn't be used publicly.
1200
- // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
1201
1197
  case "pre": {
1202
1198
  const base = Number(identifierBase) ? 1 : 0;
1203
1199
  if (!identifier && identifierBase === false) {
@@ -2303,7 +2299,6 @@ var require_min_version = __commonJS({
2303
2299
  compver.prerelease.push(0);
2304
2300
  }
2305
2301
  compver.raw = compver.format();
2306
- /* fallthrough */
2307
2302
  case "":
2308
2303
  case ">=":
2309
2304
  if (!setMin || gt(compver, setMin)) {
@@ -2313,7 +2308,6 @@ var require_min_version = __commonJS({
2313
2308
  case "<":
2314
2309
  case "<=":
2315
2310
  break;
2316
- /* istanbul ignore next */
2317
2311
  default:
2318
2312
  throw new Error(`Unexpected operation: ${comparator.operator}`);
2319
2313
  }
@@ -4721,7 +4715,6 @@ var require_util = __commonJS({
4721
4715
  return true;
4722
4716
  }
4723
4717
  switch (field) {
4724
- // eslint-disable-line default-case
4725
4718
  case "true": {
4726
4719
  return true;
4727
4720
  }
@@ -7249,13 +7242,13 @@ init_cjs_shims();
7249
7242
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
7250
7243
  init_cjs_shims();
7251
7244
 
7252
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/index.js
7245
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7253
7246
  init_cjs_shims();
7254
7247
 
7255
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/Ky.js
7248
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7256
7249
  init_cjs_shims();
7257
7250
 
7258
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/errors/HTTPError.js
7251
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/HTTPError.js
7259
7252
  init_cjs_shims();
7260
7253
  var HTTPError = class extends Error {
7261
7254
  response;
@@ -7274,7 +7267,7 @@ var HTTPError = class extends Error {
7274
7267
  }
7275
7268
  };
7276
7269
 
7277
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/errors/TimeoutError.js
7270
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/TimeoutError.js
7278
7271
  init_cjs_shims();
7279
7272
  var TimeoutError = class extends Error {
7280
7273
  request;
@@ -7285,14 +7278,14 @@ var TimeoutError = class extends Error {
7285
7278
  }
7286
7279
  };
7287
7280
 
7288
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/merge.js
7281
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7289
7282
  init_cjs_shims();
7290
7283
 
7291
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/is.js
7284
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/is.js
7292
7285
  init_cjs_shims();
7293
7286
  var isObject3 = (value) => value !== null && typeof value === "object";
7294
7287
 
7295
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/merge.js
7288
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7296
7289
  var validateAndMerge = (...sources) => {
7297
7290
  for (const source of sources) {
7298
7291
  if ((!isObject3(source) || Array.isArray(source)) && source !== void 0) {
@@ -7314,19 +7307,9 @@ var mergeHeaders = (source1 = {}, source2 = {}) => {
7314
7307
  }
7315
7308
  return result;
7316
7309
  };
7317
- function newHookValue(original, incoming, property) {
7318
- return Object.hasOwn(incoming, property) && incoming[property] === void 0 ? [] : deepMerge(original[property] ?? [], incoming[property] ?? []);
7319
- }
7320
- var mergeHooks = (original = {}, incoming = {}) => ({
7321
- beforeRequest: newHookValue(original, incoming, "beforeRequest"),
7322
- beforeRetry: newHookValue(original, incoming, "beforeRetry"),
7323
- afterResponse: newHookValue(original, incoming, "afterResponse"),
7324
- beforeError: newHookValue(original, incoming, "beforeError")
7325
- });
7326
7310
  var deepMerge = (...sources) => {
7327
7311
  let returnValue = {};
7328
7312
  let headers = {};
7329
- let hooks = {};
7330
7313
  for (const source of sources) {
7331
7314
  if (Array.isArray(source)) {
7332
7315
  if (!Array.isArray(returnValue)) {
@@ -7340,10 +7323,6 @@ var deepMerge = (...sources) => {
7340
7323
  }
7341
7324
  returnValue = { ...returnValue, [key]: value };
7342
7325
  }
7343
- if (isObject3(source.hooks)) {
7344
- hooks = mergeHooks(hooks, source.hooks);
7345
- returnValue.hooks = hooks;
7346
- }
7347
7326
  if (isObject3(source.headers)) {
7348
7327
  headers = mergeHeaders(headers, source.headers);
7349
7328
  returnValue.headers = headers;
@@ -7353,10 +7332,10 @@ var deepMerge = (...sources) => {
7353
7332
  return returnValue;
7354
7333
  };
7355
7334
 
7356
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/normalize.js
7335
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7357
7336
  init_cjs_shims();
7358
7337
 
7359
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/constants.js
7338
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/constants.js
7360
7339
  init_cjs_shims();
7361
7340
  var supportsRequestStreams = (() => {
7362
7341
  let duplexAccessed = false;
@@ -7430,7 +7409,7 @@ var requestOptionsRegistry = {
7430
7409
  priority: true
7431
7410
  };
7432
7411
 
7433
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/normalize.js
7412
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7434
7413
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
7435
7414
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
7436
7415
  var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
@@ -7463,7 +7442,7 @@ var normalizeRetryOptions = (retry = {}) => {
7463
7442
  };
7464
7443
  };
7465
7444
 
7466
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/timeout.js
7445
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/timeout.js
7467
7446
  init_cjs_shims();
7468
7447
  async function timeout(request, init, abortController, options) {
7469
7448
  return new Promise((resolve, reject) => {
@@ -7479,7 +7458,7 @@ async function timeout(request, init, abortController, options) {
7479
7458
  });
7480
7459
  }
7481
7460
 
7482
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/delay.js
7461
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/delay.js
7483
7462
  init_cjs_shims();
7484
7463
  async function delay(ms, { signal }) {
7485
7464
  return new Promise((resolve, reject) => {
@@ -7498,7 +7477,7 @@ async function delay(ms, { signal }) {
7498
7477
  });
7499
7478
  }
7500
7479
 
7501
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/utils/options.js
7480
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/options.js
7502
7481
  init_cjs_shims();
7503
7482
  var findUnknownOptions = (request, options) => {
7504
7483
  const unknownOptions = {};
@@ -7510,7 +7489,7 @@ var findUnknownOptions = (request, options) => {
7510
7489
  return unknownOptions;
7511
7490
  };
7512
7491
 
7513
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/core/Ky.js
7492
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7514
7493
  var Ky = class _Ky {
7515
7494
  static create(input, options) {
7516
7495
  const ky2 = new _Ky(input, options);
@@ -7578,10 +7557,13 @@ var Ky = class _Ky {
7578
7557
  // eslint-disable-next-line complexity
7579
7558
  constructor(input, options = {}) {
7580
7559
  this._input = input;
7560
+ const credentials = this._input instanceof Request && "credentials" in Request.prototype ? this._input.credentials : void 0;
7581
7561
  this._options = {
7562
+ ...credentials && { credentials },
7563
+ // For exactOptionalPropertyTypes
7582
7564
  ...options,
7583
7565
  headers: mergeHeaders(this._input.headers, options.headers),
7584
- hooks: mergeHooks({
7566
+ hooks: deepMerge({
7585
7567
  beforeRequest: [],
7586
7568
  beforeRetry: [],
7587
7569
  beforeError: [],
@@ -7609,10 +7591,12 @@ var Ky = class _Ky {
7609
7591
  }
7610
7592
  if (supportsAbortController) {
7611
7593
  this.abortController = new globalThis.AbortController();
7612
- const originalSignal = this._options.signal ?? this._input.signal;
7613
- originalSignal?.addEventListener("abort", () => {
7614
- this.abortController.abort(originalSignal.reason);
7615
- });
7594
+ if (this._options.signal) {
7595
+ const originalSignal = this._options.signal;
7596
+ this._options.signal.addEventListener("abort", () => {
7597
+ this.abortController.abort(originalSignal.reason);
7598
+ });
7599
+ }
7616
7600
  this._options.signal = this.abortController.signal;
7617
7601
  }
7618
7602
  if (supportsRequestStreams) {
@@ -7642,13 +7626,11 @@ var Ky = class _Ky {
7642
7626
  if (!this._options.retry.statusCodes.includes(error.response.status)) {
7643
7627
  throw error;
7644
7628
  }
7645
- const retryAfter = error.response.headers.get("Retry-After") ?? error.response.headers.get("RateLimit-Reset") ?? error.response.headers.get("X-RateLimit-Reset") ?? error.response.headers.get("X-Rate-Limit-Reset");
7629
+ const retryAfter = error.response.headers.get("Retry-After");
7646
7630
  if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7647
7631
  let after = Number(retryAfter) * 1e3;
7648
7632
  if (Number.isNaN(after)) {
7649
7633
  after = Date.parse(retryAfter) - Date.now();
7650
- } else if (after >= Date.parse("2024-01-01")) {
7651
- after -= Date.now();
7652
7634
  }
7653
7635
  const max = this._options.retry.maxRetryAfter ?? after;
7654
7636
  return after < max ? after : max;
@@ -7752,7 +7734,7 @@ var Ky = class _Ky {
7752
7734
  }
7753
7735
  };
7754
7736
 
7755
- // ../../node_modules/.pnpm/ky@1.7.1/node_modules/ky/distribution/index.js
7737
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7756
7738
  var createInstance = (defaults) => {
7757
7739
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
7758
7740
  for (const method of requestMethods) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
- "version": "1.1.1-dev-20240825094045",
3
+ "version": "1.1.1-dev-20240825101928",
4
4
  "description": "Generate theme tokens for autocomplete",
5
5
  "keywords": [
6
6
  "theme",