@modern-js/upgrade 0.0.0-nightly-20250323160331 → 0.0.0-nightly-20250325160545

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 +134 -56
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -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();
@@ -15327,37 +15436,6 @@ var require_ensure = __commonJS({
15327
15436
  }
15328
15437
  });
15329
15438
 
15330
- // ../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
15331
- var require_universalify2 = __commonJS({
15332
- "../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
15333
- "use strict";
15334
- exports.fromCallback = function(fn) {
15335
- return Object.defineProperty(function(...args) {
15336
- if (typeof args[args.length - 1] === "function")
15337
- fn.apply(this, args);
15338
- else {
15339
- return new Promise((resolve, reject) => {
15340
- fn.call(
15341
- this,
15342
- ...args,
15343
- (err, res) => err != null ? reject(err) : resolve(res)
15344
- );
15345
- });
15346
- }
15347
- }, "name", { value: fn.name });
15348
- };
15349
- exports.fromPromise = function(fn) {
15350
- return Object.defineProperty(function(...args) {
15351
- const cb = args[args.length - 1];
15352
- if (typeof cb !== "function")
15353
- return fn.apply(this, args);
15354
- else
15355
- fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
15356
- }, "name", { value: fn.name });
15357
- };
15358
- }
15359
- });
15360
-
15361
15439
  // ../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
15362
15440
  var require_utils2 = __commonJS({
15363
15441
  "../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
@@ -15386,7 +15464,7 @@ var require_jsonfile = __commonJS({
15386
15464
  } catch (_) {
15387
15465
  _fs = require("fs");
15388
15466
  }
15389
- var universalify = require_universalify2();
15467
+ var universalify = require_universalify();
15390
15468
  var { stringify, stripBom } = require_utils2();
15391
15469
  function _readFile(_0) {
15392
15470
  return __async(this, arguments, function* (file, options = {}) {
@@ -16101,9 +16179,9 @@ var require_path_key = __commonJS({
16101
16179
  }
16102
16180
  });
16103
16181
 
16104
- // ../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
16182
+ // ../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
16105
16183
  var require_resolveCommand = __commonJS({
16106
- "../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
16184
+ "../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
16107
16185
  "use strict";
16108
16186
  var path8 = require("path");
16109
16187
  var which = require_which();
@@ -16143,9 +16221,9 @@ var require_resolveCommand = __commonJS({
16143
16221
  }
16144
16222
  });
16145
16223
 
16146
- // ../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
16224
+ // ../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
16147
16225
  var require_escape = __commonJS({
16148
- "../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
16226
+ "../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
16149
16227
  "use strict";
16150
16228
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
16151
16229
  function escapeCommand(arg) {
@@ -16154,8 +16232,8 @@ var require_escape = __commonJS({
16154
16232
  }
16155
16233
  function escapeArgument(arg, doubleEscapeMetaChars) {
16156
16234
  arg = `${arg}`;
16157
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
16158
- arg = arg.replace(/(\\*)$/, "$1$1");
16235
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
16236
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
16159
16237
  arg = `"${arg}"`;
16160
16238
  arg = arg.replace(metaCharsRegExp, "^$1");
16161
16239
  if (doubleEscapeMetaChars) {
@@ -16196,9 +16274,9 @@ var require_shebang_command = __commonJS({
16196
16274
  }
16197
16275
  });
16198
16276
 
16199
- // ../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
16277
+ // ../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
16200
16278
  var require_readShebang = __commonJS({
16201
- "../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
16279
+ "../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
16202
16280
  "use strict";
16203
16281
  var fs2 = require("fs");
16204
16282
  var shebangCommand = require_shebang_command();
@@ -16218,9 +16296,9 @@ var require_readShebang = __commonJS({
16218
16296
  }
16219
16297
  });
16220
16298
 
16221
- // ../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
16299
+ // ../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
16222
16300
  var require_parse = __commonJS({
16223
- "../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
16301
+ "../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
16224
16302
  "use strict";
16225
16303
  var path8 = require("path");
16226
16304
  var resolveCommand = require_resolveCommand();
@@ -16280,9 +16358,9 @@ var require_parse = __commonJS({
16280
16358
  }
16281
16359
  });
16282
16360
 
16283
- // ../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
16361
+ // ../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
16284
16362
  var require_enoent = __commonJS({
16285
- "../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
16363
+ "../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
16286
16364
  "use strict";
16287
16365
  var isWin = process.platform === "win32";
16288
16366
  function notFoundError(original, syscall) {
@@ -16301,7 +16379,7 @@ var require_enoent = __commonJS({
16301
16379
  const originalEmit = cp.emit;
16302
16380
  cp.emit = function(name, arg1) {
16303
16381
  if (name === "exit") {
16304
- const err = verifyENOENT(arg1, parsed, "spawn");
16382
+ const err = verifyENOENT(arg1, parsed);
16305
16383
  if (err) {
16306
16384
  return originalEmit.call(cp, "error", err);
16307
16385
  }
@@ -16330,9 +16408,9 @@ var require_enoent = __commonJS({
16330
16408
  }
16331
16409
  });
16332
16410
 
16333
- // ../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
16411
+ // ../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
16334
16412
  var require_cross_spawn = __commonJS({
16335
- "../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module2) {
16413
+ "../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module2) {
16336
16414
  "use strict";
16337
16415
  var cp = require("child_process");
16338
16416
  var parse = require_parse();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20250323160331",
18
+ "version": "0.0.0-nightly-20250325160545",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/index.d.ts",
21
21
  "main": "./dist/index.js",
@@ -45,10 +45,10 @@
45
45
  "jest": "^29",
46
46
  "ts-node": "^10.9.1",
47
47
  "typescript": "^5",
48
- "@modern-js/plugin-i18n": "0.0.0-nightly-20250323160331",
49
- "@modern-js/upgrade-generator": "0.0.0-nightly-20250323160331",
50
- "@scripts/build": "0.0.0-nightly-20250323160331",
51
- "@scripts/jest-config": "0.0.0-nightly-20250323160331"
48
+ "@modern-js/plugin-i18n": "0.0.0-nightly-20250325160545",
49
+ "@scripts/build": "0.0.0-nightly-20250325160545",
50
+ "@scripts/jest-config": "0.0.0-nightly-20250325160545",
51
+ "@modern-js/upgrade-generator": "0.0.0-nightly-20250325160545"
52
52
  },
53
53
  "sideEffects": false,
54
54
  "publishConfig": {