@modern-js/repo-generator 0.0.0-nightly-20240111170636 → 0.0.0-nightly-20240112170637
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 +190 -160
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __esm = (fn, res) => function __init() {
|
|
9
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
+
};
|
|
8
11
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
12
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
13
|
};
|
|
@@ -8704,11 +8707,11 @@ var require_ms = __commonJS({
|
|
|
8704
8707
|
}
|
|
8705
8708
|
});
|
|
8706
8709
|
|
|
8707
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
8710
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
|
|
8708
8711
|
var require_common2 = __commonJS({
|
|
8709
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
8712
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
8710
8713
|
"use strict";
|
|
8711
|
-
function setup(
|
|
8714
|
+
function setup(env2) {
|
|
8712
8715
|
createDebug.debug = createDebug;
|
|
8713
8716
|
createDebug.default = createDebug;
|
|
8714
8717
|
createDebug.coerce = coerce;
|
|
@@ -8717,8 +8720,8 @@ var require_common2 = __commonJS({
|
|
|
8717
8720
|
createDebug.enabled = enabled;
|
|
8718
8721
|
createDebug.humanize = require_ms();
|
|
8719
8722
|
createDebug.destroy = destroy2;
|
|
8720
|
-
Object.keys(
|
|
8721
|
-
createDebug[key] =
|
|
8723
|
+
Object.keys(env2).forEach((key) => {
|
|
8724
|
+
createDebug[key] = env2[key];
|
|
8722
8725
|
});
|
|
8723
8726
|
createDebug.names = [];
|
|
8724
8727
|
createDebug.skips = [];
|
|
@@ -8868,9 +8871,9 @@ var require_common2 = __commonJS({
|
|
|
8868
8871
|
}
|
|
8869
8872
|
});
|
|
8870
8873
|
|
|
8871
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
8874
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
|
|
8872
8875
|
var require_browser = __commonJS({
|
|
8873
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
8876
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
8874
8877
|
"use strict";
|
|
8875
8878
|
exports.formatArgs = formatArgs;
|
|
8876
8879
|
exports.save = save;
|
|
@@ -9038,120 +9041,147 @@ var require_browser = __commonJS({
|
|
|
9038
9041
|
}
|
|
9039
9042
|
});
|
|
9040
9043
|
|
|
9041
|
-
// ../../../../node_modules/.pnpm/
|
|
9042
|
-
var
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
argv = argv || process.argv;
|
|
9047
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
9048
|
-
const pos = argv.indexOf(prefix + flag);
|
|
9049
|
-
const terminatorPos = argv.indexOf("--");
|
|
9050
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
9051
|
-
};
|
|
9052
|
-
}
|
|
9044
|
+
// ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
|
|
9045
|
+
var supports_color_exports = {};
|
|
9046
|
+
__export(supports_color_exports, {
|
|
9047
|
+
createSupportsColor: () => createSupportsColor,
|
|
9048
|
+
default: () => supports_color_default
|
|
9053
9049
|
});
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
forceColor = false;
|
|
9065
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
9066
|
-
forceColor = true;
|
|
9050
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
9051
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
9052
|
+
const position = argv.indexOf(prefix + flag);
|
|
9053
|
+
const terminatorPosition = argv.indexOf("--");
|
|
9054
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
9055
|
+
}
|
|
9056
|
+
function envForceColor() {
|
|
9057
|
+
if ("FORCE_COLOR" in env) {
|
|
9058
|
+
if (env.FORCE_COLOR === "true") {
|
|
9059
|
+
return 1;
|
|
9067
9060
|
}
|
|
9068
|
-
if (
|
|
9069
|
-
|
|
9061
|
+
if (env.FORCE_COLOR === "false") {
|
|
9062
|
+
return 0;
|
|
9070
9063
|
}
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9064
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
9065
|
+
}
|
|
9066
|
+
}
|
|
9067
|
+
function translateLevel(level) {
|
|
9068
|
+
if (level === 0) {
|
|
9069
|
+
return false;
|
|
9070
|
+
}
|
|
9071
|
+
return {
|
|
9072
|
+
level,
|
|
9073
|
+
hasBasic: true,
|
|
9074
|
+
has256: level >= 2,
|
|
9075
|
+
has16m: level >= 3
|
|
9076
|
+
};
|
|
9077
|
+
}
|
|
9078
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
9079
|
+
const noFlagForceColor = envForceColor();
|
|
9080
|
+
if (noFlagForceColor !== void 0) {
|
|
9081
|
+
flagForceColor = noFlagForceColor;
|
|
9082
|
+
}
|
|
9083
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
9084
|
+
if (forceColor === 0) {
|
|
9085
|
+
return 0;
|
|
9086
|
+
}
|
|
9087
|
+
if (sniffFlags) {
|
|
9088
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
9089
|
+
return 3;
|
|
9081
9090
|
}
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9091
|
+
if (hasFlag("color=256")) {
|
|
9092
|
+
return 2;
|
|
9093
|
+
}
|
|
9094
|
+
}
|
|
9095
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
9096
|
+
return 1;
|
|
9097
|
+
}
|
|
9098
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
9099
|
+
return 0;
|
|
9100
|
+
}
|
|
9101
|
+
const min = forceColor || 0;
|
|
9102
|
+
if (env.TERM === "dumb") {
|
|
9103
|
+
return min;
|
|
9104
|
+
}
|
|
9105
|
+
if (import_node_process.default.platform === "win32") {
|
|
9106
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
9107
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
9108
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
9109
|
+
}
|
|
9110
|
+
return 1;
|
|
9111
|
+
}
|
|
9112
|
+
if ("CI" in env) {
|
|
9113
|
+
if ("GITHUB_ACTIONS" in env) {
|
|
9114
|
+
return 3;
|
|
9115
|
+
}
|
|
9116
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
9117
|
+
return 1;
|
|
9118
|
+
}
|
|
9119
|
+
return min;
|
|
9120
|
+
}
|
|
9121
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
9122
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
9123
|
+
}
|
|
9124
|
+
if (env.COLORTERM === "truecolor") {
|
|
9125
|
+
return 3;
|
|
9126
|
+
}
|
|
9127
|
+
if (env.TERM === "xterm-kitty") {
|
|
9128
|
+
return 3;
|
|
9129
|
+
}
|
|
9130
|
+
if ("TERM_PROGRAM" in env) {
|
|
9131
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
9132
|
+
switch (env.TERM_PROGRAM) {
|
|
9133
|
+
case "iTerm.app": {
|
|
9134
|
+
return version >= 3 ? 3 : 2;
|
|
9123
9135
|
}
|
|
9124
|
-
|
|
9136
|
+
case "Apple_Terminal": {
|
|
9125
9137
|
return 2;
|
|
9126
9138
|
}
|
|
9127
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
9128
|
-
return 1;
|
|
9129
|
-
}
|
|
9130
|
-
if ("COLORTERM" in env) {
|
|
9131
|
-
return 1;
|
|
9132
|
-
}
|
|
9133
|
-
if (env.TERM === "dumb") {
|
|
9134
|
-
return min;
|
|
9135
|
-
}
|
|
9136
|
-
return min;
|
|
9137
9139
|
}
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9140
|
+
}
|
|
9141
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
9142
|
+
return 2;
|
|
9143
|
+
}
|
|
9144
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
9145
|
+
return 1;
|
|
9146
|
+
}
|
|
9147
|
+
if ("COLORTERM" in env) {
|
|
9148
|
+
return 1;
|
|
9149
|
+
}
|
|
9150
|
+
return min;
|
|
9151
|
+
}
|
|
9152
|
+
function createSupportsColor(stream, options = {}) {
|
|
9153
|
+
const level = _supportsColor(stream, {
|
|
9154
|
+
streamIsTTY: stream && stream.isTTY,
|
|
9155
|
+
...options
|
|
9156
|
+
});
|
|
9157
|
+
return translateLevel(level);
|
|
9158
|
+
}
|
|
9159
|
+
var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
|
|
9160
|
+
var init_supports_color = __esm({
|
|
9161
|
+
"../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
|
|
9162
|
+
"use strict";
|
|
9163
|
+
import_node_process = __toESM(require("process"));
|
|
9164
|
+
import_node_os = __toESM(require("os"));
|
|
9165
|
+
import_node_tty = __toESM(require("tty"));
|
|
9166
|
+
({ env } = import_node_process.default);
|
|
9167
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
9168
|
+
flagForceColor = 0;
|
|
9169
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
9170
|
+
flagForceColor = 1;
|
|
9141
9171
|
}
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
stderr: getSupportLevel(process.stderr)
|
|
9172
|
+
supportsColor = {
|
|
9173
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
9174
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
9146
9175
|
};
|
|
9176
|
+
supports_color_default = supportsColor;
|
|
9147
9177
|
}
|
|
9148
9178
|
});
|
|
9149
9179
|
|
|
9150
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
9180
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
|
|
9151
9181
|
var require_node = __commonJS({
|
|
9152
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
9182
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
9153
9183
|
"use strict";
|
|
9154
|
-
var
|
|
9184
|
+
var tty2 = require("tty");
|
|
9155
9185
|
var util = require("util");
|
|
9156
9186
|
exports.init = init;
|
|
9157
9187
|
exports.log = log;
|
|
@@ -9166,8 +9196,8 @@ var require_node = __commonJS({
|
|
|
9166
9196
|
);
|
|
9167
9197
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
9168
9198
|
try {
|
|
9169
|
-
const
|
|
9170
|
-
if (
|
|
9199
|
+
const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
9200
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
9171
9201
|
exports.colors = [
|
|
9172
9202
|
20,
|
|
9173
9203
|
21,
|
|
@@ -9269,7 +9299,7 @@ var require_node = __commonJS({
|
|
|
9269
9299
|
return obj;
|
|
9270
9300
|
}, {});
|
|
9271
9301
|
function useColors() {
|
|
9272
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
9302
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
9273
9303
|
}
|
|
9274
9304
|
function formatArgs(args) {
|
|
9275
9305
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -9322,9 +9352,9 @@ var require_node = __commonJS({
|
|
|
9322
9352
|
}
|
|
9323
9353
|
});
|
|
9324
9354
|
|
|
9325
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
9355
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
|
|
9326
9356
|
var require_src3 = __commonJS({
|
|
9327
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
9357
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
9328
9358
|
"use strict";
|
|
9329
9359
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
9330
9360
|
module2.exports = require_browser();
|
|
@@ -17722,15 +17752,15 @@ var require_runtime = __commonJS({
|
|
|
17722
17752
|
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] + ").");
|
|
17723
17753
|
}
|
|
17724
17754
|
}
|
|
17725
|
-
function template(templateSpec,
|
|
17726
|
-
if (!
|
|
17755
|
+
function template(templateSpec, env2) {
|
|
17756
|
+
if (!env2) {
|
|
17727
17757
|
throw new _exception2["default"]("No environment passed to template");
|
|
17728
17758
|
}
|
|
17729
17759
|
if (!templateSpec || !templateSpec.main) {
|
|
17730
17760
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
|
17731
17761
|
}
|
|
17732
17762
|
templateSpec.main.decorator = templateSpec.main_d;
|
|
17733
|
-
|
|
17763
|
+
env2.VM.checkRevision(templateSpec.compiler);
|
|
17734
17764
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
|
17735
17765
|
function invokePartialWrapper(partial, context, options) {
|
|
17736
17766
|
if (options.hash) {
|
|
@@ -17739,14 +17769,14 @@ var require_runtime = __commonJS({
|
|
|
17739
17769
|
options.ids[0] = true;
|
|
17740
17770
|
}
|
|
17741
17771
|
}
|
|
17742
|
-
partial =
|
|
17772
|
+
partial = env2.VM.resolvePartial.call(this, partial, context, options);
|
|
17743
17773
|
var extendedOptions = Utils.extend({}, options, {
|
|
17744
17774
|
hooks: this.hooks,
|
|
17745
17775
|
protoAccessControl: this.protoAccessControl
|
|
17746
17776
|
});
|
|
17747
|
-
var result =
|
|
17748
|
-
if (result == null &&
|
|
17749
|
-
options.partials[options.name] =
|
|
17777
|
+
var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
|
|
17778
|
+
if (result == null && env2.compile) {
|
|
17779
|
+
options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
|
|
17750
17780
|
result = options.partials[options.name](context, extendedOptions);
|
|
17751
17781
|
}
|
|
17752
17782
|
if (result != null) {
|
|
@@ -17831,7 +17861,7 @@ var require_runtime = __commonJS({
|
|
|
17831
17861
|
},
|
|
17832
17862
|
// An empty object to use as replacement for null-contexts
|
|
17833
17863
|
nullContext: Object.seal({}),
|
|
17834
|
-
noop:
|
|
17864
|
+
noop: env2.VM.noop,
|
|
17835
17865
|
compilerInfo: templateSpec.compiler
|
|
17836
17866
|
};
|
|
17837
17867
|
function ret(context) {
|
|
@@ -17858,14 +17888,14 @@ var require_runtime = __commonJS({
|
|
|
17858
17888
|
ret.isTop = true;
|
|
17859
17889
|
ret._setup = function(options) {
|
|
17860
17890
|
if (!options.partial) {
|
|
17861
|
-
var mergedHelpers = Utils.extend({},
|
|
17891
|
+
var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
|
|
17862
17892
|
wrapHelpersToPassLookupProperty(mergedHelpers, container);
|
|
17863
17893
|
container.helpers = mergedHelpers;
|
|
17864
17894
|
if (templateSpec.usePartial) {
|
|
17865
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
|
17895
|
+
container.partials = container.mergeIfNeeded(options.partials, env2.partials);
|
|
17866
17896
|
}
|
|
17867
17897
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
|
17868
|
-
container.decorators = Utils.extend({},
|
|
17898
|
+
container.decorators = Utils.extend({}, env2.decorators, options.decorators);
|
|
17869
17899
|
}
|
|
17870
17900
|
container.hooks = {};
|
|
17871
17901
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
|
@@ -19667,7 +19697,7 @@ var require_compiler = __commonJS({
|
|
|
19667
19697
|
}
|
|
19668
19698
|
}
|
|
19669
19699
|
};
|
|
19670
|
-
function precompile(input, options,
|
|
19700
|
+
function precompile(input, options, env2) {
|
|
19671
19701
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
19672
19702
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
|
19673
19703
|
}
|
|
@@ -19678,10 +19708,10 @@ var require_compiler = __commonJS({
|
|
|
19678
19708
|
if (options.compat) {
|
|
19679
19709
|
options.useDepths = true;
|
|
19680
19710
|
}
|
|
19681
|
-
var ast =
|
|
19682
|
-
return new
|
|
19711
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
|
|
19712
|
+
return new env2.JavaScriptCompiler().compile(environment, options);
|
|
19683
19713
|
}
|
|
19684
|
-
function compile3(input, options,
|
|
19714
|
+
function compile3(input, options, env2) {
|
|
19685
19715
|
if (options === void 0)
|
|
19686
19716
|
options = {};
|
|
19687
19717
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
|
@@ -19696,8 +19726,8 @@ var require_compiler = __commonJS({
|
|
|
19696
19726
|
}
|
|
19697
19727
|
var compiled = void 0;
|
|
19698
19728
|
function compileInput() {
|
|
19699
|
-
var ast =
|
|
19700
|
-
return
|
|
19729
|
+
var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
|
|
19730
|
+
return env2.template(templateSpec);
|
|
19701
19731
|
}
|
|
19702
19732
|
function ret(context, execOptions) {
|
|
19703
19733
|
if (!compiled) {
|
|
@@ -24623,13 +24653,13 @@ var require_chalk = __commonJS({
|
|
|
24623
24653
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
|
24624
24654
|
}
|
|
24625
24655
|
}
|
|
24626
|
-
function
|
|
24656
|
+
function translateLevel2(e3) {
|
|
24627
24657
|
if (e3 === 0) {
|
|
24628
24658
|
return false;
|
|
24629
24659
|
}
|
|
24630
24660
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
|
24631
24661
|
}
|
|
24632
|
-
function
|
|
24662
|
+
function supportsColor2(e3, t3) {
|
|
24633
24663
|
if (c === 0) {
|
|
24634
24664
|
return 0;
|
|
24635
24665
|
}
|
|
@@ -24686,10 +24716,10 @@ var require_chalk = __commonJS({
|
|
|
24686
24716
|
return n3;
|
|
24687
24717
|
}
|
|
24688
24718
|
function getSupportLevel(e3) {
|
|
24689
|
-
const t3 =
|
|
24690
|
-
return
|
|
24719
|
+
const t3 = supportsColor2(e3, e3 && e3.isTTY);
|
|
24720
|
+
return translateLevel2(t3);
|
|
24691
24721
|
}
|
|
24692
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
|
24722
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
|
|
24693
24723
|
}, 37: (e2) => {
|
|
24694
24724
|
"use strict";
|
|
24695
24725
|
e2.exports = require("os");
|
|
@@ -29615,7 +29645,7 @@ var require_innerFrom = __commonJS({
|
|
|
29615
29645
|
exports.fromIterable = fromIterable;
|
|
29616
29646
|
function fromAsyncIterable(asyncIterable) {
|
|
29617
29647
|
return new Observable_1.Observable(function(subscriber) {
|
|
29618
|
-
|
|
29648
|
+
process3(asyncIterable, subscriber).catch(function(err) {
|
|
29619
29649
|
return subscriber.error(err);
|
|
29620
29650
|
});
|
|
29621
29651
|
});
|
|
@@ -29625,7 +29655,7 @@ var require_innerFrom = __commonJS({
|
|
|
29625
29655
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
29626
29656
|
}
|
|
29627
29657
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
29628
|
-
function
|
|
29658
|
+
function process3(asyncIterable, subscriber) {
|
|
29629
29659
|
var asyncIterable_1, asyncIterable_1_1;
|
|
29630
29660
|
var e_2, _a2;
|
|
29631
29661
|
return __awaiter6(this, void 0, void 0, function() {
|
|
@@ -36906,11 +36936,11 @@ var require_signals = __commonJS({
|
|
|
36906
36936
|
var require_signal_exit = __commonJS({
|
|
36907
36937
|
"../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
|
36908
36938
|
"use strict";
|
|
36909
|
-
var
|
|
36910
|
-
var processOk = function(
|
|
36911
|
-
return
|
|
36939
|
+
var process3 = global.process;
|
|
36940
|
+
var processOk = function(process4) {
|
|
36941
|
+
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";
|
|
36912
36942
|
};
|
|
36913
|
-
if (!processOk(
|
|
36943
|
+
if (!processOk(process3)) {
|
|
36914
36944
|
module2.exports = function() {
|
|
36915
36945
|
return function() {
|
|
36916
36946
|
};
|
|
@@ -36918,15 +36948,15 @@ var require_signal_exit = __commonJS({
|
|
|
36918
36948
|
} else {
|
|
36919
36949
|
assert = require("assert");
|
|
36920
36950
|
signals = require_signals();
|
|
36921
|
-
isWin = /^win/i.test(
|
|
36951
|
+
isWin = /^win/i.test(process3.platform);
|
|
36922
36952
|
EE = require("events");
|
|
36923
36953
|
if (typeof EE !== "function") {
|
|
36924
36954
|
EE = EE.EventEmitter;
|
|
36925
36955
|
}
|
|
36926
|
-
if (
|
|
36927
|
-
emitter =
|
|
36956
|
+
if (process3.__signal_exit_emitter__) {
|
|
36957
|
+
emitter = process3.__signal_exit_emitter__;
|
|
36928
36958
|
} else {
|
|
36929
|
-
emitter =
|
|
36959
|
+
emitter = process3.__signal_exit_emitter__ = new EE();
|
|
36930
36960
|
emitter.count = 0;
|
|
36931
36961
|
emitter.emitted = {};
|
|
36932
36962
|
}
|
|
@@ -36963,12 +36993,12 @@ var require_signal_exit = __commonJS({
|
|
|
36963
36993
|
loaded = false;
|
|
36964
36994
|
signals.forEach(function(sig) {
|
|
36965
36995
|
try {
|
|
36966
|
-
|
|
36996
|
+
process3.removeListener(sig, sigListeners[sig]);
|
|
36967
36997
|
} catch (er) {
|
|
36968
36998
|
}
|
|
36969
36999
|
});
|
|
36970
|
-
|
|
36971
|
-
|
|
37000
|
+
process3.emit = originalProcessEmit;
|
|
37001
|
+
process3.reallyExit = originalProcessReallyExit;
|
|
36972
37002
|
emitter.count -= 1;
|
|
36973
37003
|
};
|
|
36974
37004
|
module2.exports.unload = unload;
|
|
@@ -36985,7 +37015,7 @@ var require_signal_exit = __commonJS({
|
|
|
36985
37015
|
if (!processOk(global.process)) {
|
|
36986
37016
|
return;
|
|
36987
37017
|
}
|
|
36988
|
-
var listeners =
|
|
37018
|
+
var listeners = process3.listeners(sig);
|
|
36989
37019
|
if (listeners.length === emitter.count) {
|
|
36990
37020
|
unload();
|
|
36991
37021
|
emit("exit", null, sig);
|
|
@@ -36993,7 +37023,7 @@ var require_signal_exit = __commonJS({
|
|
|
36993
37023
|
if (isWin && sig === "SIGHUP") {
|
|
36994
37024
|
sig = "SIGINT";
|
|
36995
37025
|
}
|
|
36996
|
-
|
|
37026
|
+
process3.kill(process3.pid, sig);
|
|
36997
37027
|
}
|
|
36998
37028
|
};
|
|
36999
37029
|
});
|
|
@@ -37009,36 +37039,36 @@ var require_signal_exit = __commonJS({
|
|
|
37009
37039
|
emitter.count += 1;
|
|
37010
37040
|
signals = signals.filter(function(sig) {
|
|
37011
37041
|
try {
|
|
37012
|
-
|
|
37042
|
+
process3.on(sig, sigListeners[sig]);
|
|
37013
37043
|
return true;
|
|
37014
37044
|
} catch (er) {
|
|
37015
37045
|
return false;
|
|
37016
37046
|
}
|
|
37017
37047
|
});
|
|
37018
|
-
|
|
37019
|
-
|
|
37048
|
+
process3.emit = processEmit;
|
|
37049
|
+
process3.reallyExit = processReallyExit;
|
|
37020
37050
|
};
|
|
37021
37051
|
module2.exports.load = load;
|
|
37022
|
-
originalProcessReallyExit =
|
|
37052
|
+
originalProcessReallyExit = process3.reallyExit;
|
|
37023
37053
|
processReallyExit = function processReallyExit2(code) {
|
|
37024
37054
|
if (!processOk(global.process)) {
|
|
37025
37055
|
return;
|
|
37026
37056
|
}
|
|
37027
|
-
|
|
37057
|
+
process3.exitCode = code || /* istanbul ignore next */
|
|
37028
37058
|
0;
|
|
37029
|
-
emit("exit",
|
|
37030
|
-
emit("afterexit",
|
|
37031
|
-
originalProcessReallyExit.call(
|
|
37059
|
+
emit("exit", process3.exitCode, null);
|
|
37060
|
+
emit("afterexit", process3.exitCode, null);
|
|
37061
|
+
originalProcessReallyExit.call(process3, process3.exitCode);
|
|
37032
37062
|
};
|
|
37033
|
-
originalProcessEmit =
|
|
37063
|
+
originalProcessEmit = process3.emit;
|
|
37034
37064
|
processEmit = function processEmit2(ev, arg) {
|
|
37035
37065
|
if (ev === "exit" && processOk(global.process)) {
|
|
37036
37066
|
if (arg !== void 0) {
|
|
37037
|
-
|
|
37067
|
+
process3.exitCode = arg;
|
|
37038
37068
|
}
|
|
37039
37069
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
37040
|
-
emit("exit",
|
|
37041
|
-
emit("afterexit",
|
|
37070
|
+
emit("exit", process3.exitCode, null);
|
|
37071
|
+
emit("afterexit", process3.exitCode, null);
|
|
37042
37072
|
return ret;
|
|
37043
37073
|
} else {
|
|
37044
37074
|
return originalProcessEmit.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-nightly-
|
|
18
|
+
"version": "0.0.0-nightly-20240112170637",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@modern-js/utils": "0.0.0-nightly-
|
|
26
|
+
"@modern-js/utils": "0.0.0-nightly-20240112170637"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@modern-js/codesmith": "2.3.2",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^29",
|
|
34
34
|
"typescript": "^5",
|
|
35
|
-
"@modern-js/base-generator": "0.0.0-nightly-
|
|
36
|
-
"@modern-js/generator-common": "0.0.0-nightly-
|
|
37
|
-
"@modern-js/generator-plugin": "0.0.0-nightly-
|
|
38
|
-
"@modern-js/generator-utils": "0.0.0-nightly-
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@modern-js/
|
|
41
|
-
"@modern-js/mwa-generator": "0.0.0-nightly-
|
|
42
|
-
"@scripts/build": "0.0.0-nightly-
|
|
43
|
-
"@scripts/jest-config": "0.0.0-nightly-
|
|
35
|
+
"@modern-js/base-generator": "0.0.0-nightly-20240112170637",
|
|
36
|
+
"@modern-js/generator-common": "0.0.0-nightly-20240112170637",
|
|
37
|
+
"@modern-js/generator-plugin": "0.0.0-nightly-20240112170637",
|
|
38
|
+
"@modern-js/generator-utils": "0.0.0-nightly-20240112170637",
|
|
39
|
+
"@modern-js/monorepo-generator": "0.0.0-nightly-20240112170637",
|
|
40
|
+
"@modern-js/module-generator": "0.0.0-nightly-20240112170637",
|
|
41
|
+
"@modern-js/mwa-generator": "0.0.0-nightly-20240112170637",
|
|
42
|
+
"@scripts/build": "0.0.0-nightly-20240112170637",
|
|
43
|
+
"@scripts/jest-config": "0.0.0-nightly-20240112170637"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|