@modern-js/bff-generator 2.3.0 → 2.3.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 +1878 -832
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5381,7 +5381,7 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
5381
5381
|
if (typeof Symbol === "function") {
|
|
5382
5382
|
Readable.prototype[Symbol.asyncIterator] = function() {
|
|
5383
5383
|
if (S === void 0) {
|
|
5384
|
-
S = r2(
|
|
5384
|
+
S = r2(87);
|
|
5385
5385
|
}
|
|
5386
5386
|
return S(this);
|
|
5387
5387
|
};
|
|
@@ -6006,7 +6006,7 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6006
6006
|
Writable.prototype._destroy = function(e3, t3) {
|
|
6007
6007
|
t3(e3);
|
|
6008
6008
|
};
|
|
6009
|
-
},
|
|
6009
|
+
}, 87: (e2, t2, r2) => {
|
|
6010
6010
|
"use strict";
|
|
6011
6011
|
var i;
|
|
6012
6012
|
function _defineProperty3(e3, t3, r3) {
|
|
@@ -6762,7 +6762,7 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6762
6762
|
}, 598: (e2, t2, r2) => {
|
|
6763
6763
|
"use strict";
|
|
6764
6764
|
const i = r2(591);
|
|
6765
|
-
const n = r2(
|
|
6765
|
+
const n = r2(580);
|
|
6766
6766
|
e2.exports = i(() => {
|
|
6767
6767
|
n(() => {
|
|
6768
6768
|
process.stderr.write("\x1B[?25h");
|
|
@@ -6821,17 +6821,19 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6821
6821
|
}
|
|
6822
6822
|
return i.SlowBuffer(e3);
|
|
6823
6823
|
};
|
|
6824
|
-
},
|
|
6824
|
+
}, 580: (e2, t2, r2) => {
|
|
6825
6825
|
var i = global.process;
|
|
6826
6826
|
const processOk = function(e3) {
|
|
6827
6827
|
return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
|
|
6828
6828
|
};
|
|
6829
6829
|
if (!processOk(i)) {
|
|
6830
6830
|
e2.exports = function() {
|
|
6831
|
+
return function() {
|
|
6832
|
+
};
|
|
6831
6833
|
};
|
|
6832
6834
|
} else {
|
|
6833
6835
|
var n = r2(491);
|
|
6834
|
-
var s = r2(
|
|
6836
|
+
var s = r2(357);
|
|
6835
6837
|
var a = /^win/i.test(i.platform);
|
|
6836
6838
|
var o = r2(361);
|
|
6837
6839
|
if (typeof o !== "function") {
|
|
@@ -6851,7 +6853,8 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6851
6853
|
}
|
|
6852
6854
|
e2.exports = function(e3, t3) {
|
|
6853
6855
|
if (!processOk(global.process)) {
|
|
6854
|
-
return
|
|
6856
|
+
return function() {
|
|
6857
|
+
};
|
|
6855
6858
|
}
|
|
6856
6859
|
n.equal(typeof e3, "function", "a callback must be provided for exit handler");
|
|
6857
6860
|
if (d === false) {
|
|
@@ -6958,7 +6961,7 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6958
6961
|
}
|
|
6959
6962
|
};
|
|
6960
6963
|
}
|
|
6961
|
-
},
|
|
6964
|
+
}, 357: (e2) => {
|
|
6962
6965
|
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
|
|
6963
6966
|
if (process.platform !== "win32") {
|
|
6964
6967
|
e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
@@ -7496,13 +7499,13 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
7496
7499
|
} else {
|
|
7497
7500
|
E = String(S);
|
|
7498
7501
|
if (k) {
|
|
7499
|
-
var
|
|
7500
|
-
if (
|
|
7501
|
-
var
|
|
7502
|
+
var x = g - E.length;
|
|
7503
|
+
if (x > 0) {
|
|
7504
|
+
var O = new Array(x + 1).join("0");
|
|
7502
7505
|
if (S < 0)
|
|
7503
|
-
E = "-" +
|
|
7506
|
+
E = "-" + O + E.slice(1);
|
|
7504
7507
|
else
|
|
7505
|
-
E =
|
|
7508
|
+
E = O + E;
|
|
7506
7509
|
}
|
|
7507
7510
|
}
|
|
7508
7511
|
}
|
|
@@ -7809,7 +7812,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
7809
7812
|
}
|
|
7810
7813
|
var i = r2(147);
|
|
7811
7814
|
var a = r2(17);
|
|
7812
|
-
var n = r2(
|
|
7815
|
+
var n = r2(235);
|
|
7813
7816
|
var s = r2(249);
|
|
7814
7817
|
var o = n.Minimatch;
|
|
7815
7818
|
function alphasort(t3, e3) {
|
|
@@ -7984,7 +7987,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
7984
7987
|
}, 978: (t2, e2, r2) => {
|
|
7985
7988
|
t2.exports = glob;
|
|
7986
7989
|
var i = r2(737);
|
|
7987
|
-
var a = r2(
|
|
7990
|
+
var a = r2(235);
|
|
7988
7991
|
var n = a.Minimatch;
|
|
7989
7992
|
var s = r2(315);
|
|
7990
7993
|
var o = r2(361).EventEmitter;
|
|
@@ -8533,7 +8536,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
8533
8536
|
t2.exports = globSync;
|
|
8534
8537
|
globSync.GlobSync = GlobSync;
|
|
8535
8538
|
var i = r2(737);
|
|
8536
|
-
var a = r2(
|
|
8539
|
+
var a = r2(235);
|
|
8537
8540
|
var n = a.Minimatch;
|
|
8538
8541
|
var s = r2(978).Glob;
|
|
8539
8542
|
var o = r2(837);
|
|
@@ -8945,14 +8948,16 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
8945
8948
|
}
|
|
8946
8949
|
};
|
|
8947
8950
|
}
|
|
8948
|
-
},
|
|
8951
|
+
}, 235: (t2, e2, r2) => {
|
|
8949
8952
|
t2.exports = minimatch;
|
|
8950
8953
|
minimatch.Minimatch = Minimatch;
|
|
8951
|
-
var i = {
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8954
|
+
var i = function() {
|
|
8955
|
+
try {
|
|
8956
|
+
return r2(17);
|
|
8957
|
+
} catch (t3) {
|
|
8958
|
+
}
|
|
8959
|
+
}() || { sep: "/" };
|
|
8960
|
+
minimatch.sep = i.sep;
|
|
8956
8961
|
var a = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
8957
8962
|
var n = r2(847);
|
|
8958
8963
|
var s = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } };
|
|
@@ -8976,58 +8981,68 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
8976
8981
|
};
|
|
8977
8982
|
}
|
|
8978
8983
|
function ext(t3, e3) {
|
|
8979
|
-
t3 = t3 || {};
|
|
8980
8984
|
e3 = e3 || {};
|
|
8981
8985
|
var r3 = {};
|
|
8982
|
-
Object.keys(e3).forEach(function(t4) {
|
|
8983
|
-
r3[t4] = e3[t4];
|
|
8984
|
-
});
|
|
8985
8986
|
Object.keys(t3).forEach(function(e4) {
|
|
8986
8987
|
r3[e4] = t3[e4];
|
|
8987
8988
|
});
|
|
8989
|
+
Object.keys(e3).forEach(function(t4) {
|
|
8990
|
+
r3[t4] = e3[t4];
|
|
8991
|
+
});
|
|
8988
8992
|
return r3;
|
|
8989
8993
|
}
|
|
8990
8994
|
minimatch.defaults = function(t3) {
|
|
8991
|
-
if (!t3 || !Object.keys(t3).length)
|
|
8995
|
+
if (!t3 || typeof t3 !== "object" || !Object.keys(t3).length) {
|
|
8992
8996
|
return minimatch;
|
|
8997
|
+
}
|
|
8993
8998
|
var e3 = minimatch;
|
|
8994
8999
|
var r3 = function minimatch2(r4, i2, a2) {
|
|
8995
|
-
return e3
|
|
9000
|
+
return e3(r4, i2, ext(t3, a2));
|
|
8996
9001
|
};
|
|
8997
9002
|
r3.Minimatch = function Minimatch2(r4, i2) {
|
|
8998
9003
|
return new e3.Minimatch(r4, ext(t3, i2));
|
|
8999
9004
|
};
|
|
9005
|
+
r3.Minimatch.defaults = function defaults(r4) {
|
|
9006
|
+
return e3.defaults(ext(t3, r4)).Minimatch;
|
|
9007
|
+
};
|
|
9008
|
+
r3.filter = function filter4(r4, i2) {
|
|
9009
|
+
return e3.filter(r4, ext(t3, i2));
|
|
9010
|
+
};
|
|
9011
|
+
r3.defaults = function defaults(r4) {
|
|
9012
|
+
return e3.defaults(ext(t3, r4));
|
|
9013
|
+
};
|
|
9014
|
+
r3.makeRe = function makeRe2(r4, i2) {
|
|
9015
|
+
return e3.makeRe(r4, ext(t3, i2));
|
|
9016
|
+
};
|
|
9017
|
+
r3.braceExpand = function braceExpand2(r4, i2) {
|
|
9018
|
+
return e3.braceExpand(r4, ext(t3, i2));
|
|
9019
|
+
};
|
|
9020
|
+
r3.match = function(r4, i2, a2) {
|
|
9021
|
+
return e3.match(r4, i2, ext(t3, a2));
|
|
9022
|
+
};
|
|
9000
9023
|
return r3;
|
|
9001
9024
|
};
|
|
9002
9025
|
Minimatch.defaults = function(t3) {
|
|
9003
|
-
if (!t3 || !Object.keys(t3).length)
|
|
9004
|
-
return Minimatch;
|
|
9005
9026
|
return minimatch.defaults(t3).Minimatch;
|
|
9006
9027
|
};
|
|
9007
9028
|
function minimatch(t3, e3, r3) {
|
|
9008
|
-
|
|
9009
|
-
throw new TypeError("glob pattern string required");
|
|
9010
|
-
}
|
|
9029
|
+
assertValidPattern(e3);
|
|
9011
9030
|
if (!r3)
|
|
9012
9031
|
r3 = {};
|
|
9013
9032
|
if (!r3.nocomment && e3.charAt(0) === "#") {
|
|
9014
9033
|
return false;
|
|
9015
9034
|
}
|
|
9016
|
-
if (e3.trim() === "")
|
|
9017
|
-
return t3 === "";
|
|
9018
9035
|
return new Minimatch(e3, r3).match(t3);
|
|
9019
9036
|
}
|
|
9020
9037
|
function Minimatch(t3, e3) {
|
|
9021
9038
|
if (!(this instanceof Minimatch)) {
|
|
9022
9039
|
return new Minimatch(t3, e3);
|
|
9023
9040
|
}
|
|
9024
|
-
|
|
9025
|
-
throw new TypeError("glob pattern string required");
|
|
9026
|
-
}
|
|
9041
|
+
assertValidPattern(t3);
|
|
9027
9042
|
if (!e3)
|
|
9028
9043
|
e3 = {};
|
|
9029
9044
|
t3 = t3.trim();
|
|
9030
|
-
if (i.sep !== "/") {
|
|
9045
|
+
if (!e3.allowWindowsEscape && i.sep !== "/") {
|
|
9031
9046
|
t3 = t3.split(i.sep).join("/");
|
|
9032
9047
|
}
|
|
9033
9048
|
this.options = e3;
|
|
@@ -9037,14 +9052,13 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9037
9052
|
this.negate = false;
|
|
9038
9053
|
this.comment = false;
|
|
9039
9054
|
this.empty = false;
|
|
9055
|
+
this.partial = !!e3.partial;
|
|
9040
9056
|
this.make();
|
|
9041
9057
|
}
|
|
9042
9058
|
Minimatch.prototype.debug = function() {
|
|
9043
9059
|
};
|
|
9044
9060
|
Minimatch.prototype.make = make;
|
|
9045
9061
|
function make() {
|
|
9046
|
-
if (this._made)
|
|
9047
|
-
return;
|
|
9048
9062
|
var t3 = this.pattern;
|
|
9049
9063
|
var e3 = this.options;
|
|
9050
9064
|
if (!e3.nocomment && t3.charAt(0) === "#") {
|
|
@@ -9058,7 +9072,9 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9058
9072
|
this.parseNegate();
|
|
9059
9073
|
var r3 = this.globSet = this.braceExpand();
|
|
9060
9074
|
if (e3.debug)
|
|
9061
|
-
this.debug =
|
|
9075
|
+
this.debug = function debug() {
|
|
9076
|
+
console.error.apply(console, arguments);
|
|
9077
|
+
};
|
|
9062
9078
|
this.debug(this.pattern, r3);
|
|
9063
9079
|
r3 = this.globParts = r3.map(function(t4) {
|
|
9064
9080
|
return t4.split(p);
|
|
@@ -9103,23 +9119,32 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9103
9119
|
}
|
|
9104
9120
|
}
|
|
9105
9121
|
t3 = typeof t3 === "undefined" ? this.pattern : t3;
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
}
|
|
9109
|
-
if (e3.nobrace || !t3.match(/\{.*\}/)) {
|
|
9122
|
+
assertValidPattern(t3);
|
|
9123
|
+
if (e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3)) {
|
|
9110
9124
|
return [t3];
|
|
9111
9125
|
}
|
|
9112
9126
|
return n(t3);
|
|
9113
9127
|
}
|
|
9114
|
-
|
|
9115
|
-
var
|
|
9116
|
-
|
|
9117
|
-
|
|
9128
|
+
var v = 1024 * 64;
|
|
9129
|
+
var assertValidPattern = function(t3) {
|
|
9130
|
+
if (typeof t3 !== "string") {
|
|
9131
|
+
throw new TypeError("invalid pattern");
|
|
9132
|
+
}
|
|
9133
|
+
if (t3.length > v) {
|
|
9118
9134
|
throw new TypeError("pattern is too long");
|
|
9119
9135
|
}
|
|
9136
|
+
};
|
|
9137
|
+
Minimatch.prototype.parse = parse;
|
|
9138
|
+
var d = {};
|
|
9139
|
+
function parse(t3, e3) {
|
|
9140
|
+
assertValidPattern(t3);
|
|
9120
9141
|
var r3 = this.options;
|
|
9121
|
-
if (
|
|
9122
|
-
|
|
9142
|
+
if (t3 === "**") {
|
|
9143
|
+
if (!r3.noglobstar)
|
|
9144
|
+
return a;
|
|
9145
|
+
else
|
|
9146
|
+
t3 = "*";
|
|
9147
|
+
}
|
|
9123
9148
|
if (t3 === "")
|
|
9124
9149
|
return "";
|
|
9125
9150
|
var i2 = "";
|
|
@@ -9127,15 +9152,15 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9127
9152
|
var h2 = false;
|
|
9128
9153
|
var l2 = [];
|
|
9129
9154
|
var p2 = [];
|
|
9130
|
-
var
|
|
9155
|
+
var v2;
|
|
9131
9156
|
var m = false;
|
|
9132
9157
|
var b = -1;
|
|
9133
9158
|
var g = -1;
|
|
9134
9159
|
var y = t3.charAt(0) === "." ? "" : r3.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
9135
9160
|
var _ = this;
|
|
9136
9161
|
function clearStateChar() {
|
|
9137
|
-
if (
|
|
9138
|
-
switch (
|
|
9162
|
+
if (v2) {
|
|
9163
|
+
switch (v2) {
|
|
9139
9164
|
case "*":
|
|
9140
9165
|
i2 += c;
|
|
9141
9166
|
n2 = true;
|
|
@@ -9145,11 +9170,11 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9145
9170
|
n2 = true;
|
|
9146
9171
|
break;
|
|
9147
9172
|
default:
|
|
9148
|
-
i2 += "\\" +
|
|
9173
|
+
i2 += "\\" + v2;
|
|
9149
9174
|
break;
|
|
9150
9175
|
}
|
|
9151
|
-
_.debug("clearStateChar %j %j",
|
|
9152
|
-
|
|
9176
|
+
_.debug("clearStateChar %j %j", v2, i2);
|
|
9177
|
+
v2 = false;
|
|
9153
9178
|
}
|
|
9154
9179
|
}
|
|
9155
9180
|
for (var w = 0, k = t3.length, S; w < k && (S = t3.charAt(w)); w++) {
|
|
@@ -9160,8 +9185,9 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9160
9185
|
continue;
|
|
9161
9186
|
}
|
|
9162
9187
|
switch (S) {
|
|
9163
|
-
case "/":
|
|
9188
|
+
case "/": {
|
|
9164
9189
|
return false;
|
|
9190
|
+
}
|
|
9165
9191
|
case "\\":
|
|
9166
9192
|
clearStateChar();
|
|
9167
9193
|
h2 = true;
|
|
@@ -9179,9 +9205,9 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9179
9205
|
i2 += S;
|
|
9180
9206
|
continue;
|
|
9181
9207
|
}
|
|
9182
|
-
_.debug("call clearStateChar %j",
|
|
9208
|
+
_.debug("call clearStateChar %j", v2);
|
|
9183
9209
|
clearStateChar();
|
|
9184
|
-
|
|
9210
|
+
v2 = S;
|
|
9185
9211
|
if (r3.noext)
|
|
9186
9212
|
clearStateChar();
|
|
9187
9213
|
continue;
|
|
@@ -9190,14 +9216,14 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9190
9216
|
i2 += "(";
|
|
9191
9217
|
continue;
|
|
9192
9218
|
}
|
|
9193
|
-
if (!
|
|
9219
|
+
if (!v2) {
|
|
9194
9220
|
i2 += "\\(";
|
|
9195
9221
|
continue;
|
|
9196
9222
|
}
|
|
9197
|
-
l2.push({ type:
|
|
9198
|
-
i2 +=
|
|
9199
|
-
this.debug("plType %j %j",
|
|
9200
|
-
|
|
9223
|
+
l2.push({ type: v2, start: w - 1, reStart: i2.length, open: s[v2].open, close: s[v2].close });
|
|
9224
|
+
i2 += v2 === "!" ? "(?:(?!(?:" : "(?:";
|
|
9225
|
+
this.debug("plType %j %j", v2, i2);
|
|
9226
|
+
v2 = false;
|
|
9201
9227
|
continue;
|
|
9202
9228
|
case ")":
|
|
9203
9229
|
if (m || !l2.length) {
|
|
@@ -9239,17 +9265,15 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9239
9265
|
h2 = false;
|
|
9240
9266
|
continue;
|
|
9241
9267
|
}
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
continue;
|
|
9252
|
-
}
|
|
9268
|
+
var x = t3.substring(g + 1, w);
|
|
9269
|
+
try {
|
|
9270
|
+
RegExp("[" + x + "]");
|
|
9271
|
+
} catch (t4) {
|
|
9272
|
+
var O = this.parse(x, d);
|
|
9273
|
+
i2 = i2.substr(0, b) + "\\[" + O[0] + "\\]";
|
|
9274
|
+
n2 = n2 || O[1];
|
|
9275
|
+
m = false;
|
|
9276
|
+
continue;
|
|
9253
9277
|
}
|
|
9254
9278
|
n2 = true;
|
|
9255
9279
|
m = false;
|
|
@@ -9266,10 +9290,10 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9266
9290
|
}
|
|
9267
9291
|
}
|
|
9268
9292
|
if (m) {
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
i2 = i2.substr(0, b) + "\\[" +
|
|
9272
|
-
n2 = n2 ||
|
|
9293
|
+
x = t3.substr(g + 1);
|
|
9294
|
+
O = this.parse(x, d);
|
|
9295
|
+
i2 = i2.substr(0, b) + "\\[" + O[0];
|
|
9296
|
+
n2 = n2 || O[1];
|
|
9273
9297
|
}
|
|
9274
9298
|
for (E = l2.pop(); E; E = l2.pop()) {
|
|
9275
9299
|
var A = i2.slice(E.reStart + E.open.length);
|
|
@@ -9291,29 +9315,29 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9291
9315
|
}
|
|
9292
9316
|
var j = false;
|
|
9293
9317
|
switch (i2.charAt(0)) {
|
|
9294
|
-
case ".":
|
|
9295
9318
|
case "[":
|
|
9319
|
+
case ".":
|
|
9296
9320
|
case "(":
|
|
9297
9321
|
j = true;
|
|
9298
9322
|
}
|
|
9299
|
-
for (var
|
|
9300
|
-
var
|
|
9301
|
-
var
|
|
9302
|
-
var
|
|
9303
|
-
var
|
|
9304
|
-
var
|
|
9305
|
-
|
|
9306
|
-
var
|
|
9307
|
-
var P =
|
|
9308
|
-
for (w = 0; w <
|
|
9323
|
+
for (var M = p2.length - 1; M > -1; M--) {
|
|
9324
|
+
var I = p2[M];
|
|
9325
|
+
var R = i2.slice(0, I.reStart);
|
|
9326
|
+
var C = i2.slice(I.reStart, I.reEnd - 8);
|
|
9327
|
+
var L = i2.slice(I.reEnd - 8, I.reEnd);
|
|
9328
|
+
var N = i2.slice(I.reEnd);
|
|
9329
|
+
L += N;
|
|
9330
|
+
var T = R.split("(").length - 1;
|
|
9331
|
+
var P = N;
|
|
9332
|
+
for (w = 0; w < T; w++) {
|
|
9309
9333
|
P = P.replace(/\)[+*?]?/, "");
|
|
9310
9334
|
}
|
|
9311
|
-
|
|
9335
|
+
N = P;
|
|
9312
9336
|
var D = "";
|
|
9313
|
-
if (
|
|
9337
|
+
if (N === "" && e3 !== d) {
|
|
9314
9338
|
D = "$";
|
|
9315
9339
|
}
|
|
9316
|
-
var $ =
|
|
9340
|
+
var $ = R + C + N + D + L;
|
|
9317
9341
|
i2 = $;
|
|
9318
9342
|
}
|
|
9319
9343
|
if (i2 !== "" && n2) {
|
|
@@ -9322,7 +9346,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9322
9346
|
if (j) {
|
|
9323
9347
|
i2 = y + i2;
|
|
9324
9348
|
}
|
|
9325
|
-
if (e3 ===
|
|
9349
|
+
if (e3 === d) {
|
|
9326
9350
|
return [i2, n2];
|
|
9327
9351
|
}
|
|
9328
9352
|
if (!n2) {
|
|
@@ -9330,13 +9354,13 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9330
9354
|
}
|
|
9331
9355
|
var F = r3.nocase ? "i" : "";
|
|
9332
9356
|
try {
|
|
9333
|
-
var
|
|
9357
|
+
var B = new RegExp("^" + i2 + "$", F);
|
|
9334
9358
|
} catch (t4) {
|
|
9335
9359
|
return new RegExp("$.");
|
|
9336
9360
|
}
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
return
|
|
9361
|
+
B._glob = t3;
|
|
9362
|
+
B._src = i2;
|
|
9363
|
+
return B;
|
|
9340
9364
|
}
|
|
9341
9365
|
minimatch.makeRe = function(t3, e3) {
|
|
9342
9366
|
return new Minimatch(t3, e3 || {}).makeRe();
|
|
@@ -9379,8 +9403,9 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9379
9403
|
}
|
|
9380
9404
|
return t3;
|
|
9381
9405
|
};
|
|
9382
|
-
Minimatch.prototype.match = match
|
|
9383
|
-
|
|
9406
|
+
Minimatch.prototype.match = function match(t3, e3) {
|
|
9407
|
+
if (typeof e3 === "undefined")
|
|
9408
|
+
e3 = this.partial;
|
|
9384
9409
|
this.debug("match", t3, this.pattern);
|
|
9385
9410
|
if (this.comment)
|
|
9386
9411
|
return false;
|
|
@@ -9419,7 +9444,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9419
9444
|
if (r3.flipNegate)
|
|
9420
9445
|
return false;
|
|
9421
9446
|
return this.negate;
|
|
9422
|
-
}
|
|
9447
|
+
};
|
|
9423
9448
|
Minimatch.prototype.matchOne = function(t3, e3, r3) {
|
|
9424
9449
|
var i2 = this.options;
|
|
9425
9450
|
this.debug("matchOne", { this: this, file: t3, pattern: e3 });
|
|
@@ -9465,19 +9490,15 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9465
9490
|
}
|
|
9466
9491
|
return false;
|
|
9467
9492
|
}
|
|
9468
|
-
var
|
|
9493
|
+
var d2;
|
|
9469
9494
|
if (typeof h2 === "string") {
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
} else {
|
|
9473
|
-
d = l2 === h2;
|
|
9474
|
-
}
|
|
9475
|
-
this.debug("string match", h2, l2, d);
|
|
9495
|
+
d2 = l2 === h2;
|
|
9496
|
+
this.debug("string match", h2, l2, d2);
|
|
9476
9497
|
} else {
|
|
9477
|
-
|
|
9478
|
-
this.debug("pattern match", h2, l2,
|
|
9498
|
+
d2 = l2.match(h2);
|
|
9499
|
+
this.debug("pattern match", h2, l2, d2);
|
|
9479
9500
|
}
|
|
9480
|
-
if (!
|
|
9501
|
+
if (!d2)
|
|
9481
9502
|
return false;
|
|
9482
9503
|
}
|
|
9483
9504
|
if (n2 === o2 && s2 === c2) {
|
|
@@ -9485,8 +9506,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9485
9506
|
} else if (n2 === o2) {
|
|
9486
9507
|
return r3;
|
|
9487
9508
|
} else if (s2 === c2) {
|
|
9488
|
-
|
|
9489
|
-
return m;
|
|
9509
|
+
return n2 === o2 - 1 && t3[n2] === "";
|
|
9490
9510
|
}
|
|
9491
9511
|
throw new Error("wtf?");
|
|
9492
9512
|
};
|
|
@@ -13111,7 +13131,7 @@ ${o.message}` : x;
|
|
|
13111
13131
|
}, 878: (e2, t2, n2) => {
|
|
13112
13132
|
"use strict";
|
|
13113
13133
|
const r = n2(37);
|
|
13114
|
-
const o = n2(
|
|
13134
|
+
const o = n2(580);
|
|
13115
13135
|
const s = 1e3 * 5;
|
|
13116
13136
|
const spawnedKill = (e3, t3 = "SIGTERM", n3 = {}) => {
|
|
13117
13137
|
const r2 = e3(t3);
|
|
@@ -13734,17 +13754,19 @@ ${o.message}` : x;
|
|
|
13734
13754
|
}, 609: (e2) => {
|
|
13735
13755
|
"use strict";
|
|
13736
13756
|
e2.exports = /^#!(.*)/;
|
|
13737
|
-
},
|
|
13757
|
+
}, 580: (e2, t2, n2) => {
|
|
13738
13758
|
var r = global.process;
|
|
13739
13759
|
const processOk = function(e3) {
|
|
13740
13760
|
return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
|
|
13741
13761
|
};
|
|
13742
13762
|
if (!processOk(r)) {
|
|
13743
13763
|
e2.exports = function() {
|
|
13764
|
+
return function() {
|
|
13765
|
+
};
|
|
13744
13766
|
};
|
|
13745
13767
|
} else {
|
|
13746
13768
|
var o = n2(491);
|
|
13747
|
-
var s = n2(
|
|
13769
|
+
var s = n2(357);
|
|
13748
13770
|
var i = /^win/i.test(r.platform);
|
|
13749
13771
|
var a = n2(361);
|
|
13750
13772
|
if (typeof a !== "function") {
|
|
@@ -13764,7 +13786,8 @@ ${o.message}` : x;
|
|
|
13764
13786
|
}
|
|
13765
13787
|
e2.exports = function(e3, t3) {
|
|
13766
13788
|
if (!processOk(global.process)) {
|
|
13767
|
-
return
|
|
13789
|
+
return function() {
|
|
13790
|
+
};
|
|
13768
13791
|
}
|
|
13769
13792
|
o.equal(typeof e3, "function", "a callback must be provided for exit handler");
|
|
13770
13793
|
if (f === false) {
|
|
@@ -13871,7 +13894,7 @@ ${o.message}` : x;
|
|
|
13871
13894
|
}
|
|
13872
13895
|
};
|
|
13873
13896
|
}
|
|
13874
|
-
},
|
|
13897
|
+
}, 357: (e2) => {
|
|
13875
13898
|
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
|
|
13876
13899
|
if (process.platform !== "win32") {
|
|
13877
13900
|
e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
@@ -19479,8 +19502,8 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
19479
19502
|
if (result2 instanceof LazyWrapper) {
|
|
19480
19503
|
result2 = result2.value();
|
|
19481
19504
|
}
|
|
19482
|
-
return arrayReduce(actions, function(result3,
|
|
19483
|
-
return
|
|
19505
|
+
return arrayReduce(actions, function(result3, action2) {
|
|
19506
|
+
return action2.func.apply(action2.thisArg, arrayPush([result3], action2.args));
|
|
19484
19507
|
}, result2);
|
|
19485
19508
|
}
|
|
19486
19509
|
function baseXor(arrays, iteratee2, comparator) {
|
|
@@ -24938,7 +24961,7 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
|
|
|
24938
24961
|
e2.matchAny = e2.convertPatternsToRe = e2.makeRe = e2.getPatternParts = e2.expandBraceExpansion = e2.expandPatternsWithBraceExpansion = e2.isAffectDepthOfReadingPattern = e2.endsWithSlashGlobStar = e2.hasGlobStar = e2.getBaseDirectory = e2.isPatternRelatedToParentDirectory = e2.getPatternsOutsideCurrentDirectory = e2.getPatternsInsideCurrentDirectory = e2.getPositivePatterns = e2.getNegativePatterns = e2.isPositivePattern = e2.isNegativePattern = e2.convertToNegativePattern = e2.convertToPositivePattern = e2.isDynamicPattern = e2.isStaticPattern = void 0;
|
|
24939
24962
|
const n = r2(1017);
|
|
24940
24963
|
const s = r2(5976);
|
|
24941
|
-
const i = r2(
|
|
24964
|
+
const i = r2(8627);
|
|
24942
24965
|
const o = "**";
|
|
24943
24966
|
const a = "\\";
|
|
24944
24967
|
const u = /[*?]|^!/;
|
|
@@ -25793,7 +25816,7 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
|
|
|
25793
25816
|
}
|
|
25794
25817
|
return t3;
|
|
25795
25818
|
}
|
|
25796
|
-
},
|
|
25819
|
+
}, 8627: (t2, e2, r2) => {
|
|
25797
25820
|
"use strict";
|
|
25798
25821
|
const n = r2(3837);
|
|
25799
25822
|
const s = r2(1570);
|
|
@@ -25856,9 +25879,9 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
|
|
|
25856
25879
|
r3.onResult(t4);
|
|
25857
25880
|
s2.push(t4.output);
|
|
25858
25881
|
};
|
|
25859
|
-
let i2 = micromatch(t3, e3, { ...r3, onResult });
|
|
25882
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
|
25860
25883
|
for (let t4 of s2) {
|
|
25861
|
-
if (!i2.
|
|
25884
|
+
if (!i2.has(t4)) {
|
|
25862
25885
|
n2.add(t4);
|
|
25863
25886
|
}
|
|
25864
25887
|
}
|
|
@@ -30731,11 +30754,11 @@ var require_browserslist = __commonJSMin((exports, module2) => {
|
|
|
30731
30754
|
BrowserslistError.prototype = Error.prototype;
|
|
30732
30755
|
e2.exports = BrowserslistError;
|
|
30733
30756
|
}, 751: (e2, s2, r2) => {
|
|
30734
|
-
var n = r2(
|
|
30757
|
+
var n = r2(330);
|
|
30735
30758
|
var t = r2(768).agents;
|
|
30736
|
-
var a = r2(
|
|
30759
|
+
var a = r2(97);
|
|
30737
30760
|
var i = r2(17);
|
|
30738
|
-
var o = r2(
|
|
30761
|
+
var o = r2(333);
|
|
30739
30762
|
var l = r2(923);
|
|
30740
30763
|
var f = r2(347);
|
|
30741
30764
|
var u = 365.259641 * 24 * 60 * 60 * 1e3;
|
|
@@ -31884,8 +31907,8 @@ var require_browserslist = __commonJSMin((exports, module2) => {
|
|
|
31884
31907
|
}, currentNode: function currentNode() {
|
|
31885
31908
|
return "node " + process.versions.node;
|
|
31886
31909
|
} };
|
|
31887
|
-
},
|
|
31888
|
-
e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", "16.0": "96", 16.1: "96", "17.0": "98", 17.1: "98", "18.0": "100" };
|
|
31910
|
+
}, 333: (e2) => {
|
|
31911
|
+
e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", 15.5: "94", "16.0": "96", 16.1: "96", 16.2: "96", "17.0": "98", 17.1: "98", 17.2: "98", 17.3: "98", 17.4: "98", "18.0": "100", 18.1: "100", 18.2: "100", 18.3: "100", "19.0": "102", "20.0": "104" };
|
|
31889
31912
|
}, 174: (e2) => {
|
|
31890
31913
|
function webpackEmptyContext(e3) {
|
|
31891
31914
|
var s2 = new Error("Cannot find module '" + e3 + "'");
|
|
@@ -31911,12 +31934,12 @@ var require_browserslist = __commonJSMin((exports, module2) => {
|
|
|
31911
31934
|
}, 17: (e2) => {
|
|
31912
31935
|
"use strict";
|
|
31913
31936
|
e2.exports = __require("path");
|
|
31914
|
-
},
|
|
31937
|
+
}, 330: (e2) => {
|
|
31915
31938
|
"use strict";
|
|
31916
|
-
e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false}]');
|
|
31917
|
-
},
|
|
31939
|
+
e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.14.0","date":"2022-02-08","lts":"Gallium","security":false},{"name":"nodejs","version":"16.15.0","date":"2022-04-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false},{"name":"nodejs","version":"17.5.0","date":"2022-02-10","lts":false,"security":false},{"name":"nodejs","version":"17.6.0","date":"2022-02-22","lts":false,"security":false},{"name":"nodejs","version":"17.7.0","date":"2022-03-09","lts":false,"security":false},{"name":"nodejs","version":"17.8.0","date":"2022-03-22","lts":false,"security":false},{"name":"nodejs","version":"17.9.0","date":"2022-04-07","lts":false,"security":false},{"name":"nodejs","version":"18.0.0","date":"2022-04-18","lts":false,"security":false},{"name":"nodejs","version":"18.1.0","date":"2022-05-03","lts":false,"security":false},{"name":"nodejs","version":"18.2.0","date":"2022-05-17","lts":false,"security":false}]');
|
|
31940
|
+
}, 97: (e2) => {
|
|
31918
31941
|
"use strict";
|
|
31919
|
-
e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""}}');
|
|
31942
|
+
e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""},"v19":{"start":"2022-10-18","maintenance":"2023-04-01","end":"2023-06-01"},"v20":{"start":"2023-04-18","lts":"2023-10-24","maintenance":"2024-10-22","end":"2026-04-30","codename":""}}');
|
|
31920
31943
|
} };
|
|
31921
31944
|
var s = {};
|
|
31922
31945
|
function __nccwpck_require__(r2) {
|
|
@@ -34627,17 +34650,17 @@ var require_logger = __commonJSMin((exports) => {
|
|
|
34627
34650
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
|
34628
34651
|
return;
|
|
34629
34652
|
}
|
|
34630
|
-
let
|
|
34653
|
+
let label25 = "";
|
|
34631
34654
|
let text = "";
|
|
34632
34655
|
const logType = this.types[type];
|
|
34633
34656
|
if (this.config.displayLabel && logType.label) {
|
|
34634
|
-
|
|
34657
|
+
label25 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
|
34635
34658
|
if (this.config.underlineLabel) {
|
|
34636
|
-
|
|
34659
|
+
label25 = underline(label25).padEnd(this.longestUnderlinedLabel.length + 1);
|
|
34637
34660
|
} else {
|
|
34638
|
-
|
|
34661
|
+
label25 = label25.padEnd(this.longestLabel.length + 1);
|
|
34639
34662
|
}
|
|
34640
|
-
|
|
34663
|
+
label25 = logType.color ? chalk_1.default[logType.color](label25) : label25;
|
|
34641
34664
|
}
|
|
34642
34665
|
if (message instanceof Error) {
|
|
34643
34666
|
if (message.stack) {
|
|
@@ -34653,15 +34676,15 @@ ${grey(rest.join("\n"))}`;
|
|
|
34653
34676
|
if (logType.level === "warn" || logType.level === "error") {
|
|
34654
34677
|
this.retainLog(type, text);
|
|
34655
34678
|
}
|
|
34656
|
-
const log =
|
|
34679
|
+
const log = label25.length > 0 ? `${label25} ${text}` : text;
|
|
34657
34680
|
console.log(log, ...args);
|
|
34658
34681
|
}
|
|
34659
34682
|
getLongestLabel() {
|
|
34660
34683
|
let longestLabel = "";
|
|
34661
34684
|
Object.keys(this.types).forEach((type) => {
|
|
34662
|
-
const { label:
|
|
34663
|
-
if (
|
|
34664
|
-
longestLabel =
|
|
34685
|
+
const { label: label25 = "" } = this.types[type];
|
|
34686
|
+
if (label25.length > longestLabel.length) {
|
|
34687
|
+
longestLabel = label25;
|
|
34665
34688
|
}
|
|
34666
34689
|
});
|
|
34667
34690
|
return longestLabel;
|
|
@@ -35566,18 +35589,14 @@ var require_runtimeExports = __commonJSMin((exports) => {
|
|
|
35566
35589
|
return res;
|
|
35567
35590
|
};
|
|
35568
35591
|
};
|
|
35569
|
-
exports.createRuntimeExportsUtils = memo((pwd = "", namespace
|
|
35570
|
-
const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace
|
|
35571
|
-
const entryExportTsFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.d.ts` : "index.d.ts"}`);
|
|
35592
|
+
exports.createRuntimeExportsUtils = memo((pwd = "", namespace = "index") => {
|
|
35593
|
+
const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace}.js`);
|
|
35572
35594
|
const addExport = (statement) => {
|
|
35573
35595
|
statement = (0, path_2.normalizeOutputPath)(statement);
|
|
35574
35596
|
try {
|
|
35575
35597
|
compiled_1.fs.ensureFileSync(entryExportFile);
|
|
35576
|
-
compiled_1.fs.ensureFileSync(entryExportTsFile);
|
|
35577
35598
|
if (!compiled_1.fs.readFileSync(entryExportFile, "utf8").includes(statement)) {
|
|
35578
35599
|
compiled_1.fs.appendFileSync(entryExportFile, `${statement}
|
|
35579
|
-
`);
|
|
35580
|
-
ts && compiled_1.fs.appendFileSync(entryExportTsFile, `${statement.replace(".js", ".d")}
|
|
35581
35600
|
`);
|
|
35582
35601
|
}
|
|
35583
35602
|
} catch {
|
|
@@ -35653,7 +35672,7 @@ var require_prettyInstructions = __commonJSMin((exports) => {
|
|
|
35653
35672
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35654
35673
|
};
|
|
35655
35674
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35656
|
-
exports.prettyInstructions = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
|
|
35675
|
+
exports.prettyInstructions = exports.getAddressUrls = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
|
|
35657
35676
|
var os_1 = __importDefault(__require("os"));
|
|
35658
35677
|
var compiled_1 = require_compiled();
|
|
35659
35678
|
var is_1 = require_is();
|
|
@@ -35687,9 +35706,10 @@ var require_prettyInstructions = __commonJSMin((exports) => {
|
|
|
35687
35706
|
return memo;
|
|
35688
35707
|
}, []);
|
|
35689
35708
|
};
|
|
35709
|
+
exports.getAddressUrls = getAddressUrls;
|
|
35690
35710
|
var prettyInstructions = (appContext, config) => {
|
|
35691
35711
|
const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
|
|
35692
|
-
const urls = getAddressUrls(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
|
|
35712
|
+
const urls = (0, exports.getAddressUrls)(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
|
|
35693
35713
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
|
35694
35714
|
let message = "App running at:\n\n";
|
|
35695
35715
|
if ((0, exports.isSingleEntry)(entrypoints) || apiOnly) {
|
|
@@ -36091,8 +36111,9 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36091
36111
|
LESS: "less",
|
|
36092
36112
|
SASS: "sass",
|
|
36093
36113
|
SVG: "svg",
|
|
36094
|
-
|
|
36095
|
-
|
|
36114
|
+
PUG: "pug",
|
|
36115
|
+
TOML: "toml",
|
|
36116
|
+
YAML: "yaml"
|
|
36096
36117
|
},
|
|
36097
36118
|
ONE_OF: {
|
|
36098
36119
|
JS: "js",
|
|
@@ -36110,6 +36131,7 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36110
36131
|
SASS_MODULES: "sass-modules",
|
|
36111
36132
|
SVG: "svg",
|
|
36112
36133
|
SVG_URL: "svg-url",
|
|
36134
|
+
SVG_ASSET: "svg-asset",
|
|
36113
36135
|
SVG_INLINE: "svg-inline",
|
|
36114
36136
|
ASSETS: "assets",
|
|
36115
36137
|
ASSETS_URL: "assets-url",
|
|
@@ -36121,12 +36143,14 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36121
36143
|
SASS: "sass",
|
|
36122
36144
|
LESS: "less",
|
|
36123
36145
|
URL: "url",
|
|
36146
|
+
PUG: "pug",
|
|
36124
36147
|
FILE: "file",
|
|
36125
36148
|
SVGR: "svgr",
|
|
36126
36149
|
YAML: "yaml",
|
|
36127
36150
|
TOML: "toml",
|
|
36128
36151
|
HTML: "html",
|
|
36129
36152
|
BABEL: "babel",
|
|
36153
|
+
ESBUILD: "esbuild",
|
|
36130
36154
|
STYLE: "style-loader",
|
|
36131
36155
|
POSTCSS: "postcss",
|
|
36132
36156
|
MARKDOWN: "markdown",
|
|
@@ -36151,7 +36175,8 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36151
36175
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
36152
36176
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
36153
36177
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
36154
|
-
NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
|
|
36178
|
+
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
|
36179
|
+
MODULE_DEPENDENCY_ERROR: "module-dependency-error"
|
|
36155
36180
|
},
|
|
36156
36181
|
MINIMIZER: {
|
|
36157
36182
|
JS: "js",
|
|
@@ -36251,24 +36276,20 @@ var require_dist = __commonJSMin((exports) => {
|
|
|
36251
36276
|
__exportStar(require_chainId(), exports);
|
|
36252
36277
|
__exportStar(require_reactVersion(), exports);
|
|
36253
36278
|
});
|
|
36254
|
-
|
|
36255
|
-
|
|
36256
|
-
|
|
36257
|
-
|
|
36258
|
-
|
|
36259
|
-
|
|
36260
|
-
|
|
36261
|
-
|
|
36262
|
-
}
|
|
36263
|
-
|
|
36264
|
-
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
36265
|
-
}
|
|
36266
|
-
function stripAnsi(string) {
|
|
36267
|
-
if (typeof string !== "string") {
|
|
36268
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
36269
|
-
}
|
|
36270
|
-
return string.replace(ansiRegex(), "");
|
|
36279
|
+
function _defineProperty(obj, key, value) {
|
|
36280
|
+
if (key in obj) {
|
|
36281
|
+
Object.defineProperty(obj, key, {
|
|
36282
|
+
value,
|
|
36283
|
+
enumerable: true,
|
|
36284
|
+
configurable: true,
|
|
36285
|
+
writable: true
|
|
36286
|
+
});
|
|
36287
|
+
} else {
|
|
36288
|
+
obj[key] = value;
|
|
36271
36289
|
}
|
|
36290
|
+
return obj;
|
|
36291
|
+
}
|
|
36292
|
+
var init_defineProperty = __esmMin(() => {
|
|
36272
36293
|
});
|
|
36273
36294
|
function _classCallCheck(instance, Constructor) {
|
|
36274
36295
|
if (!(instance instanceof Constructor)) {
|
|
@@ -36299,21 +36320,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
36299
36320
|
}
|
|
36300
36321
|
var init_createClass = __esmMin(() => {
|
|
36301
36322
|
});
|
|
36302
|
-
function _defineProperty(obj, key, value) {
|
|
36303
|
-
if (key in obj) {
|
|
36304
|
-
Object.defineProperty(obj, key, {
|
|
36305
|
-
value,
|
|
36306
|
-
enumerable: true,
|
|
36307
|
-
configurable: true,
|
|
36308
|
-
writable: true
|
|
36309
|
-
});
|
|
36310
|
-
} else {
|
|
36311
|
-
obj[key] = value;
|
|
36312
|
-
}
|
|
36313
|
-
return obj;
|
|
36314
|
-
}
|
|
36315
|
-
var init_defineProperty = __esmMin(() => {
|
|
36316
|
-
});
|
|
36317
36323
|
function getObjKeyMap(obj) {
|
|
36318
36324
|
var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
36319
36325
|
var result = {};
|
|
@@ -36416,6 +36422,1374 @@ var init_treeshaking = __esmMin(() => {
|
|
|
36416
36422
|
return I18n3;
|
|
36417
36423
|
}();
|
|
36418
36424
|
});
|
|
36425
|
+
var ZH_LOCALE;
|
|
36426
|
+
var init_zh = __esmMin(() => {
|
|
36427
|
+
ZH_LOCALE = {
|
|
36428
|
+
solution: {
|
|
36429
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
|
36430
|
+
mwa: "\u5E94\u7528",
|
|
36431
|
+
module: "\u6A21\u5757",
|
|
36432
|
+
monorepo: "Monorepo",
|
|
36433
|
+
custom: "\u81EA\u5B9A\u4E49",
|
|
36434
|
+
"default": "\u9ED8\u8BA4"
|
|
36435
|
+
},
|
|
36436
|
+
scenes: {
|
|
36437
|
+
self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
|
|
36438
|
+
},
|
|
36439
|
+
sub_solution: {
|
|
36440
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
|
36441
|
+
mwa: "\u5E94\u7528",
|
|
36442
|
+
mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
|
|
36443
|
+
module: "\u6A21\u5757",
|
|
36444
|
+
inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
|
|
36445
|
+
},
|
|
36446
|
+
action: {
|
|
36447
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
|
|
36448
|
+
"function": {
|
|
36449
|
+
self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
|
|
36450
|
+
tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
|
|
36451
|
+
less: "\u542F\u7528 Less \u652F\u6301",
|
|
36452
|
+
sass: "\u542F\u7528 Sass \u652F\u6301",
|
|
36453
|
+
bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
|
|
36454
|
+
micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
|
|
36455
|
+
electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
|
|
36456
|
+
i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
|
|
36457
|
+
test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
|
|
36458
|
+
e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
|
|
36459
|
+
doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
|
|
36460
|
+
storybook: "\u542F\u7528\u300CStorybook\u300D",
|
|
36461
|
+
runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
|
|
36462
|
+
mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
|
|
36463
|
+
ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
|
|
36464
|
+
polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
|
|
36465
|
+
proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
|
|
36466
|
+
},
|
|
36467
|
+
element: {
|
|
36468
|
+
self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
|
|
36469
|
+
entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
|
|
36470
|
+
server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
|
|
36471
|
+
},
|
|
36472
|
+
refactor: {
|
|
36473
|
+
self: "\u81EA\u52A8\u91CD\u6784",
|
|
36474
|
+
bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
|
|
36475
|
+
}
|
|
36476
|
+
},
|
|
36477
|
+
"boolean": {
|
|
36478
|
+
yes: "\u662F",
|
|
36479
|
+
no: "\u5426"
|
|
36480
|
+
},
|
|
36481
|
+
language: {
|
|
36482
|
+
self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
|
|
36483
|
+
},
|
|
36484
|
+
packageManager: {
|
|
36485
|
+
self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
|
|
36486
|
+
},
|
|
36487
|
+
runWay: {
|
|
36488
|
+
self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
|
|
36489
|
+
no: "\u4E0D\u9700\u8981",
|
|
36490
|
+
electron: "Electron"
|
|
36491
|
+
},
|
|
36492
|
+
needModifyConfig: {
|
|
36493
|
+
self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
|
36494
|
+
enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
|
|
36495
|
+
enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
|
|
36496
|
+
},
|
|
36497
|
+
entry: {
|
|
36498
|
+
name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
|
|
36499
|
+
no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
|
36500
|
+
no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
|
|
36501
|
+
needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
|
36502
|
+
disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
|
|
36503
|
+
clientRoute: {
|
|
36504
|
+
self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
|
|
36505
|
+
selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
|
|
36506
|
+
conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
|
|
36507
|
+
no: "\u4E0D\u542F\u7528"
|
|
36508
|
+
}
|
|
36509
|
+
},
|
|
36510
|
+
packageName: {
|
|
36511
|
+
self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
|
|
36512
|
+
sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
|
|
36513
|
+
no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
|
|
36514
|
+
},
|
|
36515
|
+
packagePath: {
|
|
36516
|
+
self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
|
|
36517
|
+
no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
|
36518
|
+
format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
|
|
36519
|
+
},
|
|
36520
|
+
framework: {
|
|
36521
|
+
self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
|
|
36522
|
+
egg: "Egg",
|
|
36523
|
+
express: "Express",
|
|
36524
|
+
koa: "Koa",
|
|
36525
|
+
nest: "Nest"
|
|
36526
|
+
},
|
|
36527
|
+
bff: {
|
|
36528
|
+
bffType: {
|
|
36529
|
+
self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
|
|
36530
|
+
func: "\u51FD\u6570\u6A21\u5F0F",
|
|
36531
|
+
framework: "\u6846\u67B6\u6A21\u5F0F"
|
|
36532
|
+
}
|
|
36533
|
+
}
|
|
36534
|
+
};
|
|
36535
|
+
});
|
|
36536
|
+
var EN_LOCALE;
|
|
36537
|
+
var init_en = __esmMin(() => {
|
|
36538
|
+
EN_LOCALE = {
|
|
36539
|
+
solution: {
|
|
36540
|
+
self: "Please select the solution you want to create",
|
|
36541
|
+
mwa: "MWA Solution",
|
|
36542
|
+
module: "Module Solution",
|
|
36543
|
+
monorepo: "Monorepo Solution",
|
|
36544
|
+
custom: "Custom Solution",
|
|
36545
|
+
"default": "Default"
|
|
36546
|
+
},
|
|
36547
|
+
scenes: {
|
|
36548
|
+
self: "Please select the scene you want to create"
|
|
36549
|
+
},
|
|
36550
|
+
sub_solution: {
|
|
36551
|
+
self: "Please select the solution you want to create",
|
|
36552
|
+
mwa: "MWA Solution",
|
|
36553
|
+
mwa_test: "MWA Solution(Test)",
|
|
36554
|
+
module: "Module Solution",
|
|
36555
|
+
inner_module: "Module Solution(Inner)",
|
|
36556
|
+
monorepo: "Monorepo Solution"
|
|
36557
|
+
},
|
|
36558
|
+
action: {
|
|
36559
|
+
self: "Action",
|
|
36560
|
+
"function": {
|
|
36561
|
+
self: "Enable features",
|
|
36562
|
+
tailwindcss: "Enable Tailwind CSS",
|
|
36563
|
+
less: "Enable Less",
|
|
36564
|
+
sass: "Enable Sass",
|
|
36565
|
+
bff: "Enable BFF",
|
|
36566
|
+
micro_frontend: "Enable Micro Frontend",
|
|
36567
|
+
electron: "Enable Electron",
|
|
36568
|
+
i18n: "Enable Internationalization (i18n)",
|
|
36569
|
+
test: "Enable Unit Test / Integration Test",
|
|
36570
|
+
e2e_test: "Enable E2E Test",
|
|
36571
|
+
doc: "Enable Document Station",
|
|
36572
|
+
storybook: "Enable Storybook",
|
|
36573
|
+
runtime_api: "Enable Runtime API",
|
|
36574
|
+
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
36575
|
+
ssg: "Enable SSG",
|
|
36576
|
+
polyfill: "Enable UA-based Polyfill Feature",
|
|
36577
|
+
proxy: "Enable Global Proxy"
|
|
36578
|
+
},
|
|
36579
|
+
element: {
|
|
36580
|
+
self: "Create project element",
|
|
36581
|
+
entry: 'New "entry"',
|
|
36582
|
+
server: 'New "Server Custom" source code directory'
|
|
36583
|
+
},
|
|
36584
|
+
refactor: {
|
|
36585
|
+
self: "Automatic refactor",
|
|
36586
|
+
bff_to_app: "Transform BFF to frame mode"
|
|
36587
|
+
}
|
|
36588
|
+
},
|
|
36589
|
+
"boolean": {
|
|
36590
|
+
yes: "Yes",
|
|
36591
|
+
no: "No"
|
|
36592
|
+
},
|
|
36593
|
+
language: {
|
|
36594
|
+
self: "Development Language"
|
|
36595
|
+
},
|
|
36596
|
+
packageManager: {
|
|
36597
|
+
self: "Package Management Tool"
|
|
36598
|
+
},
|
|
36599
|
+
packageName: {
|
|
36600
|
+
self: "Package Name",
|
|
36601
|
+
sub_name: "Package Name",
|
|
36602
|
+
no_empty: "The package name cannot be empty!"
|
|
36603
|
+
},
|
|
36604
|
+
packagePath: {
|
|
36605
|
+
self: "Package Path",
|
|
36606
|
+
no_empty: "The package path cannot be empty!",
|
|
36607
|
+
format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
|
|
36608
|
+
},
|
|
36609
|
+
runWay: {
|
|
36610
|
+
self: "Do you need to support the following types of applications",
|
|
36611
|
+
no: "Not Enabled",
|
|
36612
|
+
electron: "Electron"
|
|
36613
|
+
},
|
|
36614
|
+
needModifyConfig: {
|
|
36615
|
+
self: "Modify the Default Configuration?",
|
|
36616
|
+
enableLess: "Enable Less?",
|
|
36617
|
+
enableSass: "Enable Sass?"
|
|
36618
|
+
},
|
|
36619
|
+
entry: {
|
|
36620
|
+
name: "Entry name",
|
|
36621
|
+
no_empty: "The entry name cannot be empty!",
|
|
36622
|
+
no_pages: 'The entry name cannot be "pages"!',
|
|
36623
|
+
disableStateManagement: "Disable App State Management?",
|
|
36624
|
+
clientRoute: {
|
|
36625
|
+
self: "Client Routing",
|
|
36626
|
+
selfControlRoute: "Enable Self Control Route",
|
|
36627
|
+
conventionalRoute: "Enable Conventional Route",
|
|
36628
|
+
no: "Not Enabled"
|
|
36629
|
+
}
|
|
36630
|
+
},
|
|
36631
|
+
framework: {
|
|
36632
|
+
self: "Please select the framework you want to use",
|
|
36633
|
+
egg: "Egg",
|
|
36634
|
+
express: "Express",
|
|
36635
|
+
koa: "Koa",
|
|
36636
|
+
nest: "Nest"
|
|
36637
|
+
},
|
|
36638
|
+
bff: {
|
|
36639
|
+
bffType: {
|
|
36640
|
+
self: "BFF Type",
|
|
36641
|
+
func: "Function",
|
|
36642
|
+
framework: "Framework"
|
|
36643
|
+
}
|
|
36644
|
+
}
|
|
36645
|
+
};
|
|
36646
|
+
});
|
|
36647
|
+
var i18n, localeKeys;
|
|
36648
|
+
var init_locale = __esmMin(() => {
|
|
36649
|
+
init_treeshaking();
|
|
36650
|
+
init_zh();
|
|
36651
|
+
init_en();
|
|
36652
|
+
i18n = new I18n();
|
|
36653
|
+
localeKeys = i18n.init("zh", {
|
|
36654
|
+
zh: ZH_LOCALE,
|
|
36655
|
+
en: EN_LOCALE
|
|
36656
|
+
});
|
|
36657
|
+
});
|
|
36658
|
+
var _BooleanConfigName, BooleanConfig, BooleanConfigName, BooleanSchemas;
|
|
36659
|
+
var init_boolean = __esmMin(() => {
|
|
36660
|
+
init_defineProperty();
|
|
36661
|
+
init_locale();
|
|
36662
|
+
(function(BooleanConfig2) {
|
|
36663
|
+
BooleanConfig2["NO"] = "no";
|
|
36664
|
+
BooleanConfig2["YES"] = "yes";
|
|
36665
|
+
})(BooleanConfig || (BooleanConfig = {}));
|
|
36666
|
+
BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
|
|
36667
|
+
return i18n.t(localeKeys["boolean"].no);
|
|
36668
|
+
}), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
|
|
36669
|
+
return i18n.t(localeKeys["boolean"].yes);
|
|
36670
|
+
}), _BooleanConfigName);
|
|
36671
|
+
BooleanSchemas = [{
|
|
36672
|
+
key: BooleanConfig.NO,
|
|
36673
|
+
label: BooleanConfigName[BooleanConfig.NO]
|
|
36674
|
+
}, {
|
|
36675
|
+
key: BooleanConfig.YES,
|
|
36676
|
+
label: BooleanConfigName[BooleanConfig.YES]
|
|
36677
|
+
}];
|
|
36678
|
+
});
|
|
36679
|
+
function _arrayLikeToArray(arr, len) {
|
|
36680
|
+
if (len == null || len > arr.length)
|
|
36681
|
+
len = arr.length;
|
|
36682
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
36683
|
+
arr2[i] = arr[i];
|
|
36684
|
+
}
|
|
36685
|
+
return arr2;
|
|
36686
|
+
}
|
|
36687
|
+
var init_arrayLikeToArray = __esmMin(() => {
|
|
36688
|
+
});
|
|
36689
|
+
function _arrayWithoutHoles(arr) {
|
|
36690
|
+
if (Array.isArray(arr))
|
|
36691
|
+
return _arrayLikeToArray(arr);
|
|
36692
|
+
}
|
|
36693
|
+
var init_arrayWithoutHoles = __esmMin(() => {
|
|
36694
|
+
init_arrayLikeToArray();
|
|
36695
|
+
});
|
|
36696
|
+
function _iterableToArray(iter) {
|
|
36697
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
36698
|
+
return Array.from(iter);
|
|
36699
|
+
}
|
|
36700
|
+
var init_iterableToArray = __esmMin(() => {
|
|
36701
|
+
});
|
|
36702
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
36703
|
+
if (!o)
|
|
36704
|
+
return;
|
|
36705
|
+
if (typeof o === "string")
|
|
36706
|
+
return _arrayLikeToArray(o, minLen);
|
|
36707
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
36708
|
+
if (n === "Object" && o.constructor)
|
|
36709
|
+
n = o.constructor.name;
|
|
36710
|
+
if (n === "Map" || n === "Set")
|
|
36711
|
+
return Array.from(o);
|
|
36712
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
36713
|
+
return _arrayLikeToArray(o, minLen);
|
|
36714
|
+
}
|
|
36715
|
+
var init_unsupportedIterableToArray = __esmMin(() => {
|
|
36716
|
+
init_arrayLikeToArray();
|
|
36717
|
+
});
|
|
36718
|
+
function _nonIterableSpread() {
|
|
36719
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
36720
|
+
}
|
|
36721
|
+
var init_nonIterableSpread = __esmMin(() => {
|
|
36722
|
+
});
|
|
36723
|
+
function _toConsumableArray(arr) {
|
|
36724
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
36725
|
+
}
|
|
36726
|
+
var init_toConsumableArray = __esmMin(() => {
|
|
36727
|
+
init_arrayWithoutHoles();
|
|
36728
|
+
init_iterableToArray();
|
|
36729
|
+
init_unsupportedIterableToArray();
|
|
36730
|
+
init_nonIterableSpread();
|
|
36731
|
+
});
|
|
36732
|
+
function getSolutionNameFromSubSolution(solution) {
|
|
36733
|
+
if (solution === SubSolution.MWATest) {
|
|
36734
|
+
return Solution.MWA;
|
|
36735
|
+
}
|
|
36736
|
+
if (solution === SubSolution.InnerModule) {
|
|
36737
|
+
return Solution.Module;
|
|
36738
|
+
}
|
|
36739
|
+
return solution;
|
|
36740
|
+
}
|
|
36741
|
+
var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
|
|
36742
|
+
var init_solution = __esmMin(() => {
|
|
36743
|
+
init_toConsumableArray();
|
|
36744
|
+
init_defineProperty();
|
|
36745
|
+
init_locale();
|
|
36746
|
+
(function(Solution2) {
|
|
36747
|
+
Solution2["MWA"] = "mwa";
|
|
36748
|
+
Solution2["Module"] = "module";
|
|
36749
|
+
Solution2["Monorepo"] = "monorepo";
|
|
36750
|
+
})(Solution || (Solution = {}));
|
|
36751
|
+
(function(SubSolution2) {
|
|
36752
|
+
SubSolution2["MWA"] = "mwa";
|
|
36753
|
+
SubSolution2["MWATest"] = "mwa_test";
|
|
36754
|
+
SubSolution2["Module"] = "module";
|
|
36755
|
+
SubSolution2["InnerModule"] = "inner_module";
|
|
36756
|
+
})(SubSolution || (SubSolution = {}));
|
|
36757
|
+
SolutionText = (_SolutionText = {}, _defineProperty(_SolutionText, Solution.MWA, function() {
|
|
36758
|
+
return i18n.t(localeKeys.solution.mwa);
|
|
36759
|
+
}), _defineProperty(_SolutionText, Solution.Module, function() {
|
|
36760
|
+
return i18n.t(localeKeys.solution.module);
|
|
36761
|
+
}), _defineProperty(_SolutionText, Solution.Monorepo, function() {
|
|
36762
|
+
return i18n.t(localeKeys.solution.monorepo);
|
|
36763
|
+
}), _SolutionText);
|
|
36764
|
+
SubSolutionText = (_SubSolutionText = {}, _defineProperty(_SubSolutionText, SubSolution.MWA, function() {
|
|
36765
|
+
return i18n.t(localeKeys.sub_solution.mwa);
|
|
36766
|
+
}), _defineProperty(_SubSolutionText, SubSolution.MWATest, function() {
|
|
36767
|
+
return i18n.t(localeKeys.sub_solution.mwa_test);
|
|
36768
|
+
}), _defineProperty(_SubSolutionText, SubSolution.Module, function() {
|
|
36769
|
+
return i18n.t(localeKeys.sub_solution.module);
|
|
36770
|
+
}), _defineProperty(_SubSolutionText, SubSolution.InnerModule, function() {
|
|
36771
|
+
return i18n.t(localeKeys.sub_solution.inner_module);
|
|
36772
|
+
}), _SubSolutionText);
|
|
36773
|
+
SolutionToolsMap = (_SolutionToolsMap = {}, _defineProperty(_SolutionToolsMap, Solution.MWA, "@modern-js/app-tools"), _defineProperty(_SolutionToolsMap, Solution.Module, "@modern-js/module-tools"), _defineProperty(_SolutionToolsMap, Solution.Monorepo, "@modern-js/monorepo-tools"), _SolutionToolsMap);
|
|
36774
|
+
SolutionSchema = {
|
|
36775
|
+
key: "solution_schema",
|
|
36776
|
+
isObject: true,
|
|
36777
|
+
items: [{
|
|
36778
|
+
key: "solution",
|
|
36779
|
+
label: function label() {
|
|
36780
|
+
return i18n.t(localeKeys.solution.self);
|
|
36781
|
+
},
|
|
36782
|
+
type: ["string"],
|
|
36783
|
+
mutualExclusion: true,
|
|
36784
|
+
items: function items(_data, extra) {
|
|
36785
|
+
var _extra$customPlugin, _extra$customPlugin$c;
|
|
36786
|
+
var items5 = Object.values(Solution).filter(function(solution) {
|
|
36787
|
+
return !(extra !== null && extra !== void 0 && extra.isSubProject && solution === Solution.Monorepo);
|
|
36788
|
+
}).map(function(solution) {
|
|
36789
|
+
return {
|
|
36790
|
+
key: solution,
|
|
36791
|
+
label: SolutionText[solution]
|
|
36792
|
+
};
|
|
36793
|
+
});
|
|
36794
|
+
if (extra !== null && extra !== void 0 && (_extra$customPlugin = extra.customPlugin) !== null && _extra$customPlugin !== void 0 && (_extra$customPlugin$c = _extra$customPlugin.custom) !== null && _extra$customPlugin$c !== void 0 && _extra$customPlugin$c.length) {
|
|
36795
|
+
return [].concat(_toConsumableArray(items5), [{
|
|
36796
|
+
key: "custom",
|
|
36797
|
+
label: i18n.t(localeKeys.solution.custom)
|
|
36798
|
+
}]);
|
|
36799
|
+
}
|
|
36800
|
+
return items5;
|
|
36801
|
+
}
|
|
36802
|
+
}, {
|
|
36803
|
+
key: "scenes",
|
|
36804
|
+
label: function label2() {
|
|
36805
|
+
return i18n.t(localeKeys.scenes.self);
|
|
36806
|
+
},
|
|
36807
|
+
type: ["string"],
|
|
36808
|
+
mutualExclusion: true,
|
|
36809
|
+
when: function when(data, extra) {
|
|
36810
|
+
return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[data.solution] && extra.customPlugin[data.solution].length > 0;
|
|
36811
|
+
},
|
|
36812
|
+
items: function items2(data, extra) {
|
|
36813
|
+
var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[data.solution]) || [] : []).map(function(plugin) {
|
|
36814
|
+
return {
|
|
36815
|
+
key: plugin.key,
|
|
36816
|
+
label: plugin.name
|
|
36817
|
+
};
|
|
36818
|
+
});
|
|
36819
|
+
if (data.solution && data.solution !== "custom") {
|
|
36820
|
+
items5.unshift({
|
|
36821
|
+
key: data.solution,
|
|
36822
|
+
label: "".concat(SolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
|
|
36823
|
+
});
|
|
36824
|
+
}
|
|
36825
|
+
return items5;
|
|
36826
|
+
}
|
|
36827
|
+
}]
|
|
36828
|
+
};
|
|
36829
|
+
SubSolutionSchema = {
|
|
36830
|
+
key: "sub_solution_schema",
|
|
36831
|
+
isObject: true,
|
|
36832
|
+
items: [{
|
|
36833
|
+
key: "solution",
|
|
36834
|
+
label: function label3() {
|
|
36835
|
+
return i18n.t(localeKeys.sub_solution.self);
|
|
36836
|
+
},
|
|
36837
|
+
type: ["string"],
|
|
36838
|
+
mutualExclusion: true,
|
|
36839
|
+
items: function items3(_data, extra) {
|
|
36840
|
+
var _extra$customPlugin2, _extra$customPlugin2$;
|
|
36841
|
+
var items5 = Object.values(SubSolution).map(function(solution) {
|
|
36842
|
+
return {
|
|
36843
|
+
key: solution,
|
|
36844
|
+
label: SubSolutionText[solution]
|
|
36845
|
+
};
|
|
36846
|
+
});
|
|
36847
|
+
if (extra !== null && extra !== void 0 && (_extra$customPlugin2 = extra.customPlugin) !== null && _extra$customPlugin2 !== void 0 && (_extra$customPlugin2$ = _extra$customPlugin2.custom) !== null && _extra$customPlugin2$ !== void 0 && _extra$customPlugin2$.length) {
|
|
36848
|
+
return [].concat(_toConsumableArray(items5), [{
|
|
36849
|
+
key: "custom",
|
|
36850
|
+
label: i18n.t(localeKeys.solution.custom)
|
|
36851
|
+
}]);
|
|
36852
|
+
}
|
|
36853
|
+
return items5;
|
|
36854
|
+
}
|
|
36855
|
+
}, {
|
|
36856
|
+
key: "scenes",
|
|
36857
|
+
label: function label4() {
|
|
36858
|
+
return i18n.t(localeKeys.scenes.self);
|
|
36859
|
+
},
|
|
36860
|
+
type: ["string"],
|
|
36861
|
+
mutualExclusion: true,
|
|
36862
|
+
when: function when2(data, extra) {
|
|
36863
|
+
return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)] && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)].length > 0;
|
|
36864
|
+
},
|
|
36865
|
+
items: function items4(data, extra) {
|
|
36866
|
+
var solution = getSolutionNameFromSubSolution(data.solution);
|
|
36867
|
+
var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map(function(plugin) {
|
|
36868
|
+
return {
|
|
36869
|
+
key: plugin.key,
|
|
36870
|
+
label: plugin.name
|
|
36871
|
+
};
|
|
36872
|
+
});
|
|
36873
|
+
if (data.solution && data.solution !== "custom") {
|
|
36874
|
+
items5.unshift({
|
|
36875
|
+
key: data.solution,
|
|
36876
|
+
label: "".concat(SubSolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
|
|
36877
|
+
});
|
|
36878
|
+
}
|
|
36879
|
+
return items5;
|
|
36880
|
+
}
|
|
36881
|
+
}]
|
|
36882
|
+
};
|
|
36883
|
+
BaseGenerator = "@modern-js/base-generator";
|
|
36884
|
+
SolutionGenerator = (_SolutionGenerator = {}, _defineProperty(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
|
|
36885
|
+
SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
|
|
36886
|
+
ChangesetGenerator = "@modern-js/changeset-generator";
|
|
36887
|
+
DependenceGenerator = "@modern-js/dependence-generator";
|
|
36888
|
+
EntryGenerator = "@modern-js/entry-generator";
|
|
36889
|
+
ElectronGenerator = "@modern-js/electron-generator";
|
|
36890
|
+
EslintGenerator = "@modern-js/eslint-generator";
|
|
36891
|
+
});
|
|
36892
|
+
var _LanguageName, Language, LanguageName, LanguageSchema;
|
|
36893
|
+
var init_language = __esmMin(() => {
|
|
36894
|
+
init_defineProperty();
|
|
36895
|
+
init_locale();
|
|
36896
|
+
(function(Language2) {
|
|
36897
|
+
Language2["TS"] = "ts";
|
|
36898
|
+
Language2["JS"] = "js";
|
|
36899
|
+
})(Language || (Language = {}));
|
|
36900
|
+
LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
|
|
36901
|
+
return "TS";
|
|
36902
|
+
}), _defineProperty(_LanguageName, Language.JS, function() {
|
|
36903
|
+
return "ES6+";
|
|
36904
|
+
}), _LanguageName);
|
|
36905
|
+
LanguageSchema = {
|
|
36906
|
+
key: "language",
|
|
36907
|
+
type: ["string"],
|
|
36908
|
+
label: function label5() {
|
|
36909
|
+
return i18n.t(localeKeys.language.self);
|
|
36910
|
+
},
|
|
36911
|
+
mutualExclusion: true,
|
|
36912
|
+
items: Object.values(Language).map(function(language) {
|
|
36913
|
+
return {
|
|
36914
|
+
key: language,
|
|
36915
|
+
label: LanguageName[language]
|
|
36916
|
+
};
|
|
36917
|
+
})
|
|
36918
|
+
};
|
|
36919
|
+
});
|
|
36920
|
+
var _PackageManagerName, PackageManager, PackageManagerName, PackageManagerSchema;
|
|
36921
|
+
var init_package_manager = __esmMin(() => {
|
|
36922
|
+
init_defineProperty();
|
|
36923
|
+
init_locale();
|
|
36924
|
+
(function(PackageManager2) {
|
|
36925
|
+
PackageManager2["Pnpm"] = "pnpm";
|
|
36926
|
+
PackageManager2["Yarn"] = "yarn";
|
|
36927
|
+
PackageManager2["Npm"] = "npm";
|
|
36928
|
+
})(PackageManager || (PackageManager = {}));
|
|
36929
|
+
PackageManagerName = (_PackageManagerName = {}, _defineProperty(_PackageManagerName, PackageManager.Pnpm, function() {
|
|
36930
|
+
return "pnpm";
|
|
36931
|
+
}), _defineProperty(_PackageManagerName, PackageManager.Yarn, function() {
|
|
36932
|
+
return "Yarn";
|
|
36933
|
+
}), _defineProperty(_PackageManagerName, PackageManager.Npm, function() {
|
|
36934
|
+
return "npm";
|
|
36935
|
+
}), _PackageManagerName);
|
|
36936
|
+
PackageManagerSchema = {
|
|
36937
|
+
key: "packageManager",
|
|
36938
|
+
type: ["string"],
|
|
36939
|
+
label: function label6() {
|
|
36940
|
+
return i18n.t(localeKeys.packageManager.self);
|
|
36941
|
+
},
|
|
36942
|
+
mutualExclusion: true,
|
|
36943
|
+
when: function when3(_values, extra) {
|
|
36944
|
+
return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
|
|
36945
|
+
},
|
|
36946
|
+
items: Object.values(PackageManager).map(function(packageManager) {
|
|
36947
|
+
return {
|
|
36948
|
+
key: packageManager,
|
|
36949
|
+
label: PackageManagerName[packageManager]
|
|
36950
|
+
};
|
|
36951
|
+
})
|
|
36952
|
+
};
|
|
36953
|
+
});
|
|
36954
|
+
var PackageNameSchema;
|
|
36955
|
+
var init_package_name = __esmMin(() => {
|
|
36956
|
+
init_locale();
|
|
36957
|
+
PackageNameSchema = {
|
|
36958
|
+
key: "packageName",
|
|
36959
|
+
label: function label7(_, extra) {
|
|
36960
|
+
return extra !== null && extra !== void 0 && extra.isMonorepoSubProject ? i18n.t(localeKeys.packageName.sub_name) : i18n.t(localeKeys.packageName.self);
|
|
36961
|
+
},
|
|
36962
|
+
type: ["string"],
|
|
36963
|
+
when: function when4(_, extra) {
|
|
36964
|
+
return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra !== null && extra !== void 0 && extra.isMwa);
|
|
36965
|
+
},
|
|
36966
|
+
validate: function validate(value) {
|
|
36967
|
+
if (!value) {
|
|
36968
|
+
return {
|
|
36969
|
+
success: false,
|
|
36970
|
+
error: i18n.t(localeKeys.packageName.no_empty)
|
|
36971
|
+
};
|
|
36972
|
+
}
|
|
36973
|
+
return {
|
|
36974
|
+
success: true
|
|
36975
|
+
};
|
|
36976
|
+
}
|
|
36977
|
+
};
|
|
36978
|
+
});
|
|
36979
|
+
var PackagePathRegex, PackagePathSchema;
|
|
36980
|
+
var init_package_path = __esmMin(() => {
|
|
36981
|
+
init_locale();
|
|
36982
|
+
PackagePathRegex = new RegExp("^[a-z0-9]*[-_/]?([a-z0-9]*[-_]?[a-z0-9]*)*[-_/]?[a-z0-9-_]+$");
|
|
36983
|
+
PackagePathSchema = {
|
|
36984
|
+
key: "packagePath",
|
|
36985
|
+
label: function label8() {
|
|
36986
|
+
return i18n.t(localeKeys.packagePath.self);
|
|
36987
|
+
},
|
|
36988
|
+
type: ["string"],
|
|
36989
|
+
when: function when5(_, extra) {
|
|
36990
|
+
return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject);
|
|
36991
|
+
},
|
|
36992
|
+
state: {
|
|
36993
|
+
value: {
|
|
36994
|
+
effectedByFields: ["packageName"],
|
|
36995
|
+
action: function action(data) {
|
|
36996
|
+
return "".concat(data.packageName || "");
|
|
36997
|
+
}
|
|
36998
|
+
}
|
|
36999
|
+
},
|
|
37000
|
+
validate: function validate2(value) {
|
|
37001
|
+
if (!value) {
|
|
37002
|
+
return {
|
|
37003
|
+
success: false,
|
|
37004
|
+
error: i18n.t(localeKeys.packagePath.no_empty)
|
|
37005
|
+
};
|
|
37006
|
+
}
|
|
37007
|
+
if (!PackagePathRegex.test(value)) {
|
|
37008
|
+
return {
|
|
37009
|
+
success: false,
|
|
37010
|
+
error: i18n.t(localeKeys.packagePath.format)
|
|
37011
|
+
};
|
|
37012
|
+
}
|
|
37013
|
+
return {
|
|
37014
|
+
success: true
|
|
37015
|
+
};
|
|
37016
|
+
}
|
|
37017
|
+
};
|
|
37018
|
+
});
|
|
37019
|
+
var init_common = __esmMin(() => {
|
|
37020
|
+
init_boolean();
|
|
37021
|
+
init_solution();
|
|
37022
|
+
init_language();
|
|
37023
|
+
init_package_manager();
|
|
37024
|
+
init_package_name();
|
|
37025
|
+
init_package_path();
|
|
37026
|
+
});
|
|
37027
|
+
var BaseSchemas, BaseSchema, BaseDefaultConfig;
|
|
37028
|
+
var init_project = __esmMin(() => {
|
|
37029
|
+
init_common();
|
|
37030
|
+
BaseSchemas = [PackageManagerSchema];
|
|
37031
|
+
BaseSchema = {
|
|
37032
|
+
key: "base",
|
|
37033
|
+
isObject: true,
|
|
37034
|
+
items: BaseSchemas
|
|
37035
|
+
};
|
|
37036
|
+
BaseDefaultConfig = {
|
|
37037
|
+
packageManager: PackageManager.Pnpm
|
|
37038
|
+
};
|
|
37039
|
+
});
|
|
37040
|
+
var init_base = __esmMin(() => {
|
|
37041
|
+
init_project();
|
|
37042
|
+
});
|
|
37043
|
+
function ownKeys(object, enumerableOnly) {
|
|
37044
|
+
var keys = Object.keys(object);
|
|
37045
|
+
if (Object.getOwnPropertySymbols) {
|
|
37046
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
37047
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
37048
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
37049
|
+
})), keys.push.apply(keys, symbols);
|
|
37050
|
+
}
|
|
37051
|
+
return keys;
|
|
37052
|
+
}
|
|
37053
|
+
function _objectSpread2(target) {
|
|
37054
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
37055
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
37056
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
37057
|
+
_defineProperty(target, key, source[key]);
|
|
37058
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
37059
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
37060
|
+
});
|
|
37061
|
+
}
|
|
37062
|
+
return target;
|
|
37063
|
+
}
|
|
37064
|
+
var init_objectSpread2 = __esmMin(() => {
|
|
37065
|
+
init_defineProperty();
|
|
37066
|
+
});
|
|
37067
|
+
var EnableLessSchema, EnableSassSchema;
|
|
37068
|
+
var init_css = __esmMin(() => {
|
|
37069
|
+
init_locale();
|
|
37070
|
+
init_boolean();
|
|
37071
|
+
EnableLessSchema = {
|
|
37072
|
+
key: "enableLess",
|
|
37073
|
+
type: ["string"],
|
|
37074
|
+
label: function label9() {
|
|
37075
|
+
return i18n.t(localeKeys.needModifyConfig.enableLess);
|
|
37076
|
+
},
|
|
37077
|
+
mutualExclusion: true,
|
|
37078
|
+
state: {
|
|
37079
|
+
value: BooleanConfig.NO
|
|
37080
|
+
},
|
|
37081
|
+
items: BooleanSchemas
|
|
37082
|
+
};
|
|
37083
|
+
EnableSassSchema = {
|
|
37084
|
+
key: "enableSass",
|
|
37085
|
+
type: ["string"],
|
|
37086
|
+
label: function label10() {
|
|
37087
|
+
return i18n.t(localeKeys.needModifyConfig.enableSass);
|
|
37088
|
+
},
|
|
37089
|
+
mutualExclusion: true,
|
|
37090
|
+
state: {
|
|
37091
|
+
value: BooleanConfig.NO
|
|
37092
|
+
},
|
|
37093
|
+
items: BooleanSchemas
|
|
37094
|
+
};
|
|
37095
|
+
});
|
|
37096
|
+
var moduleConfigWhenFunc, EnableModuleLessSchema, EnableModuleSassSchema, NeedModifyModuleConfigSchema, ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
|
|
37097
|
+
var init_project2 = __esmMin(() => {
|
|
37098
|
+
init_objectSpread2();
|
|
37099
|
+
init_locale();
|
|
37100
|
+
init_common();
|
|
37101
|
+
init_css();
|
|
37102
|
+
moduleConfigWhenFunc = function moduleConfigWhenFunc2(values) {
|
|
37103
|
+
return values.needModifyModuleConfig === BooleanConfig.YES;
|
|
37104
|
+
};
|
|
37105
|
+
EnableModuleLessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
|
|
37106
|
+
when: moduleConfigWhenFunc
|
|
37107
|
+
});
|
|
37108
|
+
EnableModuleSassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
|
|
37109
|
+
when: moduleConfigWhenFunc
|
|
37110
|
+
});
|
|
37111
|
+
NeedModifyModuleConfigSchema = {
|
|
37112
|
+
key: "needModifyModuleConfig",
|
|
37113
|
+
label: function label11() {
|
|
37114
|
+
return i18n.t(localeKeys.needModifyConfig.self);
|
|
37115
|
+
},
|
|
37116
|
+
type: ["string"],
|
|
37117
|
+
mutualExclusion: true,
|
|
37118
|
+
state: {
|
|
37119
|
+
value: BooleanConfig.NO
|
|
37120
|
+
},
|
|
37121
|
+
items: BooleanSchemas
|
|
37122
|
+
};
|
|
37123
|
+
ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, NeedModifyModuleConfigSchema, EnableModuleLessSchema, EnableModuleSassSchema];
|
|
37124
|
+
ModuleSchema = {
|
|
37125
|
+
key: "module",
|
|
37126
|
+
isObject: true,
|
|
37127
|
+
items: ModuleSchemas
|
|
37128
|
+
};
|
|
37129
|
+
ModuleDefaultConfig = {
|
|
37130
|
+
language: Language.TS,
|
|
37131
|
+
packageManager: PackageManager.Pnpm,
|
|
37132
|
+
needModifyModuleConfig: BooleanConfig.NO,
|
|
37133
|
+
enableLess: BooleanConfig.NO,
|
|
37134
|
+
enableSass: BooleanConfig.NO
|
|
37135
|
+
};
|
|
37136
|
+
});
|
|
37137
|
+
var init_module = __esmMin(() => {
|
|
37138
|
+
init_project2();
|
|
37139
|
+
});
|
|
37140
|
+
var MonorepoPackageManagerSchema, MonorepoSchemas, MonorepoSchema, MonorepoDefaultConfig;
|
|
37141
|
+
var init_project3 = __esmMin(() => {
|
|
37142
|
+
init_objectSpread2();
|
|
37143
|
+
init_common();
|
|
37144
|
+
MonorepoPackageManagerSchema = _objectSpread2(_objectSpread2({}, PackageManagerSchema), {}, {
|
|
37145
|
+
items: PackageManagerSchema.items.filter(function(item) {
|
|
37146
|
+
return item.key !== PackageManager.Npm;
|
|
37147
|
+
})
|
|
37148
|
+
});
|
|
37149
|
+
MonorepoSchemas = [MonorepoPackageManagerSchema];
|
|
37150
|
+
MonorepoSchema = {
|
|
37151
|
+
key: "monorepo",
|
|
37152
|
+
isObject: true,
|
|
37153
|
+
items: MonorepoSchemas
|
|
37154
|
+
};
|
|
37155
|
+
MonorepoDefaultConfig = {
|
|
37156
|
+
packageManager: PackageManager.Pnpm
|
|
37157
|
+
};
|
|
37158
|
+
});
|
|
37159
|
+
var init_monorepo = __esmMin(() => {
|
|
37160
|
+
init_project3();
|
|
37161
|
+
});
|
|
37162
|
+
var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema, NeedModifyMWAConfigSchema, Framework, FrameworkSchema, FrameworkAppendTypeContent;
|
|
37163
|
+
var init_common2 = __esmMin(() => {
|
|
37164
|
+
init_defineProperty();
|
|
37165
|
+
init_objectSpread2();
|
|
37166
|
+
init_locale();
|
|
37167
|
+
init_boolean();
|
|
37168
|
+
init_css();
|
|
37169
|
+
mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
|
|
37170
|
+
return values.needModifyMWAConfig === BooleanConfig.YES;
|
|
37171
|
+
};
|
|
37172
|
+
(function(RunWay2) {
|
|
37173
|
+
RunWay2["No"] = "no";
|
|
37174
|
+
RunWay2["Electron"] = "electron";
|
|
37175
|
+
})(RunWay || (RunWay = {}));
|
|
37176
|
+
RunWaySchema = {
|
|
37177
|
+
key: "runWay",
|
|
37178
|
+
type: ["string"],
|
|
37179
|
+
label: function label12() {
|
|
37180
|
+
return i18n.t(localeKeys.runWay.self);
|
|
37181
|
+
},
|
|
37182
|
+
mutualExclusion: true,
|
|
37183
|
+
when: function when6(_, extra) {
|
|
37184
|
+
return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
|
|
37185
|
+
},
|
|
37186
|
+
state: {
|
|
37187
|
+
value: RunWay.No
|
|
37188
|
+
},
|
|
37189
|
+
items: Object.values(RunWay).map(function(runWay) {
|
|
37190
|
+
return {
|
|
37191
|
+
key: runWay,
|
|
37192
|
+
label: function label25() {
|
|
37193
|
+
return i18n.t(localeKeys.runWay[runWay]);
|
|
37194
|
+
}
|
|
37195
|
+
};
|
|
37196
|
+
})
|
|
37197
|
+
};
|
|
37198
|
+
(function(ClientRoute2) {
|
|
37199
|
+
ClientRoute2["SelfControlRoute"] = "selfControlRoute";
|
|
37200
|
+
ClientRoute2["ConventionalRoute"] = "conventionalRoute";
|
|
37201
|
+
ClientRoute2["No"] = "no";
|
|
37202
|
+
})(ClientRoute || (ClientRoute = {}));
|
|
37203
|
+
ClientRouteSchema = {
|
|
37204
|
+
key: "clientRoute",
|
|
37205
|
+
type: ["string"],
|
|
37206
|
+
label: function label13() {
|
|
37207
|
+
return i18n.t(localeKeys.entry.clientRoute.self);
|
|
37208
|
+
},
|
|
37209
|
+
mutualExclusion: true,
|
|
37210
|
+
when: mwaConfigWhenFunc,
|
|
37211
|
+
state: {
|
|
37212
|
+
value: ClientRoute.SelfControlRoute
|
|
37213
|
+
},
|
|
37214
|
+
items: Object.values(ClientRoute).map(function(clientRoute) {
|
|
37215
|
+
return {
|
|
37216
|
+
key: clientRoute,
|
|
37217
|
+
label: function label25() {
|
|
37218
|
+
return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
|
|
37219
|
+
}
|
|
37220
|
+
};
|
|
37221
|
+
})
|
|
37222
|
+
};
|
|
37223
|
+
DisableStateManagementSchema = {
|
|
37224
|
+
key: "disableStateManagement",
|
|
37225
|
+
type: ["string"],
|
|
37226
|
+
label: function label14() {
|
|
37227
|
+
return i18n.t(localeKeys.entry.disableStateManagement);
|
|
37228
|
+
},
|
|
37229
|
+
mutualExclusion: true,
|
|
37230
|
+
when: mwaConfigWhenFunc,
|
|
37231
|
+
state: {
|
|
37232
|
+
value: BooleanConfig.NO
|
|
37233
|
+
},
|
|
37234
|
+
items: BooleanSchemas
|
|
37235
|
+
};
|
|
37236
|
+
EnableMWALessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
|
|
37237
|
+
when: mwaConfigWhenFunc
|
|
37238
|
+
});
|
|
37239
|
+
EnableMWASassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
|
|
37240
|
+
when: mwaConfigWhenFunc
|
|
37241
|
+
});
|
|
37242
|
+
NeedModifyMWAConfigSchema = {
|
|
37243
|
+
key: "needModifyMWAConfig",
|
|
37244
|
+
label: function label15() {
|
|
37245
|
+
return i18n.t(localeKeys.needModifyConfig.self);
|
|
37246
|
+
},
|
|
37247
|
+
type: ["string"],
|
|
37248
|
+
mutualExclusion: true,
|
|
37249
|
+
state: {
|
|
37250
|
+
value: BooleanConfig.NO
|
|
37251
|
+
},
|
|
37252
|
+
items: BooleanSchemas
|
|
37253
|
+
};
|
|
37254
|
+
(function(Framework2) {
|
|
37255
|
+
Framework2["Express"] = "express";
|
|
37256
|
+
Framework2["Koa"] = "koa";
|
|
37257
|
+
Framework2["Egg"] = "egg";
|
|
37258
|
+
Framework2["Nest"] = "nest";
|
|
37259
|
+
})(Framework || (Framework = {}));
|
|
37260
|
+
FrameworkSchema = {
|
|
37261
|
+
key: "framework",
|
|
37262
|
+
type: ["string"],
|
|
37263
|
+
label: function label16() {
|
|
37264
|
+
return i18n.t(localeKeys.framework.self);
|
|
37265
|
+
},
|
|
37266
|
+
mutualExclusion: true,
|
|
37267
|
+
items: Object.values(Framework).map(function(framework) {
|
|
37268
|
+
return {
|
|
37269
|
+
key: framework,
|
|
37270
|
+
label: function label25() {
|
|
37271
|
+
return i18n.t(localeKeys.framework[framework]);
|
|
37272
|
+
}
|
|
37273
|
+
};
|
|
37274
|
+
})
|
|
37275
|
+
};
|
|
37276
|
+
FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
|
|
37277
|
+
});
|
|
37278
|
+
var EntryNameSchema, EntrySchemas, EntrySchema, MWADefaultEntryConfig;
|
|
37279
|
+
var init_entry = __esmMin(() => {
|
|
37280
|
+
init_locale();
|
|
37281
|
+
init_common();
|
|
37282
|
+
init_common2();
|
|
37283
|
+
EntryNameSchema = {
|
|
37284
|
+
key: "name",
|
|
37285
|
+
type: ["string"],
|
|
37286
|
+
label: function label17() {
|
|
37287
|
+
return i18n.t(localeKeys.entry.name);
|
|
37288
|
+
},
|
|
37289
|
+
state: {
|
|
37290
|
+
value: "entry"
|
|
37291
|
+
},
|
|
37292
|
+
validate: function validate3(value) {
|
|
37293
|
+
if (!value) {
|
|
37294
|
+
return {
|
|
37295
|
+
success: false,
|
|
37296
|
+
error: i18n.t(localeKeys.entry.no_empty)
|
|
37297
|
+
};
|
|
37298
|
+
}
|
|
37299
|
+
if (value === "pages") {
|
|
37300
|
+
return {
|
|
37301
|
+
success: false,
|
|
37302
|
+
error: i18n.t(localeKeys.entry.no_pages)
|
|
37303
|
+
};
|
|
37304
|
+
}
|
|
37305
|
+
return {
|
|
37306
|
+
success: true
|
|
37307
|
+
};
|
|
37308
|
+
},
|
|
37309
|
+
when: function when7(_values, extra) {
|
|
37310
|
+
if (extra !== null && extra !== void 0 && extra.isEmptySrc) {
|
|
37311
|
+
return false;
|
|
37312
|
+
}
|
|
37313
|
+
return true;
|
|
37314
|
+
}
|
|
37315
|
+
};
|
|
37316
|
+
EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema];
|
|
37317
|
+
EntrySchema = {
|
|
37318
|
+
key: "entry",
|
|
37319
|
+
label: function label18() {
|
|
37320
|
+
return i18n.t(localeKeys.action.element.entry);
|
|
37321
|
+
},
|
|
37322
|
+
isObject: true,
|
|
37323
|
+
items: EntrySchemas
|
|
37324
|
+
};
|
|
37325
|
+
MWADefaultEntryConfig = {
|
|
37326
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
|
37327
|
+
clientRoute: ClientRoute.SelfControlRoute,
|
|
37328
|
+
disableStateManagement: BooleanConfig.NO
|
|
37329
|
+
};
|
|
37330
|
+
});
|
|
37331
|
+
var BFFType, BFFTypeSchema, BFFSchemas, BFFSchema, MWADefaultBffConfig;
|
|
37332
|
+
var init_bff = __esmMin(() => {
|
|
37333
|
+
init_locale();
|
|
37334
|
+
init_common2();
|
|
37335
|
+
(function(BFFType2) {
|
|
37336
|
+
BFFType2["Func"] = "func";
|
|
37337
|
+
BFFType2["Framework"] = "framework";
|
|
37338
|
+
})(BFFType || (BFFType = {}));
|
|
37339
|
+
BFFTypeSchema = {
|
|
37340
|
+
key: "bffType",
|
|
37341
|
+
type: ["string"],
|
|
37342
|
+
label: function label19() {
|
|
37343
|
+
return i18n.t(localeKeys.bff.bffType.self);
|
|
37344
|
+
},
|
|
37345
|
+
mutualExclusion: true,
|
|
37346
|
+
items: Object.values(BFFType).map(function(bffType) {
|
|
37347
|
+
return {
|
|
37348
|
+
key: bffType,
|
|
37349
|
+
label: function label25() {
|
|
37350
|
+
return i18n.t(localeKeys.bff.bffType[bffType]);
|
|
37351
|
+
}
|
|
37352
|
+
};
|
|
37353
|
+
})
|
|
37354
|
+
};
|
|
37355
|
+
BFFSchemas = [BFFTypeSchema, FrameworkSchema];
|
|
37356
|
+
BFFSchema = {
|
|
37357
|
+
key: "bff",
|
|
37358
|
+
label: function label20() {
|
|
37359
|
+
return i18n.t(localeKeys.action["function"].bff);
|
|
37360
|
+
},
|
|
37361
|
+
isObject: true,
|
|
37362
|
+
items: BFFSchemas
|
|
37363
|
+
};
|
|
37364
|
+
MWADefaultBffConfig = {
|
|
37365
|
+
bffType: BFFType.Func,
|
|
37366
|
+
frameWork: Framework.Express
|
|
37367
|
+
};
|
|
37368
|
+
});
|
|
37369
|
+
var MWASchemas, MWASchema, MWADefaultConfig;
|
|
37370
|
+
var init_project4 = __esmMin(() => {
|
|
37371
|
+
init_common();
|
|
37372
|
+
init_common2();
|
|
37373
|
+
MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema];
|
|
37374
|
+
MWASchema = {
|
|
37375
|
+
key: "mwa",
|
|
37376
|
+
isObject: true,
|
|
37377
|
+
items: MWASchemas
|
|
37378
|
+
};
|
|
37379
|
+
MWADefaultConfig = {
|
|
37380
|
+
language: Language.TS,
|
|
37381
|
+
packageManager: PackageManager.Pnpm,
|
|
37382
|
+
runWay: RunWay.No,
|
|
37383
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
|
37384
|
+
clientRoute: ClientRoute.SelfControlRoute,
|
|
37385
|
+
disableStateManagement: BooleanConfig.NO,
|
|
37386
|
+
enableLess: BooleanConfig.NO,
|
|
37387
|
+
enableSass: BooleanConfig.NO
|
|
37388
|
+
};
|
|
37389
|
+
});
|
|
37390
|
+
var ServerSchemas, ServerSchema, MWADefaultServerConfig;
|
|
37391
|
+
var init_server = __esmMin(() => {
|
|
37392
|
+
init_locale();
|
|
37393
|
+
init_common2();
|
|
37394
|
+
ServerSchemas = [FrameworkSchema];
|
|
37395
|
+
ServerSchema = {
|
|
37396
|
+
key: "server",
|
|
37397
|
+
label: function label21() {
|
|
37398
|
+
return i18n.t(localeKeys.action.element.server);
|
|
37399
|
+
},
|
|
37400
|
+
isObject: true,
|
|
37401
|
+
items: ServerSchemas
|
|
37402
|
+
};
|
|
37403
|
+
MWADefaultServerConfig = {
|
|
37404
|
+
framework: Framework.Express
|
|
37405
|
+
};
|
|
37406
|
+
});
|
|
37407
|
+
var init_mwa = __esmMin(() => {
|
|
37408
|
+
init_common2();
|
|
37409
|
+
init_entry();
|
|
37410
|
+
init_bff();
|
|
37411
|
+
init_project4();
|
|
37412
|
+
init_server();
|
|
37413
|
+
});
|
|
37414
|
+
var _ActionTypeText, _ActionElementText, _ActionFunctionText, _ActionTypeTextMap, ActionType, ActionElement, ActionFunction, ActionRefactor, ActionTypeText, ActionElementText, ActionFunctionText, ActionRefactorText, ActionTypeTextMap;
|
|
37415
|
+
var init_common3 = __esmMin(() => {
|
|
37416
|
+
init_defineProperty();
|
|
37417
|
+
init_locale();
|
|
37418
|
+
(function(ActionType2) {
|
|
37419
|
+
ActionType2["Function"] = "function";
|
|
37420
|
+
ActionType2["Element"] = "element";
|
|
37421
|
+
ActionType2["Refactor"] = "refactor";
|
|
37422
|
+
})(ActionType || (ActionType = {}));
|
|
37423
|
+
(function(ActionElement2) {
|
|
37424
|
+
ActionElement2["Entry"] = "entry";
|
|
37425
|
+
ActionElement2["Server"] = "server";
|
|
37426
|
+
})(ActionElement || (ActionElement = {}));
|
|
37427
|
+
(function(ActionFunction2) {
|
|
37428
|
+
ActionFunction2["TailwindCSS"] = "tailwindcss";
|
|
37429
|
+
ActionFunction2["Less"] = "less";
|
|
37430
|
+
ActionFunction2["Sass"] = "sass";
|
|
37431
|
+
ActionFunction2["BFF"] = "bff";
|
|
37432
|
+
ActionFunction2["MicroFrontend"] = "micro_frontend";
|
|
37433
|
+
ActionFunction2["Electron"] = "electron";
|
|
37434
|
+
ActionFunction2["I18n"] = "i18n";
|
|
37435
|
+
ActionFunction2["Test"] = "test";
|
|
37436
|
+
ActionFunction2["E2ETest"] = "e2e_test";
|
|
37437
|
+
ActionFunction2["Doc"] = "doc";
|
|
37438
|
+
ActionFunction2["Storybook"] = "storybook";
|
|
37439
|
+
ActionFunction2["RuntimeApi"] = "runtimeApi";
|
|
37440
|
+
ActionFunction2["SSG"] = "ssg";
|
|
37441
|
+
ActionFunction2["Polyfill"] = "polyfill";
|
|
37442
|
+
ActionFunction2["Proxy"] = "proxy";
|
|
37443
|
+
})(ActionFunction || (ActionFunction = {}));
|
|
37444
|
+
(function(ActionRefactor2) {
|
|
37445
|
+
ActionRefactor2["BFFToApp"] = "bff_to_app";
|
|
37446
|
+
})(ActionRefactor || (ActionRefactor = {}));
|
|
37447
|
+
ActionTypeText = (_ActionTypeText = {}, _defineProperty(_ActionTypeText, ActionType.Function, function() {
|
|
37448
|
+
return i18n.t(localeKeys.action["function"].self);
|
|
37449
|
+
}), _defineProperty(_ActionTypeText, ActionType.Element, function() {
|
|
37450
|
+
return i18n.t(localeKeys.action.element.self);
|
|
37451
|
+
}), _defineProperty(_ActionTypeText, ActionType.Refactor, function() {
|
|
37452
|
+
return i18n.t(localeKeys.action.refactor.self);
|
|
37453
|
+
}), _ActionTypeText);
|
|
37454
|
+
ActionElementText = (_ActionElementText = {}, _defineProperty(_ActionElementText, ActionElement.Entry, function() {
|
|
37455
|
+
return i18n.t(localeKeys.action.element.entry);
|
|
37456
|
+
}), _defineProperty(_ActionElementText, ActionElement.Server, function() {
|
|
37457
|
+
return i18n.t(localeKeys.action.element.server);
|
|
37458
|
+
}), _ActionElementText);
|
|
37459
|
+
ActionFunctionText = (_ActionFunctionText = {}, _defineProperty(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
|
|
37460
|
+
return i18n.t(localeKeys.action["function"].tailwindcss);
|
|
37461
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Less, function() {
|
|
37462
|
+
return i18n.t(localeKeys.action["function"].less);
|
|
37463
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Sass, function() {
|
|
37464
|
+
return i18n.t(localeKeys.action["function"].sass);
|
|
37465
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.BFF, function() {
|
|
37466
|
+
return i18n.t(localeKeys.action["function"].bff);
|
|
37467
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
|
|
37468
|
+
return i18n.t(localeKeys.action["function"].micro_frontend);
|
|
37469
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Electron, function() {
|
|
37470
|
+
return i18n.t(localeKeys.action["function"].electron);
|
|
37471
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.I18n, function() {
|
|
37472
|
+
return i18n.t(localeKeys.action["function"].i18n);
|
|
37473
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Test, function() {
|
|
37474
|
+
return i18n.t(localeKeys.action["function"].test);
|
|
37475
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.E2ETest, function() {
|
|
37476
|
+
return i18n.t(localeKeys.action["function"].e2e_test);
|
|
37477
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Doc, function() {
|
|
37478
|
+
return i18n.t(localeKeys.action["function"].doc);
|
|
37479
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Storybook, function() {
|
|
37480
|
+
return i18n.t(localeKeys.action["function"].storybook);
|
|
37481
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.RuntimeApi, function() {
|
|
37482
|
+
return i18n.t(localeKeys.action["function"].runtime_api);
|
|
37483
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.SSG, function() {
|
|
37484
|
+
return i18n.t(localeKeys.action["function"].ssg);
|
|
37485
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Polyfill, function() {
|
|
37486
|
+
return i18n.t(localeKeys.action["function"].polyfill);
|
|
37487
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Proxy, function() {
|
|
37488
|
+
return i18n.t(localeKeys.action["function"].proxy);
|
|
37489
|
+
}), _ActionFunctionText);
|
|
37490
|
+
ActionRefactorText = _defineProperty({}, ActionRefactor.BFFToApp, function() {
|
|
37491
|
+
return i18n.t(localeKeys.action.refactor.bff_to_app);
|
|
37492
|
+
});
|
|
37493
|
+
ActionTypeTextMap = (_ActionTypeTextMap = {}, _defineProperty(_ActionTypeTextMap, ActionType.Element, ActionElementText), _defineProperty(_ActionTypeTextMap, ActionType.Function, ActionFunctionText), _defineProperty(_ActionTypeTextMap, ActionType.Refactor, ActionRefactorText), _ActionTypeTextMap);
|
|
37494
|
+
});
|
|
37495
|
+
var _MWAActionTypesMap, _MWAActionFunctionsDe, _MWAActionFunctionsDe2, _ActionType$Element, _ActionType$Function, _MWANewActionGenerato, MWAActionTypes, MWAActionFunctions, MWAActionElements, MWAActionReactors, MWAActionTypesMap, MWASpecialSchemaMap, MWANewActionSchema, MWAActionFunctionsDevDependencies, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWANewActionGenerators;
|
|
37496
|
+
var init_mwa2 = __esmMin(() => {
|
|
37497
|
+
init_defineProperty();
|
|
37498
|
+
init_common3();
|
|
37499
|
+
init_locale();
|
|
37500
|
+
MWAActionTypes = [
|
|
37501
|
+
ActionType.Element,
|
|
37502
|
+
ActionType.Function
|
|
37503
|
+
];
|
|
37504
|
+
MWAActionFunctions = [
|
|
37505
|
+
ActionFunction.TailwindCSS,
|
|
37506
|
+
ActionFunction.Less,
|
|
37507
|
+
ActionFunction.Sass,
|
|
37508
|
+
ActionFunction.BFF,
|
|
37509
|
+
ActionFunction.SSG,
|
|
37510
|
+
ActionFunction.MicroFrontend,
|
|
37511
|
+
ActionFunction.Electron,
|
|
37512
|
+
ActionFunction.Test,
|
|
37513
|
+
ActionFunction.Storybook,
|
|
37514
|
+
ActionFunction.Polyfill,
|
|
37515
|
+
ActionFunction.Proxy
|
|
37516
|
+
];
|
|
37517
|
+
MWAActionElements = [ActionElement.Entry, ActionElement.Server];
|
|
37518
|
+
MWAActionReactors = [ActionRefactor.BFFToApp];
|
|
37519
|
+
MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
|
|
37520
|
+
MWASpecialSchemaMap = _defineProperty({}, ActionFunction.Storybook, {
|
|
37521
|
+
key: ActionFunction.Storybook,
|
|
37522
|
+
label: function label22() {
|
|
37523
|
+
return i18n.t(localeKeys.action["function"].mwa_storybook);
|
|
37524
|
+
}
|
|
37525
|
+
});
|
|
37526
|
+
MWANewActionSchema = {
|
|
37527
|
+
key: "mwa_new_action",
|
|
37528
|
+
isObject: true,
|
|
37529
|
+
items: [{
|
|
37530
|
+
key: "actionType",
|
|
37531
|
+
label: function label23() {
|
|
37532
|
+
return i18n.t(localeKeys.action.self);
|
|
37533
|
+
},
|
|
37534
|
+
type: ["string"],
|
|
37535
|
+
mutualExclusion: true,
|
|
37536
|
+
items: MWAActionTypes.map(function(type) {
|
|
37537
|
+
return {
|
|
37538
|
+
key: type,
|
|
37539
|
+
label: ActionTypeText[type],
|
|
37540
|
+
type: ["string"],
|
|
37541
|
+
mutualExclusion: true,
|
|
37542
|
+
items: MWAActionTypesMap[type].map(function(item) {
|
|
37543
|
+
return MWASpecialSchemaMap[item] || {
|
|
37544
|
+
key: item,
|
|
37545
|
+
label: ActionTypeTextMap[type][item]
|
|
37546
|
+
};
|
|
37547
|
+
})
|
|
37548
|
+
};
|
|
37549
|
+
})
|
|
37550
|
+
}]
|
|
37551
|
+
};
|
|
37552
|
+
MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
|
|
37553
|
+
MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
|
|
37554
|
+
MWAActionFunctionsAppendTypeContent = _defineProperty({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
|
|
37555
|
+
MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Electron, "@modern-js/electron-generator"), _defineProperty(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty(_MWANewActionGenerato, ActionType.Refactor, _defineProperty({}, ActionRefactor.BFFToApp, "@modern-js/bff-refactor-generator")), _MWANewActionGenerato);
|
|
37556
|
+
});
|
|
37557
|
+
var _ModuleActionFunction, _ModuleActionFunction2, _ModuleActionFunction3, _ActionType$Function2, ModuleActionTypes, ModuleActionFunctions, ModuleActionTypesMap, ModuleSpecialSchemaMap, ModuleNewActionSchema, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleActionFunctionsDependencies, ModuleNewActionGenerators;
|
|
37558
|
+
var init_module2 = __esmMin(() => {
|
|
37559
|
+
init_defineProperty();
|
|
37560
|
+
init_common3();
|
|
37561
|
+
init_locale();
|
|
37562
|
+
ModuleActionTypes = [ActionType.Function];
|
|
37563
|
+
ModuleActionFunctions = [
|
|
37564
|
+
ActionFunction.TailwindCSS,
|
|
37565
|
+
ActionFunction.Less,
|
|
37566
|
+
ActionFunction.Sass,
|
|
37567
|
+
ActionFunction.Storybook,
|
|
37568
|
+
ActionFunction.RuntimeApi
|
|
37569
|
+
];
|
|
37570
|
+
ModuleActionTypesMap = _defineProperty({}, ActionType.Function, ModuleActionFunctions);
|
|
37571
|
+
ModuleSpecialSchemaMap = {};
|
|
37572
|
+
ModuleNewActionSchema = {
|
|
37573
|
+
key: "Module_new_action",
|
|
37574
|
+
isObject: true,
|
|
37575
|
+
items: [{
|
|
37576
|
+
key: "actionType",
|
|
37577
|
+
label: function label24() {
|
|
37578
|
+
return i18n.t(localeKeys.action.self);
|
|
37579
|
+
},
|
|
37580
|
+
type: ["string"],
|
|
37581
|
+
mutualExclusion: true,
|
|
37582
|
+
items: ModuleActionTypes.map(function(type) {
|
|
37583
|
+
return {
|
|
37584
|
+
key: type,
|
|
37585
|
+
label: ActionTypeText[type],
|
|
37586
|
+
type: ["string"],
|
|
37587
|
+
mutualExclusion: true,
|
|
37588
|
+
items: ModuleActionFunctions.map(function(func) {
|
|
37589
|
+
return ModuleSpecialSchemaMap[func] || {
|
|
37590
|
+
key: func,
|
|
37591
|
+
label: ActionFunctionText[func]
|
|
37592
|
+
};
|
|
37593
|
+
})
|
|
37594
|
+
};
|
|
37595
|
+
})
|
|
37596
|
+
}]
|
|
37597
|
+
};
|
|
37598
|
+
ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_ModuleActionFunction, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
|
|
37599
|
+
ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
|
|
37600
|
+
ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
|
|
37601
|
+
ModuleNewActionGenerators = _defineProperty({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Test, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Storybook, "@modern-js/storybook-generator"), _defineProperty(_ActionType$Function2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _ActionType$Function2));
|
|
37602
|
+
});
|
|
37603
|
+
var _MonorepoNewActionCon, MonorepoNewActionSchema, MonorepoNewActionConfig;
|
|
37604
|
+
var init_monorepo2 = __esmMin(() => {
|
|
37605
|
+
init_defineProperty();
|
|
37606
|
+
init_common();
|
|
37607
|
+
MonorepoNewActionSchema = {
|
|
37608
|
+
key: "monorepo_new_action",
|
|
37609
|
+
isObject: true,
|
|
37610
|
+
items: [SubSolutionSchema]
|
|
37611
|
+
};
|
|
37612
|
+
MonorepoNewActionConfig = (_MonorepoNewActionCon = {}, _defineProperty(_MonorepoNewActionCon, SubSolution.MWA, {
|
|
37613
|
+
isMonorepoSubProject: true,
|
|
37614
|
+
isTest: false
|
|
37615
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.MWATest, {
|
|
37616
|
+
isMonorepoSubProject: true,
|
|
37617
|
+
isTest: true
|
|
37618
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.Module, {
|
|
37619
|
+
isMonorepoSubProject: true,
|
|
37620
|
+
isPublic: true
|
|
37621
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.InnerModule, {
|
|
37622
|
+
isMonorepoSubProject: true,
|
|
37623
|
+
isPublic: false
|
|
37624
|
+
}), _MonorepoNewActionCon);
|
|
37625
|
+
});
|
|
37626
|
+
var init_newAction = __esmMin(() => {
|
|
37627
|
+
init_common3();
|
|
37628
|
+
init_mwa2();
|
|
37629
|
+
init_module2();
|
|
37630
|
+
init_monorepo2();
|
|
37631
|
+
});
|
|
37632
|
+
var GeneratorSchemas, GeneratorSchema, GeneratorDefaultConfig;
|
|
37633
|
+
var init_generator = __esmMin(() => {
|
|
37634
|
+
init_common();
|
|
37635
|
+
GeneratorSchemas = [PackageNameSchema, PackagePathSchema, PackageManagerSchema, LanguageSchema];
|
|
37636
|
+
GeneratorSchema = {
|
|
37637
|
+
key: "generator-generator",
|
|
37638
|
+
isObject: true,
|
|
37639
|
+
items: Object.values(GeneratorSchemas)
|
|
37640
|
+
};
|
|
37641
|
+
GeneratorDefaultConfig = {
|
|
37642
|
+
packageManager: PackageManager.Pnpm,
|
|
37643
|
+
language: Language.TS
|
|
37644
|
+
};
|
|
37645
|
+
});
|
|
37646
|
+
var init_expand = __esmMin(() => {
|
|
37647
|
+
init_generator();
|
|
37648
|
+
});
|
|
37649
|
+
var treeshaking_exports2 = {};
|
|
37650
|
+
__export2(treeshaking_exports2, {
|
|
37651
|
+
ActionElement: () => ActionElement,
|
|
37652
|
+
ActionElementText: () => ActionElementText,
|
|
37653
|
+
ActionFunction: () => ActionFunction,
|
|
37654
|
+
ActionFunctionText: () => ActionFunctionText,
|
|
37655
|
+
ActionRefactor: () => ActionRefactor,
|
|
37656
|
+
ActionRefactorText: () => ActionRefactorText,
|
|
37657
|
+
ActionType: () => ActionType,
|
|
37658
|
+
ActionTypeText: () => ActionTypeText,
|
|
37659
|
+
ActionTypeTextMap: () => ActionTypeTextMap,
|
|
37660
|
+
BFFSchema: () => BFFSchema,
|
|
37661
|
+
BFFSchemas: () => BFFSchemas,
|
|
37662
|
+
BFFType: () => BFFType,
|
|
37663
|
+
BFFTypeSchema: () => BFFTypeSchema,
|
|
37664
|
+
BaseDefaultConfig: () => BaseDefaultConfig,
|
|
37665
|
+
BaseGenerator: () => BaseGenerator,
|
|
37666
|
+
BaseSchema: () => BaseSchema,
|
|
37667
|
+
BaseSchemas: () => BaseSchemas,
|
|
37668
|
+
BooleanConfig: () => BooleanConfig,
|
|
37669
|
+
BooleanConfigName: () => BooleanConfigName,
|
|
37670
|
+
BooleanSchemas: () => BooleanSchemas,
|
|
37671
|
+
ChangesetGenerator: () => ChangesetGenerator,
|
|
37672
|
+
ClientRoute: () => ClientRoute,
|
|
37673
|
+
ClientRouteSchema: () => ClientRouteSchema,
|
|
37674
|
+
DependenceGenerator: () => DependenceGenerator,
|
|
37675
|
+
DisableStateManagementSchema: () => DisableStateManagementSchema,
|
|
37676
|
+
ElectronGenerator: () => ElectronGenerator,
|
|
37677
|
+
EnableMWALessSchema: () => EnableMWALessSchema,
|
|
37678
|
+
EnableMWASassSchema: () => EnableMWASassSchema,
|
|
37679
|
+
EnableModuleLessSchema: () => EnableModuleLessSchema,
|
|
37680
|
+
EnableModuleSassSchema: () => EnableModuleSassSchema,
|
|
37681
|
+
EntryGenerator: () => EntryGenerator,
|
|
37682
|
+
EntrySchema: () => EntrySchema,
|
|
37683
|
+
EntrySchemas: () => EntrySchemas,
|
|
37684
|
+
EslintGenerator: () => EslintGenerator,
|
|
37685
|
+
Framework: () => Framework,
|
|
37686
|
+
FrameworkAppendTypeContent: () => FrameworkAppendTypeContent,
|
|
37687
|
+
FrameworkSchema: () => FrameworkSchema,
|
|
37688
|
+
GeneratorDefaultConfig: () => GeneratorDefaultConfig,
|
|
37689
|
+
GeneratorSchema: () => GeneratorSchema,
|
|
37690
|
+
Language: () => Language,
|
|
37691
|
+
LanguageName: () => LanguageName,
|
|
37692
|
+
LanguageSchema: () => LanguageSchema,
|
|
37693
|
+
MWAActionElements: () => MWAActionElements,
|
|
37694
|
+
MWAActionFunctions: () => MWAActionFunctions,
|
|
37695
|
+
MWAActionFunctionsAppendTypeContent: () => MWAActionFunctionsAppendTypeContent,
|
|
37696
|
+
MWAActionFunctionsDependencies: () => MWAActionFunctionsDependencies,
|
|
37697
|
+
MWAActionFunctionsDevDependencies: () => MWAActionFunctionsDevDependencies,
|
|
37698
|
+
MWAActionReactors: () => MWAActionReactors,
|
|
37699
|
+
MWAActionTypes: () => MWAActionTypes,
|
|
37700
|
+
MWAActionTypesMap: () => MWAActionTypesMap,
|
|
37701
|
+
MWADefaultBffConfig: () => MWADefaultBffConfig,
|
|
37702
|
+
MWADefaultConfig: () => MWADefaultConfig,
|
|
37703
|
+
MWADefaultEntryConfig: () => MWADefaultEntryConfig,
|
|
37704
|
+
MWADefaultServerConfig: () => MWADefaultServerConfig,
|
|
37705
|
+
MWANewActionGenerators: () => MWANewActionGenerators,
|
|
37706
|
+
MWANewActionSchema: () => MWANewActionSchema,
|
|
37707
|
+
MWASchema: () => MWASchema,
|
|
37708
|
+
MWASchemas: () => MWASchemas,
|
|
37709
|
+
MWASpecialSchemaMap: () => MWASpecialSchemaMap,
|
|
37710
|
+
ModuleActionFunctions: () => ModuleActionFunctions,
|
|
37711
|
+
ModuleActionFunctionsDependencies: () => ModuleActionFunctionsDependencies,
|
|
37712
|
+
ModuleActionFunctionsDevDependencies: () => ModuleActionFunctionsDevDependencies,
|
|
37713
|
+
ModuleActionFunctionsPeerDependencies: () => ModuleActionFunctionsPeerDependencies,
|
|
37714
|
+
ModuleActionTypes: () => ModuleActionTypes,
|
|
37715
|
+
ModuleActionTypesMap: () => ModuleActionTypesMap,
|
|
37716
|
+
ModuleDefaultConfig: () => ModuleDefaultConfig,
|
|
37717
|
+
ModuleNewActionGenerators: () => ModuleNewActionGenerators,
|
|
37718
|
+
ModuleNewActionSchema: () => ModuleNewActionSchema,
|
|
37719
|
+
ModuleSchema: () => ModuleSchema,
|
|
37720
|
+
ModuleSchemas: () => ModuleSchemas,
|
|
37721
|
+
ModuleSpecialSchemaMap: () => ModuleSpecialSchemaMap,
|
|
37722
|
+
MonorepoDefaultConfig: () => MonorepoDefaultConfig,
|
|
37723
|
+
MonorepoNewActionConfig: () => MonorepoNewActionConfig,
|
|
37724
|
+
MonorepoNewActionSchema: () => MonorepoNewActionSchema,
|
|
37725
|
+
MonorepoSchema: () => MonorepoSchema,
|
|
37726
|
+
MonorepoSchemas: () => MonorepoSchemas,
|
|
37727
|
+
NeedModifyMWAConfigSchema: () => NeedModifyMWAConfigSchema,
|
|
37728
|
+
NeedModifyModuleConfigSchema: () => NeedModifyModuleConfigSchema,
|
|
37729
|
+
PackageManager: () => PackageManager,
|
|
37730
|
+
PackageManagerName: () => PackageManagerName,
|
|
37731
|
+
PackageManagerSchema: () => PackageManagerSchema,
|
|
37732
|
+
PackageNameSchema: () => PackageNameSchema,
|
|
37733
|
+
PackagePathSchema: () => PackagePathSchema,
|
|
37734
|
+
RunWay: () => RunWay,
|
|
37735
|
+
RunWaySchema: () => RunWaySchema,
|
|
37736
|
+
ServerSchema: () => ServerSchema,
|
|
37737
|
+
ServerSchemas: () => ServerSchemas,
|
|
37738
|
+
Solution: () => Solution,
|
|
37739
|
+
SolutionDefaultConfig: () => SolutionDefaultConfig,
|
|
37740
|
+
SolutionGenerator: () => SolutionGenerator,
|
|
37741
|
+
SolutionSchema: () => SolutionSchema,
|
|
37742
|
+
SolutionSchemas: () => SolutionSchemas,
|
|
37743
|
+
SolutionText: () => SolutionText,
|
|
37744
|
+
SolutionToolsMap: () => SolutionToolsMap,
|
|
37745
|
+
SubSolution: () => SubSolution,
|
|
37746
|
+
SubSolutionGenerator: () => SubSolutionGenerator,
|
|
37747
|
+
SubSolutionSchema: () => SubSolutionSchema,
|
|
37748
|
+
SubSolutionText: () => SubSolutionText,
|
|
37749
|
+
getSolutionNameFromSubSolution: () => getSolutionNameFromSubSolution,
|
|
37750
|
+
i18n: () => i18n,
|
|
37751
|
+
localeKeys: () => localeKeys,
|
|
37752
|
+
moduleConfigWhenFunc: () => moduleConfigWhenFunc,
|
|
37753
|
+
mwaConfigWhenFunc: () => mwaConfigWhenFunc
|
|
37754
|
+
});
|
|
37755
|
+
var _SolutionDefaultConfi, _SolutionSchemas, SolutionDefaultConfig, SolutionSchemas;
|
|
37756
|
+
var init_treeshaking2 = __esmMin(() => {
|
|
37757
|
+
init_defineProperty();
|
|
37758
|
+
init_base();
|
|
37759
|
+
init_common();
|
|
37760
|
+
init_module();
|
|
37761
|
+
init_monorepo();
|
|
37762
|
+
init_mwa();
|
|
37763
|
+
init_locale();
|
|
37764
|
+
init_common();
|
|
37765
|
+
init_newAction();
|
|
37766
|
+
init_mwa();
|
|
37767
|
+
init_module();
|
|
37768
|
+
init_monorepo();
|
|
37769
|
+
init_expand();
|
|
37770
|
+
init_base();
|
|
37771
|
+
SolutionDefaultConfig = (_SolutionDefaultConfi = {}, _defineProperty(_SolutionDefaultConfi, Solution.MWA, MWADefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Module, ModuleDefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Monorepo, MonorepoDefaultConfig), _SolutionDefaultConfi);
|
|
37772
|
+
SolutionSchemas = (_SolutionSchemas = {}, _defineProperty(_SolutionSchemas, Solution.MWA, MWASchemas), _defineProperty(_SolutionSchemas, Solution.Module, ModuleSchemas), _defineProperty(_SolutionSchemas, Solution.Monorepo, MonorepoSchemas), _defineProperty(_SolutionSchemas, "custom", BaseSchemas), _SolutionSchemas);
|
|
37773
|
+
});
|
|
37774
|
+
var require_strip_ansi2 = __commonJSMin((exports) => {
|
|
37775
|
+
"use strict";
|
|
37776
|
+
Object.defineProperty(exports, "__esModule", {
|
|
37777
|
+
value: true
|
|
37778
|
+
});
|
|
37779
|
+
exports.stripAnsi = stripAnsi;
|
|
37780
|
+
function ansiRegex({
|
|
37781
|
+
onlyFirst = false
|
|
37782
|
+
} = {}) {
|
|
37783
|
+
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
|
|
37784
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
37785
|
+
}
|
|
37786
|
+
function stripAnsi(string) {
|
|
37787
|
+
if (typeof string !== "string") {
|
|
37788
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
37789
|
+
}
|
|
37790
|
+
return string.replace(ansiRegex(), "");
|
|
37791
|
+
}
|
|
37792
|
+
});
|
|
36419
37793
|
var require_zh = __commonJSMin((exports) => {
|
|
36420
37794
|
"use strict";
|
|
36421
37795
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -36465,6 +37839,78 @@ var require_locale = __commonJSMin((exports) => {
|
|
|
36465
37839
|
});
|
|
36466
37840
|
exports.localeKeys = localeKeys2;
|
|
36467
37841
|
});
|
|
37842
|
+
var require_package = __commonJSMin((exports) => {
|
|
37843
|
+
"use strict";
|
|
37844
|
+
Object.defineProperty(exports, "__esModule", {
|
|
37845
|
+
value: true
|
|
37846
|
+
});
|
|
37847
|
+
exports.getAvailableVersion = getAvailableVersion;
|
|
37848
|
+
exports.isPackageDeprecated = isPackageDeprecated;
|
|
37849
|
+
exports.isPackageExist = isPackageExist;
|
|
37850
|
+
exports.semverDecrease = semverDecrease;
|
|
37851
|
+
var _utils = require_dist();
|
|
37852
|
+
async function isPackageExist(packageName, registry) {
|
|
37853
|
+
if (await (0, _utils.canUseNpm)()) {
|
|
37854
|
+
const args = ["view", packageName, "version"];
|
|
37855
|
+
if (registry) {
|
|
37856
|
+
args.push(`--registry=${registry}`);
|
|
37857
|
+
}
|
|
37858
|
+
const result = await (0, _utils.execa)("npm", args);
|
|
37859
|
+
return (0, _utils.stripAnsi)(result.stdout);
|
|
37860
|
+
}
|
|
37861
|
+
throw new Error("not found npm, please install npm before");
|
|
37862
|
+
}
|
|
37863
|
+
async function isPackageDeprecated(packageName, registry) {
|
|
37864
|
+
if (await (0, _utils.canUseNpm)()) {
|
|
37865
|
+
const args = ["view", packageName, "deprecated"];
|
|
37866
|
+
if (registry) {
|
|
37867
|
+
args.push(`--registry=${registry}`);
|
|
37868
|
+
}
|
|
37869
|
+
const result = await (0, _utils.execa)("npm", args);
|
|
37870
|
+
return (0, _utils.stripAnsi)(result.stdout);
|
|
37871
|
+
}
|
|
37872
|
+
throw new Error("not found npm, please install npm before");
|
|
37873
|
+
}
|
|
37874
|
+
function semverDecrease(version4) {
|
|
37875
|
+
const versionObj = _utils.semver.parse(version4, {
|
|
37876
|
+
loose: true
|
|
37877
|
+
});
|
|
37878
|
+
if (!versionObj) {
|
|
37879
|
+
throw new Error(`Version ${version4} is not valid semver`);
|
|
37880
|
+
}
|
|
37881
|
+
versionObj.build = [];
|
|
37882
|
+
versionObj.prerelease = [];
|
|
37883
|
+
versionObj.patch--;
|
|
37884
|
+
const result = versionObj.format();
|
|
37885
|
+
if (!_utils.semver.valid(result)) {
|
|
37886
|
+
_utils.logger.debug(`Version ${result} is not valid semver`);
|
|
37887
|
+
return version4;
|
|
37888
|
+
}
|
|
37889
|
+
return result;
|
|
37890
|
+
}
|
|
37891
|
+
async function getAvailableVersion(packageName, currentVersion, registry) {
|
|
37892
|
+
let times = 5;
|
|
37893
|
+
let version4 = currentVersion;
|
|
37894
|
+
while (times) {
|
|
37895
|
+
if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
|
|
37896
|
+
version4 = _utils.semver.inc(version4, "patch");
|
|
37897
|
+
times--;
|
|
37898
|
+
continue;
|
|
37899
|
+
}
|
|
37900
|
+
return version4;
|
|
37901
|
+
}
|
|
37902
|
+
times = 5;
|
|
37903
|
+
while (times) {
|
|
37904
|
+
version4 = semverDecrease(version4);
|
|
37905
|
+
if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
|
|
37906
|
+
times--;
|
|
37907
|
+
continue;
|
|
37908
|
+
}
|
|
37909
|
+
return version4;
|
|
37910
|
+
}
|
|
37911
|
+
return currentVersion;
|
|
37912
|
+
}
|
|
37913
|
+
});
|
|
36468
37914
|
var require_utils = __commonJSMin((exports) => {
|
|
36469
37915
|
"use strict";
|
|
36470
37916
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -36483,6 +37929,19 @@ var require_utils = __commonJSMin((exports) => {
|
|
|
36483
37929
|
}
|
|
36484
37930
|
});
|
|
36485
37931
|
});
|
|
37932
|
+
var _package = require_package();
|
|
37933
|
+
Object.keys(_package).forEach(function(key) {
|
|
37934
|
+
if (key === "default" || key === "__esModule")
|
|
37935
|
+
return;
|
|
37936
|
+
if (key in exports && exports[key] === _package[key])
|
|
37937
|
+
return;
|
|
37938
|
+
Object.defineProperty(exports, key, {
|
|
37939
|
+
enumerable: true,
|
|
37940
|
+
get: function() {
|
|
37941
|
+
return _package[key];
|
|
37942
|
+
}
|
|
37943
|
+
});
|
|
37944
|
+
});
|
|
36486
37945
|
});
|
|
36487
37946
|
var require_node = __commonJSMin((exports) => {
|
|
36488
37947
|
"use strict";
|
|
@@ -36492,6 +37951,7 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36492
37951
|
var _exportNames = {
|
|
36493
37952
|
getPackageVersion: true,
|
|
36494
37953
|
getModernVersion: true,
|
|
37954
|
+
getModernPluginVersion: true,
|
|
36495
37955
|
getPackageManagerText: true,
|
|
36496
37956
|
isTsProject: true,
|
|
36497
37957
|
getPackageObj: true,
|
|
@@ -36500,7 +37960,9 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36500
37960
|
validatePackagePath: true,
|
|
36501
37961
|
getModuleProjectPath: true,
|
|
36502
37962
|
getMWAProjectPath: true,
|
|
37963
|
+
ora: true,
|
|
36503
37964
|
fs: true,
|
|
37965
|
+
semver: true,
|
|
36504
37966
|
execa: true,
|
|
36505
37967
|
readTsConfigByFile: true,
|
|
36506
37968
|
getPackageManager: true,
|
|
@@ -36542,6 +38004,7 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36542
38004
|
});
|
|
36543
38005
|
exports.getAllPackages = getAllPackages;
|
|
36544
38006
|
exports.getMWAProjectPath = getMWAProjectPath;
|
|
38007
|
+
exports.getModernPluginVersion = getModernPluginVersion2;
|
|
36545
38008
|
exports.getModernVersion = getModernVersion;
|
|
36546
38009
|
exports.getModuleProjectPath = getModuleProjectPath;
|
|
36547
38010
|
Object.defineProperty(exports, "getPackageManager", {
|
|
@@ -36566,18 +38029,32 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36566
38029
|
}
|
|
36567
38030
|
});
|
|
36568
38031
|
exports.isTsProject = isTsProject2;
|
|
38032
|
+
Object.defineProperty(exports, "ora", {
|
|
38033
|
+
enumerable: true,
|
|
38034
|
+
get: function() {
|
|
38035
|
+
return _utils.ora;
|
|
38036
|
+
}
|
|
38037
|
+
});
|
|
36569
38038
|
Object.defineProperty(exports, "readTsConfigByFile", {
|
|
36570
38039
|
enumerable: true,
|
|
36571
38040
|
get: function() {
|
|
36572
38041
|
return _utils.readTsConfigByFile;
|
|
36573
38042
|
}
|
|
36574
38043
|
});
|
|
38044
|
+
Object.defineProperty(exports, "semver", {
|
|
38045
|
+
enumerable: true,
|
|
38046
|
+
get: function() {
|
|
38047
|
+
return _utils.semver;
|
|
38048
|
+
}
|
|
38049
|
+
});
|
|
36575
38050
|
exports.validatePackageName = validatePackageName;
|
|
36576
38051
|
exports.validatePackagePath = validatePackagePath;
|
|
36577
38052
|
var _path = _interopRequireDefault(__require("path"));
|
|
36578
38053
|
var _utils = require_dist();
|
|
38054
|
+
var _generatorCommon = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
|
|
36579
38055
|
var _stripAnsi = require_strip_ansi2();
|
|
36580
38056
|
var _locale = require_locale();
|
|
38057
|
+
var _package = require_package();
|
|
36581
38058
|
var _utils2 = require_utils();
|
|
36582
38059
|
Object.keys(_utils2).forEach(function(key) {
|
|
36583
38060
|
if (key === "default" || key === "__esModule")
|
|
@@ -36629,16 +38106,39 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36629
38106
|
spinner.stop();
|
|
36630
38107
|
throw new Error("not found npm, please install npm before");
|
|
36631
38108
|
}
|
|
36632
|
-
|
|
36633
|
-
|
|
36634
|
-
|
|
36635
|
-
monorepo: "@modern-js/monorepo-tools"
|
|
36636
|
-
};
|
|
36637
|
-
async function getModernVersion(solution) {
|
|
36638
|
-
const dep = SolutionDep[solution];
|
|
36639
|
-
const modernVersion = await getPackageVersion2(dep);
|
|
38109
|
+
async function getModernVersion(solution, registry) {
|
|
38110
|
+
const dep = _generatorCommon.SolutionToolsMap[solution];
|
|
38111
|
+
const modernVersion = await getPackageVersion2(dep, registry);
|
|
36640
38112
|
return modernVersion;
|
|
36641
38113
|
}
|
|
38114
|
+
async function getModernPluginVersion2(solution, packageName, options3 = {}) {
|
|
38115
|
+
const {
|
|
38116
|
+
cwd = process.cwd(),
|
|
38117
|
+
registry
|
|
38118
|
+
} = options3;
|
|
38119
|
+
const getLatetPluginVersion = async () => {
|
|
38120
|
+
const version4 = await getPackageVersion2(packageName, registry);
|
|
38121
|
+
return version4;
|
|
38122
|
+
};
|
|
38123
|
+
if (!packageName.startsWith("@modern-js")) {
|
|
38124
|
+
return getLatetPluginVersion();
|
|
38125
|
+
}
|
|
38126
|
+
const pkgPath = _path.default.join(__require.resolve(_generatorCommon.SolutionToolsMap[solution], {
|
|
38127
|
+
paths: [cwd]
|
|
38128
|
+
}), "../../../../", "package.json");
|
|
38129
|
+
if (_utils.fs.existsSync(pkgPath)) {
|
|
38130
|
+
const pkgInfo = _utils.fs.readJSONSync(pkgPath);
|
|
38131
|
+
const modernVersion = pkgInfo.version;
|
|
38132
|
+
if (typeof modernVersion !== "string") {
|
|
38133
|
+
return getLatetPluginVersion();
|
|
38134
|
+
}
|
|
38135
|
+
if (_utils.semver.lt(modernVersion, "1.15.0")) {
|
|
38136
|
+
return getLatetPluginVersion();
|
|
38137
|
+
}
|
|
38138
|
+
return (0, _package.getAvailableVersion)(packageName, modernVersion, registry);
|
|
38139
|
+
}
|
|
38140
|
+
return getLatetPluginVersion();
|
|
38141
|
+
}
|
|
36642
38142
|
function getPackageManagerText(packageManager) {
|
|
36643
38143
|
return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
|
|
36644
38144
|
}
|
|
@@ -67084,17 +68584,17 @@ var require_logger2 = __commonJSMin((exports) => {
|
|
|
67084
68584
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
|
67085
68585
|
return;
|
|
67086
68586
|
}
|
|
67087
|
-
let
|
|
68587
|
+
let label25 = "";
|
|
67088
68588
|
let text = "";
|
|
67089
68589
|
const logType = this.types[type];
|
|
67090
68590
|
if (this.config.displayLabel && logType.label) {
|
|
67091
|
-
|
|
68591
|
+
label25 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
|
67092
68592
|
if (this.config.underlineLabel) {
|
|
67093
|
-
|
|
68593
|
+
label25 = underline(label25).padEnd(this.longestUnderlinedLabel.length + 1);
|
|
67094
68594
|
} else {
|
|
67095
|
-
|
|
68595
|
+
label25 = label25.padEnd(this.longestLabel.length + 1);
|
|
67096
68596
|
}
|
|
67097
|
-
|
|
68597
|
+
label25 = logType.color ? chalk_1.default[logType.color](label25) : label25;
|
|
67098
68598
|
}
|
|
67099
68599
|
if (message instanceof Error) {
|
|
67100
68600
|
if (message.stack) {
|
|
@@ -67110,15 +68610,15 @@ ${grey(rest.join("\n"))}`;
|
|
|
67110
68610
|
if (logType.level === "warn" || logType.level === "error") {
|
|
67111
68611
|
this.retainLog(type, text);
|
|
67112
68612
|
}
|
|
67113
|
-
const log =
|
|
68613
|
+
const log = label25.length > 0 ? `${label25} ${text}` : text;
|
|
67114
68614
|
console.log(log, ...args);
|
|
67115
68615
|
}
|
|
67116
68616
|
getLongestLabel() {
|
|
67117
68617
|
let longestLabel = "";
|
|
67118
68618
|
Object.keys(this.types).forEach((type) => {
|
|
67119
|
-
const { label:
|
|
67120
|
-
if (
|
|
67121
|
-
longestLabel =
|
|
68619
|
+
const { label: label25 = "" } = this.types[type];
|
|
68620
|
+
if (label25.length > longestLabel.length) {
|
|
68621
|
+
longestLabel = label25;
|
|
67122
68622
|
}
|
|
67123
68623
|
});
|
|
67124
68624
|
return longestLabel;
|
|
@@ -69806,9 +71306,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
69806
71306
|
}();
|
|
69807
71307
|
exports2.BlockStatement = BlockStatement;
|
|
69808
71308
|
var BreakStatement = function() {
|
|
69809
|
-
function BreakStatement2(
|
|
71309
|
+
function BreakStatement2(label25) {
|
|
69810
71310
|
this.type = syntax_1.Syntax.BreakStatement;
|
|
69811
|
-
this.label =
|
|
71311
|
+
this.label = label25;
|
|
69812
71312
|
}
|
|
69813
71313
|
return BreakStatement2;
|
|
69814
71314
|
}();
|
|
@@ -69880,9 +71380,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
69880
71380
|
}();
|
|
69881
71381
|
exports2.ConditionalExpression = ConditionalExpression;
|
|
69882
71382
|
var ContinueStatement = function() {
|
|
69883
|
-
function ContinueStatement2(
|
|
71383
|
+
function ContinueStatement2(label25) {
|
|
69884
71384
|
this.type = syntax_1.Syntax.ContinueStatement;
|
|
69885
|
-
this.label =
|
|
71385
|
+
this.label = label25;
|
|
69886
71386
|
}
|
|
69887
71387
|
return ContinueStatement2;
|
|
69888
71388
|
}();
|
|
@@ -70073,9 +71573,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
70073
71573
|
}();
|
|
70074
71574
|
exports2.ImportSpecifier = ImportSpecifier;
|
|
70075
71575
|
var LabeledStatement = function() {
|
|
70076
|
-
function LabeledStatement2(
|
|
71576
|
+
function LabeledStatement2(label25, body) {
|
|
70077
71577
|
this.type = syntax_1.Syntax.LabeledStatement;
|
|
70078
|
-
this.label =
|
|
71578
|
+
this.label = label25;
|
|
70079
71579
|
this.body = body;
|
|
70080
71580
|
}
|
|
70081
71581
|
return LabeledStatement2;
|
|
@@ -72222,38 +73722,38 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
72222
73722
|
Parser2.prototype.parseContinueStatement = function() {
|
|
72223
73723
|
var node = this.createNode();
|
|
72224
73724
|
this.expectKeyword("continue");
|
|
72225
|
-
var
|
|
73725
|
+
var label25 = null;
|
|
72226
73726
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
|
72227
73727
|
var id = this.parseVariableIdentifier();
|
|
72228
|
-
|
|
73728
|
+
label25 = id;
|
|
72229
73729
|
var key = "$" + id.name;
|
|
72230
73730
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
|
72231
73731
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
|
72232
73732
|
}
|
|
72233
73733
|
}
|
|
72234
73734
|
this.consumeSemicolon();
|
|
72235
|
-
if (
|
|
73735
|
+
if (label25 === null && !this.context.inIteration) {
|
|
72236
73736
|
this.throwError(messages_1.Messages.IllegalContinue);
|
|
72237
73737
|
}
|
|
72238
|
-
return this.finalize(node, new Node.ContinueStatement(
|
|
73738
|
+
return this.finalize(node, new Node.ContinueStatement(label25));
|
|
72239
73739
|
};
|
|
72240
73740
|
Parser2.prototype.parseBreakStatement = function() {
|
|
72241
73741
|
var node = this.createNode();
|
|
72242
73742
|
this.expectKeyword("break");
|
|
72243
|
-
var
|
|
73743
|
+
var label25 = null;
|
|
72244
73744
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
|
72245
73745
|
var id = this.parseVariableIdentifier();
|
|
72246
73746
|
var key = "$" + id.name;
|
|
72247
73747
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
|
72248
73748
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
|
72249
73749
|
}
|
|
72250
|
-
|
|
73750
|
+
label25 = id;
|
|
72251
73751
|
}
|
|
72252
73752
|
this.consumeSemicolon();
|
|
72253
|
-
if (
|
|
73753
|
+
if (label25 === null && !this.context.inIteration && !this.context.inSwitch) {
|
|
72254
73754
|
this.throwError(messages_1.Messages.IllegalBreak);
|
|
72255
73755
|
}
|
|
72256
|
-
return this.finalize(node, new Node.BreakStatement(
|
|
73756
|
+
return this.finalize(node, new Node.BreakStatement(label25));
|
|
72257
73757
|
};
|
|
72258
73758
|
Parser2.prototype.parseReturnStatement = function() {
|
|
72259
73759
|
if (!this.context.inFunctionBody) {
|
|
@@ -75732,7 +77232,7 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
|
75732
77232
|
splice(...args) {
|
|
75733
77233
|
const { length } = this;
|
|
75734
77234
|
const ret = super.splice(...args);
|
|
75735
|
-
let [begin, deleteCount, ...
|
|
77235
|
+
let [begin, deleteCount, ...items5] = args;
|
|
75736
77236
|
if (begin < 0) {
|
|
75737
77237
|
begin += length;
|
|
75738
77238
|
}
|
|
@@ -75743,7 +77243,7 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
|
75743
77243
|
}
|
|
75744
77244
|
const {
|
|
75745
77245
|
length: item_length
|
|
75746
|
-
} =
|
|
77246
|
+
} = items5;
|
|
75747
77247
|
const offset = item_length - deleteCount;
|
|
75748
77248
|
const start = begin + deleteCount;
|
|
75749
77249
|
const count = length - start;
|
|
@@ -75770,12 +77270,12 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
|
75770
77270
|
move_comments(array, this, begin, before - begin, -begin);
|
|
75771
77271
|
return array;
|
|
75772
77272
|
}
|
|
75773
|
-
unshift(...
|
|
77273
|
+
unshift(...items5) {
|
|
75774
77274
|
const { length } = this;
|
|
75775
|
-
const ret = super.unshift(...
|
|
77275
|
+
const ret = super.unshift(...items5);
|
|
75776
77276
|
const {
|
|
75777
77277
|
length: items_length
|
|
75778
|
-
} =
|
|
77278
|
+
} = items5;
|
|
75779
77279
|
if (items_length > 0) {
|
|
75780
77280
|
move_comments(this, this, 0, length, items_length, true);
|
|
75781
77281
|
}
|
|
@@ -75798,14 +77298,14 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
|
75798
77298
|
remove_comments(this, this.length);
|
|
75799
77299
|
return ret;
|
|
75800
77300
|
}
|
|
75801
|
-
concat(...
|
|
77301
|
+
concat(...items5) {
|
|
75802
77302
|
let { length } = this;
|
|
75803
|
-
const ret = super.concat(...
|
|
75804
|
-
if (!
|
|
77303
|
+
const ret = super.concat(...items5);
|
|
77304
|
+
if (!items5.length) {
|
|
75805
77305
|
return ret;
|
|
75806
77306
|
}
|
|
75807
77307
|
move_comments(ret, this, 0, this.length, 0);
|
|
75808
|
-
|
|
77308
|
+
items5.forEach((item) => {
|
|
75809
77309
|
const prev = length;
|
|
75810
77310
|
length += isArray(item) ? item.length : 1;
|
|
75811
77311
|
if (!(item instanceof CommentArray)) {
|
|
@@ -86512,18 +88012,18 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
|
86512
88012
|
}
|
|
86513
88013
|
return token;
|
|
86514
88014
|
}
|
|
86515
|
-
var symbol, preErrorSymbol, state,
|
|
88015
|
+
var symbol, preErrorSymbol, state, action2, a, r, yyval = {}, p, len, newState, expected;
|
|
86516
88016
|
while (true) {
|
|
86517
88017
|
state = stack[stack.length - 1];
|
|
86518
88018
|
if (this.defaultActions[state]) {
|
|
86519
|
-
|
|
88019
|
+
action2 = this.defaultActions[state];
|
|
86520
88020
|
} else {
|
|
86521
88021
|
if (symbol === null || typeof symbol == "undefined") {
|
|
86522
88022
|
symbol = lex();
|
|
86523
88023
|
}
|
|
86524
|
-
|
|
88024
|
+
action2 = table[state] && table[state][symbol];
|
|
86525
88025
|
}
|
|
86526
|
-
if (typeof
|
|
88026
|
+
if (typeof action2 === "undefined" || !action2.length || !action2[0]) {
|
|
86527
88027
|
var errStr = "";
|
|
86528
88028
|
if (!recovering) {
|
|
86529
88029
|
expected = [];
|
|
@@ -86539,15 +88039,15 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
|
86539
88039
|
this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
|
|
86540
88040
|
}
|
|
86541
88041
|
}
|
|
86542
|
-
if (
|
|
88042
|
+
if (action2[0] instanceof Array && action2.length > 1) {
|
|
86543
88043
|
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
86544
88044
|
}
|
|
86545
|
-
switch (
|
|
88045
|
+
switch (action2[0]) {
|
|
86546
88046
|
case 1:
|
|
86547
88047
|
stack.push(symbol);
|
|
86548
88048
|
vstack.push(this.lexer.yytext);
|
|
86549
88049
|
lstack.push(this.lexer.yylloc);
|
|
86550
|
-
stack.push(
|
|
88050
|
+
stack.push(action2[1]);
|
|
86551
88051
|
symbol = null;
|
|
86552
88052
|
if (!preErrorSymbol) {
|
|
86553
88053
|
yyleng = this.lexer.yyleng;
|
|
@@ -86562,13 +88062,13 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
|
86562
88062
|
}
|
|
86563
88063
|
break;
|
|
86564
88064
|
case 2:
|
|
86565
|
-
len = this.productions_[
|
|
88065
|
+
len = this.productions_[action2[1]][1];
|
|
86566
88066
|
yyval.$ = vstack[vstack.length - len];
|
|
86567
88067
|
yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column };
|
|
86568
88068
|
if (ranges) {
|
|
86569
88069
|
yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
|
|
86570
88070
|
}
|
|
86571
|
-
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy,
|
|
88071
|
+
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action2[1], vstack, lstack);
|
|
86572
88072
|
if (typeof r !== "undefined") {
|
|
86573
88073
|
return r;
|
|
86574
88074
|
}
|
|
@@ -86577,7 +88077,7 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
|
86577
88077
|
vstack = vstack.slice(0, -1 * len);
|
|
86578
88078
|
lstack = lstack.slice(0, -1 * len);
|
|
86579
88079
|
}
|
|
86580
|
-
stack.push(this.productions_[
|
|
88080
|
+
stack.push(this.productions_[action2[1]][0]);
|
|
86581
88081
|
vstack.push(yyval.$);
|
|
86582
88082
|
lstack.push(yyval._$);
|
|
86583
88083
|
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
@@ -90042,11 +91542,11 @@ var require_javascript_compiler = __commonJSMin((exports, module2) => {
|
|
|
90042
91542
|
var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams);
|
|
90043
91543
|
this.push(functionCall);
|
|
90044
91544
|
},
|
|
90045
|
-
itemsSeparatedBy: function itemsSeparatedBy(
|
|
91545
|
+
itemsSeparatedBy: function itemsSeparatedBy(items5, separator) {
|
|
90046
91546
|
var result = [];
|
|
90047
|
-
result.push(
|
|
90048
|
-
for (var i = 1; i <
|
|
90049
|
-
result.push(separator,
|
|
91547
|
+
result.push(items5[0]);
|
|
91548
|
+
for (var i = 1; i < items5.length; i++) {
|
|
91549
|
+
result.push(separator, items5[i]);
|
|
90050
91550
|
}
|
|
90051
91551
|
return result;
|
|
90052
91552
|
},
|
|
@@ -95421,8 +96921,8 @@ var require_AsapAction = __commonJSMin((exports) => {
|
|
|
95421
96921
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
95422
96922
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
95423
96923
|
}
|
|
95424
|
-
if (!scheduler.actions.some(function(
|
|
95425
|
-
return
|
|
96924
|
+
if (!scheduler.actions.some(function(action2) {
|
|
96925
|
+
return action2.id === id;
|
|
95426
96926
|
})) {
|
|
95427
96927
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
|
95428
96928
|
scheduler._scheduled = void 0;
|
|
@@ -95495,23 +96995,23 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
|
|
|
95495
96995
|
_this._scheduled = void 0;
|
|
95496
96996
|
return _this;
|
|
95497
96997
|
}
|
|
95498
|
-
AsyncScheduler2.prototype.flush = function(
|
|
96998
|
+
AsyncScheduler2.prototype.flush = function(action2) {
|
|
95499
96999
|
var actions = this.actions;
|
|
95500
97000
|
if (this._active) {
|
|
95501
|
-
actions.push(
|
|
97001
|
+
actions.push(action2);
|
|
95502
97002
|
return;
|
|
95503
97003
|
}
|
|
95504
97004
|
var error;
|
|
95505
97005
|
this._active = true;
|
|
95506
97006
|
do {
|
|
95507
|
-
if (error =
|
|
97007
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
95508
97008
|
break;
|
|
95509
97009
|
}
|
|
95510
|
-
} while (
|
|
97010
|
+
} while (action2 = actions.shift());
|
|
95511
97011
|
this._active = false;
|
|
95512
97012
|
if (error) {
|
|
95513
|
-
while (
|
|
95514
|
-
|
|
97013
|
+
while (action2 = actions.shift()) {
|
|
97014
|
+
action2.unsubscribe();
|
|
95515
97015
|
}
|
|
95516
97016
|
throw error;
|
|
95517
97017
|
}
|
|
@@ -95551,22 +97051,22 @@ var require_AsapScheduler = __commonJSMin((exports) => {
|
|
|
95551
97051
|
function AsapScheduler2() {
|
|
95552
97052
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
95553
97053
|
}
|
|
95554
|
-
AsapScheduler2.prototype.flush = function(
|
|
97054
|
+
AsapScheduler2.prototype.flush = function(action2) {
|
|
95555
97055
|
this._active = true;
|
|
95556
97056
|
var flushId = this._scheduled;
|
|
95557
97057
|
this._scheduled = void 0;
|
|
95558
97058
|
var actions = this.actions;
|
|
95559
97059
|
var error;
|
|
95560
|
-
|
|
97060
|
+
action2 = action2 || actions.shift();
|
|
95561
97061
|
do {
|
|
95562
|
-
if (error =
|
|
97062
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
95563
97063
|
break;
|
|
95564
97064
|
}
|
|
95565
|
-
} while ((
|
|
97065
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
|
95566
97066
|
this._active = false;
|
|
95567
97067
|
if (error) {
|
|
95568
|
-
while ((
|
|
95569
|
-
|
|
97068
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
|
97069
|
+
action2.unsubscribe();
|
|
95570
97070
|
}
|
|
95571
97071
|
throw error;
|
|
95572
97072
|
}
|
|
@@ -95753,8 +97253,8 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
|
|
|
95753
97253
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
95754
97254
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
95755
97255
|
}
|
|
95756
|
-
if (!scheduler.actions.some(function(
|
|
95757
|
-
return
|
|
97256
|
+
if (!scheduler.actions.some(function(action2) {
|
|
97257
|
+
return action2.id === id;
|
|
95758
97258
|
})) {
|
|
95759
97259
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
95760
97260
|
scheduler._scheduled = void 0;
|
|
@@ -95796,22 +97296,22 @@ var require_AnimationFrameScheduler = __commonJSMin((exports) => {
|
|
|
95796
97296
|
function AnimationFrameScheduler2() {
|
|
95797
97297
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
95798
97298
|
}
|
|
95799
|
-
AnimationFrameScheduler2.prototype.flush = function(
|
|
97299
|
+
AnimationFrameScheduler2.prototype.flush = function(action2) {
|
|
95800
97300
|
this._active = true;
|
|
95801
97301
|
var flushId = this._scheduled;
|
|
95802
97302
|
this._scheduled = void 0;
|
|
95803
97303
|
var actions = this.actions;
|
|
95804
97304
|
var error;
|
|
95805
|
-
|
|
97305
|
+
action2 = action2 || actions.shift();
|
|
95806
97306
|
do {
|
|
95807
|
-
if (error =
|
|
97307
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
95808
97308
|
break;
|
|
95809
97309
|
}
|
|
95810
|
-
} while ((
|
|
97310
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
|
95811
97311
|
this._active = false;
|
|
95812
97312
|
if (error) {
|
|
95813
|
-
while ((
|
|
95814
|
-
|
|
97313
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
|
97314
|
+
action2.unsubscribe();
|
|
95815
97315
|
}
|
|
95816
97316
|
throw error;
|
|
95817
97317
|
}
|
|
@@ -95877,17 +97377,17 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
|
95877
97377
|
VirtualTimeScheduler2.prototype.flush = function() {
|
|
95878
97378
|
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
|
95879
97379
|
var error;
|
|
95880
|
-
var
|
|
95881
|
-
while ((
|
|
97380
|
+
var action2;
|
|
97381
|
+
while ((action2 = actions[0]) && action2.delay <= maxFrames) {
|
|
95882
97382
|
actions.shift();
|
|
95883
|
-
this.frame =
|
|
95884
|
-
if (error =
|
|
97383
|
+
this.frame = action2.delay;
|
|
97384
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
95885
97385
|
break;
|
|
95886
97386
|
}
|
|
95887
97387
|
}
|
|
95888
97388
|
if (error) {
|
|
95889
|
-
while (
|
|
95890
|
-
|
|
97389
|
+
while (action2 = actions.shift()) {
|
|
97390
|
+
action2.unsubscribe();
|
|
95891
97391
|
}
|
|
95892
97392
|
throw error;
|
|
95893
97393
|
}
|
|
@@ -95919,9 +97419,9 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
|
95919
97419
|
return _super.prototype.schedule.call(this, state, delay);
|
|
95920
97420
|
}
|
|
95921
97421
|
this.active = false;
|
|
95922
|
-
var
|
|
95923
|
-
this.add(
|
|
95924
|
-
return
|
|
97422
|
+
var action2 = new VirtualAction2(this.scheduler, this.work);
|
|
97423
|
+
this.add(action2);
|
|
97424
|
+
return action2.schedule(state, delay);
|
|
95925
97425
|
} else {
|
|
95926
97426
|
return Subscription_1.Subscription.EMPTY;
|
|
95927
97427
|
}
|
|
@@ -109631,15 +111131,15 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
|
109631
111131
|
return new Ora(options3);
|
|
109632
111132
|
};
|
|
109633
111133
|
module2.exports = oraFactory;
|
|
109634
|
-
module2.exports.promise = (
|
|
109635
|
-
if (typeof
|
|
111134
|
+
module2.exports.promise = (action2, options3) => {
|
|
111135
|
+
if (typeof action2.then !== "function") {
|
|
109636
111136
|
throw new TypeError("Parameter `action` must be a Promise");
|
|
109637
111137
|
}
|
|
109638
111138
|
const spinner = new Ora(options3);
|
|
109639
111139
|
spinner.start();
|
|
109640
111140
|
(async () => {
|
|
109641
111141
|
try {
|
|
109642
|
-
await
|
|
111142
|
+
await action2;
|
|
109643
111143
|
spinner.succeed();
|
|
109644
111144
|
} catch {
|
|
109645
111145
|
spinner.fail();
|
|
@@ -109820,13 +111320,13 @@ var require_base3 = __commonJSMin((exports, module2) => {
|
|
|
109820
111320
|
}
|
|
109821
111321
|
handleSubmitEvents(submit) {
|
|
109822
111322
|
const self2 = this;
|
|
109823
|
-
const
|
|
111323
|
+
const validate4 = runAsync(this.opt.validate);
|
|
109824
111324
|
const asyncFilter = runAsync(this.opt.filter);
|
|
109825
111325
|
const validation = submit.pipe(flatMap((value) => {
|
|
109826
111326
|
this.startSpinner(value, this.opt.filteringText);
|
|
109827
111327
|
return asyncFilter(value, self2.answers).then((filteredValue) => {
|
|
109828
111328
|
this.startSpinner(filteredValue, this.opt.validatingText);
|
|
109829
|
-
return
|
|
111329
|
+
return validate4(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
|
|
109830
111330
|
}, (err) => ({ isValid: err }));
|
|
109831
111331
|
}), share());
|
|
109832
111332
|
const success = validation.pipe(filter3((state) => state.isValid === true), take(1));
|
|
@@ -129312,8 +130812,8 @@ var require_AsapAction2 = __commonJSMin((exports) => {
|
|
|
129312
130812
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
129313
130813
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
129314
130814
|
}
|
|
129315
|
-
if (!scheduler.actions.some(function(
|
|
129316
|
-
return
|
|
130815
|
+
if (!scheduler.actions.some(function(action2) {
|
|
130816
|
+
return action2.id === id;
|
|
129317
130817
|
})) {
|
|
129318
130818
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
|
129319
130819
|
scheduler._scheduled = void 0;
|
|
@@ -129386,23 +130886,23 @@ var require_AsyncScheduler2 = __commonJSMin((exports) => {
|
|
|
129386
130886
|
_this._scheduled = void 0;
|
|
129387
130887
|
return _this;
|
|
129388
130888
|
}
|
|
129389
|
-
AsyncScheduler2.prototype.flush = function(
|
|
130889
|
+
AsyncScheduler2.prototype.flush = function(action2) {
|
|
129390
130890
|
var actions = this.actions;
|
|
129391
130891
|
if (this._active) {
|
|
129392
|
-
actions.push(
|
|
130892
|
+
actions.push(action2);
|
|
129393
130893
|
return;
|
|
129394
130894
|
}
|
|
129395
130895
|
var error;
|
|
129396
130896
|
this._active = true;
|
|
129397
130897
|
do {
|
|
129398
|
-
if (error =
|
|
130898
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
129399
130899
|
break;
|
|
129400
130900
|
}
|
|
129401
|
-
} while (
|
|
130901
|
+
} while (action2 = actions.shift());
|
|
129402
130902
|
this._active = false;
|
|
129403
130903
|
if (error) {
|
|
129404
|
-
while (
|
|
129405
|
-
|
|
130904
|
+
while (action2 = actions.shift()) {
|
|
130905
|
+
action2.unsubscribe();
|
|
129406
130906
|
}
|
|
129407
130907
|
throw error;
|
|
129408
130908
|
}
|
|
@@ -129442,22 +130942,22 @@ var require_AsapScheduler2 = __commonJSMin((exports) => {
|
|
|
129442
130942
|
function AsapScheduler2() {
|
|
129443
130943
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
129444
130944
|
}
|
|
129445
|
-
AsapScheduler2.prototype.flush = function(
|
|
130945
|
+
AsapScheduler2.prototype.flush = function(action2) {
|
|
129446
130946
|
this._active = true;
|
|
129447
130947
|
var flushId = this._scheduled;
|
|
129448
130948
|
this._scheduled = void 0;
|
|
129449
130949
|
var actions = this.actions;
|
|
129450
130950
|
var error;
|
|
129451
|
-
|
|
130951
|
+
action2 = action2 || actions.shift();
|
|
129452
130952
|
do {
|
|
129453
|
-
if (error =
|
|
130953
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
129454
130954
|
break;
|
|
129455
130955
|
}
|
|
129456
|
-
} while ((
|
|
130956
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
|
129457
130957
|
this._active = false;
|
|
129458
130958
|
if (error) {
|
|
129459
|
-
while ((
|
|
129460
|
-
|
|
130959
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
|
130960
|
+
action2.unsubscribe();
|
|
129461
130961
|
}
|
|
129462
130962
|
throw error;
|
|
129463
130963
|
}
|
|
@@ -129644,8 +131144,8 @@ var require_AnimationFrameAction2 = __commonJSMin((exports) => {
|
|
|
129644
131144
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
129645
131145
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
129646
131146
|
}
|
|
129647
|
-
if (!scheduler.actions.some(function(
|
|
129648
|
-
return
|
|
131147
|
+
if (!scheduler.actions.some(function(action2) {
|
|
131148
|
+
return action2.id === id;
|
|
129649
131149
|
})) {
|
|
129650
131150
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
129651
131151
|
scheduler._scheduled = void 0;
|
|
@@ -129687,22 +131187,22 @@ var require_AnimationFrameScheduler2 = __commonJSMin((exports) => {
|
|
|
129687
131187
|
function AnimationFrameScheduler2() {
|
|
129688
131188
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
129689
131189
|
}
|
|
129690
|
-
AnimationFrameScheduler2.prototype.flush = function(
|
|
131190
|
+
AnimationFrameScheduler2.prototype.flush = function(action2) {
|
|
129691
131191
|
this._active = true;
|
|
129692
131192
|
var flushId = this._scheduled;
|
|
129693
131193
|
this._scheduled = void 0;
|
|
129694
131194
|
var actions = this.actions;
|
|
129695
131195
|
var error;
|
|
129696
|
-
|
|
131196
|
+
action2 = action2 || actions.shift();
|
|
129697
131197
|
do {
|
|
129698
|
-
if (error =
|
|
131198
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
129699
131199
|
break;
|
|
129700
131200
|
}
|
|
129701
|
-
} while ((
|
|
131201
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
|
129702
131202
|
this._active = false;
|
|
129703
131203
|
if (error) {
|
|
129704
|
-
while ((
|
|
129705
|
-
|
|
131204
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
|
131205
|
+
action2.unsubscribe();
|
|
129706
131206
|
}
|
|
129707
131207
|
throw error;
|
|
129708
131208
|
}
|
|
@@ -129768,17 +131268,17 @@ var require_VirtualTimeScheduler2 = __commonJSMin((exports) => {
|
|
|
129768
131268
|
VirtualTimeScheduler2.prototype.flush = function() {
|
|
129769
131269
|
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
|
129770
131270
|
var error;
|
|
129771
|
-
var
|
|
129772
|
-
while ((
|
|
131271
|
+
var action2;
|
|
131272
|
+
while ((action2 = actions[0]) && action2.delay <= maxFrames) {
|
|
129773
131273
|
actions.shift();
|
|
129774
|
-
this.frame =
|
|
129775
|
-
if (error =
|
|
131274
|
+
this.frame = action2.delay;
|
|
131275
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
129776
131276
|
break;
|
|
129777
131277
|
}
|
|
129778
131278
|
}
|
|
129779
131279
|
if (error) {
|
|
129780
|
-
while (
|
|
129781
|
-
|
|
131280
|
+
while (action2 = actions.shift()) {
|
|
131281
|
+
action2.unsubscribe();
|
|
129782
131282
|
}
|
|
129783
131283
|
throw error;
|
|
129784
131284
|
}
|
|
@@ -129810,9 +131310,9 @@ var require_VirtualTimeScheduler2 = __commonJSMin((exports) => {
|
|
|
129810
131310
|
return _super.prototype.schedule.call(this, state, delay);
|
|
129811
131311
|
}
|
|
129812
131312
|
this.active = false;
|
|
129813
|
-
var
|
|
129814
|
-
this.add(
|
|
129815
|
-
return
|
|
131313
|
+
var action2 = new VirtualAction2(this.scheduler, this.work);
|
|
131314
|
+
this.add(action2);
|
|
131315
|
+
return action2.schedule(state, delay);
|
|
129816
131316
|
} else {
|
|
129817
131317
|
return Subscription_1.Subscription.EMPTY;
|
|
129818
131318
|
}
|
|
@@ -136170,7 +137670,7 @@ var require_cjs2 = __commonJSMin((exports) => {
|
|
|
136170
137670
|
return zipWith_1.zipWith;
|
|
136171
137671
|
} });
|
|
136172
137672
|
});
|
|
136173
|
-
function
|
|
137673
|
+
function _arrayLikeToArray2(arr, len) {
|
|
136174
137674
|
if (len == null || len > arr.length)
|
|
136175
137675
|
len = arr.length;
|
|
136176
137676
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
@@ -136178,28 +137678,28 @@ function _arrayLikeToArray(arr, len) {
|
|
|
136178
137678
|
}
|
|
136179
137679
|
return arr2;
|
|
136180
137680
|
}
|
|
136181
|
-
var
|
|
137681
|
+
var init_arrayLikeToArray2 = __esmMin(() => {
|
|
136182
137682
|
});
|
|
136183
|
-
function
|
|
137683
|
+
function _unsupportedIterableToArray2(o, minLen) {
|
|
136184
137684
|
if (!o)
|
|
136185
137685
|
return;
|
|
136186
137686
|
if (typeof o === "string")
|
|
136187
|
-
return
|
|
137687
|
+
return _arrayLikeToArray2(o, minLen);
|
|
136188
137688
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
136189
137689
|
if (n === "Object" && o.constructor)
|
|
136190
137690
|
n = o.constructor.name;
|
|
136191
137691
|
if (n === "Map" || n === "Set")
|
|
136192
137692
|
return Array.from(o);
|
|
136193
137693
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
136194
|
-
return
|
|
137694
|
+
return _arrayLikeToArray2(o, minLen);
|
|
136195
137695
|
}
|
|
136196
|
-
var
|
|
136197
|
-
|
|
137696
|
+
var init_unsupportedIterableToArray2 = __esmMin(() => {
|
|
137697
|
+
init_arrayLikeToArray2();
|
|
136198
137698
|
});
|
|
136199
137699
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
136200
137700
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
136201
137701
|
if (!it) {
|
|
136202
|
-
if (Array.isArray(o) || (it =
|
|
137702
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray2(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
136203
137703
|
if (it)
|
|
136204
137704
|
o = it;
|
|
136205
137705
|
var i = 0;
|
|
@@ -136251,7 +137751,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
136251
137751
|
};
|
|
136252
137752
|
}
|
|
136253
137753
|
var init_createForOfIteratorHelper = __esmMin(() => {
|
|
136254
|
-
|
|
137754
|
+
init_unsupportedIterableToArray2();
|
|
136255
137755
|
});
|
|
136256
137756
|
function _defineProperty2(obj, key, value) {
|
|
136257
137757
|
if (key in obj) {
|
|
@@ -136268,7 +137768,7 @@ function _defineProperty2(obj, key, value) {
|
|
|
136268
137768
|
}
|
|
136269
137769
|
var init_defineProperty2 = __esmMin(() => {
|
|
136270
137770
|
});
|
|
136271
|
-
function
|
|
137771
|
+
function ownKeys2(object, enumerableOnly) {
|
|
136272
137772
|
var keys = Object.keys(object);
|
|
136273
137773
|
if (Object.getOwnPropertySymbols) {
|
|
136274
137774
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -136278,18 +137778,18 @@ function ownKeys(object, enumerableOnly) {
|
|
|
136278
137778
|
}
|
|
136279
137779
|
return keys;
|
|
136280
137780
|
}
|
|
136281
|
-
function
|
|
137781
|
+
function _objectSpread22(target) {
|
|
136282
137782
|
for (var i = 1; i < arguments.length; i++) {
|
|
136283
137783
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
136284
|
-
i % 2 ?
|
|
137784
|
+
i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
|
|
136285
137785
|
_defineProperty2(target, key, source[key]);
|
|
136286
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
137786
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
|
|
136287
137787
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
136288
137788
|
});
|
|
136289
137789
|
}
|
|
136290
137790
|
return target;
|
|
136291
137791
|
}
|
|
136292
|
-
var
|
|
137792
|
+
var init_objectSpread22 = __esmMin(() => {
|
|
136293
137793
|
init_defineProperty2();
|
|
136294
137794
|
});
|
|
136295
137795
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -136420,32 +137920,32 @@ var init_constant = __esmMin(() => {
|
|
|
136420
137920
|
SCHEMA_SHOULD_NOT_BE_EMPTY: "schema should not be empty"
|
|
136421
137921
|
};
|
|
136422
137922
|
});
|
|
136423
|
-
function
|
|
137923
|
+
function _arrayWithoutHoles2(arr) {
|
|
136424
137924
|
if (Array.isArray(arr))
|
|
136425
|
-
return
|
|
137925
|
+
return _arrayLikeToArray2(arr);
|
|
136426
137926
|
}
|
|
136427
|
-
var
|
|
136428
|
-
|
|
137927
|
+
var init_arrayWithoutHoles2 = __esmMin(() => {
|
|
137928
|
+
init_arrayLikeToArray2();
|
|
136429
137929
|
});
|
|
136430
|
-
function
|
|
137930
|
+
function _iterableToArray2(iter) {
|
|
136431
137931
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
136432
137932
|
return Array.from(iter);
|
|
136433
137933
|
}
|
|
136434
|
-
var
|
|
137934
|
+
var init_iterableToArray2 = __esmMin(() => {
|
|
136435
137935
|
});
|
|
136436
|
-
function
|
|
137936
|
+
function _nonIterableSpread2() {
|
|
136437
137937
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
136438
137938
|
}
|
|
136439
|
-
var
|
|
137939
|
+
var init_nonIterableSpread2 = __esmMin(() => {
|
|
136440
137940
|
});
|
|
136441
|
-
function
|
|
136442
|
-
return
|
|
137941
|
+
function _toConsumableArray2(arr) {
|
|
137942
|
+
return _arrayWithoutHoles2(arr) || _iterableToArray2(arr) || _unsupportedIterableToArray2(arr) || _nonIterableSpread2();
|
|
136443
137943
|
}
|
|
136444
|
-
var
|
|
136445
|
-
|
|
136446
|
-
|
|
136447
|
-
|
|
136448
|
-
|
|
137944
|
+
var init_toConsumableArray2 = __esmMin(() => {
|
|
137945
|
+
init_arrayWithoutHoles2();
|
|
137946
|
+
init_iterableToArray2();
|
|
137947
|
+
init_unsupportedIterableToArray2();
|
|
137948
|
+
init_nonIterableSpread2();
|
|
136449
137949
|
});
|
|
136450
137950
|
var require_mergeWith3 = __commonJSMin((exports, module2) => {
|
|
136451
137951
|
var baseMerge = require_baseMerge();
|
|
@@ -136457,13 +137957,13 @@ var require_mergeWith3 = __commonJSMin((exports, module2) => {
|
|
|
136457
137957
|
});
|
|
136458
137958
|
var import_mergeWith, import_isArray, mergeObjWithCombineArray, toBoolean, booleanToString;
|
|
136459
137959
|
var init_tools = __esmMin(() => {
|
|
136460
|
-
|
|
137960
|
+
init_toConsumableArray2();
|
|
136461
137961
|
import_mergeWith = __toESM2(require_mergeWith3());
|
|
136462
137962
|
import_isArray = __toESM2(require_isArray());
|
|
136463
137963
|
mergeObjWithCombineArray = function mergeObjWithCombineArray2(src, obj) {
|
|
136464
137964
|
var customizer = function customizer2(objValue, srcValue) {
|
|
136465
137965
|
if ((0, import_isArray.default)(objValue)) {
|
|
136466
|
-
return [].concat(
|
|
137966
|
+
return [].concat(_toConsumableArray2(srcValue), _toConsumableArray2(objValue));
|
|
136467
137967
|
}
|
|
136468
137968
|
return void 0;
|
|
136469
137969
|
};
|
|
@@ -136525,7 +138025,7 @@ var init_stateField = __esmMin(() => {
|
|
|
136525
138025
|
if (typeof value.action === "function") {
|
|
136526
138026
|
schema.state.value = {
|
|
136527
138027
|
effectedByFields: value.effectedByFields,
|
|
136528
|
-
action: function
|
|
138028
|
+
action: function action2(data, lastValue) {
|
|
136529
138029
|
return value.action(data, lastValue || initValue);
|
|
136530
138030
|
}
|
|
136531
138031
|
};
|
|
@@ -136732,7 +138232,7 @@ var init_keyField = __esmMin(() => {
|
|
|
136732
138232
|
});
|
|
136733
138233
|
var fieldValue, getSchemaLabel, getSchemaDisabled, getSchemaType, getSchemaDefaultState, getNodeInfo;
|
|
136734
138234
|
var init_nodeInfo = __esmMin(() => {
|
|
136735
|
-
|
|
138235
|
+
init_objectSpread22();
|
|
136736
138236
|
fieldValue = function fieldValue2(key, schema, data, extra) {
|
|
136737
138237
|
if (schema[key] && typeof schema[key] === "function") {
|
|
136738
138238
|
return schema[key](data, extra);
|
|
@@ -136769,7 +138269,7 @@ var init_nodeInfo = __esmMin(() => {
|
|
|
136769
138269
|
return schema.state;
|
|
136770
138270
|
};
|
|
136771
138271
|
getNodeInfo = function getNodeInfo2(schema, data, extra) {
|
|
136772
|
-
return
|
|
138272
|
+
return _objectSpread22(_objectSpread22({
|
|
136773
138273
|
label: getSchemaLabel(schema, data, extra),
|
|
136774
138274
|
state: schema.state,
|
|
136775
138275
|
formState: data,
|
|
@@ -136843,8 +138343,8 @@ var init_checkSchema = __esmMin(() => {
|
|
|
136843
138343
|
};
|
|
136844
138344
|
checkRepeatItems = function checkRepeatItems2(schema, extra) {
|
|
136845
138345
|
if (schema.items && schema.items.length > 0) {
|
|
136846
|
-
var
|
|
136847
|
-
var keys =
|
|
138346
|
+
var items5 = getItems(schema, {}, extra);
|
|
138347
|
+
var keys = items5.map(function(x) {
|
|
136848
138348
|
return x.key;
|
|
136849
138349
|
});
|
|
136850
138350
|
var tmp = [];
|
|
@@ -136888,7 +138388,7 @@ var init_checkSchema = __esmMin(() => {
|
|
|
136888
138388
|
var _excluded, BaseReader;
|
|
136889
138389
|
var init_baseReader = __esmMin(() => {
|
|
136890
138390
|
init_createForOfIteratorHelper();
|
|
136891
|
-
|
|
138391
|
+
init_objectSpread22();
|
|
136892
138392
|
init_objectWithoutProperties();
|
|
136893
138393
|
init_typeof();
|
|
136894
138394
|
init_classCallCheck2();
|
|
@@ -137026,9 +138526,9 @@ var init_baseReader = __esmMin(() => {
|
|
|
137026
138526
|
initValues[_schema.key] = _this.getSchemaDefaultValue(_schema, brothers, isRoot);
|
|
137027
138527
|
}
|
|
137028
138528
|
if (_schema.items) {
|
|
137029
|
-
var
|
|
137030
|
-
|
|
137031
|
-
return readDefaultValue2(each,
|
|
138529
|
+
var items5 = getItems(_schema, _this.data, _this.extra);
|
|
138530
|
+
items5.forEach(function(each) {
|
|
138531
|
+
return readDefaultValue2(each, items5.map(function(x) {
|
|
137032
138532
|
return x.key;
|
|
137033
138533
|
}), false);
|
|
137034
138534
|
});
|
|
@@ -137046,7 +138546,7 @@ var init_baseReader = __esmMin(() => {
|
|
|
137046
138546
|
if (!isEffectedValue(val)) {
|
|
137047
138547
|
return val;
|
|
137048
138548
|
}
|
|
137049
|
-
var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields,
|
|
138549
|
+
var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields, action2 = _ref.action, rest = _objectWithoutProperties(_ref, _excluded);
|
|
137050
138550
|
if (isRoot) {
|
|
137051
138551
|
throw Error("[".concat(schema.key, "] top level should not have effects"));
|
|
137052
138552
|
}
|
|
@@ -137056,9 +138556,9 @@ var init_baseReader = __esmMin(() => {
|
|
|
137056
138556
|
if (curNodeEffectedByFields.length === 0) {
|
|
137057
138557
|
return rest;
|
|
137058
138558
|
}
|
|
137059
|
-
return
|
|
138559
|
+
return _objectSpread22({
|
|
137060
138560
|
effectedByFields: curNodeEffectedByFields,
|
|
137061
|
-
action
|
|
138561
|
+
action: action2
|
|
137062
138562
|
}, rest);
|
|
137063
138563
|
};
|
|
137064
138564
|
return handleEffects(state.value);
|
|
@@ -137467,7 +138967,7 @@ var init_graph = __esmMin(() => {
|
|
|
137467
138967
|
var CycleEffectError, EffectUtil;
|
|
137468
138968
|
var init_effectUtil = __esmMin(() => {
|
|
137469
138969
|
init_createForOfIteratorHelper();
|
|
137470
|
-
|
|
138970
|
+
init_objectSpread22();
|
|
137471
138971
|
init_defineProperty2();
|
|
137472
138972
|
init_createClass2();
|
|
137473
138973
|
init_classCallCheck2();
|
|
@@ -137501,12 +139001,12 @@ var init_effectUtil = __esmMin(() => {
|
|
|
137501
139001
|
roots.forEach(function(root) {
|
|
137502
139002
|
result[root.data.key] = root.data.value;
|
|
137503
139003
|
});
|
|
137504
|
-
return
|
|
139004
|
+
return _objectSpread22(_objectSpread22({}, result), _this2.doGetEffectedValue(result, roots));
|
|
137505
139005
|
});
|
|
137506
139006
|
_defineProperty2(this, "getEffectedValue", function(value, formData) {
|
|
137507
139007
|
var keys = Object.keys(value);
|
|
137508
139008
|
var rootNodes = _this2.graph.getNodesByKeys(keys);
|
|
137509
|
-
return _this2.doGetEffectedValue(
|
|
139009
|
+
return _this2.doGetEffectedValue(_objectSpread22(_objectSpread22({}, formData), value), rootNodes);
|
|
137510
139010
|
});
|
|
137511
139011
|
_defineProperty2(this, "doGetEffectedValue", function(formData, rootNodes) {
|
|
137512
139012
|
var result = {};
|
|
@@ -137622,8 +139122,8 @@ var init_effectUtil = __esmMin(() => {
|
|
|
137622
139122
|
return EffectUtil2;
|
|
137623
139123
|
}();
|
|
137624
139124
|
});
|
|
137625
|
-
var
|
|
137626
|
-
__export2(
|
|
139125
|
+
var treeshaking_exports3 = {};
|
|
139126
|
+
__export2(treeshaking_exports3, {
|
|
137627
139127
|
BaseReader: () => BaseReader,
|
|
137628
139128
|
EffectUtil: () => EffectUtil,
|
|
137629
139129
|
MESSAGE: () => MESSAGE,
|
|
@@ -137652,7 +139152,7 @@ __export2(treeshaking_exports2, {
|
|
|
137652
139152
|
setSchemaInitValue: () => setSchemaInitValue,
|
|
137653
139153
|
toBoolean: () => toBoolean
|
|
137654
139154
|
});
|
|
137655
|
-
var
|
|
139155
|
+
var init_treeshaking3 = __esmMin(() => {
|
|
137656
139156
|
init_baseReader();
|
|
137657
139157
|
init_types();
|
|
137658
139158
|
init_constant();
|
|
@@ -137684,7 +139184,7 @@ var require_baseCliReader = __commonJSMin((exports) => {
|
|
|
137684
139184
|
value: true
|
|
137685
139185
|
});
|
|
137686
139186
|
exports.BaseCliReader = void 0;
|
|
137687
|
-
var _easyFormCore = (
|
|
139187
|
+
var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
|
|
137688
139188
|
var _constant = require_constant2();
|
|
137689
139189
|
function ownKeys3(object, enumerableOnly) {
|
|
137690
139190
|
var keys = Object.keys(object);
|
|
@@ -137862,7 +139362,7 @@ var require_utils9 = __commonJSMin((exports) => {
|
|
|
137862
139362
|
value: true
|
|
137863
139363
|
});
|
|
137864
139364
|
exports.toPromiseQuestionHandlerLoop = exports.toPromiseQuestionHandler = exports.getWhen = exports.getValidate = exports.getTransformer = exports.getQuestion = exports.getMessage = exports.getFilter = exports.getDefaultValue = exports.getChoices = void 0;
|
|
137865
|
-
var _easyFormCore = (
|
|
139365
|
+
var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
|
|
137866
139366
|
function ownKeys3(object, enumerableOnly) {
|
|
137867
139367
|
var keys = Object.keys(object);
|
|
137868
139368
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -138042,7 +139542,7 @@ var require_utils9 = __commonJSMin((exports) => {
|
|
|
138042
139542
|
}, choices);
|
|
138043
139543
|
};
|
|
138044
139544
|
exports.getQuestion = getQuestion;
|
|
138045
|
-
var
|
|
139545
|
+
var when8 = (schema, answers, extra) => {
|
|
138046
139546
|
if (schema.when && typeof schema.when === "function") {
|
|
138047
139547
|
return schema.when(answers, extra);
|
|
138048
139548
|
}
|
|
@@ -138068,7 +139568,7 @@ var require_utils9 = __commonJSMin((exports) => {
|
|
|
138068
139568
|
});
|
|
138069
139569
|
return (answers) => {
|
|
138070
139570
|
try {
|
|
138071
|
-
if (!
|
|
139571
|
+
if (!when8(schema, answers, nodeInfo.extra)) {
|
|
138072
139572
|
return Promise.resolve(true);
|
|
138073
139573
|
}
|
|
138074
139574
|
const question = getQuestion({
|
|
@@ -138688,7 +140188,7 @@ var require_node6 = __commonJSMin((exports) => {
|
|
|
138688
140188
|
}
|
|
138689
140189
|
});
|
|
138690
140190
|
});
|
|
138691
|
-
var _easyFormCore = (
|
|
140191
|
+
var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
|
|
138692
140192
|
Object.keys(_easyFormCore).forEach(function(key) {
|
|
138693
140193
|
if (key === "default" || key === "__esModule")
|
|
138694
140194
|
return;
|
|
@@ -138726,18 +140226,18 @@ var require_transformSchema = __commonJSMin((exports) => {
|
|
|
138726
140226
|
schemaItem.label = schemaItem.state.cliLabel;
|
|
138727
140227
|
}
|
|
138728
140228
|
const {
|
|
138729
|
-
when:
|
|
138730
|
-
validate
|
|
140229
|
+
when: when8,
|
|
140230
|
+
validate: validate4
|
|
138731
140231
|
} = schemaItem;
|
|
138732
140232
|
schemaItem.when = (values, extra) => {
|
|
138733
140233
|
if (!(0, _isUndefined2.default)(configValue[schemaItem.key])) {
|
|
138734
140234
|
return false;
|
|
138735
140235
|
}
|
|
138736
|
-
return
|
|
140236
|
+
return when8 ? when8(values, extra) : true;
|
|
138737
140237
|
};
|
|
138738
140238
|
schemaItem.validate = async (value, data, extra) => {
|
|
138739
|
-
if (
|
|
138740
|
-
const result = await
|
|
140239
|
+
if (validate4) {
|
|
140240
|
+
const result = await validate4(value, data, extra);
|
|
138741
140241
|
if (!result.success) {
|
|
138742
140242
|
return result;
|
|
138743
140243
|
}
|
|
@@ -139615,12 +141115,12 @@ var import_lodash3;
|
|
|
139615
141115
|
var init_utils3 = __esmMin(() => {
|
|
139616
141116
|
import_lodash3 = __toESM2(require_lodash3());
|
|
139617
141117
|
});
|
|
139618
|
-
var
|
|
139619
|
-
__export2(
|
|
141118
|
+
var treeshaking_exports4 = {};
|
|
141119
|
+
__export2(treeshaking_exports4, {
|
|
139620
141120
|
I18n: () => I18n2
|
|
139621
141121
|
});
|
|
139622
141122
|
var import_lodash4, I18n2;
|
|
139623
|
-
var
|
|
141123
|
+
var init_treeshaking4 = __esmMin(() => {
|
|
139624
141124
|
init_classCallCheck();
|
|
139625
141125
|
init_createClass();
|
|
139626
141126
|
init_defineProperty();
|
|
@@ -139779,7 +141279,7 @@ var require_locale2 = __commonJSMin((exports) => {
|
|
|
139779
141279
|
}
|
|
139780
141280
|
});
|
|
139781
141281
|
exports.localeKeys = exports.i18n = void 0;
|
|
139782
|
-
var _pluginI18n = (
|
|
141282
|
+
var _pluginI18n = (init_treeshaking4(), __toCommonJS2(treeshaking_exports4));
|
|
139783
141283
|
var _zh = require_zh2();
|
|
139784
141284
|
var _en = require_en2();
|
|
139785
141285
|
var i18n2 = new _pluginI18n.I18n();
|
|
@@ -140993,466 +142493,7 @@ var require_node9 = __commonJSMin((exports) => {
|
|
|
140993
142493
|
var import_generator_utils = __toESM2(require_node());
|
|
140994
142494
|
var import_codesmith_api_app = __toESM2(require_node8());
|
|
140995
142495
|
var import_codesmith_api_json = __toESM2(require_node9());
|
|
140996
|
-
|
|
140997
|
-
init_treeshaking();
|
|
140998
|
-
var ZH_LOCALE = {
|
|
140999
|
-
solution: {
|
|
141000
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
|
141001
|
-
mwa: "\u5E94\u7528",
|
|
141002
|
-
module: "\u6A21\u5757",
|
|
141003
|
-
monorepo: "Monorepo",
|
|
141004
|
-
custom: "\u81EA\u5B9A\u4E49",
|
|
141005
|
-
"default": "\u9ED8\u8BA4"
|
|
141006
|
-
},
|
|
141007
|
-
scenes: {
|
|
141008
|
-
self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
|
|
141009
|
-
},
|
|
141010
|
-
sub_solution: {
|
|
141011
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
|
141012
|
-
mwa: "\u5E94\u7528",
|
|
141013
|
-
mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
|
|
141014
|
-
module: "\u6A21\u5757",
|
|
141015
|
-
inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
|
|
141016
|
-
},
|
|
141017
|
-
action: {
|
|
141018
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
|
|
141019
|
-
"function": {
|
|
141020
|
-
self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
|
|
141021
|
-
tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
|
|
141022
|
-
less: "\u542F\u7528 Less \u652F\u6301",
|
|
141023
|
-
sass: "\u542F\u7528 Sass \u652F\u6301",
|
|
141024
|
-
bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
|
|
141025
|
-
micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
|
|
141026
|
-
electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
|
|
141027
|
-
i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
|
|
141028
|
-
test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
|
|
141029
|
-
e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
|
|
141030
|
-
doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
|
|
141031
|
-
storybook: "\u542F\u7528\u300CStorybook\u300D",
|
|
141032
|
-
runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
|
|
141033
|
-
mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
|
|
141034
|
-
ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
|
|
141035
|
-
polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
|
|
141036
|
-
proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
|
|
141037
|
-
},
|
|
141038
|
-
element: {
|
|
141039
|
-
self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
|
|
141040
|
-
entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
|
|
141041
|
-
server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
|
|
141042
|
-
},
|
|
141043
|
-
refactor: {
|
|
141044
|
-
self: "\u81EA\u52A8\u91CD\u6784",
|
|
141045
|
-
bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
|
|
141046
|
-
}
|
|
141047
|
-
},
|
|
141048
|
-
"boolean": {
|
|
141049
|
-
yes: "\u662F",
|
|
141050
|
-
no: "\u5426"
|
|
141051
|
-
},
|
|
141052
|
-
language: {
|
|
141053
|
-
self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
|
|
141054
|
-
},
|
|
141055
|
-
packageManager: {
|
|
141056
|
-
self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
|
|
141057
|
-
},
|
|
141058
|
-
runWay: {
|
|
141059
|
-
self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
|
|
141060
|
-
no: "\u4E0D\u9700\u8981",
|
|
141061
|
-
electron: "Electron"
|
|
141062
|
-
},
|
|
141063
|
-
needModifyConfig: {
|
|
141064
|
-
self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
|
141065
|
-
enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
|
|
141066
|
-
enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
|
|
141067
|
-
},
|
|
141068
|
-
entry: {
|
|
141069
|
-
name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
|
|
141070
|
-
no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
|
141071
|
-
no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
|
|
141072
|
-
needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
|
141073
|
-
disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
|
|
141074
|
-
clientRoute: {
|
|
141075
|
-
self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
|
|
141076
|
-
selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
|
|
141077
|
-
conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
|
|
141078
|
-
no: "\u4E0D\u542F\u7528"
|
|
141079
|
-
}
|
|
141080
|
-
},
|
|
141081
|
-
packageName: {
|
|
141082
|
-
self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
|
|
141083
|
-
sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
|
|
141084
|
-
no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
|
|
141085
|
-
},
|
|
141086
|
-
packagePath: {
|
|
141087
|
-
self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
|
|
141088
|
-
no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
|
141089
|
-
format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
|
|
141090
|
-
},
|
|
141091
|
-
framework: {
|
|
141092
|
-
self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
|
|
141093
|
-
egg: "Egg",
|
|
141094
|
-
express: "Express",
|
|
141095
|
-
koa: "Koa",
|
|
141096
|
-
nest: "Nest"
|
|
141097
|
-
},
|
|
141098
|
-
bff: {
|
|
141099
|
-
bffType: {
|
|
141100
|
-
self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
|
|
141101
|
-
func: "\u51FD\u6570\u6A21\u5F0F",
|
|
141102
|
-
framework: "\u6846\u67B6\u6A21\u5F0F"
|
|
141103
|
-
}
|
|
141104
|
-
}
|
|
141105
|
-
};
|
|
141106
|
-
var EN_LOCALE = {
|
|
141107
|
-
solution: {
|
|
141108
|
-
self: "Please select the solution you want to create",
|
|
141109
|
-
mwa: "MWA Solution",
|
|
141110
|
-
module: "Module Solution",
|
|
141111
|
-
monorepo: "Monorepo Solution",
|
|
141112
|
-
custom: "Custom Solution",
|
|
141113
|
-
"default": "Default"
|
|
141114
|
-
},
|
|
141115
|
-
scenes: {
|
|
141116
|
-
self: "Please select the scene you want to create"
|
|
141117
|
-
},
|
|
141118
|
-
sub_solution: {
|
|
141119
|
-
self: "Please select the solution you want to create",
|
|
141120
|
-
mwa: "MWA Solution",
|
|
141121
|
-
mwa_test: "MWA Solution(Test)",
|
|
141122
|
-
module: "Module Solution",
|
|
141123
|
-
inner_module: "Module Solution(Inner)",
|
|
141124
|
-
monorepo: "Monorepo Solution"
|
|
141125
|
-
},
|
|
141126
|
-
action: {
|
|
141127
|
-
self: "Action",
|
|
141128
|
-
"function": {
|
|
141129
|
-
self: "Enable features",
|
|
141130
|
-
tailwindcss: "Enable Tailwind CSS",
|
|
141131
|
-
less: "Enable Less",
|
|
141132
|
-
sass: "Enable Sass",
|
|
141133
|
-
bff: "Enable BFF",
|
|
141134
|
-
micro_frontend: "Enable Micro Frontend",
|
|
141135
|
-
electron: "Enable Electron",
|
|
141136
|
-
i18n: "Enable Internationalization (i18n)",
|
|
141137
|
-
test: "Enable Unit Test / Integration Test",
|
|
141138
|
-
e2e_test: "Enable E2E Test",
|
|
141139
|
-
doc: "Enable Document Station",
|
|
141140
|
-
storybook: "Enable Storybook",
|
|
141141
|
-
runtime_api: "Enable Runtime API",
|
|
141142
|
-
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
141143
|
-
ssg: "Enable SSG",
|
|
141144
|
-
polyfill: "Enable UA-based Polyfill Feature",
|
|
141145
|
-
proxy: "Enable Global Proxy"
|
|
141146
|
-
},
|
|
141147
|
-
element: {
|
|
141148
|
-
self: "Create project element",
|
|
141149
|
-
entry: 'New "entry"',
|
|
141150
|
-
server: 'New "Server Custom" source code directory'
|
|
141151
|
-
},
|
|
141152
|
-
refactor: {
|
|
141153
|
-
self: "Automatic refactor",
|
|
141154
|
-
bff_to_app: "Transform BFF to frame mode"
|
|
141155
|
-
}
|
|
141156
|
-
},
|
|
141157
|
-
"boolean": {
|
|
141158
|
-
yes: "Yes",
|
|
141159
|
-
no: "No"
|
|
141160
|
-
},
|
|
141161
|
-
language: {
|
|
141162
|
-
self: "Development Language"
|
|
141163
|
-
},
|
|
141164
|
-
packageManager: {
|
|
141165
|
-
self: "Package Management Tool"
|
|
141166
|
-
},
|
|
141167
|
-
packageName: {
|
|
141168
|
-
self: "Package Name",
|
|
141169
|
-
sub_name: "Package Name",
|
|
141170
|
-
no_empty: "The package name cannot be empty!"
|
|
141171
|
-
},
|
|
141172
|
-
packagePath: {
|
|
141173
|
-
self: "Package Path",
|
|
141174
|
-
no_empty: "The package path cannot be empty!",
|
|
141175
|
-
format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
|
|
141176
|
-
},
|
|
141177
|
-
runWay: {
|
|
141178
|
-
self: "Do you need to support the following types of applications",
|
|
141179
|
-
no: "Not Enabled",
|
|
141180
|
-
electron: "Electron"
|
|
141181
|
-
},
|
|
141182
|
-
needModifyConfig: {
|
|
141183
|
-
self: "Modify the Default Configuration?",
|
|
141184
|
-
enableLess: "Enable Less?",
|
|
141185
|
-
enableSass: "Enable Sass?"
|
|
141186
|
-
},
|
|
141187
|
-
entry: {
|
|
141188
|
-
name: "Entry name",
|
|
141189
|
-
no_empty: "The entry name cannot be empty!",
|
|
141190
|
-
no_pages: 'The entry name cannot be "pages"!',
|
|
141191
|
-
disableStateManagement: "Disable App State Management?",
|
|
141192
|
-
clientRoute: {
|
|
141193
|
-
self: "Client Routing",
|
|
141194
|
-
selfControlRoute: "Enable Self Control Route",
|
|
141195
|
-
conventionalRoute: "Enable Conventional Route",
|
|
141196
|
-
no: "Not Enabled"
|
|
141197
|
-
}
|
|
141198
|
-
},
|
|
141199
|
-
framework: {
|
|
141200
|
-
self: "Please select the framework you want to use",
|
|
141201
|
-
egg: "Egg",
|
|
141202
|
-
express: "Express",
|
|
141203
|
-
koa: "Koa",
|
|
141204
|
-
nest: "Nest"
|
|
141205
|
-
},
|
|
141206
|
-
bff: {
|
|
141207
|
-
bffType: {
|
|
141208
|
-
self: "BFF Type",
|
|
141209
|
-
func: "Function",
|
|
141210
|
-
framework: "Framework"
|
|
141211
|
-
}
|
|
141212
|
-
}
|
|
141213
|
-
};
|
|
141214
|
-
var i18n = new I18n();
|
|
141215
|
-
var localeKeys = i18n.init("zh", {
|
|
141216
|
-
zh: ZH_LOCALE,
|
|
141217
|
-
en: EN_LOCALE
|
|
141218
|
-
});
|
|
141219
|
-
var _BooleanConfigName;
|
|
141220
|
-
var BooleanConfig;
|
|
141221
|
-
(function(BooleanConfig2) {
|
|
141222
|
-
BooleanConfig2["NO"] = "no";
|
|
141223
|
-
BooleanConfig2["YES"] = "yes";
|
|
141224
|
-
})(BooleanConfig || (BooleanConfig = {}));
|
|
141225
|
-
var BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
|
|
141226
|
-
return i18n.t(localeKeys["boolean"].no);
|
|
141227
|
-
}), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
|
|
141228
|
-
return i18n.t(localeKeys["boolean"].yes);
|
|
141229
|
-
}), _BooleanConfigName);
|
|
141230
|
-
var BooleanSchemas = [{
|
|
141231
|
-
key: BooleanConfig.NO,
|
|
141232
|
-
label: BooleanConfigName[BooleanConfig.NO]
|
|
141233
|
-
}, {
|
|
141234
|
-
key: BooleanConfig.YES,
|
|
141235
|
-
label: BooleanConfigName[BooleanConfig.YES]
|
|
141236
|
-
}];
|
|
141237
|
-
init_defineProperty();
|
|
141238
|
-
var _LanguageName;
|
|
141239
|
-
var Language;
|
|
141240
|
-
(function(Language2) {
|
|
141241
|
-
Language2["TS"] = "ts";
|
|
141242
|
-
Language2["JS"] = "js";
|
|
141243
|
-
})(Language || (Language = {}));
|
|
141244
|
-
var LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
|
|
141245
|
-
return "TS";
|
|
141246
|
-
}), _defineProperty(_LanguageName, Language.JS, function() {
|
|
141247
|
-
return "ES6+";
|
|
141248
|
-
}), _LanguageName);
|
|
141249
|
-
var LanguageSchema = {
|
|
141250
|
-
key: "language",
|
|
141251
|
-
type: ["string"],
|
|
141252
|
-
label: function label() {
|
|
141253
|
-
return i18n.t(localeKeys.language.self);
|
|
141254
|
-
},
|
|
141255
|
-
mutualExclusion: true,
|
|
141256
|
-
items: Object.values(Language).map(function(language) {
|
|
141257
|
-
return {
|
|
141258
|
-
key: language,
|
|
141259
|
-
label: LanguageName[language]
|
|
141260
|
-
};
|
|
141261
|
-
})
|
|
141262
|
-
};
|
|
141263
|
-
init_defineProperty();
|
|
141264
|
-
function ownKeys2(object, enumerableOnly) {
|
|
141265
|
-
var keys = Object.keys(object);
|
|
141266
|
-
if (Object.getOwnPropertySymbols) {
|
|
141267
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
141268
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
141269
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
141270
|
-
})), keys.push.apply(keys, symbols);
|
|
141271
|
-
}
|
|
141272
|
-
return keys;
|
|
141273
|
-
}
|
|
141274
|
-
function _objectSpread22(target) {
|
|
141275
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
141276
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
141277
|
-
i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
|
|
141278
|
-
_defineProperty(target, key, source[key]);
|
|
141279
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
|
|
141280
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
141281
|
-
});
|
|
141282
|
-
}
|
|
141283
|
-
return target;
|
|
141284
|
-
}
|
|
141285
|
-
var EnableLessSchema = {
|
|
141286
|
-
key: "enableLess",
|
|
141287
|
-
type: ["string"],
|
|
141288
|
-
label: function label2() {
|
|
141289
|
-
return i18n.t(localeKeys.needModifyConfig.enableLess);
|
|
141290
|
-
},
|
|
141291
|
-
mutualExclusion: true,
|
|
141292
|
-
state: {
|
|
141293
|
-
value: BooleanConfig.NO
|
|
141294
|
-
},
|
|
141295
|
-
items: BooleanSchemas
|
|
141296
|
-
};
|
|
141297
|
-
var EnableSassSchema = {
|
|
141298
|
-
key: "enableSass",
|
|
141299
|
-
type: ["string"],
|
|
141300
|
-
label: function label3() {
|
|
141301
|
-
return i18n.t(localeKeys.needModifyConfig.enableSass);
|
|
141302
|
-
},
|
|
141303
|
-
mutualExclusion: true,
|
|
141304
|
-
state: {
|
|
141305
|
-
value: BooleanConfig.NO
|
|
141306
|
-
},
|
|
141307
|
-
items: BooleanSchemas
|
|
141308
|
-
};
|
|
141309
|
-
init_defineProperty();
|
|
141310
|
-
var _FrameworkAppendTypeC;
|
|
141311
|
-
var mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
|
|
141312
|
-
return values.needModifyMWAConfig === BooleanConfig.YES;
|
|
141313
|
-
};
|
|
141314
|
-
var RunWay;
|
|
141315
|
-
(function(RunWay2) {
|
|
141316
|
-
RunWay2["No"] = "no";
|
|
141317
|
-
RunWay2["Electron"] = "electron";
|
|
141318
|
-
})(RunWay || (RunWay = {}));
|
|
141319
|
-
var RunWaySchema = {
|
|
141320
|
-
key: "runWay",
|
|
141321
|
-
type: ["string"],
|
|
141322
|
-
label: function label4() {
|
|
141323
|
-
return i18n.t(localeKeys.runWay.self);
|
|
141324
|
-
},
|
|
141325
|
-
mutualExclusion: true,
|
|
141326
|
-
when: function when(_, extra) {
|
|
141327
|
-
return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
|
|
141328
|
-
},
|
|
141329
|
-
state: {
|
|
141330
|
-
value: RunWay.No
|
|
141331
|
-
},
|
|
141332
|
-
items: Object.values(RunWay).map(function(runWay) {
|
|
141333
|
-
return {
|
|
141334
|
-
key: runWay,
|
|
141335
|
-
label: function label11() {
|
|
141336
|
-
return i18n.t(localeKeys.runWay[runWay]);
|
|
141337
|
-
}
|
|
141338
|
-
};
|
|
141339
|
-
})
|
|
141340
|
-
};
|
|
141341
|
-
var ClientRoute;
|
|
141342
|
-
(function(ClientRoute2) {
|
|
141343
|
-
ClientRoute2["SelfControlRoute"] = "selfControlRoute";
|
|
141344
|
-
ClientRoute2["ConventionalRoute"] = "conventionalRoute";
|
|
141345
|
-
ClientRoute2["No"] = "no";
|
|
141346
|
-
})(ClientRoute || (ClientRoute = {}));
|
|
141347
|
-
var ClientRouteSchema = {
|
|
141348
|
-
key: "clientRoute",
|
|
141349
|
-
type: ["string"],
|
|
141350
|
-
label: function label5() {
|
|
141351
|
-
return i18n.t(localeKeys.entry.clientRoute.self);
|
|
141352
|
-
},
|
|
141353
|
-
mutualExclusion: true,
|
|
141354
|
-
when: mwaConfigWhenFunc,
|
|
141355
|
-
state: {
|
|
141356
|
-
value: ClientRoute.SelfControlRoute
|
|
141357
|
-
},
|
|
141358
|
-
items: Object.values(ClientRoute).map(function(clientRoute) {
|
|
141359
|
-
return {
|
|
141360
|
-
key: clientRoute,
|
|
141361
|
-
label: function label11() {
|
|
141362
|
-
return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
|
|
141363
|
-
}
|
|
141364
|
-
};
|
|
141365
|
-
})
|
|
141366
|
-
};
|
|
141367
|
-
var DisableStateManagementSchema = {
|
|
141368
|
-
key: "disableStateManagement",
|
|
141369
|
-
type: ["string"],
|
|
141370
|
-
label: function label6() {
|
|
141371
|
-
return i18n.t(localeKeys.entry.disableStateManagement);
|
|
141372
|
-
},
|
|
141373
|
-
mutualExclusion: true,
|
|
141374
|
-
when: mwaConfigWhenFunc,
|
|
141375
|
-
state: {
|
|
141376
|
-
value: BooleanConfig.NO
|
|
141377
|
-
},
|
|
141378
|
-
items: BooleanSchemas
|
|
141379
|
-
};
|
|
141380
|
-
var EnableMWALessSchema = _objectSpread22(_objectSpread22({}, EnableLessSchema), {}, {
|
|
141381
|
-
when: mwaConfigWhenFunc
|
|
141382
|
-
});
|
|
141383
|
-
var EnableMWASassSchema = _objectSpread22(_objectSpread22({}, EnableSassSchema), {}, {
|
|
141384
|
-
when: mwaConfigWhenFunc
|
|
141385
|
-
});
|
|
141386
|
-
var NeedModifyMWAConfigSchema = {
|
|
141387
|
-
key: "needModifyMWAConfig",
|
|
141388
|
-
label: function label7() {
|
|
141389
|
-
return i18n.t(localeKeys.needModifyConfig.self);
|
|
141390
|
-
},
|
|
141391
|
-
type: ["string"],
|
|
141392
|
-
mutualExclusion: true,
|
|
141393
|
-
state: {
|
|
141394
|
-
value: BooleanConfig.NO
|
|
141395
|
-
},
|
|
141396
|
-
items: BooleanSchemas
|
|
141397
|
-
};
|
|
141398
|
-
var Framework;
|
|
141399
|
-
(function(Framework2) {
|
|
141400
|
-
Framework2["Express"] = "express";
|
|
141401
|
-
Framework2["Koa"] = "koa";
|
|
141402
|
-
Framework2["Egg"] = "egg";
|
|
141403
|
-
Framework2["Nest"] = "nest";
|
|
141404
|
-
})(Framework || (Framework = {}));
|
|
141405
|
-
var FrameworkSchema = {
|
|
141406
|
-
key: "framework",
|
|
141407
|
-
type: ["string"],
|
|
141408
|
-
label: function label8() {
|
|
141409
|
-
return i18n.t(localeKeys.framework.self);
|
|
141410
|
-
},
|
|
141411
|
-
mutualExclusion: true,
|
|
141412
|
-
items: Object.values(Framework).map(function(framework) {
|
|
141413
|
-
return {
|
|
141414
|
-
key: framework,
|
|
141415
|
-
label: function label11() {
|
|
141416
|
-
return i18n.t(localeKeys.framework[framework]);
|
|
141417
|
-
}
|
|
141418
|
-
};
|
|
141419
|
-
})
|
|
141420
|
-
};
|
|
141421
|
-
var FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
|
|
141422
|
-
var BFFType;
|
|
141423
|
-
(function(BFFType2) {
|
|
141424
|
-
BFFType2["Func"] = "func";
|
|
141425
|
-
BFFType2["Framework"] = "framework";
|
|
141426
|
-
})(BFFType || (BFFType = {}));
|
|
141427
|
-
var BFFTypeSchema = {
|
|
141428
|
-
key: "bffType",
|
|
141429
|
-
type: ["string"],
|
|
141430
|
-
label: function label9() {
|
|
141431
|
-
return i18n.t(localeKeys.bff.bffType.self);
|
|
141432
|
-
},
|
|
141433
|
-
mutualExclusion: true,
|
|
141434
|
-
items: Object.values(BFFType).map(function(bffType) {
|
|
141435
|
-
return {
|
|
141436
|
-
key: bffType,
|
|
141437
|
-
label: function label11() {
|
|
141438
|
-
return i18n.t(localeKeys.bff.bffType[bffType]);
|
|
141439
|
-
}
|
|
141440
|
-
};
|
|
141441
|
-
})
|
|
141442
|
-
};
|
|
141443
|
-
var BFFSchemas = [BFFTypeSchema, FrameworkSchema];
|
|
141444
|
-
var BFFSchema = {
|
|
141445
|
-
key: "bff",
|
|
141446
|
-
label: function label10() {
|
|
141447
|
-
return i18n.t(localeKeys.action["function"].bff);
|
|
141448
|
-
},
|
|
141449
|
-
isObject: true,
|
|
141450
|
-
items: BFFSchemas
|
|
141451
|
-
};
|
|
141452
|
-
var MWADefaultBffConfig = {
|
|
141453
|
-
bffType: BFFType.Func,
|
|
141454
|
-
frameWork: Framework.Express
|
|
141455
|
-
};
|
|
142496
|
+
init_treeshaking2();
|
|
141456
142497
|
function isEmptyApiDir(apiDir) {
|
|
141457
142498
|
const files = import_generator_utils.fs.readdirSync(apiDir);
|
|
141458
142499
|
if (files.length === 0) {
|
|
@@ -141484,6 +142525,11 @@ var handleTemplateFile = async (context, generator, appApi) => {
|
|
|
141484
142525
|
generator.logger.warn("nest not support js project");
|
|
141485
142526
|
throw Error("nest not support js project");
|
|
141486
142527
|
}
|
|
142528
|
+
const getBffPluginVersion = (packageName) => {
|
|
142529
|
+
return (0, import_generator_utils.getModernPluginVersion)(Solution.MWA, packageName, {
|
|
142530
|
+
registry: context.config.registry
|
|
142531
|
+
});
|
|
142532
|
+
};
|
|
141487
142533
|
let updateInfo = {};
|
|
141488
142534
|
if (framework === Framework.Express || framework === Framework.Koa) {
|
|
141489
142535
|
updateInfo = {
|
|
@@ -141509,8 +142555,8 @@ var handleTemplateFile = async (context, generator, appApi) => {
|
|
|
141509
142555
|
query: {},
|
|
141510
142556
|
update: {
|
|
141511
142557
|
$set: {
|
|
141512
|
-
"dependencies.@modern-js/plugin-bff":
|
|
141513
|
-
[`dependencies.@modern-js/plugin-${framework}`]:
|
|
142558
|
+
"dependencies.@modern-js/plugin-bff": `${await getBffPluginVersion("@modern-js/plugin-bff")}`,
|
|
142559
|
+
[`dependencies.@modern-js/plugin-${framework}`]: `${await getBffPluginVersion(`@modern-js/plugin-${framework}`)}`,
|
|
141514
142560
|
...updateInfo
|
|
141515
142561
|
}
|
|
141516
142562
|
}
|