@modern-js/bff-generator 3.7.18 → 3.7.20
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 +246 -706
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1802,9 +1802,9 @@ var require_ms = __commonJS({
|
|
|
1802
1802
|
}
|
|
1803
1803
|
});
|
|
1804
1804
|
|
|
1805
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
1805
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js
|
|
1806
1806
|
var require_common = __commonJS({
|
|
1807
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
1807
|
+
"../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
|
|
1808
1808
|
"use strict";
|
|
1809
1809
|
function setup(env) {
|
|
1810
1810
|
createDebug.debug = createDebug;
|
|
@@ -1966,9 +1966,9 @@ var require_common = __commonJS({
|
|
|
1966
1966
|
}
|
|
1967
1967
|
});
|
|
1968
1968
|
|
|
1969
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
1969
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js
|
|
1970
1970
|
var require_browser = __commonJS({
|
|
1971
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
1971
|
+
"../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
|
|
1972
1972
|
"use strict";
|
|
1973
1973
|
exports.formatArgs = formatArgs;
|
|
1974
1974
|
exports.save = save;
|
|
@@ -2137,9 +2137,118 @@ var require_browser = __commonJS({
|
|
|
2137
2137
|
}
|
|
2138
2138
|
});
|
|
2139
2139
|
|
|
2140
|
-
// ../../../../node_modules/.pnpm/
|
|
2140
|
+
// ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
|
|
2141
|
+
var require_has_flag2 = __commonJS({
|
|
2142
|
+
"../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
2143
|
+
"use strict";
|
|
2144
|
+
module2.exports = (flag, argv) => {
|
|
2145
|
+
argv = argv || process.argv;
|
|
2146
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
2147
|
+
const pos2 = argv.indexOf(prefix + flag);
|
|
2148
|
+
const terminatorPos = argv.indexOf("--");
|
|
2149
|
+
return pos2 !== -1 && (terminatorPos === -1 ? true : pos2 < terminatorPos);
|
|
2150
|
+
};
|
|
2151
|
+
}
|
|
2152
|
+
});
|
|
2153
|
+
|
|
2154
|
+
// ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
2155
|
+
var require_supports_color2 = __commonJS({
|
|
2156
|
+
"../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
2157
|
+
"use strict";
|
|
2158
|
+
var os = require("os");
|
|
2159
|
+
var hasFlag = require_has_flag2();
|
|
2160
|
+
var env = process.env;
|
|
2161
|
+
var forceColor;
|
|
2162
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
2163
|
+
forceColor = false;
|
|
2164
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
2165
|
+
forceColor = true;
|
|
2166
|
+
}
|
|
2167
|
+
if ("FORCE_COLOR" in env) {
|
|
2168
|
+
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
2169
|
+
}
|
|
2170
|
+
function translateLevel(level) {
|
|
2171
|
+
if (level === 0) {
|
|
2172
|
+
return false;
|
|
2173
|
+
}
|
|
2174
|
+
return {
|
|
2175
|
+
level,
|
|
2176
|
+
hasBasic: true,
|
|
2177
|
+
has256: level >= 2,
|
|
2178
|
+
has16m: level >= 3
|
|
2179
|
+
};
|
|
2180
|
+
}
|
|
2181
|
+
function supportsColor(stream4) {
|
|
2182
|
+
if (forceColor === false) {
|
|
2183
|
+
return 0;
|
|
2184
|
+
}
|
|
2185
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
2186
|
+
return 3;
|
|
2187
|
+
}
|
|
2188
|
+
if (hasFlag("color=256")) {
|
|
2189
|
+
return 2;
|
|
2190
|
+
}
|
|
2191
|
+
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
|
2192
|
+
return 0;
|
|
2193
|
+
}
|
|
2194
|
+
const min = forceColor ? 1 : 0;
|
|
2195
|
+
if (process.platform === "win32") {
|
|
2196
|
+
const osRelease = os.release().split(".");
|
|
2197
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
2198
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2199
|
+
}
|
|
2200
|
+
return 1;
|
|
2201
|
+
}
|
|
2202
|
+
if ("CI" in env) {
|
|
2203
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
|
|
2204
|
+
return 1;
|
|
2205
|
+
}
|
|
2206
|
+
return min;
|
|
2207
|
+
}
|
|
2208
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
2209
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2210
|
+
}
|
|
2211
|
+
if (env.COLORTERM === "truecolor") {
|
|
2212
|
+
return 3;
|
|
2213
|
+
}
|
|
2214
|
+
if ("TERM_PROGRAM" in env) {
|
|
2215
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2216
|
+
switch (env.TERM_PROGRAM) {
|
|
2217
|
+
case "iTerm.app":
|
|
2218
|
+
return version >= 3 ? 3 : 2;
|
|
2219
|
+
case "Apple_Terminal":
|
|
2220
|
+
return 2;
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
2224
|
+
return 2;
|
|
2225
|
+
}
|
|
2226
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
2227
|
+
return 1;
|
|
2228
|
+
}
|
|
2229
|
+
if ("COLORTERM" in env) {
|
|
2230
|
+
return 1;
|
|
2231
|
+
}
|
|
2232
|
+
if (env.TERM === "dumb") {
|
|
2233
|
+
return min;
|
|
2234
|
+
}
|
|
2235
|
+
return min;
|
|
2236
|
+
}
|
|
2237
|
+
function getSupportLevel(stream4) {
|
|
2238
|
+
const level = supportsColor(stream4);
|
|
2239
|
+
return translateLevel(level);
|
|
2240
|
+
}
|
|
2241
|
+
module2.exports = {
|
|
2242
|
+
supportsColor: getSupportLevel,
|
|
2243
|
+
stdout: getSupportLevel(process.stdout),
|
|
2244
|
+
stderr: getSupportLevel(process.stderr)
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
});
|
|
2248
|
+
|
|
2249
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
2141
2250
|
var require_node = __commonJS({
|
|
2142
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
2251
|
+
"../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
|
|
2143
2252
|
"use strict";
|
|
2144
2253
|
var tty = require("tty");
|
|
2145
2254
|
var util4 = require("util");
|
|
@@ -2156,7 +2265,7 @@ var require_node = __commonJS({
|
|
|
2156
2265
|
);
|
|
2157
2266
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
2158
2267
|
try {
|
|
2159
|
-
const supportsColor =
|
|
2268
|
+
const supportsColor = require_supports_color2();
|
|
2160
2269
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2161
2270
|
exports.colors = [
|
|
2162
2271
|
20,
|
|
@@ -2312,9 +2421,9 @@ var require_node = __commonJS({
|
|
|
2312
2421
|
}
|
|
2313
2422
|
});
|
|
2314
2423
|
|
|
2315
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
2424
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js
|
|
2316
2425
|
var require_src = __commonJS({
|
|
2317
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
2426
|
+
"../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
|
|
2318
2427
|
"use strict";
|
|
2319
2428
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
2320
2429
|
module2.exports = require_browser();
|
|
@@ -2324,9 +2433,9 @@ var require_src = __commonJS({
|
|
|
2324
2433
|
}
|
|
2325
2434
|
});
|
|
2326
2435
|
|
|
2327
|
-
// ../../../../node_modules/.pnpm/universalify@2.0.
|
|
2436
|
+
// ../../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
2328
2437
|
var require_universalify = __commonJS({
|
|
2329
|
-
"../../../../node_modules/.pnpm/universalify@2.0.
|
|
2438
|
+
"../../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
2330
2439
|
"use strict";
|
|
2331
2440
|
exports.fromCallback = function(fn) {
|
|
2332
2441
|
return Object.defineProperty(function(...args) {
|
|
@@ -2334,11 +2443,8 @@ var require_universalify = __commonJS({
|
|
|
2334
2443
|
fn.apply(this, args);
|
|
2335
2444
|
else {
|
|
2336
2445
|
return new Promise((resolve, reject) => {
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
...args,
|
|
2340
|
-
(err, res) => err != null ? reject(err) : resolve(res)
|
|
2341
|
-
);
|
|
2446
|
+
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
|
2447
|
+
fn.apply(this, args);
|
|
2342
2448
|
});
|
|
2343
2449
|
}
|
|
2344
2450
|
}, "name", { value: fn.name });
|
|
@@ -2348,8 +2454,10 @@ var require_universalify = __commonJS({
|
|
|
2348
2454
|
const cb = args[args.length - 1];
|
|
2349
2455
|
if (typeof cb !== "function")
|
|
2350
2456
|
return fn.apply(this, args);
|
|
2351
|
-
else
|
|
2352
|
-
|
|
2457
|
+
else {
|
|
2458
|
+
args.pop();
|
|
2459
|
+
fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
2460
|
+
}
|
|
2353
2461
|
}, "name", { value: fn.name });
|
|
2354
2462
|
};
|
|
2355
2463
|
}
|
|
@@ -4571,6 +4679,37 @@ var require_ensure = __commonJS({
|
|
|
4571
4679
|
}
|
|
4572
4680
|
});
|
|
4573
4681
|
|
|
4682
|
+
// ../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
|
4683
|
+
var require_universalify2 = __commonJS({
|
|
4684
|
+
"../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
|
4685
|
+
"use strict";
|
|
4686
|
+
exports.fromCallback = function(fn) {
|
|
4687
|
+
return Object.defineProperty(function(...args) {
|
|
4688
|
+
if (typeof args[args.length - 1] === "function")
|
|
4689
|
+
fn.apply(this, args);
|
|
4690
|
+
else {
|
|
4691
|
+
return new Promise((resolve, reject) => {
|
|
4692
|
+
fn.call(
|
|
4693
|
+
this,
|
|
4694
|
+
...args,
|
|
4695
|
+
(err, res) => err != null ? reject(err) : resolve(res)
|
|
4696
|
+
);
|
|
4697
|
+
});
|
|
4698
|
+
}
|
|
4699
|
+
}, "name", { value: fn.name });
|
|
4700
|
+
};
|
|
4701
|
+
exports.fromPromise = function(fn) {
|
|
4702
|
+
return Object.defineProperty(function(...args) {
|
|
4703
|
+
const cb = args[args.length - 1];
|
|
4704
|
+
if (typeof cb !== "function")
|
|
4705
|
+
return fn.apply(this, args);
|
|
4706
|
+
else
|
|
4707
|
+
fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
|
|
4708
|
+
}, "name", { value: fn.name });
|
|
4709
|
+
};
|
|
4710
|
+
}
|
|
4711
|
+
});
|
|
4712
|
+
|
|
4574
4713
|
// ../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
|
4575
4714
|
var require_utils2 = __commonJS({
|
|
4576
4715
|
"../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
@@ -4599,7 +4738,7 @@ var require_jsonfile = __commonJS({
|
|
|
4599
4738
|
} catch (_) {
|
|
4600
4739
|
_fs = require("fs");
|
|
4601
4740
|
}
|
|
4602
|
-
var universalify =
|
|
4741
|
+
var universalify = require_universalify2();
|
|
4603
4742
|
var { stringify: stringify4, stripBom } = require_utils2();
|
|
4604
4743
|
function _readFile(_0) {
|
|
4605
4744
|
return __async(this, arguments, function* (file, options = {}) {
|
|
@@ -74201,651 +74340,6 @@ var require_lodash7 = __commonJS({
|
|
|
74201
74340
|
}
|
|
74202
74341
|
});
|
|
74203
74342
|
|
|
74204
|
-
// ../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/common.js
|
|
74205
|
-
var require_common3 = __commonJS({
|
|
74206
|
-
"../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
|
|
74207
|
-
"use strict";
|
|
74208
|
-
function setup(env) {
|
|
74209
|
-
createDebug.debug = createDebug;
|
|
74210
|
-
createDebug.default = createDebug;
|
|
74211
|
-
createDebug.coerce = coerce;
|
|
74212
|
-
createDebug.disable = disable;
|
|
74213
|
-
createDebug.enable = enable;
|
|
74214
|
-
createDebug.enabled = enabled;
|
|
74215
|
-
createDebug.humanize = require_ms();
|
|
74216
|
-
createDebug.destroy = destroy;
|
|
74217
|
-
Object.keys(env).forEach((key2) => {
|
|
74218
|
-
createDebug[key2] = env[key2];
|
|
74219
|
-
});
|
|
74220
|
-
createDebug.names = [];
|
|
74221
|
-
createDebug.skips = [];
|
|
74222
|
-
createDebug.formatters = {};
|
|
74223
|
-
function selectColor(namespace) {
|
|
74224
|
-
let hash = 0;
|
|
74225
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
74226
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
74227
|
-
hash |= 0;
|
|
74228
|
-
}
|
|
74229
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
74230
|
-
}
|
|
74231
|
-
createDebug.selectColor = selectColor;
|
|
74232
|
-
function createDebug(namespace) {
|
|
74233
|
-
let prevTime;
|
|
74234
|
-
let enableOverride = null;
|
|
74235
|
-
let namespacesCache;
|
|
74236
|
-
let enabledCache;
|
|
74237
|
-
function debug(...args) {
|
|
74238
|
-
if (!debug.enabled) {
|
|
74239
|
-
return;
|
|
74240
|
-
}
|
|
74241
|
-
const self3 = debug;
|
|
74242
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
74243
|
-
const ms = curr - (prevTime || curr);
|
|
74244
|
-
self3.diff = ms;
|
|
74245
|
-
self3.prev = prevTime;
|
|
74246
|
-
self3.curr = curr;
|
|
74247
|
-
prevTime = curr;
|
|
74248
|
-
args[0] = createDebug.coerce(args[0]);
|
|
74249
|
-
if (typeof args[0] !== "string") {
|
|
74250
|
-
args.unshift("%O");
|
|
74251
|
-
}
|
|
74252
|
-
let index = 0;
|
|
74253
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
74254
|
-
if (match === "%%") {
|
|
74255
|
-
return "%";
|
|
74256
|
-
}
|
|
74257
|
-
index++;
|
|
74258
|
-
const formatter = createDebug.formatters[format];
|
|
74259
|
-
if (typeof formatter === "function") {
|
|
74260
|
-
const val = args[index];
|
|
74261
|
-
match = formatter.call(self3, val);
|
|
74262
|
-
args.splice(index, 1);
|
|
74263
|
-
index--;
|
|
74264
|
-
}
|
|
74265
|
-
return match;
|
|
74266
|
-
});
|
|
74267
|
-
createDebug.formatArgs.call(self3, args);
|
|
74268
|
-
const logFn = self3.log || createDebug.log;
|
|
74269
|
-
logFn.apply(self3, args);
|
|
74270
|
-
}
|
|
74271
|
-
debug.namespace = namespace;
|
|
74272
|
-
debug.useColors = createDebug.useColors();
|
|
74273
|
-
debug.color = createDebug.selectColor(namespace);
|
|
74274
|
-
debug.extend = extend2;
|
|
74275
|
-
debug.destroy = createDebug.destroy;
|
|
74276
|
-
Object.defineProperty(debug, "enabled", {
|
|
74277
|
-
enumerable: true,
|
|
74278
|
-
configurable: false,
|
|
74279
|
-
get: () => {
|
|
74280
|
-
if (enableOverride !== null) {
|
|
74281
|
-
return enableOverride;
|
|
74282
|
-
}
|
|
74283
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
74284
|
-
namespacesCache = createDebug.namespaces;
|
|
74285
|
-
enabledCache = createDebug.enabled(namespace);
|
|
74286
|
-
}
|
|
74287
|
-
return enabledCache;
|
|
74288
|
-
},
|
|
74289
|
-
set: (v) => {
|
|
74290
|
-
enableOverride = v;
|
|
74291
|
-
}
|
|
74292
|
-
});
|
|
74293
|
-
if (typeof createDebug.init === "function") {
|
|
74294
|
-
createDebug.init(debug);
|
|
74295
|
-
}
|
|
74296
|
-
return debug;
|
|
74297
|
-
}
|
|
74298
|
-
function extend2(namespace, delimiter) {
|
|
74299
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
74300
|
-
newDebug.log = this.log;
|
|
74301
|
-
return newDebug;
|
|
74302
|
-
}
|
|
74303
|
-
function enable(namespaces) {
|
|
74304
|
-
createDebug.save(namespaces);
|
|
74305
|
-
createDebug.namespaces = namespaces;
|
|
74306
|
-
createDebug.names = [];
|
|
74307
|
-
createDebug.skips = [];
|
|
74308
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
74309
|
-
for (const ns of split) {
|
|
74310
|
-
if (ns[0] === "-") {
|
|
74311
|
-
createDebug.skips.push(ns.slice(1));
|
|
74312
|
-
} else {
|
|
74313
|
-
createDebug.names.push(ns);
|
|
74314
|
-
}
|
|
74315
|
-
}
|
|
74316
|
-
}
|
|
74317
|
-
function matchesTemplate(search, template) {
|
|
74318
|
-
let searchIndex = 0;
|
|
74319
|
-
let templateIndex = 0;
|
|
74320
|
-
let starIndex = -1;
|
|
74321
|
-
let matchIndex = 0;
|
|
74322
|
-
while (searchIndex < search.length) {
|
|
74323
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
74324
|
-
if (template[templateIndex] === "*") {
|
|
74325
|
-
starIndex = templateIndex;
|
|
74326
|
-
matchIndex = searchIndex;
|
|
74327
|
-
templateIndex++;
|
|
74328
|
-
} else {
|
|
74329
|
-
searchIndex++;
|
|
74330
|
-
templateIndex++;
|
|
74331
|
-
}
|
|
74332
|
-
} else if (starIndex !== -1) {
|
|
74333
|
-
templateIndex = starIndex + 1;
|
|
74334
|
-
matchIndex++;
|
|
74335
|
-
searchIndex = matchIndex;
|
|
74336
|
-
} else {
|
|
74337
|
-
return false;
|
|
74338
|
-
}
|
|
74339
|
-
}
|
|
74340
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
74341
|
-
templateIndex++;
|
|
74342
|
-
}
|
|
74343
|
-
return templateIndex === template.length;
|
|
74344
|
-
}
|
|
74345
|
-
function disable() {
|
|
74346
|
-
const namespaces = [
|
|
74347
|
-
...createDebug.names,
|
|
74348
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
74349
|
-
].join(",");
|
|
74350
|
-
createDebug.enable("");
|
|
74351
|
-
return namespaces;
|
|
74352
|
-
}
|
|
74353
|
-
function enabled(name) {
|
|
74354
|
-
for (const skip of createDebug.skips) {
|
|
74355
|
-
if (matchesTemplate(name, skip)) {
|
|
74356
|
-
return false;
|
|
74357
|
-
}
|
|
74358
|
-
}
|
|
74359
|
-
for (const ns of createDebug.names) {
|
|
74360
|
-
if (matchesTemplate(name, ns)) {
|
|
74361
|
-
return true;
|
|
74362
|
-
}
|
|
74363
|
-
}
|
|
74364
|
-
return false;
|
|
74365
|
-
}
|
|
74366
|
-
function coerce(val) {
|
|
74367
|
-
if (val instanceof Error) {
|
|
74368
|
-
return val.stack || val.message;
|
|
74369
|
-
}
|
|
74370
|
-
return val;
|
|
74371
|
-
}
|
|
74372
|
-
function destroy() {
|
|
74373
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
74374
|
-
}
|
|
74375
|
-
createDebug.enable(createDebug.load());
|
|
74376
|
-
return createDebug;
|
|
74377
|
-
}
|
|
74378
|
-
module2.exports = setup;
|
|
74379
|
-
}
|
|
74380
|
-
});
|
|
74381
|
-
|
|
74382
|
-
// ../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/browser.js
|
|
74383
|
-
var require_browser2 = __commonJS({
|
|
74384
|
-
"../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
|
|
74385
|
-
"use strict";
|
|
74386
|
-
exports.formatArgs = formatArgs;
|
|
74387
|
-
exports.save = save;
|
|
74388
|
-
exports.load = load;
|
|
74389
|
-
exports.useColors = useColors;
|
|
74390
|
-
exports.storage = localstorage();
|
|
74391
|
-
exports.destroy = (() => {
|
|
74392
|
-
let warned = false;
|
|
74393
|
-
return () => {
|
|
74394
|
-
if (!warned) {
|
|
74395
|
-
warned = true;
|
|
74396
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
74397
|
-
}
|
|
74398
|
-
};
|
|
74399
|
-
})();
|
|
74400
|
-
exports.colors = [
|
|
74401
|
-
"#0000CC",
|
|
74402
|
-
"#0000FF",
|
|
74403
|
-
"#0033CC",
|
|
74404
|
-
"#0033FF",
|
|
74405
|
-
"#0066CC",
|
|
74406
|
-
"#0066FF",
|
|
74407
|
-
"#0099CC",
|
|
74408
|
-
"#0099FF",
|
|
74409
|
-
"#00CC00",
|
|
74410
|
-
"#00CC33",
|
|
74411
|
-
"#00CC66",
|
|
74412
|
-
"#00CC99",
|
|
74413
|
-
"#00CCCC",
|
|
74414
|
-
"#00CCFF",
|
|
74415
|
-
"#3300CC",
|
|
74416
|
-
"#3300FF",
|
|
74417
|
-
"#3333CC",
|
|
74418
|
-
"#3333FF",
|
|
74419
|
-
"#3366CC",
|
|
74420
|
-
"#3366FF",
|
|
74421
|
-
"#3399CC",
|
|
74422
|
-
"#3399FF",
|
|
74423
|
-
"#33CC00",
|
|
74424
|
-
"#33CC33",
|
|
74425
|
-
"#33CC66",
|
|
74426
|
-
"#33CC99",
|
|
74427
|
-
"#33CCCC",
|
|
74428
|
-
"#33CCFF",
|
|
74429
|
-
"#6600CC",
|
|
74430
|
-
"#6600FF",
|
|
74431
|
-
"#6633CC",
|
|
74432
|
-
"#6633FF",
|
|
74433
|
-
"#66CC00",
|
|
74434
|
-
"#66CC33",
|
|
74435
|
-
"#9900CC",
|
|
74436
|
-
"#9900FF",
|
|
74437
|
-
"#9933CC",
|
|
74438
|
-
"#9933FF",
|
|
74439
|
-
"#99CC00",
|
|
74440
|
-
"#99CC33",
|
|
74441
|
-
"#CC0000",
|
|
74442
|
-
"#CC0033",
|
|
74443
|
-
"#CC0066",
|
|
74444
|
-
"#CC0099",
|
|
74445
|
-
"#CC00CC",
|
|
74446
|
-
"#CC00FF",
|
|
74447
|
-
"#CC3300",
|
|
74448
|
-
"#CC3333",
|
|
74449
|
-
"#CC3366",
|
|
74450
|
-
"#CC3399",
|
|
74451
|
-
"#CC33CC",
|
|
74452
|
-
"#CC33FF",
|
|
74453
|
-
"#CC6600",
|
|
74454
|
-
"#CC6633",
|
|
74455
|
-
"#CC9900",
|
|
74456
|
-
"#CC9933",
|
|
74457
|
-
"#CCCC00",
|
|
74458
|
-
"#CCCC33",
|
|
74459
|
-
"#FF0000",
|
|
74460
|
-
"#FF0033",
|
|
74461
|
-
"#FF0066",
|
|
74462
|
-
"#FF0099",
|
|
74463
|
-
"#FF00CC",
|
|
74464
|
-
"#FF00FF",
|
|
74465
|
-
"#FF3300",
|
|
74466
|
-
"#FF3333",
|
|
74467
|
-
"#FF3366",
|
|
74468
|
-
"#FF3399",
|
|
74469
|
-
"#FF33CC",
|
|
74470
|
-
"#FF33FF",
|
|
74471
|
-
"#FF6600",
|
|
74472
|
-
"#FF6633",
|
|
74473
|
-
"#FF9900",
|
|
74474
|
-
"#FF9933",
|
|
74475
|
-
"#FFCC00",
|
|
74476
|
-
"#FFCC33"
|
|
74477
|
-
];
|
|
74478
|
-
function useColors() {
|
|
74479
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
74480
|
-
return true;
|
|
74481
|
-
}
|
|
74482
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
74483
|
-
return false;
|
|
74484
|
-
}
|
|
74485
|
-
let m;
|
|
74486
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
74487
|
-
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
74488
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
74489
|
-
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
74490
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
74491
|
-
}
|
|
74492
|
-
function formatArgs(args) {
|
|
74493
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
74494
|
-
if (!this.useColors) {
|
|
74495
|
-
return;
|
|
74496
|
-
}
|
|
74497
|
-
const c2 = "color: " + this.color;
|
|
74498
|
-
args.splice(1, 0, c2, "color: inherit");
|
|
74499
|
-
let index = 0;
|
|
74500
|
-
let lastC = 0;
|
|
74501
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
74502
|
-
if (match === "%%") {
|
|
74503
|
-
return;
|
|
74504
|
-
}
|
|
74505
|
-
index++;
|
|
74506
|
-
if (match === "%c") {
|
|
74507
|
-
lastC = index;
|
|
74508
|
-
}
|
|
74509
|
-
});
|
|
74510
|
-
args.splice(lastC, 0, c2);
|
|
74511
|
-
}
|
|
74512
|
-
exports.log = console.debug || console.log || (() => {
|
|
74513
|
-
});
|
|
74514
|
-
function save(namespaces) {
|
|
74515
|
-
try {
|
|
74516
|
-
if (namespaces) {
|
|
74517
|
-
exports.storage.setItem("debug", namespaces);
|
|
74518
|
-
} else {
|
|
74519
|
-
exports.storage.removeItem("debug");
|
|
74520
|
-
}
|
|
74521
|
-
} catch (error) {
|
|
74522
|
-
}
|
|
74523
|
-
}
|
|
74524
|
-
function load() {
|
|
74525
|
-
let r;
|
|
74526
|
-
try {
|
|
74527
|
-
r = exports.storage.getItem("debug");
|
|
74528
|
-
} catch (error) {
|
|
74529
|
-
}
|
|
74530
|
-
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
74531
|
-
r = process.env.DEBUG;
|
|
74532
|
-
}
|
|
74533
|
-
return r;
|
|
74534
|
-
}
|
|
74535
|
-
function localstorage() {
|
|
74536
|
-
try {
|
|
74537
|
-
return localStorage;
|
|
74538
|
-
} catch (error) {
|
|
74539
|
-
}
|
|
74540
|
-
}
|
|
74541
|
-
module2.exports = require_common3()(exports);
|
|
74542
|
-
var { formatters } = module2.exports;
|
|
74543
|
-
formatters.j = function(v) {
|
|
74544
|
-
try {
|
|
74545
|
-
return JSON.stringify(v);
|
|
74546
|
-
} catch (error) {
|
|
74547
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
74548
|
-
}
|
|
74549
|
-
};
|
|
74550
|
-
}
|
|
74551
|
-
});
|
|
74552
|
-
|
|
74553
|
-
// ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
|
|
74554
|
-
var require_has_flag2 = __commonJS({
|
|
74555
|
-
"../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
74556
|
-
"use strict";
|
|
74557
|
-
module2.exports = (flag, argv) => {
|
|
74558
|
-
argv = argv || process.argv;
|
|
74559
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
74560
|
-
const pos2 = argv.indexOf(prefix + flag);
|
|
74561
|
-
const terminatorPos = argv.indexOf("--");
|
|
74562
|
-
return pos2 !== -1 && (terminatorPos === -1 ? true : pos2 < terminatorPos);
|
|
74563
|
-
};
|
|
74564
|
-
}
|
|
74565
|
-
});
|
|
74566
|
-
|
|
74567
|
-
// ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
74568
|
-
var require_supports_color2 = __commonJS({
|
|
74569
|
-
"../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
74570
|
-
"use strict";
|
|
74571
|
-
var os = require("os");
|
|
74572
|
-
var hasFlag = require_has_flag2();
|
|
74573
|
-
var env = process.env;
|
|
74574
|
-
var forceColor;
|
|
74575
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
74576
|
-
forceColor = false;
|
|
74577
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
74578
|
-
forceColor = true;
|
|
74579
|
-
}
|
|
74580
|
-
if ("FORCE_COLOR" in env) {
|
|
74581
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
74582
|
-
}
|
|
74583
|
-
function translateLevel(level) {
|
|
74584
|
-
if (level === 0) {
|
|
74585
|
-
return false;
|
|
74586
|
-
}
|
|
74587
|
-
return {
|
|
74588
|
-
level,
|
|
74589
|
-
hasBasic: true,
|
|
74590
|
-
has256: level >= 2,
|
|
74591
|
-
has16m: level >= 3
|
|
74592
|
-
};
|
|
74593
|
-
}
|
|
74594
|
-
function supportsColor(stream4) {
|
|
74595
|
-
if (forceColor === false) {
|
|
74596
|
-
return 0;
|
|
74597
|
-
}
|
|
74598
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
74599
|
-
return 3;
|
|
74600
|
-
}
|
|
74601
|
-
if (hasFlag("color=256")) {
|
|
74602
|
-
return 2;
|
|
74603
|
-
}
|
|
74604
|
-
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
|
74605
|
-
return 0;
|
|
74606
|
-
}
|
|
74607
|
-
const min = forceColor ? 1 : 0;
|
|
74608
|
-
if (process.platform === "win32") {
|
|
74609
|
-
const osRelease = os.release().split(".");
|
|
74610
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
74611
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
74612
|
-
}
|
|
74613
|
-
return 1;
|
|
74614
|
-
}
|
|
74615
|
-
if ("CI" in env) {
|
|
74616
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
|
|
74617
|
-
return 1;
|
|
74618
|
-
}
|
|
74619
|
-
return min;
|
|
74620
|
-
}
|
|
74621
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
74622
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
74623
|
-
}
|
|
74624
|
-
if (env.COLORTERM === "truecolor") {
|
|
74625
|
-
return 3;
|
|
74626
|
-
}
|
|
74627
|
-
if ("TERM_PROGRAM" in env) {
|
|
74628
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
74629
|
-
switch (env.TERM_PROGRAM) {
|
|
74630
|
-
case "iTerm.app":
|
|
74631
|
-
return version >= 3 ? 3 : 2;
|
|
74632
|
-
case "Apple_Terminal":
|
|
74633
|
-
return 2;
|
|
74634
|
-
}
|
|
74635
|
-
}
|
|
74636
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
74637
|
-
return 2;
|
|
74638
|
-
}
|
|
74639
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
74640
|
-
return 1;
|
|
74641
|
-
}
|
|
74642
|
-
if ("COLORTERM" in env) {
|
|
74643
|
-
return 1;
|
|
74644
|
-
}
|
|
74645
|
-
if (env.TERM === "dumb") {
|
|
74646
|
-
return min;
|
|
74647
|
-
}
|
|
74648
|
-
return min;
|
|
74649
|
-
}
|
|
74650
|
-
function getSupportLevel(stream4) {
|
|
74651
|
-
const level = supportsColor(stream4);
|
|
74652
|
-
return translateLevel(level);
|
|
74653
|
-
}
|
|
74654
|
-
module2.exports = {
|
|
74655
|
-
supportsColor: getSupportLevel,
|
|
74656
|
-
stdout: getSupportLevel(process.stdout),
|
|
74657
|
-
stderr: getSupportLevel(process.stderr)
|
|
74658
|
-
};
|
|
74659
|
-
}
|
|
74660
|
-
});
|
|
74661
|
-
|
|
74662
|
-
// ../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
74663
|
-
var require_node3 = __commonJS({
|
|
74664
|
-
"../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
|
|
74665
|
-
"use strict";
|
|
74666
|
-
var tty = require("tty");
|
|
74667
|
-
var util4 = require("util");
|
|
74668
|
-
exports.init = init;
|
|
74669
|
-
exports.log = log;
|
|
74670
|
-
exports.formatArgs = formatArgs;
|
|
74671
|
-
exports.save = save;
|
|
74672
|
-
exports.load = load;
|
|
74673
|
-
exports.useColors = useColors;
|
|
74674
|
-
exports.destroy = util4.deprecate(
|
|
74675
|
-
() => {
|
|
74676
|
-
},
|
|
74677
|
-
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
74678
|
-
);
|
|
74679
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
74680
|
-
try {
|
|
74681
|
-
const supportsColor = require_supports_color2();
|
|
74682
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
74683
|
-
exports.colors = [
|
|
74684
|
-
20,
|
|
74685
|
-
21,
|
|
74686
|
-
26,
|
|
74687
|
-
27,
|
|
74688
|
-
32,
|
|
74689
|
-
33,
|
|
74690
|
-
38,
|
|
74691
|
-
39,
|
|
74692
|
-
40,
|
|
74693
|
-
41,
|
|
74694
|
-
42,
|
|
74695
|
-
43,
|
|
74696
|
-
44,
|
|
74697
|
-
45,
|
|
74698
|
-
56,
|
|
74699
|
-
57,
|
|
74700
|
-
62,
|
|
74701
|
-
63,
|
|
74702
|
-
68,
|
|
74703
|
-
69,
|
|
74704
|
-
74,
|
|
74705
|
-
75,
|
|
74706
|
-
76,
|
|
74707
|
-
77,
|
|
74708
|
-
78,
|
|
74709
|
-
79,
|
|
74710
|
-
80,
|
|
74711
|
-
81,
|
|
74712
|
-
92,
|
|
74713
|
-
93,
|
|
74714
|
-
98,
|
|
74715
|
-
99,
|
|
74716
|
-
112,
|
|
74717
|
-
113,
|
|
74718
|
-
128,
|
|
74719
|
-
129,
|
|
74720
|
-
134,
|
|
74721
|
-
135,
|
|
74722
|
-
148,
|
|
74723
|
-
149,
|
|
74724
|
-
160,
|
|
74725
|
-
161,
|
|
74726
|
-
162,
|
|
74727
|
-
163,
|
|
74728
|
-
164,
|
|
74729
|
-
165,
|
|
74730
|
-
166,
|
|
74731
|
-
167,
|
|
74732
|
-
168,
|
|
74733
|
-
169,
|
|
74734
|
-
170,
|
|
74735
|
-
171,
|
|
74736
|
-
172,
|
|
74737
|
-
173,
|
|
74738
|
-
178,
|
|
74739
|
-
179,
|
|
74740
|
-
184,
|
|
74741
|
-
185,
|
|
74742
|
-
196,
|
|
74743
|
-
197,
|
|
74744
|
-
198,
|
|
74745
|
-
199,
|
|
74746
|
-
200,
|
|
74747
|
-
201,
|
|
74748
|
-
202,
|
|
74749
|
-
203,
|
|
74750
|
-
204,
|
|
74751
|
-
205,
|
|
74752
|
-
206,
|
|
74753
|
-
207,
|
|
74754
|
-
208,
|
|
74755
|
-
209,
|
|
74756
|
-
214,
|
|
74757
|
-
215,
|
|
74758
|
-
220,
|
|
74759
|
-
221
|
|
74760
|
-
];
|
|
74761
|
-
}
|
|
74762
|
-
} catch (error) {
|
|
74763
|
-
}
|
|
74764
|
-
exports.inspectOpts = Object.keys(process.env).filter((key2) => {
|
|
74765
|
-
return /^debug_/i.test(key2);
|
|
74766
|
-
}).reduce((obj, key2) => {
|
|
74767
|
-
const prop = key2.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
74768
|
-
return k.toUpperCase();
|
|
74769
|
-
});
|
|
74770
|
-
let val = process.env[key2];
|
|
74771
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
74772
|
-
val = true;
|
|
74773
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
74774
|
-
val = false;
|
|
74775
|
-
} else if (val === "null") {
|
|
74776
|
-
val = null;
|
|
74777
|
-
} else {
|
|
74778
|
-
val = Number(val);
|
|
74779
|
-
}
|
|
74780
|
-
obj[prop] = val;
|
|
74781
|
-
return obj;
|
|
74782
|
-
}, {});
|
|
74783
|
-
function useColors() {
|
|
74784
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
74785
|
-
}
|
|
74786
|
-
function formatArgs(args) {
|
|
74787
|
-
const { namespace: name, useColors: useColors2 } = this;
|
|
74788
|
-
if (useColors2) {
|
|
74789
|
-
const c2 = this.color;
|
|
74790
|
-
const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);
|
|
74791
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
74792
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
74793
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
74794
|
-
} else {
|
|
74795
|
-
args[0] = getDate() + name + " " + args[0];
|
|
74796
|
-
}
|
|
74797
|
-
}
|
|
74798
|
-
function getDate() {
|
|
74799
|
-
if (exports.inspectOpts.hideDate) {
|
|
74800
|
-
return "";
|
|
74801
|
-
}
|
|
74802
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
74803
|
-
}
|
|
74804
|
-
function log(...args) {
|
|
74805
|
-
return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
74806
|
-
}
|
|
74807
|
-
function save(namespaces) {
|
|
74808
|
-
if (namespaces) {
|
|
74809
|
-
process.env.DEBUG = namespaces;
|
|
74810
|
-
} else {
|
|
74811
|
-
delete process.env.DEBUG;
|
|
74812
|
-
}
|
|
74813
|
-
}
|
|
74814
|
-
function load() {
|
|
74815
|
-
return process.env.DEBUG;
|
|
74816
|
-
}
|
|
74817
|
-
function init(debug) {
|
|
74818
|
-
debug.inspectOpts = {};
|
|
74819
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
74820
|
-
for (let i = 0; i < keys.length; i++) {
|
|
74821
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
74822
|
-
}
|
|
74823
|
-
}
|
|
74824
|
-
module2.exports = require_common3()(exports);
|
|
74825
|
-
var { formatters } = module2.exports;
|
|
74826
|
-
formatters.o = function(v) {
|
|
74827
|
-
this.inspectOpts.colors = this.useColors;
|
|
74828
|
-
return util4.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
74829
|
-
};
|
|
74830
|
-
formatters.O = function(v) {
|
|
74831
|
-
this.inspectOpts.colors = this.useColors;
|
|
74832
|
-
return util4.inspect(v, this.inspectOpts);
|
|
74833
|
-
};
|
|
74834
|
-
}
|
|
74835
|
-
});
|
|
74836
|
-
|
|
74837
|
-
// ../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/index.js
|
|
74838
|
-
var require_src4 = __commonJS({
|
|
74839
|
-
"../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
|
|
74840
|
-
"use strict";
|
|
74841
|
-
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
74842
|
-
module2.exports = require_browser2();
|
|
74843
|
-
} else {
|
|
74844
|
-
module2.exports = require_node3();
|
|
74845
|
-
}
|
|
74846
|
-
}
|
|
74847
|
-
});
|
|
74848
|
-
|
|
74849
74343
|
// ../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js
|
|
74850
74344
|
var require_get_type = __commonJS({
|
|
74851
74345
|
"../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js"(exports) {
|
|
@@ -74998,7 +74492,7 @@ var require_filter3 = __commonJS({
|
|
|
74998
74492
|
return r;
|
|
74999
74493
|
};
|
|
75000
74494
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75001
|
-
var debug_1 =
|
|
74495
|
+
var debug_1 = require_src();
|
|
75002
74496
|
var mongo_eql_1 = require_mongo_eql();
|
|
75003
74497
|
var ops = require_ops();
|
|
75004
74498
|
var get_type_1 = require_get_type();
|
|
@@ -75158,7 +74652,7 @@ var require_mods = __commonJS({
|
|
|
75158
74652
|
return r;
|
|
75159
74653
|
};
|
|
75160
74654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75161
|
-
var debug_1 =
|
|
74655
|
+
var debug_1 = require_src();
|
|
75162
74656
|
var mongoDot = require_mongo_dot();
|
|
75163
74657
|
var mongo_eql_1 = require_mongo_eql();
|
|
75164
74658
|
var get_type_1 = require_get_type();
|
|
@@ -75619,7 +75113,7 @@ var require_query = __commonJS({
|
|
|
75619
75113
|
"../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/query.js"(exports) {
|
|
75620
75114
|
"use strict";
|
|
75621
75115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75622
|
-
var debug_1 =
|
|
75116
|
+
var debug_1 = require_src();
|
|
75623
75117
|
var filter_1 = require_filter3();
|
|
75624
75118
|
var mods = require_mods();
|
|
75625
75119
|
var mongoDot = require_mongo_dot();
|
|
@@ -75718,16 +75212,16 @@ __export(src_exports, {
|
|
|
75718
75212
|
module.exports = __toCommonJS(src_exports);
|
|
75719
75213
|
var import_path6 = __toESM(require("path"));
|
|
75720
75214
|
|
|
75721
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
75215
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
|
|
75722
75216
|
var import_chalk = __toESM(require_source());
|
|
75723
75217
|
|
|
75724
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
75218
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
|
|
75725
75219
|
var import_fs_extra = __toESM(require_lib());
|
|
75726
75220
|
|
|
75727
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
75221
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
75728
75222
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
75729
75223
|
|
|
75730
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
75224
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
75731
75225
|
function fsExists(path6) {
|
|
75732
75226
|
return __async(this, null, function* () {
|
|
75733
75227
|
try {
|
|
@@ -75739,10 +75233,10 @@ function fsExists(path6) {
|
|
|
75739
75233
|
});
|
|
75740
75234
|
}
|
|
75741
75235
|
|
|
75742
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
75236
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
|
|
75743
75237
|
var import_execa = __toESM(require_execa());
|
|
75744
75238
|
|
|
75745
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
75239
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
|
75746
75240
|
function timeoutPromise(promise, ms, reason = "Operation") {
|
|
75747
75241
|
return __async(this, null, function* () {
|
|
75748
75242
|
let timeoutId = null;
|
|
@@ -75766,11 +75260,11 @@ function timeoutPromise(promise, ms, reason = "Operation") {
|
|
|
75766
75260
|
});
|
|
75767
75261
|
}
|
|
75768
75262
|
|
|
75769
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
75263
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
|
75770
75264
|
var NPM_API_TIMEOUT = 3e4;
|
|
75771
75265
|
var CATCHE_VALIDITY_PREIOD = 7 * 24 * 3600 * 1e3;
|
|
75772
75266
|
|
|
75773
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
75267
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
|
75774
75268
|
var import_semver = __toESM(require_semver2());
|
|
75775
75269
|
|
|
75776
75270
|
// ../../../../node_modules/.pnpm/axios@1.7.9_debug@4.3.7/node_modules/axios/lib/helpers/bind.js
|
|
@@ -79100,7 +78594,7 @@ var {
|
|
|
79100
78594
|
mergeConfig: mergeConfig2
|
|
79101
78595
|
} = axios_default;
|
|
79102
78596
|
|
|
79103
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
78597
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js
|
|
79104
78598
|
function getNpmRegistry() {
|
|
79105
78599
|
return __async(this, null, function* () {
|
|
79106
78600
|
const { stdout } = yield (0, import_execa.default)("npm", [
|
|
@@ -79112,7 +78606,7 @@ function getNpmRegistry() {
|
|
|
79112
78606
|
});
|
|
79113
78607
|
}
|
|
79114
78608
|
|
|
79115
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
78609
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js
|
|
79116
78610
|
var NpmPackageInfoCache = /* @__PURE__ */ new Map();
|
|
79117
78611
|
function getNpmPackageInfoWithCommand(pkgName, pkgVersion, options) {
|
|
79118
78612
|
return __async(this, null, function* () {
|
|
@@ -79150,6 +78644,9 @@ function getNpmPackageInfo(pkgName, pkgVersion, options) {
|
|
|
79150
78644
|
let response;
|
|
79151
78645
|
try {
|
|
79152
78646
|
response = (yield timeoutPromise(axios_default.get(url2), NPM_API_TIMEOUT, `Get npm package info of '${pkgName}'`)).data;
|
|
78647
|
+
if (!response.version) {
|
|
78648
|
+
response = yield getNpmPackageInfoWithCommand(pkgName, pkgVersion, options);
|
|
78649
|
+
}
|
|
79153
78650
|
} catch (e) {
|
|
79154
78651
|
logger === null || logger === void 0 ? void 0 : logger.error(e);
|
|
79155
78652
|
response = yield getNpmPackageInfoWithCommand(pkgName, pkgVersion, options);
|
|
@@ -79160,7 +78657,7 @@ function getNpmPackageInfo(pkgName, pkgVersion, options) {
|
|
|
79160
78657
|
});
|
|
79161
78658
|
}
|
|
79162
78659
|
|
|
79163
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
78660
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
|
79164
78661
|
function getNpmVersion(packageName, options) {
|
|
79165
78662
|
return __async(this, null, function* () {
|
|
79166
78663
|
const { version = "latest" } = options || {};
|
|
@@ -79169,7 +78666,7 @@ function getNpmVersion(packageName, options) {
|
|
|
79169
78666
|
});
|
|
79170
78667
|
}
|
|
79171
78668
|
|
|
79172
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
78669
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
|
79173
78670
|
function getPackageInfo(packageName) {
|
|
79174
78671
|
if (!packageName) {
|
|
79175
78672
|
throw new Error("package is not exisit");
|
|
@@ -79193,16 +78690,16 @@ function getPackageInfo(packageName) {
|
|
|
79193
78690
|
};
|
|
79194
78691
|
}
|
|
79195
78692
|
|
|
79196
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
78693
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js
|
|
79197
78694
|
var import_ora = __toESM(require_ora());
|
|
79198
78695
|
|
|
79199
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.
|
|
78696
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
79200
78697
|
var import_ejs = __toESM(require_ejs());
|
|
79201
78698
|
function renderString(template, fullData) {
|
|
79202
78699
|
return import_ejs.default.render(template, fullData) || "";
|
|
79203
78700
|
}
|
|
79204
78701
|
|
|
79205
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.
|
|
78702
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
79206
78703
|
var EjsAPI = class {
|
|
79207
78704
|
renderTemplate(_0, _1) {
|
|
79208
78705
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
|
@@ -79237,7 +78734,7 @@ var EjsAPI = class {
|
|
|
79237
78734
|
}
|
|
79238
78735
|
};
|
|
79239
78736
|
|
|
79240
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.
|
|
78737
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
79241
78738
|
var import_path = __toESM(require("path"));
|
|
79242
78739
|
var FsAPI = class {
|
|
79243
78740
|
renderFile(resource, target) {
|
|
@@ -79266,7 +78763,7 @@ var FsAPI = class {
|
|
|
79266
78763
|
}
|
|
79267
78764
|
};
|
|
79268
78765
|
|
|
79269
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.
|
|
78766
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
79270
78767
|
function canUseGit() {
|
|
79271
78768
|
return __async(this, null, function* () {
|
|
79272
78769
|
try {
|
|
@@ -79350,7 +78847,7 @@ function gitCommit(cwd, commitMessage) {
|
|
|
79350
78847
|
});
|
|
79351
78848
|
}
|
|
79352
78849
|
|
|
79353
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.
|
|
78850
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
79354
78851
|
var GitAPI = class {
|
|
79355
78852
|
isInGitRepo() {
|
|
79356
78853
|
return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
|
|
@@ -79406,7 +78903,7 @@ var GitAPI = class {
|
|
|
79406
78903
|
}
|
|
79407
78904
|
};
|
|
79408
78905
|
|
|
79409
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.
|
|
78906
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
79410
78907
|
var import_handlebars = __toESM(require_lib2());
|
|
79411
78908
|
function renderString2(template, fullData, registers) {
|
|
79412
78909
|
const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
|
|
@@ -79416,7 +78913,7 @@ function renderString2(template, fullData, registers) {
|
|
|
79416
78913
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
79417
78914
|
}
|
|
79418
78915
|
|
|
79419
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.
|
|
78916
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
79420
78917
|
var HandlebarsAPI = class {
|
|
79421
78918
|
registerHelp(helpers) {
|
|
79422
78919
|
return __async(this, null, function* () {
|
|
@@ -79573,7 +79070,7 @@ function __generator(thisArg, body) {
|
|
|
79573
79070
|
}
|
|
79574
79071
|
}
|
|
79575
79072
|
|
|
79576
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
79073
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
|
|
79577
79074
|
var import_execa5 = __toESM(require_execa());
|
|
79578
79075
|
function canUseNvm() {
|
|
79579
79076
|
return _canUseNvm.apply(this, arguments);
|
|
@@ -79618,6 +79115,49 @@ function _canUseNvm() {
|
|
|
79618
79115
|
});
|
|
79619
79116
|
return _canUseNvm.apply(this, arguments);
|
|
79620
79117
|
}
|
|
79118
|
+
function canUseFnm() {
|
|
79119
|
+
return _canUseFnm.apply(this, arguments);
|
|
79120
|
+
}
|
|
79121
|
+
function _canUseFnm() {
|
|
79122
|
+
_canUseFnm = _async_to_generator(function() {
|
|
79123
|
+
var e;
|
|
79124
|
+
return __generator(this, function(_state) {
|
|
79125
|
+
switch (_state.label) {
|
|
79126
|
+
case 0:
|
|
79127
|
+
_state.trys.push([
|
|
79128
|
+
0,
|
|
79129
|
+
2,
|
|
79130
|
+
,
|
|
79131
|
+
3
|
|
79132
|
+
]);
|
|
79133
|
+
return [
|
|
79134
|
+
4,
|
|
79135
|
+
(0, import_execa5.default)("fnm --version", {
|
|
79136
|
+
env: process.env,
|
|
79137
|
+
shell: true
|
|
79138
|
+
})
|
|
79139
|
+
];
|
|
79140
|
+
case 1:
|
|
79141
|
+
_state.sent();
|
|
79142
|
+
return [
|
|
79143
|
+
2,
|
|
79144
|
+
true
|
|
79145
|
+
];
|
|
79146
|
+
case 2:
|
|
79147
|
+
e = _state.sent();
|
|
79148
|
+
return [
|
|
79149
|
+
2,
|
|
79150
|
+
false
|
|
79151
|
+
];
|
|
79152
|
+
case 3:
|
|
79153
|
+
return [
|
|
79154
|
+
2
|
|
79155
|
+
];
|
|
79156
|
+
}
|
|
79157
|
+
});
|
|
79158
|
+
});
|
|
79159
|
+
return _canUseFnm.apply(this, arguments);
|
|
79160
|
+
}
|
|
79621
79161
|
function canUseNpm() {
|
|
79622
79162
|
return _canUseNpm.apply(this, arguments);
|
|
79623
79163
|
}
|
|
@@ -79751,7 +79291,7 @@ function _canUsePnpm() {
|
|
|
79751
79291
|
return _canUsePnpm.apply(this, arguments);
|
|
79752
79292
|
}
|
|
79753
79293
|
|
|
79754
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.
|
|
79294
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
79755
79295
|
function execaWithStreamLog(command, args, options) {
|
|
79756
79296
|
const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
|
|
79757
79297
|
stdin: "inherit",
|
|
@@ -79852,7 +79392,7 @@ function pnpmInstall(_0) {
|
|
|
79852
79392
|
});
|
|
79853
79393
|
}
|
|
79854
79394
|
|
|
79855
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.
|
|
79395
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
79856
79396
|
var NpmAPI = class {
|
|
79857
79397
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
79858
79398
|
return npmInstall({
|
|
@@ -79880,7 +79420,7 @@ var NpmAPI = class {
|
|
|
79880
79420
|
}
|
|
79881
79421
|
};
|
|
79882
79422
|
|
|
79883
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
79423
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
|
|
79884
79424
|
var import_lodash = __toESM(require_lodash());
|
|
79885
79425
|
var import_lodash2 = __toESM(require_lodash2());
|
|
79886
79426
|
var import_lodash3 = __toESM(require_lodash3());
|
|
@@ -85647,10 +85187,10 @@ var Schema = (
|
|
|
85647
85187
|
}()
|
|
85648
85188
|
);
|
|
85649
85189
|
|
|
85650
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
85190
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
85651
85191
|
var import_inquirer = __toESM(require_inquirer());
|
|
85652
85192
|
|
|
85653
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
85193
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
85654
85194
|
function validateSchema(schema) {
|
|
85655
85195
|
const { type, properties } = schema;
|
|
85656
85196
|
if (type !== "object") {
|
|
@@ -85737,7 +85277,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
85737
85277
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
85738
85278
|
}
|
|
85739
85279
|
|
|
85740
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
85280
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
85741
85281
|
var compileRule = (rule, scope) => {
|
|
85742
85282
|
const state = Schema.compile(rule, __spreadValues({
|
|
85743
85283
|
$self: {},
|
|
@@ -85837,7 +85377,7 @@ function prompt(_0) {
|
|
|
85837
85377
|
});
|
|
85838
85378
|
}
|
|
85839
85379
|
|
|
85840
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
85380
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
85841
85381
|
var CLIReader = class {
|
|
85842
85382
|
getAnswers() {
|
|
85843
85383
|
return this.answers;
|
|
@@ -85865,7 +85405,7 @@ var CLIReader = class {
|
|
|
85865
85405
|
}
|
|
85866
85406
|
};
|
|
85867
85407
|
|
|
85868
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
85408
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
85869
85409
|
var import_comment_json = __toESM(require_src3());
|
|
85870
85410
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
85871
85411
|
|
|
@@ -85932,7 +85472,7 @@ var I18n = class {
|
|
|
85932
85472
|
}
|
|
85933
85473
|
};
|
|
85934
85474
|
|
|
85935
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
85475
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
85936
85476
|
var EN_LOCALE = {
|
|
85937
85477
|
environment: {
|
|
85938
85478
|
node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
|
|
@@ -85959,7 +85499,7 @@ var EN_LOCALE = {
|
|
|
85959
85499
|
}
|
|
85960
85500
|
};
|
|
85961
85501
|
|
|
85962
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
85502
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
85963
85503
|
var ZH_LOCALE = {
|
|
85964
85504
|
environment: {
|
|
85965
85505
|
node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
|
|
@@ -85986,14 +85526,14 @@ var ZH_LOCALE = {
|
|
|
85986
85526
|
}
|
|
85987
85527
|
};
|
|
85988
85528
|
|
|
85989
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
85529
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
85990
85530
|
var i18n = new I18n();
|
|
85991
85531
|
var localeKeys = i18n.init("zh", {
|
|
85992
85532
|
zh: ZH_LOCALE,
|
|
85993
85533
|
en: EN_LOCALE
|
|
85994
85534
|
});
|
|
85995
85535
|
|
|
85996
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
85536
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
85997
85537
|
var import_path3 = __toESM(require("path"));
|
|
85998
85538
|
var NODE_MAJOR_VERSION_MAP = {
|
|
85999
85539
|
"lts/*": 18,
|
|
@@ -86028,7 +85568,7 @@ function checkUseNvm(cwd, logger) {
|
|
|
86028
85568
|
if (expectNodeVersion === import_semver.default.major(currentNodeVersion)) {
|
|
86029
85569
|
return false;
|
|
86030
85570
|
}
|
|
86031
|
-
if (!(yield canUseNvm())) {
|
|
85571
|
+
if (!((yield canUseNvm()) || (yield canUseFnm()))) {
|
|
86032
85572
|
logger.warn(`🟡 [Check nvm Error]: Current node version is not expect, you should install ${expectNodeVersion}`);
|
|
86033
85573
|
return false;
|
|
86034
85574
|
}
|
|
@@ -86044,7 +85584,7 @@ function checkUseNvm(cwd, logger) {
|
|
|
86044
85584
|
});
|
|
86045
85585
|
}
|
|
86046
85586
|
|
|
86047
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
85587
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
86048
85588
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
86049
85589
|
for (const question of questions) {
|
|
86050
85590
|
question.default = initValue[question.name] || question.default;
|
|
@@ -86071,7 +85611,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
86071
85611
|
return questions;
|
|
86072
85612
|
}
|
|
86073
85613
|
|
|
86074
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
85614
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
86075
85615
|
var AppAPI = class {
|
|
86076
85616
|
checkEnvironment(nodeVersion) {
|
|
86077
85617
|
return __async(this, null, function* () {
|
|
@@ -86314,11 +85854,11 @@ var AppAPI = class {
|
|
|
86314
85854
|
}
|
|
86315
85855
|
};
|
|
86316
85856
|
|
|
86317
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.
|
|
85857
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.6/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
86318
85858
|
var import_comment_json2 = __toESM(require_src3());
|
|
86319
85859
|
var declarationUpdate = __toESM(require_dist());
|
|
86320
85860
|
|
|
86321
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.
|
|
85861
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.6/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
|
86322
85862
|
function editJson(generatorCore, resource, getNewJsonValue) {
|
|
86323
85863
|
return __async(this, null, function* () {
|
|
86324
85864
|
const originJsonValue = yield resource.value();
|
|
@@ -86333,7 +85873,7 @@ function editJson(generatorCore, resource, getNewJsonValue) {
|
|
|
86333
85873
|
});
|
|
86334
85874
|
}
|
|
86335
85875
|
|
|
86336
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.
|
|
85876
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.6/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
86337
85877
|
var JsonAPI = class {
|
|
86338
85878
|
get(resource) {
|
|
86339
85879
|
return __async(this, null, function* () {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.7.
|
|
18
|
+
"version": "3.7.20",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./src/index.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"/dist/index.js"
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@modern-js/codesmith": "2.6.
|
|
28
|
-
"@modern-js/codesmith-api-app": "2.6.
|
|
29
|
-
"@modern-js/codesmith-api-json": "2.6.
|
|
30
|
-
"@modern-js/codesmith-utils": "2.6.
|
|
27
|
+
"@modern-js/codesmith": "2.6.6",
|
|
28
|
+
"@modern-js/codesmith-api-app": "2.6.6",
|
|
29
|
+
"@modern-js/codesmith-api-json": "2.6.6",
|
|
30
|
+
"@modern-js/codesmith-utils": "2.6.6",
|
|
31
31
|
"@types/jest": "^29",
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^29",
|
|
34
34
|
"typescript": "^5",
|
|
35
|
-
"@modern-js/generator-common": "3.7.
|
|
36
|
-
"@modern-js/generator-utils": "3.7.
|
|
37
|
-
"@modern-js/plugin-i18n": "2.65.
|
|
38
|
-
"@scripts/build": "2.65.
|
|
39
|
-
"@scripts/jest-config": "2.65.
|
|
35
|
+
"@modern-js/generator-common": "3.7.20",
|
|
36
|
+
"@modern-js/generator-utils": "3.7.20",
|
|
37
|
+
"@modern-js/plugin-i18n": "2.65.2",
|
|
38
|
+
"@scripts/build": "2.65.2",
|
|
39
|
+
"@scripts/jest-config": "2.65.2"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"publishConfig": {
|