@modern-js/packages-generator 3.1.26 → 3.1.27
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 +235 -255
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -22,6 +22,9 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __esm = (fn, res) => function __init() {
|
|
26
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
27
|
+
};
|
|
25
28
|
var __commonJS = (cb, mod) => function __require() {
|
|
26
29
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
27
30
|
};
|
|
@@ -3500,13 +3503,13 @@ var require_chalk = __commonJS({
|
|
|
3500
3503
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
|
3501
3504
|
}
|
|
3502
3505
|
}
|
|
3503
|
-
function
|
|
3506
|
+
function translateLevel2(e3) {
|
|
3504
3507
|
if (e3 === 0) {
|
|
3505
3508
|
return false;
|
|
3506
3509
|
}
|
|
3507
3510
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
3508
3511
|
}
|
|
3509
|
-
function
|
|
3512
|
+
function supportsColor2(e3, t3) {
|
|
3510
3513
|
if (c === 0) {
|
|
3511
3514
|
return 0;
|
|
3512
3515
|
}
|
|
@@ -3563,10 +3566,10 @@ var require_chalk = __commonJS({
|
|
|
3563
3566
|
return n3;
|
|
3564
3567
|
}
|
|
3565
3568
|
function getSupportLevel(e3) {
|
|
3566
|
-
const t3 =
|
|
3567
|
-
return
|
|
3569
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
3570
|
+
return translateLevel2(t3);
|
|
3568
3571
|
}
|
|
3569
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
3572
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
|
|
3570
3573
|
}, 37: (e2) => {
|
|
3571
3574
|
"use strict";
|
|
3572
3575
|
e2.exports = require("os");
|
|
@@ -12641,13 +12644,13 @@ var require_debug = __commonJS({
|
|
|
12641
12644
|
c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
|
|
12642
12645
|
}
|
|
12643
12646
|
}
|
|
12644
|
-
function
|
|
12647
|
+
function translateLevel2(e3) {
|
|
12645
12648
|
if (e3 === 0) {
|
|
12646
12649
|
return false;
|
|
12647
12650
|
}
|
|
12648
12651
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
12649
12652
|
}
|
|
12650
|
-
function
|
|
12653
|
+
function supportsColor2(e3, t3) {
|
|
12651
12654
|
if (c === 0) {
|
|
12652
12655
|
return 0;
|
|
12653
12656
|
}
|
|
@@ -12704,10 +12707,10 @@ var require_debug = __commonJS({
|
|
|
12704
12707
|
return r3;
|
|
12705
12708
|
}
|
|
12706
12709
|
function getSupportLevel(e3) {
|
|
12707
|
-
const t3 =
|
|
12708
|
-
return
|
|
12710
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
12711
|
+
return translateLevel2(t3);
|
|
12709
12712
|
}
|
|
12710
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
12713
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
|
|
12711
12714
|
}, 37: (e2) => {
|
|
12712
12715
|
"use strict";
|
|
12713
12716
|
e2.exports = require("os");
|
|
@@ -43528,15 +43531,15 @@ var require_runtime = __commonJS({
|
|
|
43528
43531
|
throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ").");
|
|
43529
43532
|
}
|
|
43530
43533
|
}
|
|
43531
|
-
function template(templateSpec,
|
|
43532
|
-
if (!
|
|
43534
|
+
function template(templateSpec, env2) {
|
|
43535
|
+
if (!env2) {
|
|
43533
43536
|
throw new _exception2["default"]("No environment passed to template");
|
|
43534
43537
|
}
|
|
43535
43538
|
if (!templateSpec || !templateSpec.main) {
|
|
43536
43539
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
|
43537
43540
|
}
|
|
43538
43541
|
templateSpec.main.decorator = templateSpec.main_d;
|
|
43539
|
-
|
|
43542
|
+
env2.VM.checkRevision(templateSpec.compiler);
|
|
43540
43543
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
|
43541
43544
|
function invokePartialWrapper(partial, context, options) {
|
|
43542
43545
|
if (options.hash) {
|
|
@@ -43545,14 +43548,14 @@ var require_runtime = __commonJS({
|
|
|
43545
43548
|
options.ids[0] = true;
|
|
43546
43549
|
}
|
|
43547
43550
|
}
|
|
43548
|
-
partial =
|
|
43551
|
+
partial = env2.VM.resolvePartial.call(this, partial, context, options);
|
|
43549
43552
|
var extendedOptions = Utils.extend({}, options, {
|
|
43550
43553
|
hooks: this.hooks,
|
|
43551
43554
|
protoAccessControl: this.protoAccessControl
|
|
43552
43555
|
});
|
|
43553
|
-
var result =
|
|
43554
|
-
if (result == null &&
|
|
43555
|
-
options.partials[options.name] =
|
|
43556
|
+
var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
|
|
43557
|
+
if (result == null && env2.compile) {
|
|
43558
|
+
options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
|
|
43556
43559
|
result = options.partials[options.name](context, extendedOptions);
|
|
43557
43560
|
}
|
|
43558
43561
|
if (result != null) {
|
|
@@ -43637,7 +43640,7 @@ var require_runtime = __commonJS({
|
|
|
43637
43640
|
},
|
|
43638
43641
|
// An empty object to use as replacement for null-contexts
|
|
43639
43642
|
nullContext: Object.seal({}),
|
|
43640
|
-
noop:
|
|
43643
|
+
noop: env2.VM.noop,
|
|
43641
43644
|
compilerInfo: templateSpec.compiler
|
|
43642
43645
|
};
|
|
43643
43646
|
function ret(context) {
|
|
@@ -43664,14 +43667,14 @@ var require_runtime = __commonJS({
|
|
|
43664
43667
|
ret.isTop = true;
|
|
43665
43668
|
ret._setup = function(options) {
|
|
43666
43669
|
if (!options.partial) {
|
|
43667
|
-
var mergedHelpers = Utils.extend({},
|
|
43670
|
+
var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
|
|
43668
43671
|
wrapHelpersToPassLookupProperty(mergedHelpers, container);
|
|
43669
43672
|
container.helpers = mergedHelpers;
|
|
43670
43673
|
if (templateSpec.usePartial) {
|
|
43671
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
|
43674
|
+
container.partials = container.mergeIfNeeded(options.partials, env2.partials);
|
|
43672
43675
|
}
|
|
43673
43676
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
|
43674
|
-
container.decorators = Utils.extend({},
|
|
43677
|
+
container.decorators = Utils.extend({}, env2.decorators, options.decorators);
|
|
43675
43678
|
}
|
|
43676
43679
|
container.hooks = {};
|
|
43677
43680
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
|
@@ -45473,7 +45476,7 @@ var require_compiler = __commonJS({
|
|
|
45473
45476
|
}
|
|
45474
45477
|
}
|
|
45475
45478
|
};
|
|
45476
|
-
function precompile(input, options,
|
|
45479
|
+
function precompile(input, options, env2) {
|
|
45477
45480
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
45478
45481
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
|
45479
45482
|
}
|
|
@@ -45484,10 +45487,10 @@ var require_compiler = __commonJS({
|
|
|
45484
45487
|
if (options.compat) {
|
|
45485
45488
|
options.useDepths = true;
|
|
45486
45489
|
}
|
|
45487
|
-
var ast =
|
|
45488
|
-
return new
|
|
45490
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
|
|
45491
|
+
return new env2.JavaScriptCompiler().compile(environment, options);
|
|
45489
45492
|
}
|
|
45490
|
-
function compile2(input, options,
|
|
45493
|
+
function compile2(input, options, env2) {
|
|
45491
45494
|
if (options === void 0)
|
|
45492
45495
|
options = {};
|
|
45493
45496
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
@@ -45502,8 +45505,8 @@ var require_compiler = __commonJS({
|
|
|
45502
45505
|
}
|
|
45503
45506
|
var compiled = void 0;
|
|
45504
45507
|
function compileInput() {
|
|
45505
|
-
var ast =
|
|
45506
|
-
return
|
|
45508
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
|
|
45509
|
+
return env2.template(templateSpec);
|
|
45507
45510
|
}
|
|
45508
45511
|
function ret(context, execOptions) {
|
|
45509
45512
|
if (!compiled) {
|
|
@@ -50404,26 +50407,26 @@ var require_has_flag = __commonJS({
|
|
|
50404
50407
|
var require_supports_color = __commonJS({
|
|
50405
50408
|
"../../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
50406
50409
|
"use strict";
|
|
50407
|
-
var
|
|
50408
|
-
var
|
|
50409
|
-
var
|
|
50410
|
-
var { env } = process;
|
|
50410
|
+
var os2 = require("os");
|
|
50411
|
+
var tty2 = require("tty");
|
|
50412
|
+
var hasFlag2 = require_has_flag();
|
|
50413
|
+
var { env: env2 } = process;
|
|
50411
50414
|
var forceColor;
|
|
50412
|
-
if (
|
|
50415
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
50413
50416
|
forceColor = 0;
|
|
50414
|
-
} else if (
|
|
50417
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
50415
50418
|
forceColor = 1;
|
|
50416
50419
|
}
|
|
50417
|
-
if ("FORCE_COLOR" in
|
|
50418
|
-
if (
|
|
50420
|
+
if ("FORCE_COLOR" in env2) {
|
|
50421
|
+
if (env2.FORCE_COLOR === "true") {
|
|
50419
50422
|
forceColor = 1;
|
|
50420
|
-
} else if (
|
|
50423
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
50421
50424
|
forceColor = 0;
|
|
50422
50425
|
} else {
|
|
50423
|
-
forceColor =
|
|
50426
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
50424
50427
|
}
|
|
50425
50428
|
}
|
|
50426
|
-
function
|
|
50429
|
+
function translateLevel2(level) {
|
|
50427
50430
|
if (level === 0) {
|
|
50428
50431
|
return false;
|
|
50429
50432
|
}
|
|
@@ -50434,70 +50437,70 @@ var require_supports_color = __commonJS({
|
|
|
50434
50437
|
has16m: level >= 3
|
|
50435
50438
|
};
|
|
50436
50439
|
}
|
|
50437
|
-
function
|
|
50440
|
+
function supportsColor2(haveStream, streamIsTTY) {
|
|
50438
50441
|
if (forceColor === 0) {
|
|
50439
50442
|
return 0;
|
|
50440
50443
|
}
|
|
50441
|
-
if (
|
|
50444
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
50442
50445
|
return 3;
|
|
50443
50446
|
}
|
|
50444
|
-
if (
|
|
50447
|
+
if (hasFlag2("color=256")) {
|
|
50445
50448
|
return 2;
|
|
50446
50449
|
}
|
|
50447
50450
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
50448
50451
|
return 0;
|
|
50449
50452
|
}
|
|
50450
50453
|
const min = forceColor || 0;
|
|
50451
|
-
if (
|
|
50454
|
+
if (env2.TERM === "dumb") {
|
|
50452
50455
|
return min;
|
|
50453
50456
|
}
|
|
50454
50457
|
if (process.platform === "win32") {
|
|
50455
|
-
const osRelease =
|
|
50458
|
+
const osRelease = os2.release().split(".");
|
|
50456
50459
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
50457
50460
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
50458
50461
|
}
|
|
50459
50462
|
return 1;
|
|
50460
50463
|
}
|
|
50461
|
-
if ("CI" in
|
|
50462
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in
|
|
50464
|
+
if ("CI" in env2) {
|
|
50465
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
50463
50466
|
return 1;
|
|
50464
50467
|
}
|
|
50465
50468
|
return min;
|
|
50466
50469
|
}
|
|
50467
|
-
if ("TEAMCITY_VERSION" in
|
|
50468
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
50470
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
50471
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
50469
50472
|
}
|
|
50470
|
-
if (
|
|
50473
|
+
if (env2.COLORTERM === "truecolor") {
|
|
50471
50474
|
return 3;
|
|
50472
50475
|
}
|
|
50473
|
-
if ("TERM_PROGRAM" in
|
|
50474
|
-
const version = parseInt((
|
|
50475
|
-
switch (
|
|
50476
|
+
if ("TERM_PROGRAM" in env2) {
|
|
50477
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
50478
|
+
switch (env2.TERM_PROGRAM) {
|
|
50476
50479
|
case "iTerm.app":
|
|
50477
50480
|
return version >= 3 ? 3 : 2;
|
|
50478
50481
|
case "Apple_Terminal":
|
|
50479
50482
|
return 2;
|
|
50480
50483
|
}
|
|
50481
50484
|
}
|
|
50482
|
-
if (/-256(color)?$/i.test(
|
|
50485
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
50483
50486
|
return 2;
|
|
50484
50487
|
}
|
|
50485
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
50488
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
50486
50489
|
return 1;
|
|
50487
50490
|
}
|
|
50488
|
-
if ("COLORTERM" in
|
|
50491
|
+
if ("COLORTERM" in env2) {
|
|
50489
50492
|
return 1;
|
|
50490
50493
|
}
|
|
50491
50494
|
return min;
|
|
50492
50495
|
}
|
|
50493
50496
|
function getSupportLevel(stream) {
|
|
50494
|
-
const level =
|
|
50495
|
-
return
|
|
50497
|
+
const level = supportsColor2(stream, stream && stream.isTTY);
|
|
50498
|
+
return translateLevel2(level);
|
|
50496
50499
|
}
|
|
50497
50500
|
module2.exports = {
|
|
50498
50501
|
supportsColor: getSupportLevel,
|
|
50499
|
-
stdout:
|
|
50500
|
-
stderr:
|
|
50502
|
+
stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
|
|
50503
|
+
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
50501
50504
|
};
|
|
50502
50505
|
}
|
|
50503
50506
|
});
|
|
@@ -55653,7 +55656,7 @@ var require_innerFrom = __commonJS({
|
|
|
55653
55656
|
exports.fromIterable = fromIterable;
|
|
55654
55657
|
function fromAsyncIterable(asyncIterable) {
|
|
55655
55658
|
return new Observable_1.Observable(function(subscriber) {
|
|
55656
|
-
|
|
55659
|
+
process3(asyncIterable, subscriber).catch(function(err) {
|
|
55657
55660
|
return subscriber.error(err);
|
|
55658
55661
|
});
|
|
55659
55662
|
});
|
|
@@ -55663,7 +55666,7 @@ var require_innerFrom = __commonJS({
|
|
|
55663
55666
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
55664
55667
|
}
|
|
55665
55668
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
55666
|
-
function
|
|
55669
|
+
function process3(asyncIterable, subscriber) {
|
|
55667
55670
|
var asyncIterable_1, asyncIterable_1_1;
|
|
55668
55671
|
var e_2, _a2;
|
|
55669
55672
|
return __awaiter6(this, void 0, void 0, function() {
|
|
@@ -62942,11 +62945,11 @@ var require_signals = __commonJS({
|
|
|
62942
62945
|
// ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
62943
62946
|
var require_signal_exit = __commonJS({
|
|
62944
62947
|
"../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
|
62945
|
-
var
|
|
62946
|
-
var processOk = function(
|
|
62947
|
-
return
|
|
62948
|
+
var process3 = global.process;
|
|
62949
|
+
var processOk = function(process4) {
|
|
62950
|
+
return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
|
|
62948
62951
|
};
|
|
62949
|
-
if (!processOk(
|
|
62952
|
+
if (!processOk(process3)) {
|
|
62950
62953
|
module2.exports = function() {
|
|
62951
62954
|
return function() {
|
|
62952
62955
|
};
|
|
@@ -62954,15 +62957,15 @@ var require_signal_exit = __commonJS({
|
|
|
62954
62957
|
} else {
|
|
62955
62958
|
assert = require("assert");
|
|
62956
62959
|
signals = require_signals();
|
|
62957
|
-
isWin = /^win/i.test(
|
|
62960
|
+
isWin = /^win/i.test(process3.platform);
|
|
62958
62961
|
EE = require("events");
|
|
62959
62962
|
if (typeof EE !== "function") {
|
|
62960
62963
|
EE = EE.EventEmitter;
|
|
62961
62964
|
}
|
|
62962
|
-
if (
|
|
62963
|
-
emitter =
|
|
62965
|
+
if (process3.__signal_exit_emitter__) {
|
|
62966
|
+
emitter = process3.__signal_exit_emitter__;
|
|
62964
62967
|
} else {
|
|
62965
|
-
emitter =
|
|
62968
|
+
emitter = process3.__signal_exit_emitter__ = new EE();
|
|
62966
62969
|
emitter.count = 0;
|
|
62967
62970
|
emitter.emitted = {};
|
|
62968
62971
|
}
|
|
@@ -62999,12 +63002,12 @@ var require_signal_exit = __commonJS({
|
|
|
62999
63002
|
loaded = false;
|
|
63000
63003
|
signals.forEach(function(sig) {
|
|
63001
63004
|
try {
|
|
63002
|
-
|
|
63005
|
+
process3.removeListener(sig, sigListeners[sig]);
|
|
63003
63006
|
} catch (er) {
|
|
63004
63007
|
}
|
|
63005
63008
|
});
|
|
63006
|
-
|
|
63007
|
-
|
|
63009
|
+
process3.emit = originalProcessEmit;
|
|
63010
|
+
process3.reallyExit = originalProcessReallyExit;
|
|
63008
63011
|
emitter.count -= 1;
|
|
63009
63012
|
};
|
|
63010
63013
|
module2.exports.unload = unload;
|
|
@@ -63021,7 +63024,7 @@ var require_signal_exit = __commonJS({
|
|
|
63021
63024
|
if (!processOk(global.process)) {
|
|
63022
63025
|
return;
|
|
63023
63026
|
}
|
|
63024
|
-
var listeners =
|
|
63027
|
+
var listeners = process3.listeners(sig);
|
|
63025
63028
|
if (listeners.length === emitter.count) {
|
|
63026
63029
|
unload();
|
|
63027
63030
|
emit("exit", null, sig);
|
|
@@ -63029,7 +63032,7 @@ var require_signal_exit = __commonJS({
|
|
|
63029
63032
|
if (isWin && sig === "SIGHUP") {
|
|
63030
63033
|
sig = "SIGINT";
|
|
63031
63034
|
}
|
|
63032
|
-
|
|
63035
|
+
process3.kill(process3.pid, sig);
|
|
63033
63036
|
}
|
|
63034
63037
|
};
|
|
63035
63038
|
});
|
|
@@ -63045,36 +63048,36 @@ var require_signal_exit = __commonJS({
|
|
|
63045
63048
|
emitter.count += 1;
|
|
63046
63049
|
signals = signals.filter(function(sig) {
|
|
63047
63050
|
try {
|
|
63048
|
-
|
|
63051
|
+
process3.on(sig, sigListeners[sig]);
|
|
63049
63052
|
return true;
|
|
63050
63053
|
} catch (er) {
|
|
63051
63054
|
return false;
|
|
63052
63055
|
}
|
|
63053
63056
|
});
|
|
63054
|
-
|
|
63055
|
-
|
|
63057
|
+
process3.emit = processEmit;
|
|
63058
|
+
process3.reallyExit = processReallyExit;
|
|
63056
63059
|
};
|
|
63057
63060
|
module2.exports.load = load;
|
|
63058
|
-
originalProcessReallyExit =
|
|
63061
|
+
originalProcessReallyExit = process3.reallyExit;
|
|
63059
63062
|
processReallyExit = function processReallyExit2(code) {
|
|
63060
63063
|
if (!processOk(global.process)) {
|
|
63061
63064
|
return;
|
|
63062
63065
|
}
|
|
63063
|
-
|
|
63066
|
+
process3.exitCode = code || /* istanbul ignore next */
|
|
63064
63067
|
0;
|
|
63065
|
-
emit("exit",
|
|
63066
|
-
emit("afterexit",
|
|
63067
|
-
originalProcessReallyExit.call(
|
|
63068
|
+
emit("exit", process3.exitCode, null);
|
|
63069
|
+
emit("afterexit", process3.exitCode, null);
|
|
63070
|
+
originalProcessReallyExit.call(process3, process3.exitCode);
|
|
63068
63071
|
};
|
|
63069
|
-
originalProcessEmit =
|
|
63072
|
+
originalProcessEmit = process3.emit;
|
|
63070
63073
|
processEmit = function processEmit2(ev, arg) {
|
|
63071
63074
|
if (ev === "exit" && processOk(global.process)) {
|
|
63072
63075
|
if (arg !== void 0) {
|
|
63073
|
-
|
|
63076
|
+
process3.exitCode = arg;
|
|
63074
63077
|
}
|
|
63075
63078
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
63076
|
-
emit("exit",
|
|
63077
|
-
emit("afterexit",
|
|
63079
|
+
emit("exit", process3.exitCode, null);
|
|
63080
|
+
emit("afterexit", process3.exitCode, null);
|
|
63078
63081
|
return ret;
|
|
63079
63082
|
} else {
|
|
63080
63083
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -84902,10 +84905,10 @@ var require_ms = __commonJS({
|
|
|
84902
84905
|
}
|
|
84903
84906
|
});
|
|
84904
84907
|
|
|
84905
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
84908
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
|
|
84906
84909
|
var require_common2 = __commonJS({
|
|
84907
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
84908
|
-
function setup(
|
|
84910
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
84911
|
+
function setup(env2) {
|
|
84909
84912
|
createDebug.debug = createDebug;
|
|
84910
84913
|
createDebug.default = createDebug;
|
|
84911
84914
|
createDebug.coerce = coerce;
|
|
@@ -84914,8 +84917,8 @@ var require_common2 = __commonJS({
|
|
|
84914
84917
|
createDebug.enabled = enabled;
|
|
84915
84918
|
createDebug.humanize = require_ms();
|
|
84916
84919
|
createDebug.destroy = destroy2;
|
|
84917
|
-
Object.keys(
|
|
84918
|
-
createDebug[key] =
|
|
84920
|
+
Object.keys(env2).forEach((key) => {
|
|
84921
|
+
createDebug[key] = env2[key];
|
|
84919
84922
|
});
|
|
84920
84923
|
createDebug.names = [];
|
|
84921
84924
|
createDebug.skips = [];
|
|
@@ -85065,9 +85068,9 @@ var require_common2 = __commonJS({
|
|
|
85065
85068
|
}
|
|
85066
85069
|
});
|
|
85067
85070
|
|
|
85068
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
85071
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
|
|
85069
85072
|
var require_browser = __commonJS({
|
|
85070
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
85073
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
85071
85074
|
exports.formatArgs = formatArgs;
|
|
85072
85075
|
exports.save = save;
|
|
85073
85076
|
exports.load = load;
|
|
@@ -85234,123 +85237,144 @@ var require_browser = __commonJS({
|
|
|
85234
85237
|
}
|
|
85235
85238
|
});
|
|
85236
85239
|
|
|
85237
|
-
// ../../../../node_modules/.pnpm/supports-color@
|
|
85238
|
-
var
|
|
85239
|
-
|
|
85240
|
-
|
|
85241
|
-
|
|
85242
|
-
|
|
85243
|
-
|
|
85244
|
-
|
|
85245
|
-
|
|
85246
|
-
|
|
85247
|
-
|
|
85248
|
-
|
|
85249
|
-
|
|
85240
|
+
// ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
|
|
85241
|
+
var supports_color_exports = {};
|
|
85242
|
+
__export(supports_color_exports, {
|
|
85243
|
+
createSupportsColor: () => createSupportsColor,
|
|
85244
|
+
default: () => supports_color_default
|
|
85245
|
+
});
|
|
85246
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
85247
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
85248
|
+
const position = argv.indexOf(prefix + flag);
|
|
85249
|
+
const terminatorPosition = argv.indexOf("--");
|
|
85250
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
85251
|
+
}
|
|
85252
|
+
function envForceColor() {
|
|
85253
|
+
if ("FORCE_COLOR" in env) {
|
|
85254
|
+
if (env.FORCE_COLOR === "true") {
|
|
85255
|
+
return 1;
|
|
85250
85256
|
}
|
|
85251
|
-
|
|
85252
|
-
|
|
85253
|
-
if (env.FORCE_COLOR === "true") {
|
|
85254
|
-
return 1;
|
|
85255
|
-
}
|
|
85256
|
-
if (env.FORCE_COLOR === "false") {
|
|
85257
|
-
return 0;
|
|
85258
|
-
}
|
|
85259
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
85260
|
-
}
|
|
85257
|
+
if (env.FORCE_COLOR === "false") {
|
|
85258
|
+
return 0;
|
|
85261
85259
|
}
|
|
85262
|
-
|
|
85263
|
-
|
|
85264
|
-
|
|
85265
|
-
|
|
85266
|
-
|
|
85267
|
-
|
|
85268
|
-
|
|
85269
|
-
|
|
85270
|
-
|
|
85271
|
-
|
|
85260
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
85261
|
+
}
|
|
85262
|
+
}
|
|
85263
|
+
function translateLevel(level) {
|
|
85264
|
+
if (level === 0) {
|
|
85265
|
+
return false;
|
|
85266
|
+
}
|
|
85267
|
+
return {
|
|
85268
|
+
level,
|
|
85269
|
+
hasBasic: true,
|
|
85270
|
+
has256: level >= 2,
|
|
85271
|
+
has16m: level >= 3
|
|
85272
|
+
};
|
|
85273
|
+
}
|
|
85274
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
85275
|
+
const noFlagForceColor = envForceColor();
|
|
85276
|
+
if (noFlagForceColor !== void 0) {
|
|
85277
|
+
flagForceColor = noFlagForceColor;
|
|
85278
|
+
}
|
|
85279
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
85280
|
+
if (forceColor === 0) {
|
|
85281
|
+
return 0;
|
|
85282
|
+
}
|
|
85283
|
+
if (sniffFlags) {
|
|
85284
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
85285
|
+
return 3;
|
|
85272
85286
|
}
|
|
85273
|
-
|
|
85274
|
-
|
|
85275
|
-
|
|
85276
|
-
|
|
85277
|
-
|
|
85278
|
-
|
|
85279
|
-
|
|
85280
|
-
|
|
85281
|
-
|
|
85282
|
-
|
|
85283
|
-
|
|
85284
|
-
|
|
85285
|
-
|
|
85286
|
-
|
|
85287
|
-
|
|
85288
|
-
|
|
85289
|
-
|
|
85290
|
-
|
|
85291
|
-
|
|
85292
|
-
|
|
85293
|
-
|
|
85294
|
-
|
|
85295
|
-
|
|
85296
|
-
|
|
85297
|
-
|
|
85298
|
-
|
|
85299
|
-
|
|
85300
|
-
|
|
85301
|
-
|
|
85302
|
-
|
|
85303
|
-
|
|
85304
|
-
|
|
85305
|
-
|
|
85306
|
-
|
|
85307
|
-
|
|
85308
|
-
|
|
85309
|
-
|
|
85310
|
-
|
|
85311
|
-
|
|
85312
|
-
|
|
85313
|
-
|
|
85314
|
-
|
|
85315
|
-
|
|
85316
|
-
|
|
85317
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
85318
|
-
switch (env.TERM_PROGRAM) {
|
|
85319
|
-
case "iTerm.app":
|
|
85320
|
-
return version >= 3 ? 3 : 2;
|
|
85321
|
-
case "Apple_Terminal":
|
|
85322
|
-
return 2;
|
|
85323
|
-
}
|
|
85287
|
+
if (hasFlag("color=256")) {
|
|
85288
|
+
return 2;
|
|
85289
|
+
}
|
|
85290
|
+
}
|
|
85291
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
85292
|
+
return 1;
|
|
85293
|
+
}
|
|
85294
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
85295
|
+
return 0;
|
|
85296
|
+
}
|
|
85297
|
+
const min = forceColor || 0;
|
|
85298
|
+
if (env.TERM === "dumb") {
|
|
85299
|
+
return min;
|
|
85300
|
+
}
|
|
85301
|
+
if (import_node_process.default.platform === "win32") {
|
|
85302
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
85303
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
85304
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
85305
|
+
}
|
|
85306
|
+
return 1;
|
|
85307
|
+
}
|
|
85308
|
+
if ("CI" in env) {
|
|
85309
|
+
if ("GITHUB_ACTIONS" in env) {
|
|
85310
|
+
return 3;
|
|
85311
|
+
}
|
|
85312
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
85313
|
+
return 1;
|
|
85314
|
+
}
|
|
85315
|
+
return min;
|
|
85316
|
+
}
|
|
85317
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
85318
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
85319
|
+
}
|
|
85320
|
+
if (env.COLORTERM === "truecolor") {
|
|
85321
|
+
return 3;
|
|
85322
|
+
}
|
|
85323
|
+
if (env.TERM === "xterm-kitty") {
|
|
85324
|
+
return 3;
|
|
85325
|
+
}
|
|
85326
|
+
if ("TERM_PROGRAM" in env) {
|
|
85327
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
85328
|
+
switch (env.TERM_PROGRAM) {
|
|
85329
|
+
case "iTerm.app": {
|
|
85330
|
+
return version >= 3 ? 3 : 2;
|
|
85324
85331
|
}
|
|
85325
|
-
|
|
85332
|
+
case "Apple_Terminal": {
|
|
85326
85333
|
return 2;
|
|
85327
85334
|
}
|
|
85328
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
85329
|
-
return 1;
|
|
85330
|
-
}
|
|
85331
|
-
if ("COLORTERM" in env) {
|
|
85332
|
-
return 1;
|
|
85333
|
-
}
|
|
85334
|
-
return min;
|
|
85335
85335
|
}
|
|
85336
|
-
|
|
85337
|
-
|
|
85338
|
-
|
|
85339
|
-
|
|
85340
|
-
|
|
85336
|
+
}
|
|
85337
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
85338
|
+
return 2;
|
|
85339
|
+
}
|
|
85340
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
85341
|
+
return 1;
|
|
85342
|
+
}
|
|
85343
|
+
if ("COLORTERM" in env) {
|
|
85344
|
+
return 1;
|
|
85345
|
+
}
|
|
85346
|
+
return min;
|
|
85347
|
+
}
|
|
85348
|
+
function createSupportsColor(stream, options = {}) {
|
|
85349
|
+
const level = _supportsColor(stream, __spreadValues({
|
|
85350
|
+
streamIsTTY: stream && stream.isTTY
|
|
85351
|
+
}, options));
|
|
85352
|
+
return translateLevel(level);
|
|
85353
|
+
}
|
|
85354
|
+
var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
|
|
85355
|
+
var init_supports_color = __esm({
|
|
85356
|
+
"../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
|
|
85357
|
+
import_node_process = __toESM(require("process"));
|
|
85358
|
+
import_node_os = __toESM(require("os"));
|
|
85359
|
+
import_node_tty = __toESM(require("tty"));
|
|
85360
|
+
({ env } = import_node_process.default);
|
|
85361
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
85362
|
+
flagForceColor = 0;
|
|
85363
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
85364
|
+
flagForceColor = 1;
|
|
85341
85365
|
}
|
|
85342
|
-
|
|
85343
|
-
|
|
85344
|
-
|
|
85345
|
-
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
85366
|
+
supportsColor = {
|
|
85367
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
85368
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
85346
85369
|
};
|
|
85370
|
+
supports_color_default = supportsColor;
|
|
85347
85371
|
}
|
|
85348
85372
|
});
|
|
85349
85373
|
|
|
85350
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
85374
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
|
|
85351
85375
|
var require_node2 = __commonJS({
|
|
85352
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
85353
|
-
var
|
|
85376
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
85377
|
+
var tty2 = require("tty");
|
|
85354
85378
|
var util = require("util");
|
|
85355
85379
|
exports.init = init;
|
|
85356
85380
|
exports.log = log;
|
|
@@ -85365,8 +85389,8 @@ var require_node2 = __commonJS({
|
|
|
85365
85389
|
);
|
|
85366
85390
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
85367
85391
|
try {
|
|
85368
|
-
const
|
|
85369
|
-
if (
|
|
85392
|
+
const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
85393
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
85370
85394
|
exports.colors = [
|
|
85371
85395
|
20,
|
|
85372
85396
|
21,
|
|
@@ -85468,7 +85492,7 @@ var require_node2 = __commonJS({
|
|
|
85468
85492
|
return obj;
|
|
85469
85493
|
}, {});
|
|
85470
85494
|
function useColors() {
|
|
85471
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
85495
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
85472
85496
|
}
|
|
85473
85497
|
function formatArgs(args) {
|
|
85474
85498
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -85521,9 +85545,9 @@ var require_node2 = __commonJS({
|
|
|
85521
85545
|
}
|
|
85522
85546
|
});
|
|
85523
85547
|
|
|
85524
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
85548
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
|
|
85525
85549
|
var require_src3 = __commonJS({
|
|
85526
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
85550
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
85527
85551
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
85528
85552
|
module2.exports = require_browser();
|
|
85529
85553
|
} else {
|
|
@@ -89925,13 +89949,13 @@ var require_chalk2 = __commonJS({
|
|
|
89925
89949
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
|
89926
89950
|
}
|
|
89927
89951
|
}
|
|
89928
|
-
function
|
|
89952
|
+
function translateLevel2(e3) {
|
|
89929
89953
|
if (e3 === 0) {
|
|
89930
89954
|
return false;
|
|
89931
89955
|
}
|
|
89932
89956
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
89933
89957
|
}
|
|
89934
|
-
function
|
|
89958
|
+
function supportsColor2(e3, t3) {
|
|
89935
89959
|
if (c === 0) {
|
|
89936
89960
|
return 0;
|
|
89937
89961
|
}
|
|
@@ -89988,10 +90012,10 @@ var require_chalk2 = __commonJS({
|
|
|
89988
90012
|
return n3;
|
|
89989
90013
|
}
|
|
89990
90014
|
function getSupportLevel(e3) {
|
|
89991
|
-
const t3 =
|
|
89992
|
-
return
|
|
90015
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
90016
|
+
return translateLevel2(t3);
|
|
89993
90017
|
}
|
|
89994
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
90018
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
|
|
89995
90019
|
}, 37: (e2) => {
|
|
89996
90020
|
"use strict";
|
|
89997
90021
|
e2.exports = require("os");
|
|
@@ -99066,13 +99090,13 @@ var require_debug2 = __commonJS({
|
|
|
99066
99090
|
c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
|
|
99067
99091
|
}
|
|
99068
99092
|
}
|
|
99069
|
-
function
|
|
99093
|
+
function translateLevel2(e3) {
|
|
99070
99094
|
if (e3 === 0) {
|
|
99071
99095
|
return false;
|
|
99072
99096
|
}
|
|
99073
99097
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
99074
99098
|
}
|
|
99075
|
-
function
|
|
99099
|
+
function supportsColor2(e3, t3) {
|
|
99076
99100
|
if (c === 0) {
|
|
99077
99101
|
return 0;
|
|
99078
99102
|
}
|
|
@@ -99129,10 +99153,10 @@ var require_debug2 = __commonJS({
|
|
|
99129
99153
|
return r3;
|
|
99130
99154
|
}
|
|
99131
99155
|
function getSupportLevel(e3) {
|
|
99132
|
-
const t3 =
|
|
99133
|
-
return
|
|
99156
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
99157
|
+
return translateLevel2(t3);
|
|
99134
99158
|
}
|
|
99135
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
99159
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
|
|
99136
99160
|
}, 37: (e2) => {
|
|
99137
99161
|
"use strict";
|
|
99138
99162
|
e2.exports = require("os");
|
|
@@ -117739,49 +117763,6 @@ var require_prettyInstructions = __commonJS({
|
|
|
117739
117763
|
}
|
|
117740
117764
|
});
|
|
117741
117765
|
|
|
117742
|
-
// ../../../toolkit/utils/dist/cjs/cli/print.js
|
|
117743
|
-
var require_print = __commonJS({
|
|
117744
|
-
"../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
|
|
117745
|
-
"use strict";
|
|
117746
|
-
Object.defineProperty(exports, "__esModule", {
|
|
117747
|
-
value: true
|
|
117748
|
-
});
|
|
117749
|
-
Object.defineProperty(exports, "printBuildError", {
|
|
117750
|
-
enumerable: true,
|
|
117751
|
-
get: function() {
|
|
117752
|
-
return printBuildError;
|
|
117753
|
-
}
|
|
117754
|
-
});
|
|
117755
|
-
var _compiled = require_compiled();
|
|
117756
|
-
var _logger = require_logger2();
|
|
117757
|
-
function printBuildError(err) {
|
|
117758
|
-
const message = err != null && err.message;
|
|
117759
|
-
const stack = err != null && err.stack;
|
|
117760
|
-
if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
|
|
117761
|
-
try {
|
|
117762
|
-
const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
|
|
117763
|
-
if (!matched) {
|
|
117764
|
-
throw new Error("Using errors for control flow is bad.");
|
|
117765
|
-
}
|
|
117766
|
-
const problemPath = matched[2];
|
|
117767
|
-
const line = matched[3];
|
|
117768
|
-
const column = matched[4];
|
|
117769
|
-
_logger.logger.error(`Failed to minify the code from this file:
|
|
117770
|
-
|
|
117771
|
-
${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
|
|
117772
|
-
`);
|
|
117773
|
-
} catch (ignored) {
|
|
117774
|
-
_logger.logger.error(`Failed to minify the bundle. ${err}
|
|
117775
|
-
`);
|
|
117776
|
-
}
|
|
117777
|
-
} else {
|
|
117778
|
-
_logger.logger.error((message || err) + "\n");
|
|
117779
|
-
}
|
|
117780
|
-
_logger.logger.log();
|
|
117781
|
-
}
|
|
117782
|
-
}
|
|
117783
|
-
});
|
|
117784
|
-
|
|
117785
117766
|
// ../../../toolkit/utils/dist/cjs/cli/require.js
|
|
117786
117767
|
var require_require = __commonJS({
|
|
117787
117768
|
"../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
|
|
@@ -118014,7 +117995,6 @@ var require_cli = __commonJS({
|
|
|
118014
117995
|
_export_star._(require_pathSerializer(), exports);
|
|
118015
117996
|
_export_star._(require_port(), exports);
|
|
118016
117997
|
_export_star._(require_prettyInstructions(), exports);
|
|
118017
|
-
_export_star._(require_print(), exports);
|
|
118018
117998
|
_export_star._(require_require(), exports);
|
|
118019
117999
|
_export_star._(require_runtimeExports(), exports);
|
|
118020
118000
|
_export_star._(require_watch(), exports);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.27",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/generator-utils": "3.1.
|
|
34
|
-
"@scripts/
|
|
35
|
-
"@scripts/
|
|
36
|
-
"@modern-js/generator-common": "3.1.
|
|
33
|
+
"@modern-js/generator-utils": "3.1.27",
|
|
34
|
+
"@scripts/build": "2.25.2",
|
|
35
|
+
"@scripts/jest-config": "2.25.2",
|
|
36
|
+
"@modern-js/generator-common": "3.1.27"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|
|
39
39
|
"publishConfig": {
|