@modern-js/dependence-generator 3.7.23 → 3.7.24
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 +42 -182
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -3875,37 +3875,6 @@ var require_ensure = __commonJS({
|
|
|
3875
3875
|
}
|
|
3876
3876
|
});
|
|
3877
3877
|
|
|
3878
|
-
// ../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
|
3879
|
-
var require_universalify2 = __commonJS({
|
|
3880
|
-
"../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
|
3881
|
-
"use strict";
|
|
3882
|
-
exports.fromCallback = function(fn) {
|
|
3883
|
-
return Object.defineProperty(function(...args) {
|
|
3884
|
-
if (typeof args[args.length - 1] === "function")
|
|
3885
|
-
fn.apply(this, args);
|
|
3886
|
-
else {
|
|
3887
|
-
return new Promise((resolve, reject) => {
|
|
3888
|
-
fn.call(
|
|
3889
|
-
this,
|
|
3890
|
-
...args,
|
|
3891
|
-
(err, res) => err != null ? reject(err) : resolve(res)
|
|
3892
|
-
);
|
|
3893
|
-
});
|
|
3894
|
-
}
|
|
3895
|
-
}, "name", { value: fn.name });
|
|
3896
|
-
};
|
|
3897
|
-
exports.fromPromise = function(fn) {
|
|
3898
|
-
return Object.defineProperty(function(...args) {
|
|
3899
|
-
const cb = args[args.length - 1];
|
|
3900
|
-
if (typeof cb !== "function")
|
|
3901
|
-
return fn.apply(this, args);
|
|
3902
|
-
else
|
|
3903
|
-
fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
|
|
3904
|
-
}, "name", { value: fn.name });
|
|
3905
|
-
};
|
|
3906
|
-
}
|
|
3907
|
-
});
|
|
3908
|
-
|
|
3909
3878
|
// ../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
|
3910
3879
|
var require_utils2 = __commonJS({
|
|
3911
3880
|
"../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
@@ -3934,7 +3903,7 @@ var require_jsonfile = __commonJS({
|
|
|
3934
3903
|
} catch (_) {
|
|
3935
3904
|
_fs = require("fs");
|
|
3936
3905
|
}
|
|
3937
|
-
var universalify =
|
|
3906
|
+
var universalify = require_universalify();
|
|
3938
3907
|
var { stringify: stringify2, stripBom } = require_utils2();
|
|
3939
3908
|
function _readFile(_0) {
|
|
3940
3909
|
return __async(this, arguments, function* (file, options = {}) {
|
|
@@ -4509,9 +4478,9 @@ var require_path_key = __commonJS({
|
|
|
4509
4478
|
}
|
|
4510
4479
|
});
|
|
4511
4480
|
|
|
4512
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4481
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
4513
4482
|
var require_resolveCommand = __commonJS({
|
|
4514
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4483
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
|
|
4515
4484
|
"use strict";
|
|
4516
4485
|
var path5 = require("path");
|
|
4517
4486
|
var which = require_which();
|
|
@@ -4551,9 +4520,9 @@ var require_resolveCommand = __commonJS({
|
|
|
4551
4520
|
}
|
|
4552
4521
|
});
|
|
4553
4522
|
|
|
4554
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4523
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
4555
4524
|
var require_escape = __commonJS({
|
|
4556
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4525
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
|
|
4557
4526
|
"use strict";
|
|
4558
4527
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
4559
4528
|
function escapeCommand(arg) {
|
|
@@ -4562,8 +4531,8 @@ var require_escape = __commonJS({
|
|
|
4562
4531
|
}
|
|
4563
4532
|
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
4564
4533
|
arg = `${arg}`;
|
|
4565
|
-
arg = arg.replace(/(
|
|
4566
|
-
arg = arg.replace(/(
|
|
4534
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
4535
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
4567
4536
|
arg = `"${arg}"`;
|
|
4568
4537
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
4569
4538
|
if (doubleEscapeMetaChars) {
|
|
@@ -4604,9 +4573,9 @@ var require_shebang_command = __commonJS({
|
|
|
4604
4573
|
}
|
|
4605
4574
|
});
|
|
4606
4575
|
|
|
4607
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4576
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
4608
4577
|
var require_readShebang = __commonJS({
|
|
4609
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4578
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
|
|
4610
4579
|
"use strict";
|
|
4611
4580
|
var fs2 = require("fs");
|
|
4612
4581
|
var shebangCommand = require_shebang_command();
|
|
@@ -4626,9 +4595,9 @@ var require_readShebang = __commonJS({
|
|
|
4626
4595
|
}
|
|
4627
4596
|
});
|
|
4628
4597
|
|
|
4629
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4598
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
4630
4599
|
var require_parse = __commonJS({
|
|
4631
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4600
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
|
|
4632
4601
|
"use strict";
|
|
4633
4602
|
var path5 = require("path");
|
|
4634
4603
|
var resolveCommand = require_resolveCommand();
|
|
@@ -4688,9 +4657,9 @@ var require_parse = __commonJS({
|
|
|
4688
4657
|
}
|
|
4689
4658
|
});
|
|
4690
4659
|
|
|
4691
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4660
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
4692
4661
|
var require_enoent = __commonJS({
|
|
4693
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4662
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
|
|
4694
4663
|
"use strict";
|
|
4695
4664
|
var isWin = process.platform === "win32";
|
|
4696
4665
|
function notFoundError(original, syscall) {
|
|
@@ -4709,7 +4678,7 @@ var require_enoent = __commonJS({
|
|
|
4709
4678
|
const originalEmit = cp.emit;
|
|
4710
4679
|
cp.emit = function(name, arg1) {
|
|
4711
4680
|
if (name === "exit") {
|
|
4712
|
-
const err = verifyENOENT(arg1, parsed
|
|
4681
|
+
const err = verifyENOENT(arg1, parsed);
|
|
4713
4682
|
if (err) {
|
|
4714
4683
|
return originalEmit.call(cp, "error", err);
|
|
4715
4684
|
}
|
|
@@ -4738,9 +4707,9 @@ var require_enoent = __commonJS({
|
|
|
4738
4707
|
}
|
|
4739
4708
|
});
|
|
4740
4709
|
|
|
4741
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4710
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
4742
4711
|
var require_cross_spawn = __commonJS({
|
|
4743
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4712
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module2) {
|
|
4744
4713
|
"use strict";
|
|
4745
4714
|
var cp = require("child_process");
|
|
4746
4715
|
var parse3 = require_parse();
|
|
@@ -63629,9 +63598,9 @@ var require_ms = __commonJS({
|
|
|
63629
63598
|
}
|
|
63630
63599
|
});
|
|
63631
63600
|
|
|
63632
|
-
// ../../../../node_modules/.pnpm/debug@4.4.
|
|
63601
|
+
// ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js
|
|
63633
63602
|
var require_common2 = __commonJS({
|
|
63634
|
-
"../../../../node_modules/.pnpm/debug@4.4.
|
|
63603
|
+
"../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports, module2) {
|
|
63635
63604
|
"use strict";
|
|
63636
63605
|
function setup(env) {
|
|
63637
63606
|
createDebug.debug = createDebug;
|
|
@@ -63807,9 +63776,9 @@ var require_common2 = __commonJS({
|
|
|
63807
63776
|
}
|
|
63808
63777
|
});
|
|
63809
63778
|
|
|
63810
|
-
// ../../../../node_modules/.pnpm/debug@4.4.
|
|
63779
|
+
// ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js
|
|
63811
63780
|
var require_browser = __commonJS({
|
|
63812
|
-
"../../../../node_modules/.pnpm/debug@4.4.
|
|
63781
|
+
"../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports, module2) {
|
|
63813
63782
|
"use strict";
|
|
63814
63783
|
exports.formatArgs = formatArgs;
|
|
63815
63784
|
exports.save = save;
|
|
@@ -63978,118 +63947,9 @@ var require_browser = __commonJS({
|
|
|
63978
63947
|
}
|
|
63979
63948
|
});
|
|
63980
63949
|
|
|
63981
|
-
// ../../../../node_modules/.pnpm/
|
|
63982
|
-
var require_has_flag2 = __commonJS({
|
|
63983
|
-
"../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
63984
|
-
"use strict";
|
|
63985
|
-
module2.exports = (flag, argv) => {
|
|
63986
|
-
argv = argv || process.argv;
|
|
63987
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
63988
|
-
const pos = argv.indexOf(prefix + flag);
|
|
63989
|
-
const terminatorPos = argv.indexOf("--");
|
|
63990
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
63991
|
-
};
|
|
63992
|
-
}
|
|
63993
|
-
});
|
|
63994
|
-
|
|
63995
|
-
// ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
63996
|
-
var require_supports_color2 = __commonJS({
|
|
63997
|
-
"../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
63998
|
-
"use strict";
|
|
63999
|
-
var os = require("os");
|
|
64000
|
-
var hasFlag = require_has_flag2();
|
|
64001
|
-
var env = process.env;
|
|
64002
|
-
var forceColor;
|
|
64003
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
64004
|
-
forceColor = false;
|
|
64005
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
64006
|
-
forceColor = true;
|
|
64007
|
-
}
|
|
64008
|
-
if ("FORCE_COLOR" in env) {
|
|
64009
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
64010
|
-
}
|
|
64011
|
-
function translateLevel(level) {
|
|
64012
|
-
if (level === 0) {
|
|
64013
|
-
return false;
|
|
64014
|
-
}
|
|
64015
|
-
return {
|
|
64016
|
-
level,
|
|
64017
|
-
hasBasic: true,
|
|
64018
|
-
has256: level >= 2,
|
|
64019
|
-
has16m: level >= 3
|
|
64020
|
-
};
|
|
64021
|
-
}
|
|
64022
|
-
function supportsColor(stream) {
|
|
64023
|
-
if (forceColor === false) {
|
|
64024
|
-
return 0;
|
|
64025
|
-
}
|
|
64026
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
64027
|
-
return 3;
|
|
64028
|
-
}
|
|
64029
|
-
if (hasFlag("color=256")) {
|
|
64030
|
-
return 2;
|
|
64031
|
-
}
|
|
64032
|
-
if (stream && !stream.isTTY && forceColor !== true) {
|
|
64033
|
-
return 0;
|
|
64034
|
-
}
|
|
64035
|
-
const min = forceColor ? 1 : 0;
|
|
64036
|
-
if (process.platform === "win32") {
|
|
64037
|
-
const osRelease = os.release().split(".");
|
|
64038
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
64039
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
64040
|
-
}
|
|
64041
|
-
return 1;
|
|
64042
|
-
}
|
|
64043
|
-
if ("CI" in env) {
|
|
64044
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
64045
|
-
return 1;
|
|
64046
|
-
}
|
|
64047
|
-
return min;
|
|
64048
|
-
}
|
|
64049
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
64050
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
64051
|
-
}
|
|
64052
|
-
if (env.COLORTERM === "truecolor") {
|
|
64053
|
-
return 3;
|
|
64054
|
-
}
|
|
64055
|
-
if ("TERM_PROGRAM" in env) {
|
|
64056
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
64057
|
-
switch (env.TERM_PROGRAM) {
|
|
64058
|
-
case "iTerm.app":
|
|
64059
|
-
return version >= 3 ? 3 : 2;
|
|
64060
|
-
case "Apple_Terminal":
|
|
64061
|
-
return 2;
|
|
64062
|
-
}
|
|
64063
|
-
}
|
|
64064
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
64065
|
-
return 2;
|
|
64066
|
-
}
|
|
64067
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
64068
|
-
return 1;
|
|
64069
|
-
}
|
|
64070
|
-
if ("COLORTERM" in env) {
|
|
64071
|
-
return 1;
|
|
64072
|
-
}
|
|
64073
|
-
if (env.TERM === "dumb") {
|
|
64074
|
-
return min;
|
|
64075
|
-
}
|
|
64076
|
-
return min;
|
|
64077
|
-
}
|
|
64078
|
-
function getSupportLevel(stream) {
|
|
64079
|
-
const level = supportsColor(stream);
|
|
64080
|
-
return translateLevel(level);
|
|
64081
|
-
}
|
|
64082
|
-
module2.exports = {
|
|
64083
|
-
supportsColor: getSupportLevel,
|
|
64084
|
-
stdout: getSupportLevel(process.stdout),
|
|
64085
|
-
stderr: getSupportLevel(process.stderr)
|
|
64086
|
-
};
|
|
64087
|
-
}
|
|
64088
|
-
});
|
|
64089
|
-
|
|
64090
|
-
// ../../../../node_modules/.pnpm/debug@4.4.0_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
63950
|
+
// ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js
|
|
64091
63951
|
var require_node2 = __commonJS({
|
|
64092
|
-
"../../../../node_modules/.pnpm/debug@4.4.
|
|
63952
|
+
"../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports, module2) {
|
|
64093
63953
|
"use strict";
|
|
64094
63954
|
var tty = require("tty");
|
|
64095
63955
|
var util = require("util");
|
|
@@ -64106,7 +63966,7 @@ var require_node2 = __commonJS({
|
|
|
64106
63966
|
);
|
|
64107
63967
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
64108
63968
|
try {
|
|
64109
|
-
const supportsColor =
|
|
63969
|
+
const supportsColor = require_supports_color();
|
|
64110
63970
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
64111
63971
|
exports.colors = [
|
|
64112
63972
|
20,
|
|
@@ -64262,9 +64122,9 @@ var require_node2 = __commonJS({
|
|
|
64262
64122
|
}
|
|
64263
64123
|
});
|
|
64264
64124
|
|
|
64265
|
-
// ../../../../node_modules/.pnpm/debug@4.4.
|
|
64125
|
+
// ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js
|
|
64266
64126
|
var require_src3 = __commonJS({
|
|
64267
|
-
"../../../../node_modules/.pnpm/debug@4.4.
|
|
64127
|
+
"../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports, module2) {
|
|
64268
64128
|
"use strict";
|
|
64269
64129
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
64270
64130
|
module2.exports = require_browser();
|
|
@@ -69451,7 +69311,7 @@ autorun.effect = function(callback, dependencies) {
|
|
|
69451
69311
|
}
|
|
69452
69312
|
};
|
|
69453
69313
|
|
|
69454
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
69314
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/shared.js
|
|
69455
69315
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
69456
69316
|
var SchemaNestedMap = {
|
|
69457
69317
|
parent: true,
|
|
@@ -69638,7 +69498,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
69638
69498
|
});
|
|
69639
69499
|
};
|
|
69640
69500
|
|
|
69641
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
69501
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/compiler.js
|
|
69642
69502
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
69643
69503
|
var Registry = {
|
|
69644
69504
|
silent: false,
|
|
@@ -71000,7 +70860,7 @@ function onFieldInit(pattern, callback) {
|
|
|
71000
70860
|
}
|
|
71001
70861
|
}
|
|
71002
70862
|
|
|
71003
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
70863
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/transformer.js
|
|
71004
70864
|
var __read5 = function(o, n) {
|
|
71005
70865
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
71006
70866
|
if (!m)
|
|
@@ -71225,7 +71085,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
71225
71085
|
};
|
|
71226
71086
|
};
|
|
71227
71087
|
|
|
71228
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
71088
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/patches.js
|
|
71229
71089
|
var __assign5 = function() {
|
|
71230
71090
|
__assign5 = Object.assign || function(t) {
|
|
71231
71091
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -71274,7 +71134,7 @@ var enablePolyfills = function(versions) {
|
|
|
71274
71134
|
}
|
|
71275
71135
|
};
|
|
71276
71136
|
|
|
71277
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
71137
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
71278
71138
|
var __assign6 = function() {
|
|
71279
71139
|
__assign6 = Object.assign || function(t) {
|
|
71280
71140
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -71431,7 +71291,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
71431
71291
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
71432
71292
|
};
|
|
71433
71293
|
|
|
71434
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
71294
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/schema.js
|
|
71435
71295
|
var Schema = (
|
|
71436
71296
|
/** @class */
|
|
71437
71297
|
function() {
|
|
@@ -71667,10 +71527,10 @@ var Schema = (
|
|
|
71667
71527
|
}()
|
|
71668
71528
|
);
|
|
71669
71529
|
|
|
71670
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71530
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
71671
71531
|
var import_inquirer = __toESM(require_inquirer());
|
|
71672
71532
|
|
|
71673
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71533
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
71674
71534
|
function validateSchema(schema) {
|
|
71675
71535
|
const { type, properties } = schema;
|
|
71676
71536
|
if (type !== "object") {
|
|
@@ -71757,7 +71617,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
71757
71617
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
71758
71618
|
}
|
|
71759
71619
|
|
|
71760
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71620
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
71761
71621
|
var compileRule = (rule, scope) => {
|
|
71762
71622
|
const state = Schema.compile(rule, __spreadValues({
|
|
71763
71623
|
$self: {},
|
|
@@ -71857,7 +71717,7 @@ function prompt(_0) {
|
|
|
71857
71717
|
});
|
|
71858
71718
|
}
|
|
71859
71719
|
|
|
71860
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71720
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
71861
71721
|
var CLIReader = class {
|
|
71862
71722
|
getAnswers() {
|
|
71863
71723
|
return this.answers;
|
|
@@ -71885,7 +71745,7 @@ var CLIReader = class {
|
|
|
71885
71745
|
}
|
|
71886
71746
|
};
|
|
71887
71747
|
|
|
71888
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71748
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
71889
71749
|
var import_comment_json = __toESM(require_src2());
|
|
71890
71750
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
71891
71751
|
|
|
@@ -71952,7 +71812,7 @@ var I18n = class {
|
|
|
71952
71812
|
}
|
|
71953
71813
|
};
|
|
71954
71814
|
|
|
71955
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71815
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
71956
71816
|
var EN_LOCALE = {
|
|
71957
71817
|
environment: {
|
|
71958
71818
|
node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
|
|
@@ -71979,7 +71839,7 @@ var EN_LOCALE = {
|
|
|
71979
71839
|
}
|
|
71980
71840
|
};
|
|
71981
71841
|
|
|
71982
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71842
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
71983
71843
|
var ZH_LOCALE = {
|
|
71984
71844
|
environment: {
|
|
71985
71845
|
node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
|
|
@@ -72006,14 +71866,14 @@ var ZH_LOCALE = {
|
|
|
72006
71866
|
}
|
|
72007
71867
|
};
|
|
72008
71868
|
|
|
72009
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71869
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
72010
71870
|
var i18n = new I18n();
|
|
72011
71871
|
var localeKeys = i18n.init("zh", {
|
|
72012
71872
|
zh: ZH_LOCALE,
|
|
72013
71873
|
en: EN_LOCALE
|
|
72014
71874
|
});
|
|
72015
71875
|
|
|
72016
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71876
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
72017
71877
|
var import_path3 = __toESM(require("path"));
|
|
72018
71878
|
var NODE_MAJOR_VERSION_MAP = {
|
|
72019
71879
|
"lts/*": 18,
|
|
@@ -72064,7 +71924,7 @@ function checkUseNvm(cwd, logger) {
|
|
|
72064
71924
|
});
|
|
72065
71925
|
}
|
|
72066
71926
|
|
|
72067
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71927
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
72068
71928
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
72069
71929
|
for (const question of questions) {
|
|
72070
71930
|
question.default = initValue[question.name] || question.default;
|
|
@@ -72091,7 +71951,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
72091
71951
|
return questions;
|
|
72092
71952
|
}
|
|
72093
71953
|
|
|
72094
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.
|
|
71954
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
72095
71955
|
var AppAPI = class {
|
|
72096
71956
|
checkEnvironment(nodeVersion) {
|
|
72097
71957
|
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.24",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@types/node": "^14",
|
|
32
32
|
"jest": "^29",
|
|
33
33
|
"typescript": "^5",
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/generator-
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@scripts/build": "2.
|
|
38
|
-
"@scripts/jest-config": "2.
|
|
34
|
+
"@modern-js/generator-common": "3.7.24",
|
|
35
|
+
"@modern-js/generator-utils": "3.7.24",
|
|
36
|
+
"@modern-js/plugin-i18n": "2.66.0",
|
|
37
|
+
"@scripts/build": "2.66.0",
|
|
38
|
+
"@scripts/jest-config": "2.66.0"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|