@modern-js/upgrade 2.64.0 → 2.64.1
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 +9 -118
- 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.
|
10102
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
|
10103
10103
|
var require_common = __commonJS({
|
10104
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
10104
|
+
"../../../node_modules/.pnpm/debug@4.3.7/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.
|
10266
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js
|
10267
10267
|
var require_browser = __commonJS({
|
10268
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
10268
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
|
10269
10269
|
"use strict";
|
10270
10270
|
exports.formatArgs = formatArgs;
|
10271
10271
|
exports.save = save;
|
@@ -10434,118 +10434,9 @@ var require_browser = __commonJS({
|
|
10434
10434
|
}
|
10435
10435
|
});
|
10436
10436
|
|
10437
|
-
// ../../../node_modules/.pnpm/
|
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
|
10437
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js
|
10547
10438
|
var require_node = __commonJS({
|
10548
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
10439
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
|
10549
10440
|
"use strict";
|
10550
10441
|
var tty = require("tty");
|
10551
10442
|
var util3 = require("util");
|
@@ -10562,7 +10453,7 @@ var require_node = __commonJS({
|
|
10562
10453
|
);
|
10563
10454
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
10564
10455
|
try {
|
10565
|
-
const supportsColor =
|
10456
|
+
const supportsColor = require_supports_color();
|
10566
10457
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
10567
10458
|
exports.colors = [
|
10568
10459
|
20,
|
@@ -10718,9 +10609,9 @@ var require_node = __commonJS({
|
|
10718
10609
|
}
|
10719
10610
|
});
|
10720
10611
|
|
10721
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
10612
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js
|
10722
10613
|
var require_src = __commonJS({
|
10723
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
10614
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
|
10724
10615
|
"use strict";
|
10725
10616
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
10726
10617
|
module2.exports = require_browser();
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.64.
|
18
|
+
"version": "2.64.1",
|
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": "2.64.
|
49
|
-
"@modern-js/upgrade-generator": "3.7.
|
50
|
-
"@scripts/
|
51
|
-
"@scripts/
|
48
|
+
"@modern-js/plugin-i18n": "2.64.1",
|
49
|
+
"@modern-js/upgrade-generator": "3.7.15",
|
50
|
+
"@scripts/build": "2.64.1",
|
51
|
+
"@scripts/jest-config": "2.64.1"
|
52
52
|
},
|
53
53
|
"sideEffects": false,
|
54
54
|
"publishConfig": {
|