@modern-js/server-generator 3.1.26 → 3.1.28
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 +6 -6
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
|
};
|
|
@@ -3605,13 +3608,13 @@ var require_chalk = __commonJS({
|
|
|
3605
3608
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
|
3606
3609
|
}
|
|
3607
3610
|
}
|
|
3608
|
-
function
|
|
3611
|
+
function translateLevel2(e3) {
|
|
3609
3612
|
if (e3 === 0) {
|
|
3610
3613
|
return false;
|
|
3611
3614
|
}
|
|
3612
3615
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
3613
3616
|
}
|
|
3614
|
-
function
|
|
3617
|
+
function supportsColor2(e3, t3) {
|
|
3615
3618
|
if (c === 0) {
|
|
3616
3619
|
return 0;
|
|
3617
3620
|
}
|
|
@@ -3668,10 +3671,10 @@ var require_chalk = __commonJS({
|
|
|
3668
3671
|
return n3;
|
|
3669
3672
|
}
|
|
3670
3673
|
function getSupportLevel(e3) {
|
|
3671
|
-
const t3 =
|
|
3672
|
-
return
|
|
3674
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
3675
|
+
return translateLevel2(t3);
|
|
3673
3676
|
}
|
|
3674
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
3677
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
|
|
3675
3678
|
}, 37: (e2) => {
|
|
3676
3679
|
"use strict";
|
|
3677
3680
|
e2.exports = require("os");
|
|
@@ -12746,13 +12749,13 @@ var require_debug = __commonJS({
|
|
|
12746
12749
|
c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
|
|
12747
12750
|
}
|
|
12748
12751
|
}
|
|
12749
|
-
function
|
|
12752
|
+
function translateLevel2(e3) {
|
|
12750
12753
|
if (e3 === 0) {
|
|
12751
12754
|
return false;
|
|
12752
12755
|
}
|
|
12753
12756
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
12754
12757
|
}
|
|
12755
|
-
function
|
|
12758
|
+
function supportsColor2(e3, t3) {
|
|
12756
12759
|
if (c === 0) {
|
|
12757
12760
|
return 0;
|
|
12758
12761
|
}
|
|
@@ -12809,10 +12812,10 @@ var require_debug = __commonJS({
|
|
|
12809
12812
|
return r3;
|
|
12810
12813
|
}
|
|
12811
12814
|
function getSupportLevel(e3) {
|
|
12812
|
-
const t3 =
|
|
12813
|
-
return
|
|
12815
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
12816
|
+
return translateLevel2(t3);
|
|
12814
12817
|
}
|
|
12815
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
12818
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
|
|
12816
12819
|
}, 37: (e2) => {
|
|
12817
12820
|
"use strict";
|
|
12818
12821
|
e2.exports = require("os");
|
|
@@ -37091,49 +37094,6 @@ var require_prettyInstructions = __commonJS({
|
|
|
37091
37094
|
}
|
|
37092
37095
|
});
|
|
37093
37096
|
|
|
37094
|
-
// ../../../toolkit/utils/dist/cjs/cli/print.js
|
|
37095
|
-
var require_print = __commonJS({
|
|
37096
|
-
"../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
|
|
37097
|
-
"use strict";
|
|
37098
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37099
|
-
value: true
|
|
37100
|
-
});
|
|
37101
|
-
Object.defineProperty(exports, "printBuildError", {
|
|
37102
|
-
enumerable: true,
|
|
37103
|
-
get: function() {
|
|
37104
|
-
return printBuildError;
|
|
37105
|
-
}
|
|
37106
|
-
});
|
|
37107
|
-
var _compiled = require_compiled();
|
|
37108
|
-
var _logger = require_logger();
|
|
37109
|
-
function printBuildError(err) {
|
|
37110
|
-
const message = err != null && err.message;
|
|
37111
|
-
const stack = err != null && err.stack;
|
|
37112
|
-
if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
|
|
37113
|
-
try {
|
|
37114
|
-
const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
|
|
37115
|
-
if (!matched) {
|
|
37116
|
-
throw new Error("Using errors for control flow is bad.");
|
|
37117
|
-
}
|
|
37118
|
-
const problemPath = matched[2];
|
|
37119
|
-
const line = matched[3];
|
|
37120
|
-
const column = matched[4];
|
|
37121
|
-
_logger.logger.error(`Failed to minify the code from this file:
|
|
37122
|
-
|
|
37123
|
-
${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
|
|
37124
|
-
`);
|
|
37125
|
-
} catch (ignored) {
|
|
37126
|
-
_logger.logger.error(`Failed to minify the bundle. ${err}
|
|
37127
|
-
`);
|
|
37128
|
-
}
|
|
37129
|
-
} else {
|
|
37130
|
-
_logger.logger.error((message || err) + "\n");
|
|
37131
|
-
}
|
|
37132
|
-
_logger.logger.log();
|
|
37133
|
-
}
|
|
37134
|
-
}
|
|
37135
|
-
});
|
|
37136
|
-
|
|
37137
37097
|
// ../../../toolkit/utils/dist/cjs/cli/require.js
|
|
37138
37098
|
var require_require = __commonJS({
|
|
37139
37099
|
"../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
|
|
@@ -37366,7 +37326,6 @@ var require_cli = __commonJS({
|
|
|
37366
37326
|
_export_star._(require_pathSerializer(), exports);
|
|
37367
37327
|
_export_star._(require_port(), exports);
|
|
37368
37328
|
_export_star._(require_prettyInstructions(), exports);
|
|
37369
|
-
_export_star._(require_print(), exports);
|
|
37370
37329
|
_export_star._(require_require(), exports);
|
|
37371
37330
|
_export_star._(require_runtimeExports(), exports);
|
|
37372
37331
|
_export_star._(require_watch(), exports);
|
|
@@ -40827,13 +40786,13 @@ var require_chalk2 = __commonJS({
|
|
|
40827
40786
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
|
40828
40787
|
}
|
|
40829
40788
|
}
|
|
40830
|
-
function
|
|
40789
|
+
function translateLevel2(e3) {
|
|
40831
40790
|
if (e3 === 0) {
|
|
40832
40791
|
return false;
|
|
40833
40792
|
}
|
|
40834
40793
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
40835
40794
|
}
|
|
40836
|
-
function
|
|
40795
|
+
function supportsColor2(e3, t3) {
|
|
40837
40796
|
if (c === 0) {
|
|
40838
40797
|
return 0;
|
|
40839
40798
|
}
|
|
@@ -40890,10 +40849,10 @@ var require_chalk2 = __commonJS({
|
|
|
40890
40849
|
return n3;
|
|
40891
40850
|
}
|
|
40892
40851
|
function getSupportLevel(e3) {
|
|
40893
|
-
const t3 =
|
|
40894
|
-
return
|
|
40852
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
40853
|
+
return translateLevel2(t3);
|
|
40895
40854
|
}
|
|
40896
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
40855
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
|
|
40897
40856
|
}, 37: (e2) => {
|
|
40898
40857
|
"use strict";
|
|
40899
40858
|
e2.exports = require("os");
|
|
@@ -49968,13 +49927,13 @@ var require_debug2 = __commonJS({
|
|
|
49968
49927
|
c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
|
|
49969
49928
|
}
|
|
49970
49929
|
}
|
|
49971
|
-
function
|
|
49930
|
+
function translateLevel2(e3) {
|
|
49972
49931
|
if (e3 === 0) {
|
|
49973
49932
|
return false;
|
|
49974
49933
|
}
|
|
49975
49934
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
49976
49935
|
}
|
|
49977
|
-
function
|
|
49936
|
+
function supportsColor2(e3, t3) {
|
|
49978
49937
|
if (c === 0) {
|
|
49979
49938
|
return 0;
|
|
49980
49939
|
}
|
|
@@ -50031,10 +49990,10 @@ var require_debug2 = __commonJS({
|
|
|
50031
49990
|
return r3;
|
|
50032
49991
|
}
|
|
50033
49992
|
function getSupportLevel(e3) {
|
|
50034
|
-
const t3 =
|
|
50035
|
-
return
|
|
49993
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
49994
|
+
return translateLevel2(t3);
|
|
50036
49995
|
}
|
|
50037
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
49996
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
|
|
50038
49997
|
}, 37: (e2) => {
|
|
50039
49998
|
"use strict";
|
|
50040
49999
|
e2.exports = require("os");
|
|
@@ -75183,15 +75142,15 @@ var require_runtime = __commonJS({
|
|
|
75183
75142
|
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] + ").");
|
|
75184
75143
|
}
|
|
75185
75144
|
}
|
|
75186
|
-
function template(templateSpec,
|
|
75187
|
-
if (!
|
|
75145
|
+
function template(templateSpec, env2) {
|
|
75146
|
+
if (!env2) {
|
|
75188
75147
|
throw new _exception2["default"]("No environment passed to template");
|
|
75189
75148
|
}
|
|
75190
75149
|
if (!templateSpec || !templateSpec.main) {
|
|
75191
75150
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
|
75192
75151
|
}
|
|
75193
75152
|
templateSpec.main.decorator = templateSpec.main_d;
|
|
75194
|
-
|
|
75153
|
+
env2.VM.checkRevision(templateSpec.compiler);
|
|
75195
75154
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
|
75196
75155
|
function invokePartialWrapper(partial, context, options) {
|
|
75197
75156
|
if (options.hash) {
|
|
@@ -75200,14 +75159,14 @@ var require_runtime = __commonJS({
|
|
|
75200
75159
|
options.ids[0] = true;
|
|
75201
75160
|
}
|
|
75202
75161
|
}
|
|
75203
|
-
partial =
|
|
75162
|
+
partial = env2.VM.resolvePartial.call(this, partial, context, options);
|
|
75204
75163
|
var extendedOptions = Utils.extend({}, options, {
|
|
75205
75164
|
hooks: this.hooks,
|
|
75206
75165
|
protoAccessControl: this.protoAccessControl
|
|
75207
75166
|
});
|
|
75208
|
-
var result =
|
|
75209
|
-
if (result == null &&
|
|
75210
|
-
options.partials[options.name] =
|
|
75167
|
+
var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
|
|
75168
|
+
if (result == null && env2.compile) {
|
|
75169
|
+
options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
|
|
75211
75170
|
result = options.partials[options.name](context, extendedOptions);
|
|
75212
75171
|
}
|
|
75213
75172
|
if (result != null) {
|
|
@@ -75292,7 +75251,7 @@ var require_runtime = __commonJS({
|
|
|
75292
75251
|
},
|
|
75293
75252
|
// An empty object to use as replacement for null-contexts
|
|
75294
75253
|
nullContext: Object.seal({}),
|
|
75295
|
-
noop:
|
|
75254
|
+
noop: env2.VM.noop,
|
|
75296
75255
|
compilerInfo: templateSpec.compiler
|
|
75297
75256
|
};
|
|
75298
75257
|
function ret(context) {
|
|
@@ -75319,14 +75278,14 @@ var require_runtime = __commonJS({
|
|
|
75319
75278
|
ret.isTop = true;
|
|
75320
75279
|
ret._setup = function(options) {
|
|
75321
75280
|
if (!options.partial) {
|
|
75322
|
-
var mergedHelpers = Utils.extend({},
|
|
75281
|
+
var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
|
|
75323
75282
|
wrapHelpersToPassLookupProperty(mergedHelpers, container);
|
|
75324
75283
|
container.helpers = mergedHelpers;
|
|
75325
75284
|
if (templateSpec.usePartial) {
|
|
75326
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
|
75285
|
+
container.partials = container.mergeIfNeeded(options.partials, env2.partials);
|
|
75327
75286
|
}
|
|
75328
75287
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
|
75329
|
-
container.decorators = Utils.extend({},
|
|
75288
|
+
container.decorators = Utils.extend({}, env2.decorators, options.decorators);
|
|
75330
75289
|
}
|
|
75331
75290
|
container.hooks = {};
|
|
75332
75291
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
|
@@ -77128,7 +77087,7 @@ var require_compiler = __commonJS({
|
|
|
77128
77087
|
}
|
|
77129
77088
|
}
|
|
77130
77089
|
};
|
|
77131
|
-
function precompile(input, options,
|
|
77090
|
+
function precompile(input, options, env2) {
|
|
77132
77091
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
77133
77092
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
|
77134
77093
|
}
|
|
@@ -77139,10 +77098,10 @@ var require_compiler = __commonJS({
|
|
|
77139
77098
|
if (options.compat) {
|
|
77140
77099
|
options.useDepths = true;
|
|
77141
77100
|
}
|
|
77142
|
-
var ast =
|
|
77143
|
-
return new
|
|
77101
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
|
|
77102
|
+
return new env2.JavaScriptCompiler().compile(environment, options);
|
|
77144
77103
|
}
|
|
77145
|
-
function compile2(input, options,
|
|
77104
|
+
function compile2(input, options, env2) {
|
|
77146
77105
|
if (options === void 0)
|
|
77147
77106
|
options = {};
|
|
77148
77107
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
@@ -77157,8 +77116,8 @@ var require_compiler = __commonJS({
|
|
|
77157
77116
|
}
|
|
77158
77117
|
var compiled = void 0;
|
|
77159
77118
|
function compileInput() {
|
|
77160
|
-
var ast =
|
|
77161
|
-
return
|
|
77119
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
|
|
77120
|
+
return env2.template(templateSpec);
|
|
77162
77121
|
}
|
|
77163
77122
|
function ret(context, execOptions) {
|
|
77164
77123
|
if (!compiled) {
|
|
@@ -85762,7 +85721,7 @@ var require_innerFrom = __commonJS({
|
|
|
85762
85721
|
exports.fromIterable = fromIterable;
|
|
85763
85722
|
function fromAsyncIterable(asyncIterable) {
|
|
85764
85723
|
return new Observable_1.Observable(function(subscriber) {
|
|
85765
|
-
|
|
85724
|
+
process3(asyncIterable, subscriber).catch(function(err) {
|
|
85766
85725
|
return subscriber.error(err);
|
|
85767
85726
|
});
|
|
85768
85727
|
});
|
|
@@ -85772,7 +85731,7 @@ var require_innerFrom = __commonJS({
|
|
|
85772
85731
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
85773
85732
|
}
|
|
85774
85733
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
85775
|
-
function
|
|
85734
|
+
function process3(asyncIterable, subscriber) {
|
|
85776
85735
|
var asyncIterable_1, asyncIterable_1_1;
|
|
85777
85736
|
var e_2, _a2;
|
|
85778
85737
|
return __awaiter6(this, void 0, void 0, function() {
|
|
@@ -93051,11 +93010,11 @@ var require_signals = __commonJS({
|
|
|
93051
93010
|
// ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
93052
93011
|
var require_signal_exit = __commonJS({
|
|
93053
93012
|
"../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
|
93054
|
-
var
|
|
93055
|
-
var processOk = function(
|
|
93056
|
-
return
|
|
93013
|
+
var process3 = global.process;
|
|
93014
|
+
var processOk = function(process4) {
|
|
93015
|
+
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";
|
|
93057
93016
|
};
|
|
93058
|
-
if (!processOk(
|
|
93017
|
+
if (!processOk(process3)) {
|
|
93059
93018
|
module2.exports = function() {
|
|
93060
93019
|
return function() {
|
|
93061
93020
|
};
|
|
@@ -93063,15 +93022,15 @@ var require_signal_exit = __commonJS({
|
|
|
93063
93022
|
} else {
|
|
93064
93023
|
assert = require("assert");
|
|
93065
93024
|
signals = require_signals();
|
|
93066
|
-
isWin = /^win/i.test(
|
|
93025
|
+
isWin = /^win/i.test(process3.platform);
|
|
93067
93026
|
EE = require("events");
|
|
93068
93027
|
if (typeof EE !== "function") {
|
|
93069
93028
|
EE = EE.EventEmitter;
|
|
93070
93029
|
}
|
|
93071
|
-
if (
|
|
93072
|
-
emitter =
|
|
93030
|
+
if (process3.__signal_exit_emitter__) {
|
|
93031
|
+
emitter = process3.__signal_exit_emitter__;
|
|
93073
93032
|
} else {
|
|
93074
|
-
emitter =
|
|
93033
|
+
emitter = process3.__signal_exit_emitter__ = new EE();
|
|
93075
93034
|
emitter.count = 0;
|
|
93076
93035
|
emitter.emitted = {};
|
|
93077
93036
|
}
|
|
@@ -93108,12 +93067,12 @@ var require_signal_exit = __commonJS({
|
|
|
93108
93067
|
loaded = false;
|
|
93109
93068
|
signals.forEach(function(sig) {
|
|
93110
93069
|
try {
|
|
93111
|
-
|
|
93070
|
+
process3.removeListener(sig, sigListeners[sig]);
|
|
93112
93071
|
} catch (er) {
|
|
93113
93072
|
}
|
|
93114
93073
|
});
|
|
93115
|
-
|
|
93116
|
-
|
|
93074
|
+
process3.emit = originalProcessEmit;
|
|
93075
|
+
process3.reallyExit = originalProcessReallyExit;
|
|
93117
93076
|
emitter.count -= 1;
|
|
93118
93077
|
};
|
|
93119
93078
|
module2.exports.unload = unload;
|
|
@@ -93130,7 +93089,7 @@ var require_signal_exit = __commonJS({
|
|
|
93130
93089
|
if (!processOk(global.process)) {
|
|
93131
93090
|
return;
|
|
93132
93091
|
}
|
|
93133
|
-
var listeners =
|
|
93092
|
+
var listeners = process3.listeners(sig);
|
|
93134
93093
|
if (listeners.length === emitter.count) {
|
|
93135
93094
|
unload();
|
|
93136
93095
|
emit("exit", null, sig);
|
|
@@ -93138,7 +93097,7 @@ var require_signal_exit = __commonJS({
|
|
|
93138
93097
|
if (isWin && sig === "SIGHUP") {
|
|
93139
93098
|
sig = "SIGINT";
|
|
93140
93099
|
}
|
|
93141
|
-
|
|
93100
|
+
process3.kill(process3.pid, sig);
|
|
93142
93101
|
}
|
|
93143
93102
|
};
|
|
93144
93103
|
});
|
|
@@ -93154,36 +93113,36 @@ var require_signal_exit = __commonJS({
|
|
|
93154
93113
|
emitter.count += 1;
|
|
93155
93114
|
signals = signals.filter(function(sig) {
|
|
93156
93115
|
try {
|
|
93157
|
-
|
|
93116
|
+
process3.on(sig, sigListeners[sig]);
|
|
93158
93117
|
return true;
|
|
93159
93118
|
} catch (er) {
|
|
93160
93119
|
return false;
|
|
93161
93120
|
}
|
|
93162
93121
|
});
|
|
93163
|
-
|
|
93164
|
-
|
|
93122
|
+
process3.emit = processEmit;
|
|
93123
|
+
process3.reallyExit = processReallyExit;
|
|
93165
93124
|
};
|
|
93166
93125
|
module2.exports.load = load;
|
|
93167
|
-
originalProcessReallyExit =
|
|
93126
|
+
originalProcessReallyExit = process3.reallyExit;
|
|
93168
93127
|
processReallyExit = function processReallyExit2(code) {
|
|
93169
93128
|
if (!processOk(global.process)) {
|
|
93170
93129
|
return;
|
|
93171
93130
|
}
|
|
93172
|
-
|
|
93131
|
+
process3.exitCode = code || /* istanbul ignore next */
|
|
93173
93132
|
0;
|
|
93174
|
-
emit("exit",
|
|
93175
|
-
emit("afterexit",
|
|
93176
|
-
originalProcessReallyExit.call(
|
|
93133
|
+
emit("exit", process3.exitCode, null);
|
|
93134
|
+
emit("afterexit", process3.exitCode, null);
|
|
93135
|
+
originalProcessReallyExit.call(process3, process3.exitCode);
|
|
93177
93136
|
};
|
|
93178
|
-
originalProcessEmit =
|
|
93137
|
+
originalProcessEmit = process3.emit;
|
|
93179
93138
|
processEmit = function processEmit2(ev, arg) {
|
|
93180
93139
|
if (ev === "exit" && processOk(global.process)) {
|
|
93181
93140
|
if (arg !== void 0) {
|
|
93182
|
-
|
|
93141
|
+
process3.exitCode = arg;
|
|
93183
93142
|
}
|
|
93184
93143
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
93185
|
-
emit("exit",
|
|
93186
|
-
emit("afterexit",
|
|
93144
|
+
emit("exit", process3.exitCode, null);
|
|
93145
|
+
emit("afterexit", process3.exitCode, null);
|
|
93187
93146
|
return ret;
|
|
93188
93147
|
} else {
|
|
93189
93148
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -116112,10 +116071,10 @@ var require_ms = __commonJS({
|
|
|
116112
116071
|
}
|
|
116113
116072
|
});
|
|
116114
116073
|
|
|
116115
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116074
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
|
|
116116
116075
|
var require_common3 = __commonJS({
|
|
116117
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116118
|
-
function setup(
|
|
116076
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
116077
|
+
function setup(env2) {
|
|
116119
116078
|
createDebug.debug = createDebug;
|
|
116120
116079
|
createDebug.default = createDebug;
|
|
116121
116080
|
createDebug.coerce = coerce;
|
|
@@ -116124,8 +116083,8 @@ var require_common3 = __commonJS({
|
|
|
116124
116083
|
createDebug.enabled = enabled;
|
|
116125
116084
|
createDebug.humanize = require_ms();
|
|
116126
116085
|
createDebug.destroy = destroy2;
|
|
116127
|
-
Object.keys(
|
|
116128
|
-
createDebug[key] =
|
|
116086
|
+
Object.keys(env2).forEach((key) => {
|
|
116087
|
+
createDebug[key] = env2[key];
|
|
116129
116088
|
});
|
|
116130
116089
|
createDebug.names = [];
|
|
116131
116090
|
createDebug.skips = [];
|
|
@@ -116275,9 +116234,9 @@ var require_common3 = __commonJS({
|
|
|
116275
116234
|
}
|
|
116276
116235
|
});
|
|
116277
116236
|
|
|
116278
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116237
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
|
|
116279
116238
|
var require_browser = __commonJS({
|
|
116280
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116239
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
116281
116240
|
exports.formatArgs = formatArgs;
|
|
116282
116241
|
exports.save = save;
|
|
116283
116242
|
exports.load = load;
|
|
@@ -116444,136 +116403,144 @@ var require_browser = __commonJS({
|
|
|
116444
116403
|
}
|
|
116445
116404
|
});
|
|
116446
116405
|
|
|
116447
|
-
// ../../../../node_modules/.pnpm/
|
|
116448
|
-
var
|
|
116449
|
-
|
|
116450
|
-
|
|
116451
|
-
|
|
116452
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
116453
|
-
const position = argv.indexOf(prefix + flag);
|
|
116454
|
-
const terminatorPosition = argv.indexOf("--");
|
|
116455
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
116456
|
-
};
|
|
116457
|
-
}
|
|
116406
|
+
// ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
|
|
116407
|
+
var supports_color_exports = {};
|
|
116408
|
+
__export(supports_color_exports, {
|
|
116409
|
+
createSupportsColor: () => createSupportsColor,
|
|
116410
|
+
default: () => supports_color_default
|
|
116458
116411
|
});
|
|
116459
|
-
|
|
116460
|
-
|
|
116461
|
-
|
|
116462
|
-
|
|
116463
|
-
|
|
116464
|
-
|
|
116465
|
-
|
|
116466
|
-
|
|
116467
|
-
|
|
116468
|
-
|
|
116469
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
116470
|
-
flagForceColor = 0;
|
|
116471
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
116472
|
-
flagForceColor = 1;
|
|
116412
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
116413
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
116414
|
+
const position = argv.indexOf(prefix + flag);
|
|
116415
|
+
const terminatorPosition = argv.indexOf("--");
|
|
116416
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
116417
|
+
}
|
|
116418
|
+
function envForceColor() {
|
|
116419
|
+
if ("FORCE_COLOR" in env) {
|
|
116420
|
+
if (env.FORCE_COLOR === "true") {
|
|
116421
|
+
return 1;
|
|
116473
116422
|
}
|
|
116474
|
-
|
|
116475
|
-
|
|
116476
|
-
if (env.FORCE_COLOR === "true") {
|
|
116477
|
-
return 1;
|
|
116478
|
-
}
|
|
116479
|
-
if (env.FORCE_COLOR === "false") {
|
|
116480
|
-
return 0;
|
|
116481
|
-
}
|
|
116482
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
116483
|
-
}
|
|
116423
|
+
if (env.FORCE_COLOR === "false") {
|
|
116424
|
+
return 0;
|
|
116484
116425
|
}
|
|
116485
|
-
|
|
116486
|
-
|
|
116487
|
-
|
|
116488
|
-
|
|
116489
|
-
|
|
116490
|
-
|
|
116491
|
-
|
|
116492
|
-
|
|
116493
|
-
|
|
116494
|
-
|
|
116426
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
116427
|
+
}
|
|
116428
|
+
}
|
|
116429
|
+
function translateLevel(level) {
|
|
116430
|
+
if (level === 0) {
|
|
116431
|
+
return false;
|
|
116432
|
+
}
|
|
116433
|
+
return {
|
|
116434
|
+
level,
|
|
116435
|
+
hasBasic: true,
|
|
116436
|
+
has256: level >= 2,
|
|
116437
|
+
has16m: level >= 3
|
|
116438
|
+
};
|
|
116439
|
+
}
|
|
116440
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
116441
|
+
const noFlagForceColor = envForceColor();
|
|
116442
|
+
if (noFlagForceColor !== void 0) {
|
|
116443
|
+
flagForceColor = noFlagForceColor;
|
|
116444
|
+
}
|
|
116445
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
116446
|
+
if (forceColor === 0) {
|
|
116447
|
+
return 0;
|
|
116448
|
+
}
|
|
116449
|
+
if (sniffFlags) {
|
|
116450
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
116451
|
+
return 3;
|
|
116495
116452
|
}
|
|
116496
|
-
|
|
116497
|
-
|
|
116498
|
-
|
|
116499
|
-
|
|
116500
|
-
|
|
116501
|
-
|
|
116502
|
-
|
|
116503
|
-
|
|
116504
|
-
|
|
116505
|
-
|
|
116506
|
-
|
|
116507
|
-
|
|
116508
|
-
|
|
116509
|
-
|
|
116510
|
-
|
|
116511
|
-
|
|
116512
|
-
|
|
116513
|
-
|
|
116514
|
-
|
|
116515
|
-
|
|
116516
|
-
|
|
116517
|
-
|
|
116518
|
-
|
|
116519
|
-
|
|
116520
|
-
|
|
116521
|
-
|
|
116522
|
-
|
|
116523
|
-
|
|
116524
|
-
|
|
116525
|
-
|
|
116526
|
-
|
|
116527
|
-
|
|
116528
|
-
|
|
116529
|
-
|
|
116530
|
-
|
|
116531
|
-
|
|
116532
|
-
|
|
116533
|
-
|
|
116534
|
-
|
|
116535
|
-
|
|
116536
|
-
|
|
116537
|
-
|
|
116538
|
-
|
|
116539
|
-
|
|
116540
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
116541
|
-
switch (env.TERM_PROGRAM) {
|
|
116542
|
-
case "iTerm.app":
|
|
116543
|
-
return version >= 3 ? 3 : 2;
|
|
116544
|
-
case "Apple_Terminal":
|
|
116545
|
-
return 2;
|
|
116546
|
-
}
|
|
116453
|
+
if (hasFlag("color=256")) {
|
|
116454
|
+
return 2;
|
|
116455
|
+
}
|
|
116456
|
+
}
|
|
116457
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
116458
|
+
return 1;
|
|
116459
|
+
}
|
|
116460
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
116461
|
+
return 0;
|
|
116462
|
+
}
|
|
116463
|
+
const min = forceColor || 0;
|
|
116464
|
+
if (env.TERM === "dumb") {
|
|
116465
|
+
return min;
|
|
116466
|
+
}
|
|
116467
|
+
if (import_node_process.default.platform === "win32") {
|
|
116468
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
116469
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
116470
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
116471
|
+
}
|
|
116472
|
+
return 1;
|
|
116473
|
+
}
|
|
116474
|
+
if ("CI" in env) {
|
|
116475
|
+
if ("GITHUB_ACTIONS" in env) {
|
|
116476
|
+
return 3;
|
|
116477
|
+
}
|
|
116478
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
116479
|
+
return 1;
|
|
116480
|
+
}
|
|
116481
|
+
return min;
|
|
116482
|
+
}
|
|
116483
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
116484
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
116485
|
+
}
|
|
116486
|
+
if (env.COLORTERM === "truecolor") {
|
|
116487
|
+
return 3;
|
|
116488
|
+
}
|
|
116489
|
+
if (env.TERM === "xterm-kitty") {
|
|
116490
|
+
return 3;
|
|
116491
|
+
}
|
|
116492
|
+
if ("TERM_PROGRAM" in env) {
|
|
116493
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
116494
|
+
switch (env.TERM_PROGRAM) {
|
|
116495
|
+
case "iTerm.app": {
|
|
116496
|
+
return version >= 3 ? 3 : 2;
|
|
116547
116497
|
}
|
|
116548
|
-
|
|
116498
|
+
case "Apple_Terminal": {
|
|
116549
116499
|
return 2;
|
|
116550
116500
|
}
|
|
116551
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
116552
|
-
return 1;
|
|
116553
|
-
}
|
|
116554
|
-
if ("COLORTERM" in env) {
|
|
116555
|
-
return 1;
|
|
116556
|
-
}
|
|
116557
|
-
return min;
|
|
116558
116501
|
}
|
|
116559
|
-
|
|
116560
|
-
|
|
116561
|
-
|
|
116562
|
-
|
|
116563
|
-
|
|
116502
|
+
}
|
|
116503
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
116504
|
+
return 2;
|
|
116505
|
+
}
|
|
116506
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
116507
|
+
return 1;
|
|
116508
|
+
}
|
|
116509
|
+
if ("COLORTERM" in env) {
|
|
116510
|
+
return 1;
|
|
116511
|
+
}
|
|
116512
|
+
return min;
|
|
116513
|
+
}
|
|
116514
|
+
function createSupportsColor(stream, options = {}) {
|
|
116515
|
+
const level = _supportsColor(stream, __spreadValues({
|
|
116516
|
+
streamIsTTY: stream && stream.isTTY
|
|
116517
|
+
}, options));
|
|
116518
|
+
return translateLevel(level);
|
|
116519
|
+
}
|
|
116520
|
+
var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
|
|
116521
|
+
var init_supports_color = __esm({
|
|
116522
|
+
"../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
|
|
116523
|
+
import_node_process = __toESM(require("process"));
|
|
116524
|
+
import_node_os = __toESM(require("os"));
|
|
116525
|
+
import_node_tty = __toESM(require("tty"));
|
|
116526
|
+
({ env } = import_node_process.default);
|
|
116527
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
116528
|
+
flagForceColor = 0;
|
|
116529
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
116530
|
+
flagForceColor = 1;
|
|
116564
116531
|
}
|
|
116565
|
-
|
|
116566
|
-
|
|
116567
|
-
|
|
116568
|
-
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
116532
|
+
supportsColor = {
|
|
116533
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
116534
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
116569
116535
|
};
|
|
116536
|
+
supports_color_default = supportsColor;
|
|
116570
116537
|
}
|
|
116571
116538
|
});
|
|
116572
116539
|
|
|
116573
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116540
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
|
|
116574
116541
|
var require_node2 = __commonJS({
|
|
116575
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116576
|
-
var
|
|
116542
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
116543
|
+
var tty2 = require("tty");
|
|
116577
116544
|
var util = require("util");
|
|
116578
116545
|
exports.init = init;
|
|
116579
116546
|
exports.log = log;
|
|
@@ -116588,8 +116555,8 @@ var require_node2 = __commonJS({
|
|
|
116588
116555
|
);
|
|
116589
116556
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
116590
116557
|
try {
|
|
116591
|
-
const
|
|
116592
|
-
if (
|
|
116558
|
+
const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
116559
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
116593
116560
|
exports.colors = [
|
|
116594
116561
|
20,
|
|
116595
116562
|
21,
|
|
@@ -116691,7 +116658,7 @@ var require_node2 = __commonJS({
|
|
|
116691
116658
|
return obj;
|
|
116692
116659
|
}, {});
|
|
116693
116660
|
function useColors() {
|
|
116694
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
116661
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
116695
116662
|
}
|
|
116696
116663
|
function formatArgs(args) {
|
|
116697
116664
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -116744,9 +116711,9 @@ var require_node2 = __commonJS({
|
|
|
116744
116711
|
}
|
|
116745
116712
|
});
|
|
116746
116713
|
|
|
116747
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116714
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
|
|
116748
116715
|
var require_src3 = __commonJS({
|
|
116749
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116716
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
116750
116717
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
116751
116718
|
module2.exports = require_browser();
|
|
116752
116719
|
} else {
|
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.28",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./src/index.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@types/node": "^14",
|
|
32
32
|
"jest": "^29",
|
|
33
33
|
"typescript": "^5",
|
|
34
|
-
"@modern-js/generator-common": "3.1.
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
34
|
+
"@modern-js/generator-common": "3.1.28",
|
|
35
|
+
"@modern-js/dependence-generator": "3.1.28",
|
|
36
|
+
"@scripts/jest-config": "2.26.0",
|
|
37
|
+
"@modern-js/generator-utils": "3.1.28",
|
|
38
|
+
"@scripts/build": "2.26.0"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|