@modern-js/upgrade 2.65.0 → 2.65.2
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 +217 -75
- 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.
|
8410
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/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.
|
8413
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/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.
|
9976
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/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.
|
9979
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/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.
|
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.
|
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.
|
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.
|
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/
|
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.
|
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 =
|
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.
|
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.
|
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.
|
10733
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/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.
|
10736
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/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,18 +13181,18 @@ var require_glob = __commonJS({
|
|
13072
13181
|
}
|
13073
13182
|
});
|
13074
13183
|
|
13075
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
13184
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/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.
|
13187
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/glob.js"() {
|
13079
13188
|
"use strict";
|
13080
13189
|
import_glob = __toESM(require_glob());
|
13081
13190
|
}
|
13082
13191
|
});
|
13083
13192
|
|
13084
|
-
// ../../../node_modules/.pnpm/universalify@2.0.
|
13193
|
+
// ../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
13085
13194
|
var require_universalify = __commonJS({
|
13086
|
-
"../../../node_modules/.pnpm/universalify@2.0.
|
13195
|
+
"../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
13087
13196
|
"use strict";
|
13088
13197
|
exports.fromCallback = function(fn) {
|
13089
13198
|
return Object.defineProperty(function(...args) {
|
@@ -13091,11 +13200,8 @@ var require_universalify = __commonJS({
|
|
13091
13200
|
fn.apply(this, args);
|
13092
13201
|
else {
|
13093
13202
|
return new Promise((resolve, reject) => {
|
13094
|
-
|
13095
|
-
|
13096
|
-
...args,
|
13097
|
-
(err, res) => err != null ? reject(err) : resolve(res)
|
13098
|
-
);
|
13203
|
+
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
13204
|
+
fn.apply(this, args);
|
13099
13205
|
});
|
13100
13206
|
}
|
13101
13207
|
}, "name", { value: fn.name });
|
@@ -13105,8 +13211,10 @@ var require_universalify = __commonJS({
|
|
13105
13211
|
const cb = args[args.length - 1];
|
13106
13212
|
if (typeof cb !== "function")
|
13107
13213
|
return fn.apply(this, args);
|
13108
|
-
else
|
13109
|
-
|
13214
|
+
else {
|
13215
|
+
args.pop();
|
13216
|
+
fn.apply(this, args).then((r) => cb(null, r), cb);
|
13217
|
+
}
|
13110
13218
|
}, "name", { value: fn.name });
|
13111
13219
|
};
|
13112
13220
|
}
|
@@ -15328,6 +15436,37 @@ var require_ensure = __commonJS({
|
|
15328
15436
|
}
|
15329
15437
|
});
|
15330
15438
|
|
15439
|
+
// ../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
15440
|
+
var require_universalify2 = __commonJS({
|
15441
|
+
"../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
15442
|
+
"use strict";
|
15443
|
+
exports.fromCallback = function(fn) {
|
15444
|
+
return Object.defineProperty(function(...args) {
|
15445
|
+
if (typeof args[args.length - 1] === "function")
|
15446
|
+
fn.apply(this, args);
|
15447
|
+
else {
|
15448
|
+
return new Promise((resolve, reject) => {
|
15449
|
+
fn.call(
|
15450
|
+
this,
|
15451
|
+
...args,
|
15452
|
+
(err, res) => err != null ? reject(err) : resolve(res)
|
15453
|
+
);
|
15454
|
+
});
|
15455
|
+
}
|
15456
|
+
}, "name", { value: fn.name });
|
15457
|
+
};
|
15458
|
+
exports.fromPromise = function(fn) {
|
15459
|
+
return Object.defineProperty(function(...args) {
|
15460
|
+
const cb = args[args.length - 1];
|
15461
|
+
if (typeof cb !== "function")
|
15462
|
+
return fn.apply(this, args);
|
15463
|
+
else
|
15464
|
+
fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
|
15465
|
+
}, "name", { value: fn.name });
|
15466
|
+
};
|
15467
|
+
}
|
15468
|
+
});
|
15469
|
+
|
15331
15470
|
// ../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
15332
15471
|
var require_utils2 = __commonJS({
|
15333
15472
|
"../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
@@ -15356,7 +15495,7 @@ var require_jsonfile = __commonJS({
|
|
15356
15495
|
} catch (_) {
|
15357
15496
|
_fs = require("fs");
|
15358
15497
|
}
|
15359
|
-
var universalify =
|
15498
|
+
var universalify = require_universalify2();
|
15360
15499
|
var { stringify, stripBom } = require_utils2();
|
15361
15500
|
function _readFile(_0) {
|
15362
15501
|
return __async(this, arguments, function* (file, options = {}) {
|
@@ -15686,19 +15825,19 @@ var require_lib = __commonJS({
|
|
15686
15825
|
}
|
15687
15826
|
});
|
15688
15827
|
|
15689
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
15828
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
|
15690
15829
|
var import_fs_extra;
|
15691
15830
|
var init_fs_extra = __esm({
|
15692
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
15831
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js"() {
|
15693
15832
|
"use strict";
|
15694
15833
|
import_fs_extra = __toESM(require_lib());
|
15695
15834
|
}
|
15696
15835
|
});
|
15697
15836
|
|
15698
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15837
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
|
15699
15838
|
var IMAGE_EXT_LIST;
|
15700
15839
|
var init_constants2 = __esm({
|
15701
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15840
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js"() {
|
15702
15841
|
"use strict";
|
15703
15842
|
IMAGE_EXT_LIST = [
|
15704
15843
|
".jpg",
|
@@ -15715,10 +15854,10 @@ var init_constants2 = __esm({
|
|
15715
15854
|
}
|
15716
15855
|
});
|
15717
15856
|
|
15718
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15857
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
15719
15858
|
var import_path, FS_RESOURCE, FsResource;
|
15720
15859
|
var init_FsResource = __esm({
|
15721
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15860
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js"() {
|
15722
15861
|
"use strict";
|
15723
15862
|
import_path = __toESM(require("path"));
|
15724
15863
|
init_fs_extra();
|
@@ -15749,10 +15888,10 @@ var init_FsResource = __esm({
|
|
15749
15888
|
}
|
15750
15889
|
});
|
15751
15890
|
|
15752
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15891
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
15753
15892
|
var import_path2, promisifyGlob, FsMaterial;
|
15754
15893
|
var init_FsMaterial = __esm({
|
15755
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15894
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js"() {
|
15756
15895
|
"use strict";
|
15757
15896
|
import_path2 = __toESM(require("path"));
|
15758
15897
|
init_glob();
|
@@ -15785,7 +15924,7 @@ var init_FsMaterial = __esm({
|
|
15785
15924
|
}
|
15786
15925
|
});
|
15787
15926
|
|
15788
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15927
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
15789
15928
|
function fsExists(path8) {
|
15790
15929
|
return __async(this, null, function* () {
|
15791
15930
|
try {
|
@@ -15797,16 +15936,16 @@ function fsExists(path8) {
|
|
15797
15936
|
});
|
15798
15937
|
}
|
15799
15938
|
var init_fsExists = __esm({
|
15800
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15939
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js"() {
|
15801
15940
|
"use strict";
|
15802
15941
|
init_fs_extra();
|
15803
15942
|
}
|
15804
15943
|
});
|
15805
15944
|
|
15806
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15945
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
15807
15946
|
var nodeRequire;
|
15808
15947
|
var init_nodeRequire = __esm({
|
15809
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15948
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js"() {
|
15810
15949
|
"use strict";
|
15811
15950
|
nodeRequire = (path8) => {
|
15812
15951
|
try {
|
@@ -17784,16 +17923,16 @@ var require_execa = __commonJS({
|
|
17784
17923
|
}
|
17785
17924
|
});
|
17786
17925
|
|
17787
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
17926
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
|
17788
17927
|
var import_execa;
|
17789
17928
|
var init_execa = __esm({
|
17790
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
17929
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js"() {
|
17791
17930
|
"use strict";
|
17792
17931
|
import_execa = __toESM(require_execa());
|
17793
17932
|
}
|
17794
17933
|
});
|
17795
17934
|
|
17796
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
17935
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
17797
17936
|
function canUseYarn() {
|
17798
17937
|
return __async(this, null, function* () {
|
17799
17938
|
try {
|
@@ -17878,7 +18017,7 @@ function runInstall(targetDir, registryUrl, logger) {
|
|
17878
18017
|
}
|
17879
18018
|
var import_path3;
|
17880
18019
|
var init_packageManager = __esm({
|
17881
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
18020
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js"() {
|
17882
18021
|
"use strict";
|
17883
18022
|
import_path3 = __toESM(require("path"));
|
17884
18023
|
init_execa();
|
@@ -17886,7 +18025,7 @@ var init_packageManager = __esm({
|
|
17886
18025
|
}
|
17887
18026
|
});
|
17888
18027
|
|
17889
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
18028
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
17890
18029
|
function timeoutPromise(promise, ms, reason = "Operation") {
|
17891
18030
|
return __async(this, null, function* () {
|
17892
18031
|
let timeoutId = null;
|
@@ -17910,15 +18049,15 @@ function timeoutPromise(promise, ms, reason = "Operation") {
|
|
17910
18049
|
});
|
17911
18050
|
}
|
17912
18051
|
var init_timeoutPromise = __esm({
|
17913
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
18052
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js"() {
|
17914
18053
|
"use strict";
|
17915
18054
|
}
|
17916
18055
|
});
|
17917
18056
|
|
17918
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
18057
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
17919
18058
|
var NPM_API_TIMEOUT, CATCHE_VALIDITY_PREIOD;
|
17920
18059
|
var init_constants3 = __esm({
|
17921
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
18060
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/constants.js"() {
|
17922
18061
|
"use strict";
|
17923
18062
|
NPM_API_TIMEOUT = 3e4;
|
17924
18063
|
CATCHE_VALIDITY_PREIOD = 7 * 24 * 3600 * 1e3;
|
@@ -20410,10 +20549,10 @@ var require_semver2 = __commonJS({
|
|
20410
20549
|
}
|
20411
20550
|
});
|
20412
20551
|
|
20413
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
20552
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
20414
20553
|
var import_semver;
|
20415
20554
|
var init_semver = __esm({
|
20416
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
20555
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js"() {
|
20417
20556
|
"use strict";
|
20418
20557
|
import_semver = __toESM(require_semver2());
|
20419
20558
|
}
|
@@ -40019,7 +40158,7 @@ var require_tar = __commonJS({
|
|
40019
40158
|
}
|
40020
40159
|
});
|
40021
40160
|
|
40022
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40161
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js
|
40023
40162
|
function getNpmRegistry() {
|
40024
40163
|
return __async(this, null, function* () {
|
40025
40164
|
const { stdout } = yield (0, import_execa.default)("npm", [
|
@@ -40031,13 +40170,13 @@ function getNpmRegistry() {
|
|
40031
40170
|
});
|
40032
40171
|
}
|
40033
40172
|
var init_getNpmRegistry = __esm({
|
40034
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40173
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js"() {
|
40035
40174
|
"use strict";
|
40036
40175
|
init_execa();
|
40037
40176
|
}
|
40038
40177
|
});
|
40039
40178
|
|
40040
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40179
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js
|
40041
40180
|
function getNpmPackageInfoWithCommand(pkgName, pkgVersion, options) {
|
40042
40181
|
return __async(this, null, function* () {
|
40043
40182
|
const { registryUrl } = options || {};
|
@@ -40074,6 +40213,9 @@ function getNpmPackageInfo(pkgName, pkgVersion, options) {
|
|
40074
40213
|
let response;
|
40075
40214
|
try {
|
40076
40215
|
response = (yield timeoutPromise(axios_default.get(url2), NPM_API_TIMEOUT, `Get npm package info of '${pkgName}'`)).data;
|
40216
|
+
if (!response.version) {
|
40217
|
+
response = yield getNpmPackageInfoWithCommand(pkgName, pkgVersion, options);
|
40218
|
+
}
|
40077
40219
|
} catch (e) {
|
40078
40220
|
logger === null || logger === void 0 ? void 0 : logger.error(e);
|
40079
40221
|
response = yield getNpmPackageInfoWithCommand(pkgName, pkgVersion, options);
|
@@ -40085,7 +40227,7 @@ function getNpmPackageInfo(pkgName, pkgVersion, options) {
|
|
40085
40227
|
}
|
40086
40228
|
var NpmPackageInfoCache;
|
40087
40229
|
var init_getNpmPackageInfo = __esm({
|
40088
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40230
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js"() {
|
40089
40231
|
"use strict";
|
40090
40232
|
init_constants3();
|
40091
40233
|
init_execa();
|
@@ -40096,7 +40238,7 @@ var init_getNpmPackageInfo = __esm({
|
|
40096
40238
|
}
|
40097
40239
|
});
|
40098
40240
|
|
40099
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40241
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
40100
40242
|
function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
40101
40243
|
return __async(this, null, function* () {
|
40102
40244
|
const packageInfo = yield getNpmPackageInfo(pkgName, pkgVersion, options);
|
@@ -40104,13 +40246,13 @@ function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
40104
40246
|
});
|
40105
40247
|
}
|
40106
40248
|
var init_getNpmTarballUrl = __esm({
|
40107
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40249
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js"() {
|
40108
40250
|
"use strict";
|
40109
40251
|
init_getNpmPackageInfo();
|
40110
40252
|
}
|
40111
40253
|
});
|
40112
40254
|
|
40113
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40255
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
40114
40256
|
function getNpmVersion(packageName, options) {
|
40115
40257
|
return __async(this, null, function* () {
|
40116
40258
|
const { version = "latest" } = options || {};
|
@@ -40119,13 +40261,13 @@ function getNpmVersion(packageName, options) {
|
|
40119
40261
|
});
|
40120
40262
|
}
|
40121
40263
|
var init_getNpmVersion = __esm({
|
40122
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40264
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js"() {
|
40123
40265
|
"use strict";
|
40124
40266
|
init_getNpmPackageInfo();
|
40125
40267
|
}
|
40126
40268
|
});
|
40127
40269
|
|
40128
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40270
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
40129
40271
|
function getGeneratorVersion(_0) {
|
40130
40272
|
return __async(this, arguments, function* (pkgName, pkgVersion = "latest", options = {}) {
|
40131
40273
|
const cacheKey = `${pkgName}@${pkgVersion}`;
|
@@ -40261,7 +40403,7 @@ function downloadPackage(_0) {
|
|
40261
40403
|
}
|
40262
40404
|
var import_os, import_tar, GeneratorVersionMap;
|
40263
40405
|
var init_downloadPackage = __esm({
|
40264
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40406
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js"() {
|
40265
40407
|
"use strict";
|
40266
40408
|
import_os = __toESM(require("os"));
|
40267
40409
|
init_constants3();
|
@@ -40277,7 +40419,7 @@ var init_downloadPackage = __esm({
|
|
40277
40419
|
}
|
40278
40420
|
});
|
40279
40421
|
|
40280
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40422
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
40281
40423
|
function getPackageInfo(packageName) {
|
40282
40424
|
if (!packageName) {
|
40283
40425
|
throw new Error("package is not exisit");
|
@@ -40301,15 +40443,15 @@ function getPackageInfo(packageName) {
|
|
40301
40443
|
};
|
40302
40444
|
}
|
40303
40445
|
var init_getPackageInfo = __esm({
|
40304
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40446
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js"() {
|
40305
40447
|
"use strict";
|
40306
40448
|
init_semver();
|
40307
40449
|
}
|
40308
40450
|
});
|
40309
40451
|
|
40310
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40452
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/index.js
|
40311
40453
|
var init_utils3 = __esm({
|
40312
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40454
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/index.js"() {
|
40313
40455
|
"use strict";
|
40314
40456
|
init_nodeRequire();
|
40315
40457
|
init_downloadPackage();
|
@@ -40317,7 +40459,7 @@ var init_utils3 = __esm({
|
|
40317
40459
|
}
|
40318
40460
|
});
|
40319
40461
|
|
40320
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40462
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
40321
40463
|
function getGeneratorDir(generator) {
|
40322
40464
|
return __async(this, null, function* () {
|
40323
40465
|
let result = generator;
|
@@ -40338,7 +40480,7 @@ function getGeneratorDir(generator) {
|
|
40338
40480
|
}
|
40339
40481
|
var import_path4, MaxTimes;
|
40340
40482
|
var init_getGeneratorDir = __esm({
|
40341
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40483
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js"() {
|
40342
40484
|
"use strict";
|
40343
40485
|
import_path4 = __toESM(require("path"));
|
40344
40486
|
init_fs_extra();
|
@@ -45834,19 +45976,19 @@ var require_ora = __commonJS({
|
|
45834
45976
|
}
|
45835
45977
|
});
|
45836
45978
|
|
45837
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
45979
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js
|
45838
45980
|
var import_ora;
|
45839
45981
|
var init_ora = __esm({
|
45840
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
45982
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js"() {
|
45841
45983
|
"use strict";
|
45842
45984
|
import_ora = __toESM(require_ora());
|
45843
45985
|
}
|
45844
45986
|
});
|
45845
45987
|
|
45846
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
45988
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
45847
45989
|
var import_events2, import_path5, GeneratorCore;
|
45848
45990
|
var init_generator = __esm({
|
45849
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
45991
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js"() {
|
45850
45992
|
"use strict";
|
45851
45993
|
import_events2 = require("events");
|
45852
45994
|
import_path5 = __toESM(require("path"));
|
@@ -46073,10 +46215,10 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
46073
46215
|
}
|
46074
46216
|
});
|
46075
46217
|
|
46076
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46218
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
46077
46219
|
var import_path6, MaterialsManager;
|
46078
46220
|
var init_materials = __esm({
|
46079
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46221
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js"() {
|
46080
46222
|
"use strict";
|
46081
46223
|
import_path6 = __toESM(require("path"));
|
46082
46224
|
init_utils3();
|
@@ -46147,10 +46289,10 @@ var init_materials = __esm({
|
|
46147
46289
|
}
|
46148
46290
|
});
|
46149
46291
|
|
46150
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46292
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
46151
46293
|
var import_path7, CodeSmith;
|
46152
46294
|
var init_codesmith = __esm({
|
46153
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46295
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js"() {
|
46154
46296
|
"use strict";
|
46155
46297
|
import_path7 = __toESM(require("path"));
|
46156
46298
|
init_generator();
|
@@ -46218,9 +46360,9 @@ var init_codesmith = __esm({
|
|
46218
46360
|
}
|
46219
46361
|
});
|
46220
46362
|
|
46221
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46363
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/index.js
|
46222
46364
|
var init_esm_node = __esm({
|
46223
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46365
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/index.js"() {
|
46224
46366
|
"use strict";
|
46225
46367
|
init_codesmith();
|
46226
46368
|
init_utils3();
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.65.
|
18
|
+
"version": "2.65.2",
|
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.
|
41
|
-
"@modern-js/codesmith-utils": "2.6.
|
40
|
+
"@modern-js/codesmith": "2.6.6",
|
41
|
+
"@modern-js/codesmith-utils": "2.6.6",
|
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": "2.65.
|
49
|
-
"@
|
50
|
-
"@
|
51
|
-
"@scripts/jest-config": "2.65.
|
48
|
+
"@modern-js/plugin-i18n": "2.65.2",
|
49
|
+
"@scripts/build": "2.65.2",
|
50
|
+
"@modern-js/upgrade-generator": "3.7.20",
|
51
|
+
"@scripts/jest-config": "2.65.2"
|
52
52
|
},
|
53
53
|
"sideEffects": false,
|
54
54
|
"publishConfig": {
|