@modern-js/server-generator 3.1.25 → 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 +209 -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");
|
|
@@ -36561,6 +36564,9 @@ var require_path = __commonJS({
|
|
|
36561
36564
|
},
|
|
36562
36565
|
removeSlash: function() {
|
|
36563
36566
|
return removeSlash;
|
|
36567
|
+
},
|
|
36568
|
+
cutNameByHyphen: function() {
|
|
36569
|
+
return cutNameByHyphen;
|
|
36564
36570
|
}
|
|
36565
36571
|
});
|
|
36566
36572
|
var _interop_require_default = require_interop_require_default();
|
|
@@ -36610,6 +36616,9 @@ var require_path = __commonJS({
|
|
|
36610
36616
|
var removeLeadingSlash = (s) => s.replace(/^\/+/, "");
|
|
36611
36617
|
var removeTailSlash = (s) => s.replace(/\/+$/, "");
|
|
36612
36618
|
var removeSlash = (s) => removeLeadingSlash(removeTailSlash(s));
|
|
36619
|
+
var cutNameByHyphen = (s) => {
|
|
36620
|
+
return s.split(/[-_]/)[0];
|
|
36621
|
+
};
|
|
36613
36622
|
}
|
|
36614
36623
|
});
|
|
36615
36624
|
|
|
@@ -37085,49 +37094,6 @@ var require_prettyInstructions = __commonJS({
|
|
|
37085
37094
|
}
|
|
37086
37095
|
});
|
|
37087
37096
|
|
|
37088
|
-
// ../../../toolkit/utils/dist/cjs/cli/print.js
|
|
37089
|
-
var require_print = __commonJS({
|
|
37090
|
-
"../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
|
|
37091
|
-
"use strict";
|
|
37092
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37093
|
-
value: true
|
|
37094
|
-
});
|
|
37095
|
-
Object.defineProperty(exports, "printBuildError", {
|
|
37096
|
-
enumerable: true,
|
|
37097
|
-
get: function() {
|
|
37098
|
-
return printBuildError;
|
|
37099
|
-
}
|
|
37100
|
-
});
|
|
37101
|
-
var _compiled = require_compiled();
|
|
37102
|
-
var _logger = require_logger();
|
|
37103
|
-
function printBuildError(err) {
|
|
37104
|
-
const message = err != null && err.message;
|
|
37105
|
-
const stack = err != null && err.stack;
|
|
37106
|
-
if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
|
|
37107
|
-
try {
|
|
37108
|
-
const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
|
|
37109
|
-
if (!matched) {
|
|
37110
|
-
throw new Error("Using errors for control flow is bad.");
|
|
37111
|
-
}
|
|
37112
|
-
const problemPath = matched[2];
|
|
37113
|
-
const line = matched[3];
|
|
37114
|
-
const column = matched[4];
|
|
37115
|
-
_logger.logger.error(`Failed to minify the code from this file:
|
|
37116
|
-
|
|
37117
|
-
${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
|
|
37118
|
-
`);
|
|
37119
|
-
} catch (ignored) {
|
|
37120
|
-
_logger.logger.error(`Failed to minify the bundle. ${err}
|
|
37121
|
-
`);
|
|
37122
|
-
}
|
|
37123
|
-
} else {
|
|
37124
|
-
_logger.logger.error((message || err) + "\n");
|
|
37125
|
-
}
|
|
37126
|
-
_logger.logger.log();
|
|
37127
|
-
}
|
|
37128
|
-
}
|
|
37129
|
-
});
|
|
37130
|
-
|
|
37131
37097
|
// ../../../toolkit/utils/dist/cjs/cli/require.js
|
|
37132
37098
|
var require_require = __commonJS({
|
|
37133
37099
|
"../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
|
|
@@ -37360,7 +37326,6 @@ var require_cli = __commonJS({
|
|
|
37360
37326
|
_export_star._(require_pathSerializer(), exports);
|
|
37361
37327
|
_export_star._(require_port(), exports);
|
|
37362
37328
|
_export_star._(require_prettyInstructions(), exports);
|
|
37363
|
-
_export_star._(require_print(), exports);
|
|
37364
37329
|
_export_star._(require_require(), exports);
|
|
37365
37330
|
_export_star._(require_runtimeExports(), exports);
|
|
37366
37331
|
_export_star._(require_watch(), exports);
|
|
@@ -40821,13 +40786,13 @@ var require_chalk2 = __commonJS({
|
|
|
40821
40786
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
|
40822
40787
|
}
|
|
40823
40788
|
}
|
|
40824
|
-
function
|
|
40789
|
+
function translateLevel2(e3) {
|
|
40825
40790
|
if (e3 === 0) {
|
|
40826
40791
|
return false;
|
|
40827
40792
|
}
|
|
40828
40793
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
40829
40794
|
}
|
|
40830
|
-
function
|
|
40795
|
+
function supportsColor2(e3, t3) {
|
|
40831
40796
|
if (c === 0) {
|
|
40832
40797
|
return 0;
|
|
40833
40798
|
}
|
|
@@ -40884,10 +40849,10 @@ var require_chalk2 = __commonJS({
|
|
|
40884
40849
|
return n3;
|
|
40885
40850
|
}
|
|
40886
40851
|
function getSupportLevel(e3) {
|
|
40887
|
-
const t3 =
|
|
40888
|
-
return
|
|
40852
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
40853
|
+
return translateLevel2(t3);
|
|
40889
40854
|
}
|
|
40890
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
40855
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
|
|
40891
40856
|
}, 37: (e2) => {
|
|
40892
40857
|
"use strict";
|
|
40893
40858
|
e2.exports = require("os");
|
|
@@ -49962,13 +49927,13 @@ var require_debug2 = __commonJS({
|
|
|
49962
49927
|
c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
|
|
49963
49928
|
}
|
|
49964
49929
|
}
|
|
49965
|
-
function
|
|
49930
|
+
function translateLevel2(e3) {
|
|
49966
49931
|
if (e3 === 0) {
|
|
49967
49932
|
return false;
|
|
49968
49933
|
}
|
|
49969
49934
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
49970
49935
|
}
|
|
49971
|
-
function
|
|
49936
|
+
function supportsColor2(e3, t3) {
|
|
49972
49937
|
if (c === 0) {
|
|
49973
49938
|
return 0;
|
|
49974
49939
|
}
|
|
@@ -50025,10 +49990,10 @@ var require_debug2 = __commonJS({
|
|
|
50025
49990
|
return r3;
|
|
50026
49991
|
}
|
|
50027
49992
|
function getSupportLevel(e3) {
|
|
50028
|
-
const t3 =
|
|
50029
|
-
return
|
|
49993
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
49994
|
+
return translateLevel2(t3);
|
|
50030
49995
|
}
|
|
50031
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
49996
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
|
|
50032
49997
|
}, 37: (e2) => {
|
|
50033
49998
|
"use strict";
|
|
50034
49999
|
e2.exports = require("os");
|
|
@@ -75177,15 +75142,15 @@ var require_runtime = __commonJS({
|
|
|
75177
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] + ").");
|
|
75178
75143
|
}
|
|
75179
75144
|
}
|
|
75180
|
-
function template(templateSpec,
|
|
75181
|
-
if (!
|
|
75145
|
+
function template(templateSpec, env2) {
|
|
75146
|
+
if (!env2) {
|
|
75182
75147
|
throw new _exception2["default"]("No environment passed to template");
|
|
75183
75148
|
}
|
|
75184
75149
|
if (!templateSpec || !templateSpec.main) {
|
|
75185
75150
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
|
75186
75151
|
}
|
|
75187
75152
|
templateSpec.main.decorator = templateSpec.main_d;
|
|
75188
|
-
|
|
75153
|
+
env2.VM.checkRevision(templateSpec.compiler);
|
|
75189
75154
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
|
75190
75155
|
function invokePartialWrapper(partial, context, options) {
|
|
75191
75156
|
if (options.hash) {
|
|
@@ -75194,14 +75159,14 @@ var require_runtime = __commonJS({
|
|
|
75194
75159
|
options.ids[0] = true;
|
|
75195
75160
|
}
|
|
75196
75161
|
}
|
|
75197
|
-
partial =
|
|
75162
|
+
partial = env2.VM.resolvePartial.call(this, partial, context, options);
|
|
75198
75163
|
var extendedOptions = Utils.extend({}, options, {
|
|
75199
75164
|
hooks: this.hooks,
|
|
75200
75165
|
protoAccessControl: this.protoAccessControl
|
|
75201
75166
|
});
|
|
75202
|
-
var result =
|
|
75203
|
-
if (result == null &&
|
|
75204
|
-
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);
|
|
75205
75170
|
result = options.partials[options.name](context, extendedOptions);
|
|
75206
75171
|
}
|
|
75207
75172
|
if (result != null) {
|
|
@@ -75286,7 +75251,7 @@ var require_runtime = __commonJS({
|
|
|
75286
75251
|
},
|
|
75287
75252
|
// An empty object to use as replacement for null-contexts
|
|
75288
75253
|
nullContext: Object.seal({}),
|
|
75289
|
-
noop:
|
|
75254
|
+
noop: env2.VM.noop,
|
|
75290
75255
|
compilerInfo: templateSpec.compiler
|
|
75291
75256
|
};
|
|
75292
75257
|
function ret(context) {
|
|
@@ -75313,14 +75278,14 @@ var require_runtime = __commonJS({
|
|
|
75313
75278
|
ret.isTop = true;
|
|
75314
75279
|
ret._setup = function(options) {
|
|
75315
75280
|
if (!options.partial) {
|
|
75316
|
-
var mergedHelpers = Utils.extend({},
|
|
75281
|
+
var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
|
|
75317
75282
|
wrapHelpersToPassLookupProperty(mergedHelpers, container);
|
|
75318
75283
|
container.helpers = mergedHelpers;
|
|
75319
75284
|
if (templateSpec.usePartial) {
|
|
75320
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
|
75285
|
+
container.partials = container.mergeIfNeeded(options.partials, env2.partials);
|
|
75321
75286
|
}
|
|
75322
75287
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
|
75323
|
-
container.decorators = Utils.extend({},
|
|
75288
|
+
container.decorators = Utils.extend({}, env2.decorators, options.decorators);
|
|
75324
75289
|
}
|
|
75325
75290
|
container.hooks = {};
|
|
75326
75291
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
|
@@ -77122,7 +77087,7 @@ var require_compiler = __commonJS({
|
|
|
77122
77087
|
}
|
|
77123
77088
|
}
|
|
77124
77089
|
};
|
|
77125
|
-
function precompile(input, options,
|
|
77090
|
+
function precompile(input, options, env2) {
|
|
77126
77091
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
77127
77092
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
|
77128
77093
|
}
|
|
@@ -77133,10 +77098,10 @@ var require_compiler = __commonJS({
|
|
|
77133
77098
|
if (options.compat) {
|
|
77134
77099
|
options.useDepths = true;
|
|
77135
77100
|
}
|
|
77136
|
-
var ast =
|
|
77137
|
-
return new
|
|
77101
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
|
|
77102
|
+
return new env2.JavaScriptCompiler().compile(environment, options);
|
|
77138
77103
|
}
|
|
77139
|
-
function compile2(input, options,
|
|
77104
|
+
function compile2(input, options, env2) {
|
|
77140
77105
|
if (options === void 0)
|
|
77141
77106
|
options = {};
|
|
77142
77107
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
@@ -77151,8 +77116,8 @@ var require_compiler = __commonJS({
|
|
|
77151
77116
|
}
|
|
77152
77117
|
var compiled = void 0;
|
|
77153
77118
|
function compileInput() {
|
|
77154
|
-
var ast =
|
|
77155
|
-
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);
|
|
77156
77121
|
}
|
|
77157
77122
|
function ret(context, execOptions) {
|
|
77158
77123
|
if (!compiled) {
|
|
@@ -85756,7 +85721,7 @@ var require_innerFrom = __commonJS({
|
|
|
85756
85721
|
exports.fromIterable = fromIterable;
|
|
85757
85722
|
function fromAsyncIterable(asyncIterable) {
|
|
85758
85723
|
return new Observable_1.Observable(function(subscriber) {
|
|
85759
|
-
|
|
85724
|
+
process3(asyncIterable, subscriber).catch(function(err) {
|
|
85760
85725
|
return subscriber.error(err);
|
|
85761
85726
|
});
|
|
85762
85727
|
});
|
|
@@ -85766,7 +85731,7 @@ var require_innerFrom = __commonJS({
|
|
|
85766
85731
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
85767
85732
|
}
|
|
85768
85733
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
85769
|
-
function
|
|
85734
|
+
function process3(asyncIterable, subscriber) {
|
|
85770
85735
|
var asyncIterable_1, asyncIterable_1_1;
|
|
85771
85736
|
var e_2, _a2;
|
|
85772
85737
|
return __awaiter6(this, void 0, void 0, function() {
|
|
@@ -93045,11 +93010,11 @@ var require_signals = __commonJS({
|
|
|
93045
93010
|
// ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
93046
93011
|
var require_signal_exit = __commonJS({
|
|
93047
93012
|
"../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
|
93048
|
-
var
|
|
93049
|
-
var processOk = function(
|
|
93050
|
-
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";
|
|
93051
93016
|
};
|
|
93052
|
-
if (!processOk(
|
|
93017
|
+
if (!processOk(process3)) {
|
|
93053
93018
|
module2.exports = function() {
|
|
93054
93019
|
return function() {
|
|
93055
93020
|
};
|
|
@@ -93057,15 +93022,15 @@ var require_signal_exit = __commonJS({
|
|
|
93057
93022
|
} else {
|
|
93058
93023
|
assert = require("assert");
|
|
93059
93024
|
signals = require_signals();
|
|
93060
|
-
isWin = /^win/i.test(
|
|
93025
|
+
isWin = /^win/i.test(process3.platform);
|
|
93061
93026
|
EE = require("events");
|
|
93062
93027
|
if (typeof EE !== "function") {
|
|
93063
93028
|
EE = EE.EventEmitter;
|
|
93064
93029
|
}
|
|
93065
|
-
if (
|
|
93066
|
-
emitter =
|
|
93030
|
+
if (process3.__signal_exit_emitter__) {
|
|
93031
|
+
emitter = process3.__signal_exit_emitter__;
|
|
93067
93032
|
} else {
|
|
93068
|
-
emitter =
|
|
93033
|
+
emitter = process3.__signal_exit_emitter__ = new EE();
|
|
93069
93034
|
emitter.count = 0;
|
|
93070
93035
|
emitter.emitted = {};
|
|
93071
93036
|
}
|
|
@@ -93102,12 +93067,12 @@ var require_signal_exit = __commonJS({
|
|
|
93102
93067
|
loaded = false;
|
|
93103
93068
|
signals.forEach(function(sig) {
|
|
93104
93069
|
try {
|
|
93105
|
-
|
|
93070
|
+
process3.removeListener(sig, sigListeners[sig]);
|
|
93106
93071
|
} catch (er) {
|
|
93107
93072
|
}
|
|
93108
93073
|
});
|
|
93109
|
-
|
|
93110
|
-
|
|
93074
|
+
process3.emit = originalProcessEmit;
|
|
93075
|
+
process3.reallyExit = originalProcessReallyExit;
|
|
93111
93076
|
emitter.count -= 1;
|
|
93112
93077
|
};
|
|
93113
93078
|
module2.exports.unload = unload;
|
|
@@ -93124,7 +93089,7 @@ var require_signal_exit = __commonJS({
|
|
|
93124
93089
|
if (!processOk(global.process)) {
|
|
93125
93090
|
return;
|
|
93126
93091
|
}
|
|
93127
|
-
var listeners =
|
|
93092
|
+
var listeners = process3.listeners(sig);
|
|
93128
93093
|
if (listeners.length === emitter.count) {
|
|
93129
93094
|
unload();
|
|
93130
93095
|
emit("exit", null, sig);
|
|
@@ -93132,7 +93097,7 @@ var require_signal_exit = __commonJS({
|
|
|
93132
93097
|
if (isWin && sig === "SIGHUP") {
|
|
93133
93098
|
sig = "SIGINT";
|
|
93134
93099
|
}
|
|
93135
|
-
|
|
93100
|
+
process3.kill(process3.pid, sig);
|
|
93136
93101
|
}
|
|
93137
93102
|
};
|
|
93138
93103
|
});
|
|
@@ -93148,36 +93113,36 @@ var require_signal_exit = __commonJS({
|
|
|
93148
93113
|
emitter.count += 1;
|
|
93149
93114
|
signals = signals.filter(function(sig) {
|
|
93150
93115
|
try {
|
|
93151
|
-
|
|
93116
|
+
process3.on(sig, sigListeners[sig]);
|
|
93152
93117
|
return true;
|
|
93153
93118
|
} catch (er) {
|
|
93154
93119
|
return false;
|
|
93155
93120
|
}
|
|
93156
93121
|
});
|
|
93157
|
-
|
|
93158
|
-
|
|
93122
|
+
process3.emit = processEmit;
|
|
93123
|
+
process3.reallyExit = processReallyExit;
|
|
93159
93124
|
};
|
|
93160
93125
|
module2.exports.load = load;
|
|
93161
|
-
originalProcessReallyExit =
|
|
93126
|
+
originalProcessReallyExit = process3.reallyExit;
|
|
93162
93127
|
processReallyExit = function processReallyExit2(code) {
|
|
93163
93128
|
if (!processOk(global.process)) {
|
|
93164
93129
|
return;
|
|
93165
93130
|
}
|
|
93166
|
-
|
|
93131
|
+
process3.exitCode = code || /* istanbul ignore next */
|
|
93167
93132
|
0;
|
|
93168
|
-
emit("exit",
|
|
93169
|
-
emit("afterexit",
|
|
93170
|
-
originalProcessReallyExit.call(
|
|
93133
|
+
emit("exit", process3.exitCode, null);
|
|
93134
|
+
emit("afterexit", process3.exitCode, null);
|
|
93135
|
+
originalProcessReallyExit.call(process3, process3.exitCode);
|
|
93171
93136
|
};
|
|
93172
|
-
originalProcessEmit =
|
|
93137
|
+
originalProcessEmit = process3.emit;
|
|
93173
93138
|
processEmit = function processEmit2(ev, arg) {
|
|
93174
93139
|
if (ev === "exit" && processOk(global.process)) {
|
|
93175
93140
|
if (arg !== void 0) {
|
|
93176
|
-
|
|
93141
|
+
process3.exitCode = arg;
|
|
93177
93142
|
}
|
|
93178
93143
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
93179
|
-
emit("exit",
|
|
93180
|
-
emit("afterexit",
|
|
93144
|
+
emit("exit", process3.exitCode, null);
|
|
93145
|
+
emit("afterexit", process3.exitCode, null);
|
|
93181
93146
|
return ret;
|
|
93182
93147
|
} else {
|
|
93183
93148
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -116106,10 +116071,10 @@ var require_ms = __commonJS({
|
|
|
116106
116071
|
}
|
|
116107
116072
|
});
|
|
116108
116073
|
|
|
116109
|
-
// ../../../../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
|
|
116110
116075
|
var require_common3 = __commonJS({
|
|
116111
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116112
|
-
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) {
|
|
116113
116078
|
createDebug.debug = createDebug;
|
|
116114
116079
|
createDebug.default = createDebug;
|
|
116115
116080
|
createDebug.coerce = coerce;
|
|
@@ -116118,8 +116083,8 @@ var require_common3 = __commonJS({
|
|
|
116118
116083
|
createDebug.enabled = enabled;
|
|
116119
116084
|
createDebug.humanize = require_ms();
|
|
116120
116085
|
createDebug.destroy = destroy2;
|
|
116121
|
-
Object.keys(
|
|
116122
|
-
createDebug[key] =
|
|
116086
|
+
Object.keys(env2).forEach((key) => {
|
|
116087
|
+
createDebug[key] = env2[key];
|
|
116123
116088
|
});
|
|
116124
116089
|
createDebug.names = [];
|
|
116125
116090
|
createDebug.skips = [];
|
|
@@ -116269,9 +116234,9 @@ var require_common3 = __commonJS({
|
|
|
116269
116234
|
}
|
|
116270
116235
|
});
|
|
116271
116236
|
|
|
116272
|
-
// ../../../../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
|
|
116273
116238
|
var require_browser = __commonJS({
|
|
116274
|
-
"../../../../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) {
|
|
116275
116240
|
exports.formatArgs = formatArgs;
|
|
116276
116241
|
exports.save = save;
|
|
116277
116242
|
exports.load = load;
|
|
@@ -116438,136 +116403,144 @@ var require_browser = __commonJS({
|
|
|
116438
116403
|
}
|
|
116439
116404
|
});
|
|
116440
116405
|
|
|
116441
|
-
// ../../../../node_modules/.pnpm/
|
|
116442
|
-
var
|
|
116443
|
-
|
|
116444
|
-
|
|
116445
|
-
|
|
116446
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
116447
|
-
const position = argv.indexOf(prefix + flag);
|
|
116448
|
-
const terminatorPosition = argv.indexOf("--");
|
|
116449
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
116450
|
-
};
|
|
116451
|
-
}
|
|
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
|
|
116452
116411
|
});
|
|
116453
|
-
|
|
116454
|
-
|
|
116455
|
-
|
|
116456
|
-
|
|
116457
|
-
|
|
116458
|
-
|
|
116459
|
-
|
|
116460
|
-
|
|
116461
|
-
|
|
116462
|
-
|
|
116463
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
116464
|
-
flagForceColor = 0;
|
|
116465
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
116466
|
-
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;
|
|
116467
116422
|
}
|
|
116468
|
-
|
|
116469
|
-
|
|
116470
|
-
if (env.FORCE_COLOR === "true") {
|
|
116471
|
-
return 1;
|
|
116472
|
-
}
|
|
116473
|
-
if (env.FORCE_COLOR === "false") {
|
|
116474
|
-
return 0;
|
|
116475
|
-
}
|
|
116476
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
116477
|
-
}
|
|
116423
|
+
if (env.FORCE_COLOR === "false") {
|
|
116424
|
+
return 0;
|
|
116478
116425
|
}
|
|
116479
|
-
|
|
116480
|
-
|
|
116481
|
-
|
|
116482
|
-
|
|
116483
|
-
|
|
116484
|
-
|
|
116485
|
-
|
|
116486
|
-
|
|
116487
|
-
|
|
116488
|
-
|
|
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;
|
|
116489
116452
|
}
|
|
116490
|
-
|
|
116491
|
-
|
|
116492
|
-
|
|
116493
|
-
|
|
116494
|
-
|
|
116495
|
-
|
|
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
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
116535
|
-
switch (env.TERM_PROGRAM) {
|
|
116536
|
-
case "iTerm.app":
|
|
116537
|
-
return version >= 3 ? 3 : 2;
|
|
116538
|
-
case "Apple_Terminal":
|
|
116539
|
-
return 2;
|
|
116540
|
-
}
|
|
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;
|
|
116541
116497
|
}
|
|
116542
|
-
|
|
116498
|
+
case "Apple_Terminal": {
|
|
116543
116499
|
return 2;
|
|
116544
116500
|
}
|
|
116545
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
116546
|
-
return 1;
|
|
116547
|
-
}
|
|
116548
|
-
if ("COLORTERM" in env) {
|
|
116549
|
-
return 1;
|
|
116550
|
-
}
|
|
116551
|
-
return min;
|
|
116552
116501
|
}
|
|
116553
|
-
|
|
116554
|
-
|
|
116555
|
-
|
|
116556
|
-
|
|
116557
|
-
|
|
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;
|
|
116558
116531
|
}
|
|
116559
|
-
|
|
116560
|
-
|
|
116561
|
-
|
|
116562
|
-
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) })
|
|
116563
116535
|
};
|
|
116536
|
+
supports_color_default = supportsColor;
|
|
116564
116537
|
}
|
|
116565
116538
|
});
|
|
116566
116539
|
|
|
116567
|
-
// ../../../../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
|
|
116568
116541
|
var require_node2 = __commonJS({
|
|
116569
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
116570
|
-
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");
|
|
116571
116544
|
var util = require("util");
|
|
116572
116545
|
exports.init = init;
|
|
116573
116546
|
exports.log = log;
|
|
@@ -116582,8 +116555,8 @@ var require_node2 = __commonJS({
|
|
|
116582
116555
|
);
|
|
116583
116556
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
116584
116557
|
try {
|
|
116585
|
-
const
|
|
116586
|
-
if (
|
|
116558
|
+
const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
116559
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
116587
116560
|
exports.colors = [
|
|
116588
116561
|
20,
|
|
116589
116562
|
21,
|
|
@@ -116685,7 +116658,7 @@ var require_node2 = __commonJS({
|
|
|
116685
116658
|
return obj;
|
|
116686
116659
|
}, {});
|
|
116687
116660
|
function useColors() {
|
|
116688
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
116661
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
116689
116662
|
}
|
|
116690
116663
|
function formatArgs(args) {
|
|
116691
116664
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -116738,9 +116711,9 @@ var require_node2 = __commonJS({
|
|
|
116738
116711
|
}
|
|
116739
116712
|
});
|
|
116740
116713
|
|
|
116741
|
-
// ../../../../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
|
|
116742
116715
|
var require_src3 = __commonJS({
|
|
116743
|
-
"../../../../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) {
|
|
116744
116717
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
116745
116718
|
module2.exports = require_browser();
|
|
116746
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.27",
|
|
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
|
-
"@scripts/jest-config": "2.
|
|
36
|
-
"@modern-js/dependence-generator": "3.1.
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
34
|
+
"@modern-js/generator-common": "3.1.27",
|
|
35
|
+
"@scripts/jest-config": "2.25.2",
|
|
36
|
+
"@modern-js/dependence-generator": "3.1.27",
|
|
37
|
+
"@modern-js/generator-utils": "3.1.27",
|
|
38
|
+
"@scripts/build": "2.25.2"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|