@modern-js/monorepo-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 +203 -236
- package/package.json +9 -9
package/dist/index.js
CHANGED
@@ -34,6 +34,9 @@ var __objRest = (source, exclude) => {
|
|
34
34
|
}
|
35
35
|
return target;
|
36
36
|
};
|
37
|
+
var __esm = (fn, res) => function __init() {
|
38
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
39
|
+
};
|
37
40
|
var __commonJS = (cb, mod) => function __require() {
|
38
41
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
39
42
|
};
|
@@ -3512,13 +3515,13 @@ var require_chalk = __commonJS({
|
|
3512
3515
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
3513
3516
|
}
|
3514
3517
|
}
|
3515
|
-
function
|
3518
|
+
function translateLevel2(e3) {
|
3516
3519
|
if (e3 === 0) {
|
3517
3520
|
return false;
|
3518
3521
|
}
|
3519
3522
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
3520
3523
|
}
|
3521
|
-
function
|
3524
|
+
function supportsColor2(e3, t3) {
|
3522
3525
|
if (c === 0) {
|
3523
3526
|
return 0;
|
3524
3527
|
}
|
@@ -3575,10 +3578,10 @@ var require_chalk = __commonJS({
|
|
3575
3578
|
return n3;
|
3576
3579
|
}
|
3577
3580
|
function getSupportLevel(e3) {
|
3578
|
-
const t3 =
|
3579
|
-
return
|
3581
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
3582
|
+
return translateLevel2(t3);
|
3580
3583
|
}
|
3581
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
3584
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
|
3582
3585
|
}, 37: (e2) => {
|
3583
3586
|
"use strict";
|
3584
3587
|
e2.exports = require("os");
|
@@ -12653,13 +12656,13 @@ var require_debug = __commonJS({
|
|
12653
12656
|
c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
|
12654
12657
|
}
|
12655
12658
|
}
|
12656
|
-
function
|
12659
|
+
function translateLevel2(e3) {
|
12657
12660
|
if (e3 === 0) {
|
12658
12661
|
return false;
|
12659
12662
|
}
|
12660
12663
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
12661
12664
|
}
|
12662
|
-
function
|
12665
|
+
function supportsColor2(e3, t3) {
|
12663
12666
|
if (c === 0) {
|
12664
12667
|
return 0;
|
12665
12668
|
}
|
@@ -12716,10 +12719,10 @@ var require_debug = __commonJS({
|
|
12716
12719
|
return r3;
|
12717
12720
|
}
|
12718
12721
|
function getSupportLevel(e3) {
|
12719
|
-
const t3 =
|
12720
|
-
return
|
12722
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
12723
|
+
return translateLevel2(t3);
|
12721
12724
|
}
|
12722
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
12725
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
|
12723
12726
|
}, 37: (e2) => {
|
12724
12727
|
"use strict";
|
12725
12728
|
e2.exports = require("os");
|
@@ -43540,15 +43543,15 @@ var require_runtime = __commonJS({
|
|
43540
43543
|
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] + ").");
|
43541
43544
|
}
|
43542
43545
|
}
|
43543
|
-
function template(templateSpec,
|
43544
|
-
if (!
|
43546
|
+
function template(templateSpec, env2) {
|
43547
|
+
if (!env2) {
|
43545
43548
|
throw new _exception2["default"]("No environment passed to template");
|
43546
43549
|
}
|
43547
43550
|
if (!templateSpec || !templateSpec.main) {
|
43548
43551
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
43549
43552
|
}
|
43550
43553
|
templateSpec.main.decorator = templateSpec.main_d;
|
43551
|
-
|
43554
|
+
env2.VM.checkRevision(templateSpec.compiler);
|
43552
43555
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
43553
43556
|
function invokePartialWrapper(partial, context, options) {
|
43554
43557
|
if (options.hash) {
|
@@ -43557,14 +43560,14 @@ var require_runtime = __commonJS({
|
|
43557
43560
|
options.ids[0] = true;
|
43558
43561
|
}
|
43559
43562
|
}
|
43560
|
-
partial =
|
43563
|
+
partial = env2.VM.resolvePartial.call(this, partial, context, options);
|
43561
43564
|
var extendedOptions = Utils.extend({}, options, {
|
43562
43565
|
hooks: this.hooks,
|
43563
43566
|
protoAccessControl: this.protoAccessControl
|
43564
43567
|
});
|
43565
|
-
var result =
|
43566
|
-
if (result == null &&
|
43567
|
-
options.partials[options.name] =
|
43568
|
+
var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
|
43569
|
+
if (result == null && env2.compile) {
|
43570
|
+
options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
|
43568
43571
|
result = options.partials[options.name](context, extendedOptions);
|
43569
43572
|
}
|
43570
43573
|
if (result != null) {
|
@@ -43649,7 +43652,7 @@ var require_runtime = __commonJS({
|
|
43649
43652
|
},
|
43650
43653
|
// An empty object to use as replacement for null-contexts
|
43651
43654
|
nullContext: Object.seal({}),
|
43652
|
-
noop:
|
43655
|
+
noop: env2.VM.noop,
|
43653
43656
|
compilerInfo: templateSpec.compiler
|
43654
43657
|
};
|
43655
43658
|
function ret(context) {
|
@@ -43676,14 +43679,14 @@ var require_runtime = __commonJS({
|
|
43676
43679
|
ret.isTop = true;
|
43677
43680
|
ret._setup = function(options) {
|
43678
43681
|
if (!options.partial) {
|
43679
|
-
var mergedHelpers = Utils.extend({},
|
43682
|
+
var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
|
43680
43683
|
wrapHelpersToPassLookupProperty(mergedHelpers, container);
|
43681
43684
|
container.helpers = mergedHelpers;
|
43682
43685
|
if (templateSpec.usePartial) {
|
43683
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
43686
|
+
container.partials = container.mergeIfNeeded(options.partials, env2.partials);
|
43684
43687
|
}
|
43685
43688
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
43686
|
-
container.decorators = Utils.extend({},
|
43689
|
+
container.decorators = Utils.extend({}, env2.decorators, options.decorators);
|
43687
43690
|
}
|
43688
43691
|
container.hooks = {};
|
43689
43692
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
@@ -45485,7 +45488,7 @@ var require_compiler = __commonJS({
|
|
45485
45488
|
}
|
45486
45489
|
}
|
45487
45490
|
};
|
45488
|
-
function precompile(input, options,
|
45491
|
+
function precompile(input, options, env2) {
|
45489
45492
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
45490
45493
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
45491
45494
|
}
|
@@ -45496,10 +45499,10 @@ var require_compiler = __commonJS({
|
|
45496
45499
|
if (options.compat) {
|
45497
45500
|
options.useDepths = true;
|
45498
45501
|
}
|
45499
|
-
var ast =
|
45500
|
-
return new
|
45502
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
|
45503
|
+
return new env2.JavaScriptCompiler().compile(environment, options);
|
45501
45504
|
}
|
45502
|
-
function compile2(input, options,
|
45505
|
+
function compile2(input, options, env2) {
|
45503
45506
|
if (options === void 0)
|
45504
45507
|
options = {};
|
45505
45508
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
@@ -45514,8 +45517,8 @@ var require_compiler = __commonJS({
|
|
45514
45517
|
}
|
45515
45518
|
var compiled = void 0;
|
45516
45519
|
function compileInput() {
|
45517
|
-
var ast =
|
45518
|
-
return
|
45520
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
|
45521
|
+
return env2.template(templateSpec);
|
45519
45522
|
}
|
45520
45523
|
function ret(context, execOptions) {
|
45521
45524
|
if (!compiled) {
|
@@ -54119,7 +54122,7 @@ var require_innerFrom = __commonJS({
|
|
54119
54122
|
exports.fromIterable = fromIterable;
|
54120
54123
|
function fromAsyncIterable(asyncIterable) {
|
54121
54124
|
return new Observable_1.Observable(function(subscriber) {
|
54122
|
-
|
54125
|
+
process3(asyncIterable, subscriber).catch(function(err) {
|
54123
54126
|
return subscriber.error(err);
|
54124
54127
|
});
|
54125
54128
|
});
|
@@ -54129,7 +54132,7 @@ var require_innerFrom = __commonJS({
|
|
54129
54132
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
54130
54133
|
}
|
54131
54134
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
54132
|
-
function
|
54135
|
+
function process3(asyncIterable, subscriber) {
|
54133
54136
|
var asyncIterable_1, asyncIterable_1_1;
|
54134
54137
|
var e_2, _a2;
|
54135
54138
|
return __awaiter6(this, void 0, void 0, function() {
|
@@ -61408,11 +61411,11 @@ var require_signals = __commonJS({
|
|
61408
61411
|
// ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
61409
61412
|
var require_signal_exit = __commonJS({
|
61410
61413
|
"../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
61411
|
-
var
|
61412
|
-
var processOk = function(
|
61413
|
-
return
|
61414
|
+
var process3 = global.process;
|
61415
|
+
var processOk = function(process4) {
|
61416
|
+
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";
|
61414
61417
|
};
|
61415
|
-
if (!processOk(
|
61418
|
+
if (!processOk(process3)) {
|
61416
61419
|
module2.exports = function() {
|
61417
61420
|
return function() {
|
61418
61421
|
};
|
@@ -61420,15 +61423,15 @@ var require_signal_exit = __commonJS({
|
|
61420
61423
|
} else {
|
61421
61424
|
assert = require("assert");
|
61422
61425
|
signals = require_signals();
|
61423
|
-
isWin = /^win/i.test(
|
61426
|
+
isWin = /^win/i.test(process3.platform);
|
61424
61427
|
EE = require("events");
|
61425
61428
|
if (typeof EE !== "function") {
|
61426
61429
|
EE = EE.EventEmitter;
|
61427
61430
|
}
|
61428
|
-
if (
|
61429
|
-
emitter =
|
61431
|
+
if (process3.__signal_exit_emitter__) {
|
61432
|
+
emitter = process3.__signal_exit_emitter__;
|
61430
61433
|
} else {
|
61431
|
-
emitter =
|
61434
|
+
emitter = process3.__signal_exit_emitter__ = new EE();
|
61432
61435
|
emitter.count = 0;
|
61433
61436
|
emitter.emitted = {};
|
61434
61437
|
}
|
@@ -61465,12 +61468,12 @@ var require_signal_exit = __commonJS({
|
|
61465
61468
|
loaded = false;
|
61466
61469
|
signals.forEach(function(sig) {
|
61467
61470
|
try {
|
61468
|
-
|
61471
|
+
process3.removeListener(sig, sigListeners[sig]);
|
61469
61472
|
} catch (er) {
|
61470
61473
|
}
|
61471
61474
|
});
|
61472
|
-
|
61473
|
-
|
61475
|
+
process3.emit = originalProcessEmit;
|
61476
|
+
process3.reallyExit = originalProcessReallyExit;
|
61474
61477
|
emitter.count -= 1;
|
61475
61478
|
};
|
61476
61479
|
module2.exports.unload = unload;
|
@@ -61487,7 +61490,7 @@ var require_signal_exit = __commonJS({
|
|
61487
61490
|
if (!processOk(global.process)) {
|
61488
61491
|
return;
|
61489
61492
|
}
|
61490
|
-
var listeners =
|
61493
|
+
var listeners = process3.listeners(sig);
|
61491
61494
|
if (listeners.length === emitter.count) {
|
61492
61495
|
unload();
|
61493
61496
|
emit("exit", null, sig);
|
@@ -61495,7 +61498,7 @@ var require_signal_exit = __commonJS({
|
|
61495
61498
|
if (isWin && sig === "SIGHUP") {
|
61496
61499
|
sig = "SIGINT";
|
61497
61500
|
}
|
61498
|
-
|
61501
|
+
process3.kill(process3.pid, sig);
|
61499
61502
|
}
|
61500
61503
|
};
|
61501
61504
|
});
|
@@ -61511,36 +61514,36 @@ var require_signal_exit = __commonJS({
|
|
61511
61514
|
emitter.count += 1;
|
61512
61515
|
signals = signals.filter(function(sig) {
|
61513
61516
|
try {
|
61514
|
-
|
61517
|
+
process3.on(sig, sigListeners[sig]);
|
61515
61518
|
return true;
|
61516
61519
|
} catch (er) {
|
61517
61520
|
return false;
|
61518
61521
|
}
|
61519
61522
|
});
|
61520
|
-
|
61521
|
-
|
61523
|
+
process3.emit = processEmit;
|
61524
|
+
process3.reallyExit = processReallyExit;
|
61522
61525
|
};
|
61523
61526
|
module2.exports.load = load;
|
61524
|
-
originalProcessReallyExit =
|
61527
|
+
originalProcessReallyExit = process3.reallyExit;
|
61525
61528
|
processReallyExit = function processReallyExit2(code) {
|
61526
61529
|
if (!processOk(global.process)) {
|
61527
61530
|
return;
|
61528
61531
|
}
|
61529
|
-
|
61532
|
+
process3.exitCode = code || /* istanbul ignore next */
|
61530
61533
|
0;
|
61531
|
-
emit("exit",
|
61532
|
-
emit("afterexit",
|
61533
|
-
originalProcessReallyExit.call(
|
61534
|
+
emit("exit", process3.exitCode, null);
|
61535
|
+
emit("afterexit", process3.exitCode, null);
|
61536
|
+
originalProcessReallyExit.call(process3, process3.exitCode);
|
61534
61537
|
};
|
61535
|
-
originalProcessEmit =
|
61538
|
+
originalProcessEmit = process3.emit;
|
61536
61539
|
processEmit = function processEmit2(ev, arg) {
|
61537
61540
|
if (ev === "exit" && processOk(global.process)) {
|
61538
61541
|
if (arg !== void 0) {
|
61539
|
-
|
61542
|
+
process3.exitCode = arg;
|
61540
61543
|
}
|
61541
61544
|
var ret = originalProcessEmit.apply(this, arguments);
|
61542
|
-
emit("exit",
|
61543
|
-
emit("afterexit",
|
61545
|
+
emit("exit", process3.exitCode, null);
|
61546
|
+
emit("afterexit", process3.exitCode, null);
|
61544
61547
|
return ret;
|
61545
61548
|
} else {
|
61546
61549
|
return originalProcessEmit.apply(this, arguments);
|
@@ -84469,10 +84472,10 @@ var require_ms = __commonJS({
|
|
84469
84472
|
}
|
84470
84473
|
});
|
84471
84474
|
|
84472
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
84475
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
|
84473
84476
|
var require_common2 = __commonJS({
|
84474
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
84475
|
-
function setup(
|
84477
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
|
84478
|
+
function setup(env2) {
|
84476
84479
|
createDebug.debug = createDebug;
|
84477
84480
|
createDebug.default = createDebug;
|
84478
84481
|
createDebug.coerce = coerce;
|
@@ -84481,8 +84484,8 @@ var require_common2 = __commonJS({
|
|
84481
84484
|
createDebug.enabled = enabled;
|
84482
84485
|
createDebug.humanize = require_ms();
|
84483
84486
|
createDebug.destroy = destroy2;
|
84484
|
-
Object.keys(
|
84485
|
-
createDebug[key] =
|
84487
|
+
Object.keys(env2).forEach((key) => {
|
84488
|
+
createDebug[key] = env2[key];
|
84486
84489
|
});
|
84487
84490
|
createDebug.names = [];
|
84488
84491
|
createDebug.skips = [];
|
@@ -84632,9 +84635,9 @@ var require_common2 = __commonJS({
|
|
84632
84635
|
}
|
84633
84636
|
});
|
84634
84637
|
|
84635
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
84638
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
|
84636
84639
|
var require_browser = __commonJS({
|
84637
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
84640
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
|
84638
84641
|
exports.formatArgs = formatArgs;
|
84639
84642
|
exports.save = save;
|
84640
84643
|
exports.load = load;
|
@@ -84801,136 +84804,144 @@ var require_browser = __commonJS({
|
|
84801
84804
|
}
|
84802
84805
|
});
|
84803
84806
|
|
84804
|
-
// ../../../../node_modules/.pnpm/
|
84805
|
-
var
|
84806
|
-
|
84807
|
-
|
84808
|
-
|
84809
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
84810
|
-
const position = argv.indexOf(prefix + flag);
|
84811
|
-
const terminatorPosition = argv.indexOf("--");
|
84812
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
84813
|
-
};
|
84814
|
-
}
|
84807
|
+
// ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
|
84808
|
+
var supports_color_exports = {};
|
84809
|
+
__export(supports_color_exports, {
|
84810
|
+
createSupportsColor: () => createSupportsColor,
|
84811
|
+
default: () => supports_color_default
|
84815
84812
|
});
|
84816
|
-
|
84817
|
-
|
84818
|
-
|
84819
|
-
|
84820
|
-
|
84821
|
-
|
84822
|
-
|
84823
|
-
|
84824
|
-
|
84825
|
-
|
84826
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
84827
|
-
flagForceColor = 0;
|
84828
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
84829
|
-
flagForceColor = 1;
|
84813
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
84814
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
84815
|
+
const position = argv.indexOf(prefix + flag);
|
84816
|
+
const terminatorPosition = argv.indexOf("--");
|
84817
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
84818
|
+
}
|
84819
|
+
function envForceColor() {
|
84820
|
+
if ("FORCE_COLOR" in env) {
|
84821
|
+
if (env.FORCE_COLOR === "true") {
|
84822
|
+
return 1;
|
84830
84823
|
}
|
84831
|
-
|
84832
|
-
|
84833
|
-
if (env.FORCE_COLOR === "true") {
|
84834
|
-
return 1;
|
84835
|
-
}
|
84836
|
-
if (env.FORCE_COLOR === "false") {
|
84837
|
-
return 0;
|
84838
|
-
}
|
84839
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
84840
|
-
}
|
84824
|
+
if (env.FORCE_COLOR === "false") {
|
84825
|
+
return 0;
|
84841
84826
|
}
|
84842
|
-
|
84843
|
-
|
84844
|
-
|
84845
|
-
|
84846
|
-
|
84847
|
-
|
84848
|
-
|
84849
|
-
|
84850
|
-
|
84851
|
-
|
84827
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
84828
|
+
}
|
84829
|
+
}
|
84830
|
+
function translateLevel(level) {
|
84831
|
+
if (level === 0) {
|
84832
|
+
return false;
|
84833
|
+
}
|
84834
|
+
return {
|
84835
|
+
level,
|
84836
|
+
hasBasic: true,
|
84837
|
+
has256: level >= 2,
|
84838
|
+
has16m: level >= 3
|
84839
|
+
};
|
84840
|
+
}
|
84841
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
84842
|
+
const noFlagForceColor = envForceColor();
|
84843
|
+
if (noFlagForceColor !== void 0) {
|
84844
|
+
flagForceColor = noFlagForceColor;
|
84845
|
+
}
|
84846
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
84847
|
+
if (forceColor === 0) {
|
84848
|
+
return 0;
|
84849
|
+
}
|
84850
|
+
if (sniffFlags) {
|
84851
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
84852
|
+
return 3;
|
84852
84853
|
}
|
84853
|
-
|
84854
|
-
|
84855
|
-
|
84856
|
-
|
84857
|
-
|
84858
|
-
|
84859
|
-
|
84860
|
-
|
84861
|
-
|
84862
|
-
|
84863
|
-
|
84864
|
-
|
84865
|
-
|
84866
|
-
|
84867
|
-
|
84868
|
-
|
84869
|
-
|
84870
|
-
|
84871
|
-
|
84872
|
-
|
84873
|
-
|
84874
|
-
|
84875
|
-
|
84876
|
-
|
84877
|
-
|
84878
|
-
|
84879
|
-
|
84880
|
-
|
84881
|
-
|
84882
|
-
|
84883
|
-
|
84884
|
-
|
84885
|
-
|
84886
|
-
|
84887
|
-
|
84888
|
-
|
84889
|
-
|
84890
|
-
|
84891
|
-
|
84892
|
-
|
84893
|
-
|
84894
|
-
|
84895
|
-
|
84896
|
-
|
84897
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
84898
|
-
switch (env.TERM_PROGRAM) {
|
84899
|
-
case "iTerm.app":
|
84900
|
-
return version >= 3 ? 3 : 2;
|
84901
|
-
case "Apple_Terminal":
|
84902
|
-
return 2;
|
84903
|
-
}
|
84854
|
+
if (hasFlag("color=256")) {
|
84855
|
+
return 2;
|
84856
|
+
}
|
84857
|
+
}
|
84858
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
84859
|
+
return 1;
|
84860
|
+
}
|
84861
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
84862
|
+
return 0;
|
84863
|
+
}
|
84864
|
+
const min = forceColor || 0;
|
84865
|
+
if (env.TERM === "dumb") {
|
84866
|
+
return min;
|
84867
|
+
}
|
84868
|
+
if (import_node_process.default.platform === "win32") {
|
84869
|
+
const osRelease = import_node_os.default.release().split(".");
|
84870
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
84871
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
84872
|
+
}
|
84873
|
+
return 1;
|
84874
|
+
}
|
84875
|
+
if ("CI" in env) {
|
84876
|
+
if ("GITHUB_ACTIONS" in env) {
|
84877
|
+
return 3;
|
84878
|
+
}
|
84879
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
84880
|
+
return 1;
|
84881
|
+
}
|
84882
|
+
return min;
|
84883
|
+
}
|
84884
|
+
if ("TEAMCITY_VERSION" in env) {
|
84885
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
84886
|
+
}
|
84887
|
+
if (env.COLORTERM === "truecolor") {
|
84888
|
+
return 3;
|
84889
|
+
}
|
84890
|
+
if (env.TERM === "xterm-kitty") {
|
84891
|
+
return 3;
|
84892
|
+
}
|
84893
|
+
if ("TERM_PROGRAM" in env) {
|
84894
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
84895
|
+
switch (env.TERM_PROGRAM) {
|
84896
|
+
case "iTerm.app": {
|
84897
|
+
return version >= 3 ? 3 : 2;
|
84904
84898
|
}
|
84905
|
-
|
84899
|
+
case "Apple_Terminal": {
|
84906
84900
|
return 2;
|
84907
84901
|
}
|
84908
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
84909
|
-
return 1;
|
84910
|
-
}
|
84911
|
-
if ("COLORTERM" in env) {
|
84912
|
-
return 1;
|
84913
|
-
}
|
84914
|
-
return min;
|
84915
84902
|
}
|
84916
|
-
|
84917
|
-
|
84918
|
-
|
84919
|
-
|
84920
|
-
|
84903
|
+
}
|
84904
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
84905
|
+
return 2;
|
84906
|
+
}
|
84907
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
84908
|
+
return 1;
|
84909
|
+
}
|
84910
|
+
if ("COLORTERM" in env) {
|
84911
|
+
return 1;
|
84912
|
+
}
|
84913
|
+
return min;
|
84914
|
+
}
|
84915
|
+
function createSupportsColor(stream, options = {}) {
|
84916
|
+
const level = _supportsColor(stream, __spreadValues({
|
84917
|
+
streamIsTTY: stream && stream.isTTY
|
84918
|
+
}, options));
|
84919
|
+
return translateLevel(level);
|
84920
|
+
}
|
84921
|
+
var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
|
84922
|
+
var init_supports_color = __esm({
|
84923
|
+
"../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
|
84924
|
+
import_node_process = __toESM(require("process"));
|
84925
|
+
import_node_os = __toESM(require("os"));
|
84926
|
+
import_node_tty = __toESM(require("tty"));
|
84927
|
+
({ env } = import_node_process.default);
|
84928
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
84929
|
+
flagForceColor = 0;
|
84930
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
84931
|
+
flagForceColor = 1;
|
84921
84932
|
}
|
84922
|
-
|
84923
|
-
|
84924
|
-
|
84925
|
-
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
84933
|
+
supportsColor = {
|
84934
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
84935
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
84926
84936
|
};
|
84937
|
+
supports_color_default = supportsColor;
|
84927
84938
|
}
|
84928
84939
|
});
|
84929
84940
|
|
84930
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
84941
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
|
84931
84942
|
var require_node2 = __commonJS({
|
84932
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
84933
|
-
var
|
84943
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
|
84944
|
+
var tty2 = require("tty");
|
84934
84945
|
var util = require("util");
|
84935
84946
|
exports.init = init;
|
84936
84947
|
exports.log = log;
|
@@ -84945,8 +84956,8 @@ var require_node2 = __commonJS({
|
|
84945
84956
|
);
|
84946
84957
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
84947
84958
|
try {
|
84948
|
-
const
|
84949
|
-
if (
|
84959
|
+
const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
84960
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
84950
84961
|
exports.colors = [
|
84951
84962
|
20,
|
84952
84963
|
21,
|
@@ -85048,7 +85059,7 @@ var require_node2 = __commonJS({
|
|
85048
85059
|
return obj;
|
85049
85060
|
}, {});
|
85050
85061
|
function useColors() {
|
85051
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
85062
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
85052
85063
|
}
|
85053
85064
|
function formatArgs(args) {
|
85054
85065
|
const { namespace: name, useColors: useColors2 } = this;
|
@@ -85101,9 +85112,9 @@ var require_node2 = __commonJS({
|
|
85101
85112
|
}
|
85102
85113
|
});
|
85103
85114
|
|
85104
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
85115
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
|
85105
85116
|
var require_src3 = __commonJS({
|
85106
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
85117
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
|
85107
85118
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
85108
85119
|
module2.exports = require_browser();
|
85109
85120
|
} else {
|
@@ -89512,13 +89523,13 @@ var require_chalk2 = __commonJS({
|
|
89512
89523
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
89513
89524
|
}
|
89514
89525
|
}
|
89515
|
-
function
|
89526
|
+
function translateLevel2(e3) {
|
89516
89527
|
if (e3 === 0) {
|
89517
89528
|
return false;
|
89518
89529
|
}
|
89519
89530
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
89520
89531
|
}
|
89521
|
-
function
|
89532
|
+
function supportsColor2(e3, t3) {
|
89522
89533
|
if (c === 0) {
|
89523
89534
|
return 0;
|
89524
89535
|
}
|
@@ -89575,10 +89586,10 @@ var require_chalk2 = __commonJS({
|
|
89575
89586
|
return n3;
|
89576
89587
|
}
|
89577
89588
|
function getSupportLevel(e3) {
|
89578
|
-
const t3 =
|
89579
|
-
return
|
89589
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
89590
|
+
return translateLevel2(t3);
|
89580
89591
|
}
|
89581
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
89592
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
|
89582
89593
|
}, 37: (e2) => {
|
89583
89594
|
"use strict";
|
89584
89595
|
e2.exports = require("os");
|
@@ -98653,13 +98664,13 @@ var require_debug2 = __commonJS({
|
|
98653
98664
|
c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
|
98654
98665
|
}
|
98655
98666
|
}
|
98656
|
-
function
|
98667
|
+
function translateLevel2(e3) {
|
98657
98668
|
if (e3 === 0) {
|
98658
98669
|
return false;
|
98659
98670
|
}
|
98660
98671
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
98661
98672
|
}
|
98662
|
-
function
|
98673
|
+
function supportsColor2(e3, t3) {
|
98663
98674
|
if (c === 0) {
|
98664
98675
|
return 0;
|
98665
98676
|
}
|
@@ -98716,10 +98727,10 @@ var require_debug2 = __commonJS({
|
|
98716
98727
|
return r3;
|
98717
98728
|
}
|
98718
98729
|
function getSupportLevel(e3) {
|
98719
|
-
const t3 =
|
98720
|
-
return
|
98730
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
98731
|
+
return translateLevel2(t3);
|
98721
98732
|
}
|
98722
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
98733
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
|
98723
98734
|
}, 37: (e2) => {
|
98724
98735
|
"use strict";
|
98725
98736
|
e2.exports = require("os");
|
@@ -117326,49 +117337,6 @@ var require_prettyInstructions = __commonJS({
|
|
117326
117337
|
}
|
117327
117338
|
});
|
117328
117339
|
|
117329
|
-
// ../../../toolkit/utils/dist/cjs/cli/print.js
|
117330
|
-
var require_print = __commonJS({
|
117331
|
-
"../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
|
117332
|
-
"use strict";
|
117333
|
-
Object.defineProperty(exports, "__esModule", {
|
117334
|
-
value: true
|
117335
|
-
});
|
117336
|
-
Object.defineProperty(exports, "printBuildError", {
|
117337
|
-
enumerable: true,
|
117338
|
-
get: function() {
|
117339
|
-
return printBuildError;
|
117340
|
-
}
|
117341
|
-
});
|
117342
|
-
var _compiled = require_compiled();
|
117343
|
-
var _logger = require_logger2();
|
117344
|
-
function printBuildError(err) {
|
117345
|
-
const message = err != null && err.message;
|
117346
|
-
const stack = err != null && err.stack;
|
117347
|
-
if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
|
117348
|
-
try {
|
117349
|
-
const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
|
117350
|
-
if (!matched) {
|
117351
|
-
throw new Error("Using errors for control flow is bad.");
|
117352
|
-
}
|
117353
|
-
const problemPath = matched[2];
|
117354
|
-
const line = matched[3];
|
117355
|
-
const column = matched[4];
|
117356
|
-
_logger.logger.error(`Failed to minify the code from this file:
|
117357
|
-
|
117358
|
-
${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
|
117359
|
-
`);
|
117360
|
-
} catch (ignored) {
|
117361
|
-
_logger.logger.error(`Failed to minify the bundle. ${err}
|
117362
|
-
`);
|
117363
|
-
}
|
117364
|
-
} else {
|
117365
|
-
_logger.logger.error((message || err) + "\n");
|
117366
|
-
}
|
117367
|
-
_logger.logger.log();
|
117368
|
-
}
|
117369
|
-
}
|
117370
|
-
});
|
117371
|
-
|
117372
117340
|
// ../../../toolkit/utils/dist/cjs/cli/require.js
|
117373
117341
|
var require_require = __commonJS({
|
117374
117342
|
"../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
|
@@ -117601,7 +117569,6 @@ var require_cli = __commonJS({
|
|
117601
117569
|
_export_star._(require_pathSerializer(), exports);
|
117602
117570
|
_export_star._(require_port(), exports);
|
117603
117571
|
_export_star._(require_prettyInstructions(), exports);
|
117604
|
-
_export_star._(require_print(), exports);
|
117605
117572
|
_export_star._(require_require(), exports);
|
117606
117573
|
_export_star._(require_runtimeExports(), exports);
|
117607
117574
|
_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,14 +30,14 @@
|
|
30
30
|
"@types/node": "^14",
|
31
31
|
"jest": "^29",
|
32
32
|
"typescript": "^5",
|
33
|
-
"@modern-js/base-generator": "3.1.
|
34
|
-
"@modern-js/plugin-i18n": "2.25.
|
35
|
-
"@modern-js/packages-generator": "3.1.
|
36
|
-
"@modern-js/generator-utils": "3.1.
|
37
|
-
"@modern-js/generator-common": "3.1.
|
38
|
-
"@modern-js/changeset-generator": "3.1.
|
39
|
-
"@scripts/build": "2.25.
|
40
|
-
"@scripts/jest-config": "2.25.
|
33
|
+
"@modern-js/base-generator": "3.1.27",
|
34
|
+
"@modern-js/plugin-i18n": "2.25.2",
|
35
|
+
"@modern-js/packages-generator": "3.1.27",
|
36
|
+
"@modern-js/generator-utils": "3.1.27",
|
37
|
+
"@modern-js/generator-common": "3.1.27",
|
38
|
+
"@modern-js/changeset-generator": "3.1.27",
|
39
|
+
"@scripts/build": "2.25.2",
|
40
|
+
"@scripts/jest-config": "2.25.2"
|
41
41
|
},
|
42
42
|
"sideEffects": false,
|
43
43
|
"publishConfig": {
|