@yamada-ui/cli 1.0.6-dev-20240725180804 → 1.0.6

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.
package/dist/index.js CHANGED
@@ -7455,39 +7455,24 @@ init_cjs_shims();
7455
7455
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
7456
7456
  init_cjs_shims();
7457
7457
 
7458
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/index.js
7458
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7459
7459
  init_cjs_shims();
7460
7460
 
7461
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/Ky.js
7461
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7462
7462
  init_cjs_shims();
7463
7463
 
7464
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/errors/HTTPError.js
7464
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/HTTPError.js
7465
7465
  init_cjs_shims();
7466
7466
  var HTTPError = class extends Error {
7467
+ response;
7468
+ request;
7469
+ options;
7467
7470
  constructor(response, request, options) {
7468
7471
  const code = response.status || response.status === 0 ? response.status : "";
7469
7472
  const title = response.statusText || "";
7470
7473
  const status = `${code} ${title}`.trim();
7471
7474
  const reason = status ? `status code ${status}` : "an unknown error";
7472
7475
  super(`Request failed with ${reason}: ${request.method} ${request.url}`);
7473
- Object.defineProperty(this, "response", {
7474
- enumerable: true,
7475
- configurable: true,
7476
- writable: true,
7477
- value: void 0
7478
- });
7479
- Object.defineProperty(this, "request", {
7480
- enumerable: true,
7481
- configurable: true,
7482
- writable: true,
7483
- value: void 0
7484
- });
7485
- Object.defineProperty(this, "options", {
7486
- enumerable: true,
7487
- configurable: true,
7488
- writable: true,
7489
- value: void 0
7490
- });
7491
7476
  this.name = "HTTPError";
7492
7477
  this.response = response;
7493
7478
  this.request = request;
@@ -7495,30 +7480,25 @@ var HTTPError = class extends Error {
7495
7480
  }
7496
7481
  };
7497
7482
 
7498
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/errors/TimeoutError.js
7483
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/TimeoutError.js
7499
7484
  init_cjs_shims();
7500
7485
  var TimeoutError = class extends Error {
7486
+ request;
7501
7487
  constructor(request) {
7502
7488
  super(`Request timed out: ${request.method} ${request.url}`);
7503
- Object.defineProperty(this, "request", {
7504
- enumerable: true,
7505
- configurable: true,
7506
- writable: true,
7507
- value: void 0
7508
- });
7509
7489
  this.name = "TimeoutError";
7510
7490
  this.request = request;
7511
7491
  }
7512
7492
  };
7513
7493
 
7514
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/merge.js
7494
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7515
7495
  init_cjs_shims();
7516
7496
 
7517
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/is.js
7497
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/is.js
7518
7498
  init_cjs_shims();
7519
7499
  var isObject2 = (value) => value !== null && typeof value === "object";
7520
7500
 
7521
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/merge.js
7501
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7522
7502
  var validateAndMerge = (...sources) => {
7523
7503
  for (const source of sources) {
7524
7504
  if ((!isObject2(source) || Array.isArray(source)) && source !== void 0) {
@@ -7565,10 +7545,10 @@ var deepMerge = (...sources) => {
7565
7545
  return returnValue;
7566
7546
  };
7567
7547
 
7568
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/normalize.js
7548
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7569
7549
  init_cjs_shims();
7570
7550
 
7571
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/constants.js
7551
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/constants.js
7572
7552
  init_cjs_shims();
7573
7553
  var supportsRequestStreams = (() => {
7574
7554
  let duplexAccessed = false;
@@ -7642,7 +7622,7 @@ var requestOptionsRegistry = {
7642
7622
  priority: true
7643
7623
  };
7644
7624
 
7645
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/normalize.js
7625
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7646
7626
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
7647
7627
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
7648
7628
  var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
@@ -7671,12 +7651,11 @@ var normalizeRetryOptions = (retry = {}) => {
7671
7651
  }
7672
7652
  return {
7673
7653
  ...defaultRetryOptions,
7674
- ...retry,
7675
- afterStatusCodes: retryAfterStatusCodes
7654
+ ...retry
7676
7655
  };
7677
7656
  };
7678
7657
 
7679
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/timeout.js
7658
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/timeout.js
7680
7659
  init_cjs_shims();
7681
7660
  async function timeout(request, init, abortController, options) {
7682
7661
  return new Promise((resolve, reject) => {
@@ -7692,7 +7671,7 @@ async function timeout(request, init, abortController, options) {
7692
7671
  });
7693
7672
  }
7694
7673
 
7695
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/delay.js
7674
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/delay.js
7696
7675
  init_cjs_shims();
7697
7676
  async function delay(ms, { signal }) {
7698
7677
  return new Promise((resolve, reject) => {
@@ -7711,7 +7690,7 @@ async function delay(ms, { signal }) {
7711
7690
  });
7712
7691
  }
7713
7692
 
7714
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/options.js
7693
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/options.js
7715
7694
  init_cjs_shims();
7716
7695
  var findUnknownOptions = (request, options) => {
7717
7696
  const unknownOptions = {};
@@ -7723,7 +7702,7 @@ var findUnknownOptions = (request, options) => {
7723
7702
  return unknownOptions;
7724
7703
  };
7725
7704
 
7726
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/Ky.js
7705
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7727
7706
  var Ky = class _Ky {
7728
7707
  static create(input, options) {
7729
7708
  const ky2 = new _Ky(input, options);
@@ -7783,38 +7762,13 @@ var Ky = class _Ky {
7783
7762
  }
7784
7763
  return result;
7785
7764
  }
7765
+ request;
7766
+ abortController;
7767
+ _retryCount = 0;
7768
+ _input;
7769
+ _options;
7786
7770
  // eslint-disable-next-line complexity
7787
7771
  constructor(input, options = {}) {
7788
- Object.defineProperty(this, "request", {
7789
- enumerable: true,
7790
- configurable: true,
7791
- writable: true,
7792
- value: void 0
7793
- });
7794
- Object.defineProperty(this, "abortController", {
7795
- enumerable: true,
7796
- configurable: true,
7797
- writable: true,
7798
- value: void 0
7799
- });
7800
- Object.defineProperty(this, "_retryCount", {
7801
- enumerable: true,
7802
- configurable: true,
7803
- writable: true,
7804
- value: 0
7805
- });
7806
- Object.defineProperty(this, "_input", {
7807
- enumerable: true,
7808
- configurable: true,
7809
- writable: true,
7810
- value: void 0
7811
- });
7812
- Object.defineProperty(this, "_options", {
7813
- enumerable: true,
7814
- configurable: true,
7815
- writable: true,
7816
- value: void 0
7817
- });
7818
7772
  this._input = input;
7819
7773
  const credentials = this._input instanceof Request && "credentials" in Request.prototype ? this._input.credentials : void 0;
7820
7774
  this._options = {
@@ -7878,28 +7832,28 @@ var Ky = class _Ky {
7878
7832
  }
7879
7833
  _calculateRetryDelay(error) {
7880
7834
  this._retryCount++;
7881
- if (this._retryCount <= this._options.retry.limit && !(error instanceof TimeoutError)) {
7882
- if (error instanceof HTTPError) {
7883
- if (!this._options.retry.statusCodes.includes(error.response.status)) {
7884
- return 0;
7885
- }
7886
- const retryAfter = error.response.headers.get("Retry-After");
7887
- if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7888
- let after = Number(retryAfter) * 1e3;
7889
- if (Number.isNaN(after)) {
7890
- after = Date.parse(retryAfter) - Date.now();
7891
- }
7892
- const max = this._options.retry.maxRetryAfter ?? after;
7893
- return after < max ? after : max;
7894
- }
7895
- if (error.response.status === 413) {
7896
- return 0;
7835
+ if (this._retryCount > this._options.retry.limit || error instanceof TimeoutError) {
7836
+ throw error;
7837
+ }
7838
+ if (error instanceof HTTPError) {
7839
+ if (!this._options.retry.statusCodes.includes(error.response.status)) {
7840
+ throw error;
7841
+ }
7842
+ const retryAfter = error.response.headers.get("Retry-After");
7843
+ if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7844
+ let after = Number(retryAfter) * 1e3;
7845
+ if (Number.isNaN(after)) {
7846
+ after = Date.parse(retryAfter) - Date.now();
7897
7847
  }
7848
+ const max = this._options.retry.maxRetryAfter ?? after;
7849
+ return after < max ? after : max;
7850
+ }
7851
+ if (error.response.status === 413) {
7852
+ throw error;
7898
7853
  }
7899
- const retryDelay = this._options.retry.delay(this._retryCount);
7900
- return Math.min(this._options.retry.backoffLimit, retryDelay);
7901
7854
  }
7902
- return 0;
7855
+ const retryDelay = this._options.retry.delay(this._retryCount);
7856
+ return Math.min(this._options.retry.backoffLimit, retryDelay);
7903
7857
  }
7904
7858
  _decorateResponse(response) {
7905
7859
  if (this._options.parseJson) {
@@ -7912,22 +7866,22 @@ var Ky = class _Ky {
7912
7866
  return await function_();
7913
7867
  } catch (error) {
7914
7868
  const ms = Math.min(this._calculateRetryDelay(error), maxSafeTimeout);
7915
- if (ms !== 0 && this._retryCount > 0) {
7916
- await delay(ms, { signal: this._options.signal });
7917
- for (const hook of this._options.hooks.beforeRetry) {
7918
- const hookResult = await hook({
7919
- request: this.request,
7920
- options: this._options,
7921
- error,
7922
- retryCount: this._retryCount
7923
- });
7924
- if (hookResult === stop) {
7925
- return;
7926
- }
7869
+ if (this._retryCount < 1) {
7870
+ throw error;
7871
+ }
7872
+ await delay(ms, { signal: this._options.signal });
7873
+ for (const hook of this._options.hooks.beforeRetry) {
7874
+ const hookResult = await hook({
7875
+ request: this.request,
7876
+ options: this._options,
7877
+ error,
7878
+ retryCount: this._retryCount
7879
+ });
7880
+ if (hookResult === stop) {
7881
+ return;
7927
7882
  }
7928
- return this._retry(function_);
7929
7883
  }
7930
- throw error;
7884
+ return this._retry(function_);
7931
7885
  }
7932
7886
  }
7933
7887
  async _fetch() {
@@ -7993,14 +7947,19 @@ var Ky = class _Ky {
7993
7947
  }
7994
7948
  };
7995
7949
 
7996
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/index.js
7950
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7997
7951
  var createInstance = (defaults) => {
7998
7952
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
7999
7953
  for (const method of requestMethods) {
8000
7954
  ky2[method] = (input, options) => Ky.create(input, validateAndMerge(defaults, options, { method }));
8001
7955
  }
8002
7956
  ky2.create = (newDefaults) => createInstance(validateAndMerge(newDefaults));
8003
- ky2.extend = (newDefaults) => createInstance(validateAndMerge(defaults, newDefaults));
7957
+ ky2.extend = (newDefaults) => {
7958
+ if (typeof newDefaults === "function") {
7959
+ newDefaults = newDefaults(defaults ?? {});
7960
+ }
7961
+ return createInstance(validateAndMerge(defaults, newDefaults));
7962
+ };
8004
7963
  ky2.stop = stop;
8005
7964
  return ky2;
8006
7965
  };
@@ -9219,7 +9178,7 @@ function updateNotifier(options) {
9219
9178
  // package.json
9220
9179
  var package_default = {
9221
9180
  name: "@yamada-ui/cli",
9222
- version: "1.0.5",
9181
+ version: "1.0.6",
9223
9182
  description: "Generate theme tokens for autocomplete",
9224
9183
  keywords: [
9225
9184
  "theme",
package/dist/utils/cli.js CHANGED
@@ -7438,39 +7438,24 @@ init_cjs_shims();
7438
7438
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
7439
7439
  init_cjs_shims();
7440
7440
 
7441
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/index.js
7441
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7442
7442
  init_cjs_shims();
7443
7443
 
7444
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/Ky.js
7444
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7445
7445
  init_cjs_shims();
7446
7446
 
7447
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/errors/HTTPError.js
7447
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/HTTPError.js
7448
7448
  init_cjs_shims();
7449
7449
  var HTTPError = class extends Error {
7450
+ response;
7451
+ request;
7452
+ options;
7450
7453
  constructor(response, request, options) {
7451
7454
  const code = response.status || response.status === 0 ? response.status : "";
7452
7455
  const title = response.statusText || "";
7453
7456
  const status = `${code} ${title}`.trim();
7454
7457
  const reason = status ? `status code ${status}` : "an unknown error";
7455
7458
  super(`Request failed with ${reason}: ${request.method} ${request.url}`);
7456
- Object.defineProperty(this, "response", {
7457
- enumerable: true,
7458
- configurable: true,
7459
- writable: true,
7460
- value: void 0
7461
- });
7462
- Object.defineProperty(this, "request", {
7463
- enumerable: true,
7464
- configurable: true,
7465
- writable: true,
7466
- value: void 0
7467
- });
7468
- Object.defineProperty(this, "options", {
7469
- enumerable: true,
7470
- configurable: true,
7471
- writable: true,
7472
- value: void 0
7473
- });
7474
7459
  this.name = "HTTPError";
7475
7460
  this.response = response;
7476
7461
  this.request = request;
@@ -7478,30 +7463,25 @@ var HTTPError = class extends Error {
7478
7463
  }
7479
7464
  };
7480
7465
 
7481
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/errors/TimeoutError.js
7466
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/TimeoutError.js
7482
7467
  init_cjs_shims();
7483
7468
  var TimeoutError = class extends Error {
7469
+ request;
7484
7470
  constructor(request) {
7485
7471
  super(`Request timed out: ${request.method} ${request.url}`);
7486
- Object.defineProperty(this, "request", {
7487
- enumerable: true,
7488
- configurable: true,
7489
- writable: true,
7490
- value: void 0
7491
- });
7492
7472
  this.name = "TimeoutError";
7493
7473
  this.request = request;
7494
7474
  }
7495
7475
  };
7496
7476
 
7497
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/merge.js
7477
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7498
7478
  init_cjs_shims();
7499
7479
 
7500
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/is.js
7480
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/is.js
7501
7481
  init_cjs_shims();
7502
7482
  var isObject = (value) => value !== null && typeof value === "object";
7503
7483
 
7504
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/merge.js
7484
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7505
7485
  var validateAndMerge = (...sources) => {
7506
7486
  for (const source of sources) {
7507
7487
  if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
@@ -7548,10 +7528,10 @@ var deepMerge = (...sources) => {
7548
7528
  return returnValue;
7549
7529
  };
7550
7530
 
7551
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/normalize.js
7531
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7552
7532
  init_cjs_shims();
7553
7533
 
7554
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/constants.js
7534
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/constants.js
7555
7535
  init_cjs_shims();
7556
7536
  var supportsRequestStreams = (() => {
7557
7537
  let duplexAccessed = false;
@@ -7625,7 +7605,7 @@ var requestOptionsRegistry = {
7625
7605
  priority: true
7626
7606
  };
7627
7607
 
7628
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/normalize.js
7608
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7629
7609
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
7630
7610
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
7631
7611
  var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
@@ -7654,12 +7634,11 @@ var normalizeRetryOptions = (retry = {}) => {
7654
7634
  }
7655
7635
  return {
7656
7636
  ...defaultRetryOptions,
7657
- ...retry,
7658
- afterStatusCodes: retryAfterStatusCodes
7637
+ ...retry
7659
7638
  };
7660
7639
  };
7661
7640
 
7662
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/timeout.js
7641
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/timeout.js
7663
7642
  init_cjs_shims();
7664
7643
  async function timeout(request, init, abortController, options) {
7665
7644
  return new Promise((resolve, reject) => {
@@ -7675,7 +7654,7 @@ async function timeout(request, init, abortController, options) {
7675
7654
  });
7676
7655
  }
7677
7656
 
7678
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/delay.js
7657
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/delay.js
7679
7658
  init_cjs_shims();
7680
7659
  async function delay(ms, { signal }) {
7681
7660
  return new Promise((resolve, reject) => {
@@ -7694,7 +7673,7 @@ async function delay(ms, { signal }) {
7694
7673
  });
7695
7674
  }
7696
7675
 
7697
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/options.js
7676
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/options.js
7698
7677
  init_cjs_shims();
7699
7678
  var findUnknownOptions = (request, options) => {
7700
7679
  const unknownOptions = {};
@@ -7706,7 +7685,7 @@ var findUnknownOptions = (request, options) => {
7706
7685
  return unknownOptions;
7707
7686
  };
7708
7687
 
7709
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/Ky.js
7688
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7710
7689
  var Ky = class _Ky {
7711
7690
  static create(input, options) {
7712
7691
  const ky2 = new _Ky(input, options);
@@ -7766,38 +7745,13 @@ var Ky = class _Ky {
7766
7745
  }
7767
7746
  return result;
7768
7747
  }
7748
+ request;
7749
+ abortController;
7750
+ _retryCount = 0;
7751
+ _input;
7752
+ _options;
7769
7753
  // eslint-disable-next-line complexity
7770
7754
  constructor(input, options = {}) {
7771
- Object.defineProperty(this, "request", {
7772
- enumerable: true,
7773
- configurable: true,
7774
- writable: true,
7775
- value: void 0
7776
- });
7777
- Object.defineProperty(this, "abortController", {
7778
- enumerable: true,
7779
- configurable: true,
7780
- writable: true,
7781
- value: void 0
7782
- });
7783
- Object.defineProperty(this, "_retryCount", {
7784
- enumerable: true,
7785
- configurable: true,
7786
- writable: true,
7787
- value: 0
7788
- });
7789
- Object.defineProperty(this, "_input", {
7790
- enumerable: true,
7791
- configurable: true,
7792
- writable: true,
7793
- value: void 0
7794
- });
7795
- Object.defineProperty(this, "_options", {
7796
- enumerable: true,
7797
- configurable: true,
7798
- writable: true,
7799
- value: void 0
7800
- });
7801
7755
  this._input = input;
7802
7756
  const credentials = this._input instanceof Request && "credentials" in Request.prototype ? this._input.credentials : void 0;
7803
7757
  this._options = {
@@ -7861,28 +7815,28 @@ var Ky = class _Ky {
7861
7815
  }
7862
7816
  _calculateRetryDelay(error) {
7863
7817
  this._retryCount++;
7864
- if (this._retryCount <= this._options.retry.limit && !(error instanceof TimeoutError)) {
7865
- if (error instanceof HTTPError) {
7866
- if (!this._options.retry.statusCodes.includes(error.response.status)) {
7867
- return 0;
7868
- }
7869
- const retryAfter = error.response.headers.get("Retry-After");
7870
- if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7871
- let after = Number(retryAfter) * 1e3;
7872
- if (Number.isNaN(after)) {
7873
- after = Date.parse(retryAfter) - Date.now();
7874
- }
7875
- const max = this._options.retry.maxRetryAfter ?? after;
7876
- return after < max ? after : max;
7877
- }
7878
- if (error.response.status === 413) {
7879
- return 0;
7818
+ if (this._retryCount > this._options.retry.limit || error instanceof TimeoutError) {
7819
+ throw error;
7820
+ }
7821
+ if (error instanceof HTTPError) {
7822
+ if (!this._options.retry.statusCodes.includes(error.response.status)) {
7823
+ throw error;
7824
+ }
7825
+ const retryAfter = error.response.headers.get("Retry-After");
7826
+ if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7827
+ let after = Number(retryAfter) * 1e3;
7828
+ if (Number.isNaN(after)) {
7829
+ after = Date.parse(retryAfter) - Date.now();
7880
7830
  }
7831
+ const max = this._options.retry.maxRetryAfter ?? after;
7832
+ return after < max ? after : max;
7833
+ }
7834
+ if (error.response.status === 413) {
7835
+ throw error;
7881
7836
  }
7882
- const retryDelay = this._options.retry.delay(this._retryCount);
7883
- return Math.min(this._options.retry.backoffLimit, retryDelay);
7884
7837
  }
7885
- return 0;
7838
+ const retryDelay = this._options.retry.delay(this._retryCount);
7839
+ return Math.min(this._options.retry.backoffLimit, retryDelay);
7886
7840
  }
7887
7841
  _decorateResponse(response) {
7888
7842
  if (this._options.parseJson) {
@@ -7895,22 +7849,22 @@ var Ky = class _Ky {
7895
7849
  return await function_();
7896
7850
  } catch (error) {
7897
7851
  const ms = Math.min(this._calculateRetryDelay(error), maxSafeTimeout);
7898
- if (ms !== 0 && this._retryCount > 0) {
7899
- await delay(ms, { signal: this._options.signal });
7900
- for (const hook of this._options.hooks.beforeRetry) {
7901
- const hookResult = await hook({
7902
- request: this.request,
7903
- options: this._options,
7904
- error,
7905
- retryCount: this._retryCount
7906
- });
7907
- if (hookResult === stop) {
7908
- return;
7909
- }
7852
+ if (this._retryCount < 1) {
7853
+ throw error;
7854
+ }
7855
+ await delay(ms, { signal: this._options.signal });
7856
+ for (const hook of this._options.hooks.beforeRetry) {
7857
+ const hookResult = await hook({
7858
+ request: this.request,
7859
+ options: this._options,
7860
+ error,
7861
+ retryCount: this._retryCount
7862
+ });
7863
+ if (hookResult === stop) {
7864
+ return;
7910
7865
  }
7911
- return this._retry(function_);
7912
7866
  }
7913
- throw error;
7867
+ return this._retry(function_);
7914
7868
  }
7915
7869
  }
7916
7870
  async _fetch() {
@@ -7976,14 +7930,19 @@ var Ky = class _Ky {
7976
7930
  }
7977
7931
  };
7978
7932
 
7979
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/index.js
7933
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7980
7934
  var createInstance = (defaults) => {
7981
7935
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
7982
7936
  for (const method of requestMethods) {
7983
7937
  ky2[method] = (input, options) => Ky.create(input, validateAndMerge(defaults, options, { method }));
7984
7938
  }
7985
7939
  ky2.create = (newDefaults) => createInstance(validateAndMerge(newDefaults));
7986
- ky2.extend = (newDefaults) => createInstance(validateAndMerge(defaults, newDefaults));
7940
+ ky2.extend = (newDefaults) => {
7941
+ if (typeof newDefaults === "function") {
7942
+ newDefaults = newDefaults(defaults ?? {});
7943
+ }
7944
+ return createInstance(validateAndMerge(defaults, newDefaults));
7945
+ };
7987
7946
  ky2.stop = stop;
7988
7947
  return ky2;
7989
7948
  };
@@ -9202,7 +9161,7 @@ function updateNotifier(options) {
9202
9161
  // package.json
9203
9162
  var package_default = {
9204
9163
  name: "@yamada-ui/cli",
9205
- version: "1.0.5",
9164
+ version: "1.0.6",
9206
9165
  description: "Generate theme tokens for autocomplete",
9207
9166
  keywords: [
9208
9167
  "theme",
@@ -7464,39 +7464,24 @@ init_cjs_shims();
7464
7464
  // ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
7465
7465
  init_cjs_shims();
7466
7466
 
7467
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/index.js
7467
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
7468
7468
  init_cjs_shims();
7469
7469
 
7470
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/Ky.js
7470
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7471
7471
  init_cjs_shims();
7472
7472
 
7473
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/errors/HTTPError.js
7473
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/HTTPError.js
7474
7474
  init_cjs_shims();
7475
7475
  var HTTPError = class extends Error {
7476
+ response;
7477
+ request;
7478
+ options;
7476
7479
  constructor(response, request, options) {
7477
7480
  const code = response.status || response.status === 0 ? response.status : "";
7478
7481
  const title = response.statusText || "";
7479
7482
  const status = `${code} ${title}`.trim();
7480
7483
  const reason = status ? `status code ${status}` : "an unknown error";
7481
7484
  super(`Request failed with ${reason}: ${request.method} ${request.url}`);
7482
- Object.defineProperty(this, "response", {
7483
- enumerable: true,
7484
- configurable: true,
7485
- writable: true,
7486
- value: void 0
7487
- });
7488
- Object.defineProperty(this, "request", {
7489
- enumerable: true,
7490
- configurable: true,
7491
- writable: true,
7492
- value: void 0
7493
- });
7494
- Object.defineProperty(this, "options", {
7495
- enumerable: true,
7496
- configurable: true,
7497
- writable: true,
7498
- value: void 0
7499
- });
7500
7485
  this.name = "HTTPError";
7501
7486
  this.response = response;
7502
7487
  this.request = request;
@@ -7504,30 +7489,25 @@ var HTTPError = class extends Error {
7504
7489
  }
7505
7490
  };
7506
7491
 
7507
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/errors/TimeoutError.js
7492
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/errors/TimeoutError.js
7508
7493
  init_cjs_shims();
7509
7494
  var TimeoutError = class extends Error {
7495
+ request;
7510
7496
  constructor(request) {
7511
7497
  super(`Request timed out: ${request.method} ${request.url}`);
7512
- Object.defineProperty(this, "request", {
7513
- enumerable: true,
7514
- configurable: true,
7515
- writable: true,
7516
- value: void 0
7517
- });
7518
7498
  this.name = "TimeoutError";
7519
7499
  this.request = request;
7520
7500
  }
7521
7501
  };
7522
7502
 
7523
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/merge.js
7503
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7524
7504
  init_cjs_shims();
7525
7505
 
7526
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/is.js
7506
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/is.js
7527
7507
  init_cjs_shims();
7528
7508
  var isObject2 = (value) => value !== null && typeof value === "object";
7529
7509
 
7530
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/merge.js
7510
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/merge.js
7531
7511
  var validateAndMerge = (...sources) => {
7532
7512
  for (const source of sources) {
7533
7513
  if ((!isObject2(source) || Array.isArray(source)) && source !== void 0) {
@@ -7574,10 +7554,10 @@ var deepMerge = (...sources) => {
7574
7554
  return returnValue;
7575
7555
  };
7576
7556
 
7577
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/normalize.js
7557
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7578
7558
  init_cjs_shims();
7579
7559
 
7580
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/constants.js
7560
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/constants.js
7581
7561
  init_cjs_shims();
7582
7562
  var supportsRequestStreams = (() => {
7583
7563
  let duplexAccessed = false;
@@ -7651,7 +7631,7 @@ var requestOptionsRegistry = {
7651
7631
  priority: true
7652
7632
  };
7653
7633
 
7654
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/normalize.js
7634
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/normalize.js
7655
7635
  var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
7656
7636
  var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
7657
7637
  var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
@@ -7680,12 +7660,11 @@ var normalizeRetryOptions = (retry = {}) => {
7680
7660
  }
7681
7661
  return {
7682
7662
  ...defaultRetryOptions,
7683
- ...retry,
7684
- afterStatusCodes: retryAfterStatusCodes
7663
+ ...retry
7685
7664
  };
7686
7665
  };
7687
7666
 
7688
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/timeout.js
7667
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/timeout.js
7689
7668
  init_cjs_shims();
7690
7669
  async function timeout(request, init, abortController, options) {
7691
7670
  return new Promise((resolve, reject) => {
@@ -7701,7 +7680,7 @@ async function timeout(request, init, abortController, options) {
7701
7680
  });
7702
7681
  }
7703
7682
 
7704
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/delay.js
7683
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/delay.js
7705
7684
  init_cjs_shims();
7706
7685
  async function delay(ms, { signal }) {
7707
7686
  return new Promise((resolve, reject) => {
@@ -7720,7 +7699,7 @@ async function delay(ms, { signal }) {
7720
7699
  });
7721
7700
  }
7722
7701
 
7723
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/utils/options.js
7702
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/utils/options.js
7724
7703
  init_cjs_shims();
7725
7704
  var findUnknownOptions = (request, options) => {
7726
7705
  const unknownOptions = {};
@@ -7732,7 +7711,7 @@ var findUnknownOptions = (request, options) => {
7732
7711
  return unknownOptions;
7733
7712
  };
7734
7713
 
7735
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/core/Ky.js
7714
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/core/Ky.js
7736
7715
  var Ky = class _Ky {
7737
7716
  static create(input, options) {
7738
7717
  const ky2 = new _Ky(input, options);
@@ -7792,38 +7771,13 @@ var Ky = class _Ky {
7792
7771
  }
7793
7772
  return result;
7794
7773
  }
7774
+ request;
7775
+ abortController;
7776
+ _retryCount = 0;
7777
+ _input;
7778
+ _options;
7795
7779
  // eslint-disable-next-line complexity
7796
7780
  constructor(input, options = {}) {
7797
- Object.defineProperty(this, "request", {
7798
- enumerable: true,
7799
- configurable: true,
7800
- writable: true,
7801
- value: void 0
7802
- });
7803
- Object.defineProperty(this, "abortController", {
7804
- enumerable: true,
7805
- configurable: true,
7806
- writable: true,
7807
- value: void 0
7808
- });
7809
- Object.defineProperty(this, "_retryCount", {
7810
- enumerable: true,
7811
- configurable: true,
7812
- writable: true,
7813
- value: 0
7814
- });
7815
- Object.defineProperty(this, "_input", {
7816
- enumerable: true,
7817
- configurable: true,
7818
- writable: true,
7819
- value: void 0
7820
- });
7821
- Object.defineProperty(this, "_options", {
7822
- enumerable: true,
7823
- configurable: true,
7824
- writable: true,
7825
- value: void 0
7826
- });
7827
7781
  this._input = input;
7828
7782
  const credentials = this._input instanceof Request && "credentials" in Request.prototype ? this._input.credentials : void 0;
7829
7783
  this._options = {
@@ -7887,28 +7841,28 @@ var Ky = class _Ky {
7887
7841
  }
7888
7842
  _calculateRetryDelay(error) {
7889
7843
  this._retryCount++;
7890
- if (this._retryCount <= this._options.retry.limit && !(error instanceof TimeoutError)) {
7891
- if (error instanceof HTTPError) {
7892
- if (!this._options.retry.statusCodes.includes(error.response.status)) {
7893
- return 0;
7894
- }
7895
- const retryAfter = error.response.headers.get("Retry-After");
7896
- if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7897
- let after = Number(retryAfter) * 1e3;
7898
- if (Number.isNaN(after)) {
7899
- after = Date.parse(retryAfter) - Date.now();
7900
- }
7901
- const max = this._options.retry.maxRetryAfter ?? after;
7902
- return after < max ? after : max;
7903
- }
7904
- if (error.response.status === 413) {
7905
- return 0;
7844
+ if (this._retryCount > this._options.retry.limit || error instanceof TimeoutError) {
7845
+ throw error;
7846
+ }
7847
+ if (error instanceof HTTPError) {
7848
+ if (!this._options.retry.statusCodes.includes(error.response.status)) {
7849
+ throw error;
7850
+ }
7851
+ const retryAfter = error.response.headers.get("Retry-After");
7852
+ if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
7853
+ let after = Number(retryAfter) * 1e3;
7854
+ if (Number.isNaN(after)) {
7855
+ after = Date.parse(retryAfter) - Date.now();
7906
7856
  }
7857
+ const max = this._options.retry.maxRetryAfter ?? after;
7858
+ return after < max ? after : max;
7859
+ }
7860
+ if (error.response.status === 413) {
7861
+ throw error;
7907
7862
  }
7908
- const retryDelay = this._options.retry.delay(this._retryCount);
7909
- return Math.min(this._options.retry.backoffLimit, retryDelay);
7910
7863
  }
7911
- return 0;
7864
+ const retryDelay = this._options.retry.delay(this._retryCount);
7865
+ return Math.min(this._options.retry.backoffLimit, retryDelay);
7912
7866
  }
7913
7867
  _decorateResponse(response) {
7914
7868
  if (this._options.parseJson) {
@@ -7921,22 +7875,22 @@ var Ky = class _Ky {
7921
7875
  return await function_();
7922
7876
  } catch (error) {
7923
7877
  const ms = Math.min(this._calculateRetryDelay(error), maxSafeTimeout);
7924
- if (ms !== 0 && this._retryCount > 0) {
7925
- await delay(ms, { signal: this._options.signal });
7926
- for (const hook of this._options.hooks.beforeRetry) {
7927
- const hookResult = await hook({
7928
- request: this.request,
7929
- options: this._options,
7930
- error,
7931
- retryCount: this._retryCount
7932
- });
7933
- if (hookResult === stop) {
7934
- return;
7935
- }
7878
+ if (this._retryCount < 1) {
7879
+ throw error;
7880
+ }
7881
+ await delay(ms, { signal: this._options.signal });
7882
+ for (const hook of this._options.hooks.beforeRetry) {
7883
+ const hookResult = await hook({
7884
+ request: this.request,
7885
+ options: this._options,
7886
+ error,
7887
+ retryCount: this._retryCount
7888
+ });
7889
+ if (hookResult === stop) {
7890
+ return;
7936
7891
  }
7937
- return this._retry(function_);
7938
7892
  }
7939
- throw error;
7893
+ return this._retry(function_);
7940
7894
  }
7941
7895
  }
7942
7896
  async _fetch() {
@@ -8002,14 +7956,19 @@ var Ky = class _Ky {
8002
7956
  }
8003
7957
  };
8004
7958
 
8005
- // ../../node_modules/.pnpm/ky@1.4.0/node_modules/ky/distribution/index.js
7959
+ // ../../node_modules/.pnpm/ky@1.5.0/node_modules/ky/distribution/index.js
8006
7960
  var createInstance = (defaults) => {
8007
7961
  const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
8008
7962
  for (const method of requestMethods) {
8009
7963
  ky2[method] = (input, options) => Ky.create(input, validateAndMerge(defaults, options, { method }));
8010
7964
  }
8011
7965
  ky2.create = (newDefaults) => createInstance(validateAndMerge(newDefaults));
8012
- ky2.extend = (newDefaults) => createInstance(validateAndMerge(defaults, newDefaults));
7966
+ ky2.extend = (newDefaults) => {
7967
+ if (typeof newDefaults === "function") {
7968
+ newDefaults = newDefaults(defaults ?? {});
7969
+ }
7970
+ return createInstance(validateAndMerge(defaults, newDefaults));
7971
+ };
8013
7972
  ky2.stop = stop;
8014
7973
  return ky2;
8015
7974
  };
@@ -9228,7 +9187,7 @@ function updateNotifier(options) {
9228
9187
  // package.json
9229
9188
  var package_default = {
9230
9189
  name: "@yamada-ui/cli",
9231
- version: "1.0.5",
9190
+ version: "1.0.6",
9232
9191
  description: "Generate theme tokens for autocomplete",
9233
9192
  keywords: [
9234
9193
  "theme",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
- "version": "1.0.6-dev-20240725180804",
3
+ "version": "1.0.6",
4
4
  "description": "Generate theme tokens for autocomplete",
5
5
  "keywords": [
6
6
  "theme",