@modern-js/entry-generator 3.1.39 → 3.2.1
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 +81 -65
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -17727,7 +17727,7 @@ var require_js_yaml = __commonJS({
|
|
|
17727
17727
|
var require_debug = __commonJS({
|
|
17728
17728
|
"../../../toolkit/utils/dist/compiled/debug/index.js"(exports, module2) {
|
|
17729
17729
|
(() => {
|
|
17730
|
-
var e = {
|
|
17730
|
+
var e = { 434: (e2, t2, r2) => {
|
|
17731
17731
|
t2.formatArgs = formatArgs;
|
|
17732
17732
|
t2.save = save;
|
|
17733
17733
|
t2.load = load;
|
|
@@ -17801,7 +17801,7 @@ var require_debug = __commonJS({
|
|
|
17801
17801
|
} catch (e3) {
|
|
17802
17802
|
}
|
|
17803
17803
|
}
|
|
17804
|
-
e2.exports = r2(
|
|
17804
|
+
e2.exports = r2(290)(t2);
|
|
17805
17805
|
const { formatters: s } = e2.exports;
|
|
17806
17806
|
s.j = function(e3) {
|
|
17807
17807
|
try {
|
|
@@ -17810,7 +17810,7 @@ var require_debug = __commonJS({
|
|
|
17810
17810
|
return "[UnexpectedJSONParseError]: " + e4.message;
|
|
17811
17811
|
}
|
|
17812
17812
|
};
|
|
17813
|
-
},
|
|
17813
|
+
}, 290: (e2, t2, r2) => {
|
|
17814
17814
|
function setup(e3) {
|
|
17815
17815
|
createDebug.debug = createDebug;
|
|
17816
17816
|
createDebug.default = createDebug;
|
|
@@ -17960,13 +17960,13 @@ var require_debug = __commonJS({
|
|
|
17960
17960
|
return createDebug;
|
|
17961
17961
|
}
|
|
17962
17962
|
e2.exports = setup;
|
|
17963
|
-
},
|
|
17963
|
+
}, 372: (e2, t2, r2) => {
|
|
17964
17964
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
17965
|
-
e2.exports = r2(
|
|
17965
|
+
e2.exports = r2(434);
|
|
17966
17966
|
} else {
|
|
17967
|
-
e2.exports = r2(
|
|
17967
|
+
e2.exports = r2(970);
|
|
17968
17968
|
}
|
|
17969
|
-
},
|
|
17969
|
+
}, 970: (e2, t2, r2) => {
|
|
17970
17970
|
const s = r2(224);
|
|
17971
17971
|
const n = r2(837);
|
|
17972
17972
|
t2.init = init;
|
|
@@ -17979,7 +17979,7 @@ var require_debug = __commonJS({
|
|
|
17979
17979
|
}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
17980
17980
|
t2.colors = [6, 2, 3, 4, 5, 1];
|
|
17981
17981
|
try {
|
|
17982
|
-
const e3 = r2(
|
|
17982
|
+
const e3 = r2(332);
|
|
17983
17983
|
if (e3 && (e3.stderr || e3).level >= 2) {
|
|
17984
17984
|
t2.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
|
|
17985
17985
|
}
|
|
@@ -18041,7 +18041,7 @@ var require_debug = __commonJS({
|
|
|
18041
18041
|
e3.inspectOpts[r3[s2]] = t2.inspectOpts[r3[s2]];
|
|
18042
18042
|
}
|
|
18043
18043
|
}
|
|
18044
|
-
e2.exports = r2(
|
|
18044
|
+
e2.exports = r2(290)(t2);
|
|
18045
18045
|
const { formatters: o } = e2.exports;
|
|
18046
18046
|
o.o = function(e3) {
|
|
18047
18047
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -18051,13 +18051,14 @@ var require_debug = __commonJS({
|
|
|
18051
18051
|
this.inspectOpts.colors = this.useColors;
|
|
18052
18052
|
return n.inspect(e3, this.inspectOpts);
|
|
18053
18053
|
};
|
|
18054
|
-
},
|
|
18054
|
+
}, 419: (e2) => {
|
|
18055
18055
|
"use strict";
|
|
18056
|
-
e2.exports = (e3, t2
|
|
18056
|
+
e2.exports = (e3, t2) => {
|
|
18057
|
+
t2 = t2 || process.argv;
|
|
18057
18058
|
const r2 = e3.startsWith("-") ? "" : e3.length === 1 ? "-" : "--";
|
|
18058
18059
|
const s = t2.indexOf(r2 + e3);
|
|
18059
18060
|
const n = t2.indexOf("--");
|
|
18060
|
-
return s !== -1 && (n === -1
|
|
18061
|
+
return s !== -1 && (n === -1 ? true : s < n);
|
|
18061
18062
|
};
|
|
18062
18063
|
}, 367: (e2) => {
|
|
18063
18064
|
var t2 = 1e3;
|
|
@@ -18166,26 +18167,19 @@ var require_debug = __commonJS({
|
|
|
18166
18167
|
var n2 = t3 >= r3 * 1.5;
|
|
18167
18168
|
return Math.round(e3 / r3) + " " + s2 + (n2 ? "s" : "");
|
|
18168
18169
|
}
|
|
18169
|
-
},
|
|
18170
|
+
}, 332: (e2, t2, r2) => {
|
|
18170
18171
|
"use strict";
|
|
18171
18172
|
const s = r2(37);
|
|
18172
|
-
const n = r2(
|
|
18173
|
-
const o =
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
c = 1;
|
|
18173
|
+
const n = r2(419);
|
|
18174
|
+
const o = process.env;
|
|
18175
|
+
let a;
|
|
18176
|
+
if (n("no-color") || n("no-colors") || n("color=false")) {
|
|
18177
|
+
a = false;
|
|
18178
|
+
} else if (n("color") || n("colors") || n("color=true") || n("color=always")) {
|
|
18179
|
+
a = true;
|
|
18180
18180
|
}
|
|
18181
|
-
if ("FORCE_COLOR" in
|
|
18182
|
-
|
|
18183
|
-
c = 1;
|
|
18184
|
-
} else if (a.FORCE_COLOR === "false") {
|
|
18185
|
-
c = 0;
|
|
18186
|
-
} else {
|
|
18187
|
-
c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
|
|
18188
|
-
}
|
|
18181
|
+
if ("FORCE_COLOR" in o) {
|
|
18182
|
+
a = o.FORCE_COLOR.length === 0 || parseInt(o.FORCE_COLOR, 10) !== 0;
|
|
18189
18183
|
}
|
|
18190
18184
|
function translateLevel(e3) {
|
|
18191
18185
|
if (e3 === 0) {
|
|
@@ -18193,67 +18187,67 @@ var require_debug = __commonJS({
|
|
|
18193
18187
|
}
|
|
18194
18188
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
18195
18189
|
}
|
|
18196
|
-
function supportsColor(e3
|
|
18197
|
-
if (
|
|
18190
|
+
function supportsColor(e3) {
|
|
18191
|
+
if (a === false) {
|
|
18198
18192
|
return 0;
|
|
18199
18193
|
}
|
|
18200
|
-
if (
|
|
18194
|
+
if (n("color=16m") || n("color=full") || n("color=truecolor")) {
|
|
18201
18195
|
return 3;
|
|
18202
18196
|
}
|
|
18203
|
-
if (
|
|
18197
|
+
if (n("color=256")) {
|
|
18204
18198
|
return 2;
|
|
18205
18199
|
}
|
|
18206
|
-
if (e3 && !
|
|
18200
|
+
if (e3 && !e3.isTTY && a !== true) {
|
|
18207
18201
|
return 0;
|
|
18208
18202
|
}
|
|
18209
|
-
const
|
|
18210
|
-
if (a.TERM === "dumb") {
|
|
18211
|
-
return r3;
|
|
18212
|
-
}
|
|
18203
|
+
const t3 = a ? 1 : 0;
|
|
18213
18204
|
if (process.platform === "win32") {
|
|
18214
18205
|
const e4 = s.release().split(".");
|
|
18215
|
-
if (Number(e4[0]) >= 10 && Number(e4[2]) >= 10586) {
|
|
18206
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(e4[0]) >= 10 && Number(e4[2]) >= 10586) {
|
|
18216
18207
|
return Number(e4[2]) >= 14931 ? 3 : 2;
|
|
18217
18208
|
}
|
|
18218
18209
|
return 1;
|
|
18219
18210
|
}
|
|
18220
|
-
if ("CI" in
|
|
18221
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"
|
|
18211
|
+
if ("CI" in o) {
|
|
18212
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((e4) => e4 in o) || o.CI_NAME === "codeship") {
|
|
18222
18213
|
return 1;
|
|
18223
18214
|
}
|
|
18224
|
-
return
|
|
18215
|
+
return t3;
|
|
18225
18216
|
}
|
|
18226
|
-
if ("TEAMCITY_VERSION" in
|
|
18227
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
18217
|
+
if ("TEAMCITY_VERSION" in o) {
|
|
18218
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION) ? 1 : 0;
|
|
18228
18219
|
}
|
|
18229
|
-
if (
|
|
18220
|
+
if (o.COLORTERM === "truecolor") {
|
|
18230
18221
|
return 3;
|
|
18231
18222
|
}
|
|
18232
|
-
if ("TERM_PROGRAM" in
|
|
18233
|
-
const e4 = parseInt((
|
|
18234
|
-
switch (
|
|
18223
|
+
if ("TERM_PROGRAM" in o) {
|
|
18224
|
+
const e4 = parseInt((o.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
18225
|
+
switch (o.TERM_PROGRAM) {
|
|
18235
18226
|
case "iTerm.app":
|
|
18236
18227
|
return e4 >= 3 ? 3 : 2;
|
|
18237
18228
|
case "Apple_Terminal":
|
|
18238
18229
|
return 2;
|
|
18239
18230
|
}
|
|
18240
18231
|
}
|
|
18241
|
-
if (/-256(color)?$/i.test(
|
|
18232
|
+
if (/-256(color)?$/i.test(o.TERM)) {
|
|
18242
18233
|
return 2;
|
|
18243
18234
|
}
|
|
18244
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
18235
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)) {
|
|
18245
18236
|
return 1;
|
|
18246
18237
|
}
|
|
18247
|
-
if ("COLORTERM" in
|
|
18238
|
+
if ("COLORTERM" in o) {
|
|
18248
18239
|
return 1;
|
|
18249
18240
|
}
|
|
18250
|
-
|
|
18241
|
+
if (o.TERM === "dumb") {
|
|
18242
|
+
return t3;
|
|
18243
|
+
}
|
|
18244
|
+
return t3;
|
|
18251
18245
|
}
|
|
18252
18246
|
function getSupportLevel(e3) {
|
|
18253
|
-
const t3 = supportsColor(e3
|
|
18247
|
+
const t3 = supportsColor(e3);
|
|
18254
18248
|
return translateLevel(t3);
|
|
18255
18249
|
}
|
|
18256
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
18250
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: getSupportLevel(process.stdout), stderr: getSupportLevel(process.stderr) };
|
|
18257
18251
|
}, 37: (e2) => {
|
|
18258
18252
|
"use strict";
|
|
18259
18253
|
e2.exports = require("os");
|
|
@@ -18283,7 +18277,7 @@ var require_debug = __commonJS({
|
|
|
18283
18277
|
}
|
|
18284
18278
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
18285
18279
|
__nccwpck_require__.ab = __dirname + "/";
|
|
18286
|
-
var r = __nccwpck_require__(
|
|
18280
|
+
var r = __nccwpck_require__(372);
|
|
18287
18281
|
module2.exports = r;
|
|
18288
18282
|
})();
|
|
18289
18283
|
}
|
|
@@ -36313,6 +36307,27 @@ var require_watch = __commonJS({
|
|
|
36313
36307
|
}
|
|
36314
36308
|
});
|
|
36315
36309
|
|
|
36310
|
+
// ../../../toolkit/utils/dist/cjs/cli/config.js
|
|
36311
|
+
var require_config3 = __commonJS({
|
|
36312
|
+
"../../../toolkit/utils/dist/cjs/cli/config.js"(exports) {
|
|
36313
|
+
"use strict";
|
|
36314
|
+
Object.defineProperty(exports, "__esModule", {
|
|
36315
|
+
value: true
|
|
36316
|
+
});
|
|
36317
|
+
Object.defineProperty(exports, "isOverriddenConfigKey", {
|
|
36318
|
+
enumerable: true,
|
|
36319
|
+
get: function() {
|
|
36320
|
+
return isOverriddenConfigKey;
|
|
36321
|
+
}
|
|
36322
|
+
});
|
|
36323
|
+
var isOverriddenConfigKey = (key) => [
|
|
36324
|
+
"removeConsole",
|
|
36325
|
+
"enableInlineScripts",
|
|
36326
|
+
"enableInlineStyles"
|
|
36327
|
+
].includes(key);
|
|
36328
|
+
}
|
|
36329
|
+
});
|
|
36330
|
+
|
|
36316
36331
|
// ../../../toolkit/utils/dist/cjs/cli/index.js
|
|
36317
36332
|
var require_cli = __commonJS({
|
|
36318
36333
|
"../../../toolkit/utils/dist/cjs/cli/index.js"(exports) {
|
|
@@ -36340,6 +36355,7 @@ var require_cli = __commonJS({
|
|
|
36340
36355
|
_export_star._(require_require(), exports);
|
|
36341
36356
|
_export_star._(require_runtimeExports(), exports);
|
|
36342
36357
|
_export_star._(require_watch(), exports);
|
|
36358
|
+
_export_star._(require_config3(), exports);
|
|
36343
36359
|
}
|
|
36344
36360
|
});
|
|
36345
36361
|
|
|
@@ -66201,7 +66217,7 @@ var require_type2 = __commonJS({
|
|
|
66201
66217
|
});
|
|
66202
66218
|
|
|
66203
66219
|
// ../../../../node_modules/.pnpm/@modern-js+utils@2.32.1_react-dom@18.2.0_react@18.2.0/node_modules/@modern-js/utils/dist/cjs/cli/is/config.js
|
|
66204
|
-
var
|
|
66220
|
+
var require_config4 = __commonJS({
|
|
66205
66221
|
"../../../../node_modules/.pnpm/@modern-js+utils@2.32.1_react-dom@18.2.0_react@18.2.0/node_modules/@modern-js/utils/dist/cjs/cli/is/config.js"(exports) {
|
|
66206
66222
|
"use strict";
|
|
66207
66223
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -66527,7 +66543,7 @@ var require_is2 = __commonJS({
|
|
|
66527
66543
|
_export_star._(require_env2(), exports);
|
|
66528
66544
|
_export_star._(require_platform2(), exports);
|
|
66529
66545
|
_export_star._(require_type2(), exports);
|
|
66530
|
-
_export_star._(
|
|
66546
|
+
_export_star._(require_config4(), exports);
|
|
66531
66547
|
_export_star._(require_project2(), exports);
|
|
66532
66548
|
}
|
|
66533
66549
|
});
|
|
@@ -66737,7 +66753,7 @@ var require_data2 = __commonJS({
|
|
|
66737
66753
|
});
|
|
66738
66754
|
|
|
66739
66755
|
// ../../../../node_modules/.pnpm/@modern-js+utils@2.32.1_react-dom@18.2.0_react@18.2.0/node_modules/@modern-js/utils/dist/cjs/cli/get/config.js
|
|
66740
|
-
var
|
|
66756
|
+
var require_config5 = __commonJS({
|
|
66741
66757
|
"../../../../node_modules/.pnpm/@modern-js+utils@2.32.1_react-dom@18.2.0_react@18.2.0/node_modules/@modern-js/utils/dist/cjs/cli/get/config.js"(exports) {
|
|
66742
66758
|
"use strict";
|
|
66743
66759
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -66796,7 +66812,7 @@ var require_get2 = __commonJS({
|
|
|
66796
66812
|
var _constants = require_constants2();
|
|
66797
66813
|
var _fs = require_fs2();
|
|
66798
66814
|
_export_star._(require_data2(), exports);
|
|
66799
|
-
_export_star._(
|
|
66815
|
+
_export_star._(require_config5(), exports);
|
|
66800
66816
|
var getServerConfig = async (appDirectory, configFile) => {
|
|
66801
66817
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
66802
66818
|
return configFilePath;
|
|
@@ -84211,7 +84227,7 @@ var require_Subscription = __commonJS({
|
|
|
84211
84227
|
});
|
|
84212
84228
|
|
|
84213
84229
|
// ../../../../node_modules/.pnpm/rxjs@7.8.0/node_modules/rxjs/dist/cjs/internal/config.js
|
|
84214
|
-
var
|
|
84230
|
+
var require_config6 = __commonJS({
|
|
84215
84231
|
"../../../../node_modules/.pnpm/rxjs@7.8.0/node_modules/rxjs/dist/cjs/internal/config.js"(exports) {
|
|
84216
84232
|
"use strict";
|
|
84217
84233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -84285,7 +84301,7 @@ var require_reportUnhandledError = __commonJS({
|
|
|
84285
84301
|
"use strict";
|
|
84286
84302
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
84287
84303
|
exports.reportUnhandledError = void 0;
|
|
84288
|
-
var config_1 =
|
|
84304
|
+
var config_1 = require_config6();
|
|
84289
84305
|
var timeoutProvider_1 = require_timeoutProvider();
|
|
84290
84306
|
function reportUnhandledError(err) {
|
|
84291
84307
|
timeoutProvider_1.timeoutProvider.setTimeout(function() {
|
|
@@ -84347,7 +84363,7 @@ var require_errorContext = __commonJS({
|
|
|
84347
84363
|
"use strict";
|
|
84348
84364
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
84349
84365
|
exports.captureError = exports.errorContext = void 0;
|
|
84350
|
-
var config_1 =
|
|
84366
|
+
var config_1 = require_config6();
|
|
84351
84367
|
var context = null;
|
|
84352
84368
|
function errorContext(cb) {
|
|
84353
84369
|
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
|
|
@@ -84407,7 +84423,7 @@ var require_Subscriber = __commonJS({
|
|
|
84407
84423
|
exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0;
|
|
84408
84424
|
var isFunction_1 = require_isFunction2();
|
|
84409
84425
|
var Subscription_1 = require_Subscription();
|
|
84410
|
-
var config_1 =
|
|
84426
|
+
var config_1 = require_config6();
|
|
84411
84427
|
var reportUnhandledError_1 = require_reportUnhandledError();
|
|
84412
84428
|
var noop_1 = require_noop();
|
|
84413
84429
|
var NotificationFactories_1 = require_NotificationFactories();
|
|
@@ -84648,7 +84664,7 @@ var require_Observable = __commonJS({
|
|
|
84648
84664
|
var Subscription_1 = require_Subscription();
|
|
84649
84665
|
var observable_1 = require_observable();
|
|
84650
84666
|
var pipe_1 = require_pipe();
|
|
84651
|
-
var config_1 =
|
|
84667
|
+
var config_1 = require_config6();
|
|
84652
84668
|
var isFunction_1 = require_isFunction2();
|
|
84653
84669
|
var errorContext_1 = require_errorContext();
|
|
84654
84670
|
var Observable = function() {
|
|
@@ -93127,7 +93143,7 @@ var require_cjs3 = __commonJS({
|
|
|
93127
93143
|
return never_2.NEVER;
|
|
93128
93144
|
} });
|
|
93129
93145
|
__exportStar(require_types(), exports);
|
|
93130
|
-
var config_1 =
|
|
93146
|
+
var config_1 = require_config6();
|
|
93131
93147
|
Object.defineProperty(exports, "config", { enumerable: true, get: function() {
|
|
93132
93148
|
return config_1.config;
|
|
93133
93149
|
} });
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1
|
|
18
|
+
"version": "3.2.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/generator-common": "3.1
|
|
37
|
-
"@scripts/
|
|
38
|
-
"@scripts/
|
|
33
|
+
"@modern-js/generator-utils": "3.2.1",
|
|
34
|
+
"@modern-js/utils": "2.35.0",
|
|
35
|
+
"@modern-js/plugin-i18n": "2.35.0",
|
|
36
|
+
"@modern-js/generator-common": "3.2.1",
|
|
37
|
+
"@scripts/jest-config": "2.35.0",
|
|
38
|
+
"@scripts/build": "2.35.0"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|