@modern-js/upgrade 0.0.0-nightly-20250311160342 → 0.0.0-nightly-20250313160316

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +175 -66
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -8407,10 +8407,10 @@ var require_lodash2 = __commonJS({
8407
8407
  }
8408
8408
  });
8409
8409
 
8410
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
8410
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
8411
8411
  var LoggerLevel;
8412
8412
  var init_constants = __esm({
8413
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js"() {
8413
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js"() {
8414
8414
  "use strict";
8415
8415
  (function(LoggerLevel2) {
8416
8416
  LoggerLevel2["Error"] = "error";
@@ -9973,10 +9973,10 @@ var require_source = __commonJS({
9973
9973
  }
9974
9974
  });
9975
9975
 
9976
- // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
9976
+ // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
9977
9977
  var import_chalk;
9978
9978
  var init_chalk = __esm({
9979
- "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js"() {
9979
+ "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js"() {
9980
9980
  "use strict";
9981
9981
  import_chalk = __toESM(require_source());
9982
9982
  }
@@ -10099,9 +10099,9 @@ var require_ms = __commonJS({
10099
10099
  }
10100
10100
  });
10101
10101
 
10102
- // ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
10102
+ // ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js
10103
10103
  var require_common = __commonJS({
10104
- "../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
10104
+ "../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
10105
10105
  "use strict";
10106
10106
  function setup(env) {
10107
10107
  createDebug.debug = createDebug;
@@ -10263,9 +10263,9 @@ var require_common = __commonJS({
10263
10263
  }
10264
10264
  });
10265
10265
 
10266
- // ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js
10266
+ // ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js
10267
10267
  var require_browser = __commonJS({
10268
- "../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
10268
+ "../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
10269
10269
  "use strict";
10270
10270
  exports.formatArgs = formatArgs;
10271
10271
  exports.save = save;
@@ -10434,9 +10434,118 @@ var require_browser = __commonJS({
10434
10434
  }
10435
10435
  });
10436
10436
 
10437
- // ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js
10437
+ // ../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
10438
+ var require_has_flag2 = __commonJS({
10439
+ "../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
10440
+ "use strict";
10441
+ module2.exports = (flag, argv) => {
10442
+ argv = argv || process.argv;
10443
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
10444
+ const pos = argv.indexOf(prefix + flag);
10445
+ const terminatorPos = argv.indexOf("--");
10446
+ return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
10447
+ };
10448
+ }
10449
+ });
10450
+
10451
+ // ../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
10452
+ var require_supports_color2 = __commonJS({
10453
+ "../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
10454
+ "use strict";
10455
+ var os2 = require("os");
10456
+ var hasFlag = require_has_flag2();
10457
+ var env = process.env;
10458
+ var forceColor;
10459
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
10460
+ forceColor = false;
10461
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
10462
+ forceColor = true;
10463
+ }
10464
+ if ("FORCE_COLOR" in env) {
10465
+ forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
10466
+ }
10467
+ function translateLevel(level) {
10468
+ if (level === 0) {
10469
+ return false;
10470
+ }
10471
+ return {
10472
+ level,
10473
+ hasBasic: true,
10474
+ has256: level >= 2,
10475
+ has16m: level >= 3
10476
+ };
10477
+ }
10478
+ function supportsColor(stream4) {
10479
+ if (forceColor === false) {
10480
+ return 0;
10481
+ }
10482
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
10483
+ return 3;
10484
+ }
10485
+ if (hasFlag("color=256")) {
10486
+ return 2;
10487
+ }
10488
+ if (stream4 && !stream4.isTTY && forceColor !== true) {
10489
+ return 0;
10490
+ }
10491
+ const min = forceColor ? 1 : 0;
10492
+ if (process.platform === "win32") {
10493
+ const osRelease = os2.release().split(".");
10494
+ if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
10495
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
10496
+ }
10497
+ return 1;
10498
+ }
10499
+ if ("CI" in env) {
10500
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
10501
+ return 1;
10502
+ }
10503
+ return min;
10504
+ }
10505
+ if ("TEAMCITY_VERSION" in env) {
10506
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
10507
+ }
10508
+ if (env.COLORTERM === "truecolor") {
10509
+ return 3;
10510
+ }
10511
+ if ("TERM_PROGRAM" in env) {
10512
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
10513
+ switch (env.TERM_PROGRAM) {
10514
+ case "iTerm.app":
10515
+ return version >= 3 ? 3 : 2;
10516
+ case "Apple_Terminal":
10517
+ return 2;
10518
+ }
10519
+ }
10520
+ if (/-256(color)?$/i.test(env.TERM)) {
10521
+ return 2;
10522
+ }
10523
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
10524
+ return 1;
10525
+ }
10526
+ if ("COLORTERM" in env) {
10527
+ return 1;
10528
+ }
10529
+ if (env.TERM === "dumb") {
10530
+ return min;
10531
+ }
10532
+ return min;
10533
+ }
10534
+ function getSupportLevel(stream4) {
10535
+ const level = supportsColor(stream4);
10536
+ return translateLevel(level);
10537
+ }
10538
+ module2.exports = {
10539
+ supportsColor: getSupportLevel,
10540
+ stdout: getSupportLevel(process.stdout),
10541
+ stderr: getSupportLevel(process.stderr)
10542
+ };
10543
+ }
10544
+ });
10545
+
10546
+ // ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
10438
10547
  var require_node = __commonJS({
10439
- "../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
10548
+ "../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
10440
10549
  "use strict";
10441
10550
  var tty = require("tty");
10442
10551
  var util3 = require("util");
@@ -10453,7 +10562,7 @@ var require_node = __commonJS({
10453
10562
  );
10454
10563
  exports.colors = [6, 2, 3, 4, 5, 1];
10455
10564
  try {
10456
- const supportsColor = require_supports_color();
10565
+ const supportsColor = require_supports_color2();
10457
10566
  if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
10458
10567
  exports.colors = [
10459
10568
  20,
@@ -10609,9 +10718,9 @@ var require_node = __commonJS({
10609
10718
  }
10610
10719
  });
10611
10720
 
10612
- // ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js
10721
+ // ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js
10613
10722
  var require_src = __commonJS({
10614
- "../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
10723
+ "../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
10615
10724
  "use strict";
10616
10725
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
10617
10726
  module2.exports = require_browser();
@@ -10621,10 +10730,10 @@ var require_src = __commonJS({
10621
10730
  }
10622
10731
  });
10623
10732
 
10624
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
10733
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
10625
10734
  var import_debug, Logger;
10626
10735
  var init_logger = __esm({
10627
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js"() {
10736
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js"() {
10628
10737
  "use strict";
10629
10738
  init_chalk();
10630
10739
  import_debug = __toESM(require_src());
@@ -13072,10 +13181,10 @@ var require_glob = __commonJS({
13072
13181
  }
13073
13182
  });
13074
13183
 
13075
- // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/glob.js
13184
+ // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/glob.js
13076
13185
  var import_glob;
13077
13186
  var init_glob = __esm({
13078
- "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/glob.js"() {
13187
+ "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/glob.js"() {
13079
13188
  "use strict";
13080
13189
  import_glob = __toESM(require_glob());
13081
13190
  }
@@ -15716,19 +15825,19 @@ var require_lib = __commonJS({
15716
15825
  }
15717
15826
  });
15718
15827
 
15719
- // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
15828
+ // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
15720
15829
  var import_fs_extra;
15721
15830
  var init_fs_extra = __esm({
15722
- "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js"() {
15831
+ "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js"() {
15723
15832
  "use strict";
15724
15833
  import_fs_extra = __toESM(require_lib());
15725
15834
  }
15726
15835
  });
15727
15836
 
15728
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
15837
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
15729
15838
  var IMAGE_EXT_LIST;
15730
15839
  var init_constants2 = __esm({
15731
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js"() {
15840
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js"() {
15732
15841
  "use strict";
15733
15842
  IMAGE_EXT_LIST = [
15734
15843
  ".jpg",
@@ -15745,10 +15854,10 @@ var init_constants2 = __esm({
15745
15854
  }
15746
15855
  });
15747
15856
 
15748
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
15857
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
15749
15858
  var import_path, FS_RESOURCE, FsResource;
15750
15859
  var init_FsResource = __esm({
15751
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js"() {
15860
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js"() {
15752
15861
  "use strict";
15753
15862
  import_path = __toESM(require("path"));
15754
15863
  init_fs_extra();
@@ -15779,10 +15888,10 @@ var init_FsResource = __esm({
15779
15888
  }
15780
15889
  });
15781
15890
 
15782
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
15891
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
15783
15892
  var import_path2, promisifyGlob, FsMaterial;
15784
15893
  var init_FsMaterial = __esm({
15785
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js"() {
15894
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js"() {
15786
15895
  "use strict";
15787
15896
  import_path2 = __toESM(require("path"));
15788
15897
  init_glob();
@@ -15815,7 +15924,7 @@ var init_FsMaterial = __esm({
15815
15924
  }
15816
15925
  });
15817
15926
 
15818
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
15927
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
15819
15928
  function fsExists(path8) {
15820
15929
  return __async(this, null, function* () {
15821
15930
  try {
@@ -15827,16 +15936,16 @@ function fsExists(path8) {
15827
15936
  });
15828
15937
  }
15829
15938
  var init_fsExists = __esm({
15830
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js"() {
15939
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js"() {
15831
15940
  "use strict";
15832
15941
  init_fs_extra();
15833
15942
  }
15834
15943
  });
15835
15944
 
15836
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
15945
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
15837
15946
  var nodeRequire;
15838
15947
  var init_nodeRequire = __esm({
15839
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js"() {
15948
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js"() {
15840
15949
  "use strict";
15841
15950
  nodeRequire = (path8) => {
15842
15951
  try {
@@ -17814,16 +17923,16 @@ var require_execa = __commonJS({
17814
17923
  }
17815
17924
  });
17816
17925
 
17817
- // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
17926
+ // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
17818
17927
  var import_execa;
17819
17928
  var init_execa = __esm({
17820
- "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js"() {
17929
+ "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js"() {
17821
17930
  "use strict";
17822
17931
  import_execa = __toESM(require_execa());
17823
17932
  }
17824
17933
  });
17825
17934
 
17826
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
17935
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
17827
17936
  function canUseYarn() {
17828
17937
  return __async(this, null, function* () {
17829
17938
  try {
@@ -17908,7 +18017,7 @@ function runInstall(targetDir, registryUrl, logger) {
17908
18017
  }
17909
18018
  var import_path3;
17910
18019
  var init_packageManager = __esm({
17911
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js"() {
18020
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js"() {
17912
18021
  "use strict";
17913
18022
  import_path3 = __toESM(require("path"));
17914
18023
  init_execa();
@@ -17916,7 +18025,7 @@ var init_packageManager = __esm({
17916
18025
  }
17917
18026
  });
17918
18027
 
17919
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
18028
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
17920
18029
  function timeoutPromise(promise, ms, reason = "Operation") {
17921
18030
  return __async(this, null, function* () {
17922
18031
  let timeoutId = null;
@@ -17940,15 +18049,15 @@ function timeoutPromise(promise, ms, reason = "Operation") {
17940
18049
  });
17941
18050
  }
17942
18051
  var init_timeoutPromise = __esm({
17943
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js"() {
18052
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js"() {
17944
18053
  "use strict";
17945
18054
  }
17946
18055
  });
17947
18056
 
17948
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
18057
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
17949
18058
  var NPM_API_TIMEOUT, CATCHE_VALIDITY_PREIOD;
17950
18059
  var init_constants3 = __esm({
17951
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/constants.js"() {
18060
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/constants.js"() {
17952
18061
  "use strict";
17953
18062
  NPM_API_TIMEOUT = 3e4;
17954
18063
  CATCHE_VALIDITY_PREIOD = 7 * 24 * 3600 * 1e3;
@@ -20440,10 +20549,10 @@ var require_semver2 = __commonJS({
20440
20549
  }
20441
20550
  });
20442
20551
 
20443
- // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
20552
+ // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
20444
20553
  var import_semver;
20445
20554
  var init_semver = __esm({
20446
- "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js"() {
20555
+ "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js"() {
20447
20556
  "use strict";
20448
20557
  import_semver = __toESM(require_semver2());
20449
20558
  }
@@ -40908,7 +41017,7 @@ var require_tar = __commonJS({
40908
41017
  }
40909
41018
  });
40910
41019
 
40911
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js
41020
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js
40912
41021
  function getNpmRegistry() {
40913
41022
  return __async(this, null, function* () {
40914
41023
  const { stdout } = yield (0, import_execa.default)("npm", [
@@ -40920,13 +41029,13 @@ function getNpmRegistry() {
40920
41029
  });
40921
41030
  }
40922
41031
  var init_getNpmRegistry = __esm({
40923
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js"() {
41032
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js"() {
40924
41033
  "use strict";
40925
41034
  init_execa();
40926
41035
  }
40927
41036
  });
40928
41037
 
40929
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js
41038
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js
40930
41039
  function getNpmPackageInfoWithCommand(pkgName, pkgVersion, options) {
40931
41040
  return __async(this, null, function* () {
40932
41041
  const { registryUrl } = options || {};
@@ -40977,7 +41086,7 @@ function getNpmPackageInfo(pkgName, pkgVersion, options) {
40977
41086
  }
40978
41087
  var NpmPackageInfoCache;
40979
41088
  var init_getNpmPackageInfo = __esm({
40980
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js"() {
41089
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js"() {
40981
41090
  "use strict";
40982
41091
  init_constants3();
40983
41092
  init_execa();
@@ -40988,7 +41097,7 @@ var init_getNpmPackageInfo = __esm({
40988
41097
  }
40989
41098
  });
40990
41099
 
40991
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
41100
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
40992
41101
  function getNpmTarballUrl(pkgName, pkgVersion, options) {
40993
41102
  return __async(this, null, function* () {
40994
41103
  const packageInfo = yield getNpmPackageInfo(pkgName, pkgVersion, options);
@@ -40996,13 +41105,13 @@ function getNpmTarballUrl(pkgName, pkgVersion, options) {
40996
41105
  });
40997
41106
  }
40998
41107
  var init_getNpmTarballUrl = __esm({
40999
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js"() {
41108
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js"() {
41000
41109
  "use strict";
41001
41110
  init_getNpmPackageInfo();
41002
41111
  }
41003
41112
  });
41004
41113
 
41005
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
41114
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
41006
41115
  function getNpmVersion(packageName, options) {
41007
41116
  return __async(this, null, function* () {
41008
41117
  const { version = "latest" } = options || {};
@@ -41011,13 +41120,13 @@ function getNpmVersion(packageName, options) {
41011
41120
  });
41012
41121
  }
41013
41122
  var init_getNpmVersion = __esm({
41014
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js"() {
41123
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js"() {
41015
41124
  "use strict";
41016
41125
  init_getNpmPackageInfo();
41017
41126
  }
41018
41127
  });
41019
41128
 
41020
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
41129
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
41021
41130
  function getGeneratorVersion(_0) {
41022
41131
  return __async(this, arguments, function* (pkgName, pkgVersion = "latest", options = {}) {
41023
41132
  const cacheKey = `${pkgName}@${pkgVersion}`;
@@ -41052,7 +41161,7 @@ function getGeneratorVersion(_0) {
41052
41161
  }
41053
41162
  function isValidCache(cacheDir, pkgName) {
41054
41163
  return __async(this, null, function* () {
41055
- if (yield fsExists(`${cacheDir}/.codesmith.completed`)) {
41164
+ if ((yield fsExists(`${cacheDir}/.codesmith.completed`)) && (yield fsExists(`${cacheDir}/package.json`))) {
41056
41165
  if (pkgName === "@modern-js/codesmith-global") {
41057
41166
  return true;
41058
41167
  }
@@ -41153,7 +41262,7 @@ function downloadPackage(_0) {
41153
41262
  }
41154
41263
  var import_os, import_tar, GeneratorVersionMap;
41155
41264
  var init_downloadPackage = __esm({
41156
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js"() {
41265
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js"() {
41157
41266
  "use strict";
41158
41267
  import_os = __toESM(require("os"));
41159
41268
  init_constants3();
@@ -41169,7 +41278,7 @@ var init_downloadPackage = __esm({
41169
41278
  }
41170
41279
  });
41171
41280
 
41172
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
41281
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
41173
41282
  function getPackageInfo(packageName) {
41174
41283
  if (!packageName) {
41175
41284
  throw new Error("package is not exisit");
@@ -41193,15 +41302,15 @@ function getPackageInfo(packageName) {
41193
41302
  };
41194
41303
  }
41195
41304
  var init_getPackageInfo = __esm({
41196
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js"() {
41305
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js"() {
41197
41306
  "use strict";
41198
41307
  init_semver();
41199
41308
  }
41200
41309
  });
41201
41310
 
41202
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/index.js
41311
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/index.js
41203
41312
  var init_utils3 = __esm({
41204
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/index.js"() {
41313
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/index.js"() {
41205
41314
  "use strict";
41206
41315
  init_nodeRequire();
41207
41316
  init_downloadPackage();
@@ -41209,7 +41318,7 @@ var init_utils3 = __esm({
41209
41318
  }
41210
41319
  });
41211
41320
 
41212
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
41321
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
41213
41322
  function getGeneratorDir(generator) {
41214
41323
  return __async(this, null, function* () {
41215
41324
  let result = generator;
@@ -41230,7 +41339,7 @@ function getGeneratorDir(generator) {
41230
41339
  }
41231
41340
  var import_path4, MaxTimes;
41232
41341
  var init_getGeneratorDir = __esm({
41233
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js"() {
41342
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js"() {
41234
41343
  "use strict";
41235
41344
  import_path4 = __toESM(require("path"));
41236
41345
  init_fs_extra();
@@ -46726,19 +46835,19 @@ var require_ora = __commonJS({
46726
46835
  }
46727
46836
  });
46728
46837
 
46729
- // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js
46838
+ // ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js
46730
46839
  var import_ora;
46731
46840
  var init_ora = __esm({
46732
- "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js"() {
46841
+ "../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js"() {
46733
46842
  "use strict";
46734
46843
  import_ora = __toESM(require_ora());
46735
46844
  }
46736
46845
  });
46737
46846
 
46738
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
46847
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
46739
46848
  var import_events2, import_path5, GeneratorCore;
46740
46849
  var init_generator = __esm({
46741
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js"() {
46850
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js"() {
46742
46851
  "use strict";
46743
46852
  import_events2 = require("events");
46744
46853
  import_path5 = __toESM(require("path"));
@@ -46965,10 +47074,10 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
46965
47074
  }
46966
47075
  });
46967
47076
 
46968
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
47077
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
46969
47078
  var import_path6, MaterialsManager;
46970
47079
  var init_materials = __esm({
46971
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js"() {
47080
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js"() {
46972
47081
  "use strict";
46973
47082
  import_path6 = __toESM(require("path"));
46974
47083
  init_utils3();
@@ -47039,10 +47148,10 @@ var init_materials = __esm({
47039
47148
  }
47040
47149
  });
47041
47150
 
47042
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
47151
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
47043
47152
  var import_path7, CodeSmith;
47044
47153
  var init_codesmith = __esm({
47045
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js"() {
47154
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js"() {
47046
47155
  "use strict";
47047
47156
  import_path7 = __toESM(require("path"));
47048
47157
  init_generator();
@@ -47110,9 +47219,9 @@ var init_codesmith = __esm({
47110
47219
  }
47111
47220
  });
47112
47221
 
47113
- // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/index.js
47222
+ // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/index.js
47114
47223
  var init_esm_node = __esm({
47115
- "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/index.js"() {
47224
+ "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/index.js"() {
47116
47225
  "use strict";
47117
47226
  init_codesmith();
47118
47227
  init_utils3();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20250311160342",
18
+ "version": "0.0.0-nightly-20250313160316",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/index.d.ts",
21
21
  "main": "./dist/index.js",
@@ -37,18 +37,18 @@
37
37
  }
38
38
  },
39
39
  "devDependencies": {
40
- "@modern-js/codesmith": "2.6.6",
41
- "@modern-js/codesmith-utils": "2.6.6",
40
+ "@modern-js/codesmith": "2.6.7",
41
+ "@modern-js/codesmith-utils": "2.6.7",
42
42
  "@types/jest": "^29",
43
43
  "@types/node": "^14",
44
44
  "commander": "10.0.1",
45
45
  "jest": "^29",
46
46
  "ts-node": "^10.9.1",
47
47
  "typescript": "^5",
48
- "@modern-js/plugin-i18n": "0.0.0-nightly-20250311160342",
49
- "@modern-js/upgrade-generator": "0.0.0-nightly-20250311160342",
50
- "@scripts/build": "0.0.0-nightly-20250311160342",
51
- "@scripts/jest-config": "0.0.0-nightly-20250311160342"
48
+ "@modern-js/plugin-i18n": "0.0.0-nightly-20250313160316",
49
+ "@modern-js/upgrade-generator": "0.0.0-nightly-20250313160316",
50
+ "@scripts/build": "0.0.0-nightly-20250313160316",
51
+ "@scripts/jest-config": "0.0.0-nightly-20250313160316"
52
52
  },
53
53
  "sideEffects": false,
54
54
  "publishConfig": {