@modern-js/create 2.65.2 → 2.65.3
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 +10 -119
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -18492,9 +18492,9 @@ var require_ms = __commonJS({
|
|
|
18492
18492
|
}
|
|
18493
18493
|
});
|
|
18494
18494
|
|
|
18495
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
18495
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
|
|
18496
18496
|
var require_common = __commonJS({
|
|
18497
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18497
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
|
|
18498
18498
|
"use strict";
|
|
18499
18499
|
function setup(env) {
|
|
18500
18500
|
createDebug.debug = createDebug;
|
|
@@ -18656,9 +18656,9 @@ var require_common = __commonJS({
|
|
|
18656
18656
|
}
|
|
18657
18657
|
});
|
|
18658
18658
|
|
|
18659
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
18659
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js
|
|
18660
18660
|
var require_browser = __commonJS({
|
|
18661
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18661
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
|
|
18662
18662
|
"use strict";
|
|
18663
18663
|
exports.formatArgs = formatArgs;
|
|
18664
18664
|
exports.save = save;
|
|
@@ -18827,118 +18827,9 @@ var require_browser = __commonJS({
|
|
|
18827
18827
|
}
|
|
18828
18828
|
});
|
|
18829
18829
|
|
|
18830
|
-
// ../../../node_modules/.pnpm/
|
|
18831
|
-
var require_has_flag2 = __commonJS({
|
|
18832
|
-
"../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
18833
|
-
"use strict";
|
|
18834
|
-
module2.exports = (flag, argv) => {
|
|
18835
|
-
argv = argv || process.argv;
|
|
18836
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
18837
|
-
const pos = argv.indexOf(prefix + flag);
|
|
18838
|
-
const terminatorPos = argv.indexOf("--");
|
|
18839
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
18840
|
-
};
|
|
18841
|
-
}
|
|
18842
|
-
});
|
|
18843
|
-
|
|
18844
|
-
// ../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
18845
|
-
var require_supports_color2 = __commonJS({
|
|
18846
|
-
"../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
18847
|
-
"use strict";
|
|
18848
|
-
var os3 = require("os");
|
|
18849
|
-
var hasFlag = require_has_flag2();
|
|
18850
|
-
var env = process.env;
|
|
18851
|
-
var forceColor;
|
|
18852
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
18853
|
-
forceColor = false;
|
|
18854
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
18855
|
-
forceColor = true;
|
|
18856
|
-
}
|
|
18857
|
-
if ("FORCE_COLOR" in env) {
|
|
18858
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
18859
|
-
}
|
|
18860
|
-
function translateLevel(level) {
|
|
18861
|
-
if (level === 0) {
|
|
18862
|
-
return false;
|
|
18863
|
-
}
|
|
18864
|
-
return {
|
|
18865
|
-
level,
|
|
18866
|
-
hasBasic: true,
|
|
18867
|
-
has256: level >= 2,
|
|
18868
|
-
has16m: level >= 3
|
|
18869
|
-
};
|
|
18870
|
-
}
|
|
18871
|
-
function supportsColor(stream4) {
|
|
18872
|
-
if (forceColor === false) {
|
|
18873
|
-
return 0;
|
|
18874
|
-
}
|
|
18875
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
18876
|
-
return 3;
|
|
18877
|
-
}
|
|
18878
|
-
if (hasFlag("color=256")) {
|
|
18879
|
-
return 2;
|
|
18880
|
-
}
|
|
18881
|
-
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
|
18882
|
-
return 0;
|
|
18883
|
-
}
|
|
18884
|
-
const min = forceColor ? 1 : 0;
|
|
18885
|
-
if (process.platform === "win32") {
|
|
18886
|
-
const osRelease = os3.release().split(".");
|
|
18887
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
18888
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
18889
|
-
}
|
|
18890
|
-
return 1;
|
|
18891
|
-
}
|
|
18892
|
-
if ("CI" in env) {
|
|
18893
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
18894
|
-
return 1;
|
|
18895
|
-
}
|
|
18896
|
-
return min;
|
|
18897
|
-
}
|
|
18898
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
18899
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
18900
|
-
}
|
|
18901
|
-
if (env.COLORTERM === "truecolor") {
|
|
18902
|
-
return 3;
|
|
18903
|
-
}
|
|
18904
|
-
if ("TERM_PROGRAM" in env) {
|
|
18905
|
-
const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
18906
|
-
switch (env.TERM_PROGRAM) {
|
|
18907
|
-
case "iTerm.app":
|
|
18908
|
-
return version2 >= 3 ? 3 : 2;
|
|
18909
|
-
case "Apple_Terminal":
|
|
18910
|
-
return 2;
|
|
18911
|
-
}
|
|
18912
|
-
}
|
|
18913
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
18914
|
-
return 2;
|
|
18915
|
-
}
|
|
18916
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
18917
|
-
return 1;
|
|
18918
|
-
}
|
|
18919
|
-
if ("COLORTERM" in env) {
|
|
18920
|
-
return 1;
|
|
18921
|
-
}
|
|
18922
|
-
if (env.TERM === "dumb") {
|
|
18923
|
-
return min;
|
|
18924
|
-
}
|
|
18925
|
-
return min;
|
|
18926
|
-
}
|
|
18927
|
-
function getSupportLevel(stream4) {
|
|
18928
|
-
const level = supportsColor(stream4);
|
|
18929
|
-
return translateLevel(level);
|
|
18930
|
-
}
|
|
18931
|
-
module2.exports = {
|
|
18932
|
-
supportsColor: getSupportLevel,
|
|
18933
|
-
stdout: getSupportLevel(process.stdout),
|
|
18934
|
-
stderr: getSupportLevel(process.stderr)
|
|
18935
|
-
};
|
|
18936
|
-
}
|
|
18937
|
-
});
|
|
18938
|
-
|
|
18939
|
-
// ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
18830
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js
|
|
18940
18831
|
var require_node2 = __commonJS({
|
|
18941
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18832
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
|
|
18942
18833
|
"use strict";
|
|
18943
18834
|
var tty = require("tty");
|
|
18944
18835
|
var util3 = require("util");
|
|
@@ -18955,7 +18846,7 @@ var require_node2 = __commonJS({
|
|
|
18955
18846
|
);
|
|
18956
18847
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
18957
18848
|
try {
|
|
18958
|
-
const supportsColor =
|
|
18849
|
+
const supportsColor = require_supports_color();
|
|
18959
18850
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
18960
18851
|
exports.colors = [
|
|
18961
18852
|
20,
|
|
@@ -19111,9 +19002,9 @@ var require_node2 = __commonJS({
|
|
|
19111
19002
|
}
|
|
19112
19003
|
});
|
|
19113
19004
|
|
|
19114
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
19005
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js
|
|
19115
19006
|
var require_src = __commonJS({
|
|
19116
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
19007
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
|
|
19117
19008
|
"use strict";
|
|
19118
19009
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
19119
19010
|
module2.exports = require_browser();
|
|
@@ -45915,7 +45806,7 @@ var CodeSmith = class {
|
|
|
45915
45806
|
};
|
|
45916
45807
|
|
|
45917
45808
|
// package.json
|
|
45918
|
-
var version = "2.65.
|
|
45809
|
+
var version = "2.65.3";
|
|
45919
45810
|
|
|
45920
45811
|
// src/utils/index.ts
|
|
45921
45812
|
var import_path9 = __toESM(require("path"));
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.65.
|
|
18
|
+
"version": "2.65.3",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"jest": "^29",
|
|
46
46
|
"ts-node": "^10.9.1",
|
|
47
47
|
"typescript": "^5",
|
|
48
|
-
"@modern-js/mwa-generator": "3.7.
|
|
49
|
-
"@modern-js/plugin-i18n": "2.65.
|
|
50
|
-
"@scripts/build": "2.65.
|
|
51
|
-
"@scripts/jest-config": "2.65.
|
|
48
|
+
"@modern-js/mwa-generator": "3.7.21",
|
|
49
|
+
"@modern-js/plugin-i18n": "2.65.3",
|
|
50
|
+
"@scripts/build": "2.65.3",
|
|
51
|
+
"@scripts/jest-config": "2.65.3"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"registry": "https://registry.npmjs.org/",
|