@modern-js/create 2.63.7 → 2.64.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 +10 -119
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -18462,9 +18462,9 @@ var require_ms = __commonJS({
|
|
|
18462
18462
|
}
|
|
18463
18463
|
});
|
|
18464
18464
|
|
|
18465
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
18465
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
|
|
18466
18466
|
var require_common = __commonJS({
|
|
18467
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18467
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
|
|
18468
18468
|
"use strict";
|
|
18469
18469
|
function setup(env) {
|
|
18470
18470
|
createDebug.debug = createDebug;
|
|
@@ -18626,9 +18626,9 @@ var require_common = __commonJS({
|
|
|
18626
18626
|
}
|
|
18627
18627
|
});
|
|
18628
18628
|
|
|
18629
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
18629
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js
|
|
18630
18630
|
var require_browser = __commonJS({
|
|
18631
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18631
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
|
|
18632
18632
|
"use strict";
|
|
18633
18633
|
exports.formatArgs = formatArgs;
|
|
18634
18634
|
exports.save = save;
|
|
@@ -18797,118 +18797,9 @@ var require_browser = __commonJS({
|
|
|
18797
18797
|
}
|
|
18798
18798
|
});
|
|
18799
18799
|
|
|
18800
|
-
// ../../../node_modules/.pnpm/
|
|
18801
|
-
var require_has_flag2 = __commonJS({
|
|
18802
|
-
"../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
18803
|
-
"use strict";
|
|
18804
|
-
module2.exports = (flag, argv) => {
|
|
18805
|
-
argv = argv || process.argv;
|
|
18806
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
18807
|
-
const pos = argv.indexOf(prefix + flag);
|
|
18808
|
-
const terminatorPos = argv.indexOf("--");
|
|
18809
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
18810
|
-
};
|
|
18811
|
-
}
|
|
18812
|
-
});
|
|
18813
|
-
|
|
18814
|
-
// ../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
18815
|
-
var require_supports_color2 = __commonJS({
|
|
18816
|
-
"../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
18817
|
-
"use strict";
|
|
18818
|
-
var os3 = require("os");
|
|
18819
|
-
var hasFlag = require_has_flag2();
|
|
18820
|
-
var env = process.env;
|
|
18821
|
-
var forceColor;
|
|
18822
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
18823
|
-
forceColor = false;
|
|
18824
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
18825
|
-
forceColor = true;
|
|
18826
|
-
}
|
|
18827
|
-
if ("FORCE_COLOR" in env) {
|
|
18828
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
18829
|
-
}
|
|
18830
|
-
function translateLevel(level) {
|
|
18831
|
-
if (level === 0) {
|
|
18832
|
-
return false;
|
|
18833
|
-
}
|
|
18834
|
-
return {
|
|
18835
|
-
level,
|
|
18836
|
-
hasBasic: true,
|
|
18837
|
-
has256: level >= 2,
|
|
18838
|
-
has16m: level >= 3
|
|
18839
|
-
};
|
|
18840
|
-
}
|
|
18841
|
-
function supportsColor(stream4) {
|
|
18842
|
-
if (forceColor === false) {
|
|
18843
|
-
return 0;
|
|
18844
|
-
}
|
|
18845
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
18846
|
-
return 3;
|
|
18847
|
-
}
|
|
18848
|
-
if (hasFlag("color=256")) {
|
|
18849
|
-
return 2;
|
|
18850
|
-
}
|
|
18851
|
-
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
|
18852
|
-
return 0;
|
|
18853
|
-
}
|
|
18854
|
-
const min = forceColor ? 1 : 0;
|
|
18855
|
-
if (process.platform === "win32") {
|
|
18856
|
-
const osRelease = os3.release().split(".");
|
|
18857
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
18858
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
18859
|
-
}
|
|
18860
|
-
return 1;
|
|
18861
|
-
}
|
|
18862
|
-
if ("CI" in env) {
|
|
18863
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
18864
|
-
return 1;
|
|
18865
|
-
}
|
|
18866
|
-
return min;
|
|
18867
|
-
}
|
|
18868
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
18869
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
18870
|
-
}
|
|
18871
|
-
if (env.COLORTERM === "truecolor") {
|
|
18872
|
-
return 3;
|
|
18873
|
-
}
|
|
18874
|
-
if ("TERM_PROGRAM" in env) {
|
|
18875
|
-
const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
18876
|
-
switch (env.TERM_PROGRAM) {
|
|
18877
|
-
case "iTerm.app":
|
|
18878
|
-
return version2 >= 3 ? 3 : 2;
|
|
18879
|
-
case "Apple_Terminal":
|
|
18880
|
-
return 2;
|
|
18881
|
-
}
|
|
18882
|
-
}
|
|
18883
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
18884
|
-
return 2;
|
|
18885
|
-
}
|
|
18886
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
18887
|
-
return 1;
|
|
18888
|
-
}
|
|
18889
|
-
if ("COLORTERM" in env) {
|
|
18890
|
-
return 1;
|
|
18891
|
-
}
|
|
18892
|
-
if (env.TERM === "dumb") {
|
|
18893
|
-
return min;
|
|
18894
|
-
}
|
|
18895
|
-
return min;
|
|
18896
|
-
}
|
|
18897
|
-
function getSupportLevel(stream4) {
|
|
18898
|
-
const level = supportsColor(stream4);
|
|
18899
|
-
return translateLevel(level);
|
|
18900
|
-
}
|
|
18901
|
-
module2.exports = {
|
|
18902
|
-
supportsColor: getSupportLevel,
|
|
18903
|
-
stdout: getSupportLevel(process.stdout),
|
|
18904
|
-
stderr: getSupportLevel(process.stderr)
|
|
18905
|
-
};
|
|
18906
|
-
}
|
|
18907
|
-
});
|
|
18908
|
-
|
|
18909
|
-
// ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
18800
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js
|
|
18910
18801
|
var require_node2 = __commonJS({
|
|
18911
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18802
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
|
|
18912
18803
|
"use strict";
|
|
18913
18804
|
var tty = require("tty");
|
|
18914
18805
|
var util3 = require("util");
|
|
@@ -18925,7 +18816,7 @@ var require_node2 = __commonJS({
|
|
|
18925
18816
|
);
|
|
18926
18817
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
18927
18818
|
try {
|
|
18928
|
-
const supportsColor =
|
|
18819
|
+
const supportsColor = require_supports_color();
|
|
18929
18820
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
18930
18821
|
exports.colors = [
|
|
18931
18822
|
20,
|
|
@@ -19081,9 +18972,9 @@ var require_node2 = __commonJS({
|
|
|
19081
18972
|
}
|
|
19082
18973
|
});
|
|
19083
18974
|
|
|
19084
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
18975
|
+
// ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js
|
|
19085
18976
|
var require_src = __commonJS({
|
|
19086
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18977
|
+
"../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
|
|
19087
18978
|
"use strict";
|
|
19088
18979
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
19089
18980
|
module2.exports = require_browser();
|
|
@@ -45882,7 +45773,7 @@ var CodeSmith = class {
|
|
|
45882
45773
|
};
|
|
45883
45774
|
|
|
45884
45775
|
// package.json
|
|
45885
|
-
var version = "2.
|
|
45776
|
+
var version = "2.64.1";
|
|
45886
45777
|
|
|
45887
45778
|
// src/utils/index.ts
|
|
45888
45779
|
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.
|
|
18
|
+
"version": "2.64.1",
|
|
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/
|
|
49
|
-
"@modern-js/
|
|
50
|
-
"@scripts/build": "2.
|
|
51
|
-
"@scripts/jest-config": "2.
|
|
48
|
+
"@modern-js/plugin-i18n": "2.64.1",
|
|
49
|
+
"@modern-js/mwa-generator": "3.7.15",
|
|
50
|
+
"@scripts/build": "2.64.1",
|
|
51
|
+
"@scripts/jest-config": "2.64.1"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"registry": "https://registry.npmjs.org/",
|