@modern-js/mwa-generator 3.1.17 → 3.1.19
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 +115 -151
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -115367,6 +115367,8 @@ var require_chainId = __commonJS({
|
|
|
115367
115367
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
115368
115368
|
/** HtmlCrossOriginPlugin */
|
|
115369
115369
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
115370
|
+
/** HtmlNoncePlugin */
|
|
115371
|
+
HTML_NONCE: "html-nonce",
|
|
115370
115372
|
/** MiniCssExtractPlugin */
|
|
115371
115373
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
115372
115374
|
/** ReactFastRefreshPlugin */
|
|
@@ -117592,11 +117594,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
117592
117594
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
117593
117595
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
117594
117596
|
|
|
117595
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
117597
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
117596
117598
|
var import_lodash6 = __toESM(require_lodash2());
|
|
117597
117599
|
var import_comment_json = __toESM(require_src2());
|
|
117598
117600
|
|
|
117599
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
117601
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
117600
117602
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117601
117603
|
try {
|
|
117602
117604
|
var info = gen[key](arg);
|
|
@@ -117904,7 +117906,7 @@ function _canUsePnpm() {
|
|
|
117904
117906
|
return _canUsePnpm.apply(this, arguments);
|
|
117905
117907
|
}
|
|
117906
117908
|
|
|
117907
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
117909
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
117908
117910
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117909
117911
|
try {
|
|
117910
117912
|
var info = gen[key](arg);
|
|
@@ -118271,7 +118273,7 @@ function _pnpmInstall() {
|
|
|
118271
118273
|
return _pnpmInstall.apply(this, arguments);
|
|
118272
118274
|
}
|
|
118273
118275
|
|
|
118274
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118276
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
118275
118277
|
function _class_call_check(instance, Constructor) {
|
|
118276
118278
|
if (!(instance instanceof Constructor)) {
|
|
118277
118279
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -118352,7 +118354,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
118352
118354
|
return NpmAPI2;
|
|
118353
118355
|
}();
|
|
118354
118356
|
|
|
118355
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
118357
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
|
|
118356
118358
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118357
118359
|
try {
|
|
118358
118360
|
var info = gen[key](arg);
|
|
@@ -118694,7 +118696,7 @@ function _gitCommit() {
|
|
|
118694
118696
|
return _gitCommit.apply(this, arguments);
|
|
118695
118697
|
}
|
|
118696
118698
|
|
|
118697
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
118699
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
|
|
118698
118700
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118699
118701
|
try {
|
|
118700
118702
|
var info = gen[key](arg);
|
|
@@ -119025,11 +119027,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
119025
119027
|
return GitAPI2;
|
|
119026
119028
|
}();
|
|
119027
119029
|
|
|
119028
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119030
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
119029
119031
|
var import_path = __toESM(require("path"));
|
|
119030
119032
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
119031
119033
|
|
|
119032
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119034
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
119033
119035
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119034
119036
|
try {
|
|
119035
119037
|
var info = gen[key](arg);
|
|
@@ -119202,7 +119204,7 @@ function _fsExists() {
|
|
|
119202
119204
|
return _fsExists.apply(this, arguments);
|
|
119203
119205
|
}
|
|
119204
119206
|
|
|
119205
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119207
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
|
|
119206
119208
|
var import_handlebars = __toESM(require_lib());
|
|
119207
119209
|
function _define_property4(obj, key, value) {
|
|
119208
119210
|
if (key in obj) {
|
|
@@ -119244,7 +119246,7 @@ function renderString(template, fullData, registers) {
|
|
|
119244
119246
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
119245
119247
|
}
|
|
119246
119248
|
|
|
119247
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119249
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
|
|
119248
119250
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119249
119251
|
try {
|
|
119250
119252
|
var info = gen[key](arg);
|
|
@@ -119562,13 +119564,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
119562
119564
|
return HandlebarsAPI2;
|
|
119563
119565
|
}();
|
|
119564
119566
|
|
|
119565
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
119567
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
|
|
119566
119568
|
var import_ejs = __toESM(require_ejs());
|
|
119567
119569
|
function renderString2(template, fullData) {
|
|
119568
119570
|
return import_ejs.default.render(template, fullData) || "";
|
|
119569
119571
|
}
|
|
119570
119572
|
|
|
119571
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
119573
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
|
|
119572
119574
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119573
119575
|
try {
|
|
119574
119576
|
var info = gen[key](arg);
|
|
@@ -119838,24 +119840,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
119838
119840
|
return EjsAPI2;
|
|
119839
119841
|
}();
|
|
119840
119842
|
|
|
119841
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
119843
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
119842
119844
|
var import_path2 = __toESM(require("path"));
|
|
119843
|
-
|
|
119844
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/constant.js
|
|
119845
|
-
var imageExtNameList = [
|
|
119846
|
-
".jpg",
|
|
119847
|
-
".jpeg",
|
|
119848
|
-
".png",
|
|
119849
|
-
".gif",
|
|
119850
|
-
".bmp",
|
|
119851
|
-
".ico",
|
|
119852
|
-
".icon",
|
|
119853
|
-
".mpt",
|
|
119854
|
-
".psd",
|
|
119855
|
-
".wmf"
|
|
119856
|
-
];
|
|
119857
|
-
|
|
119858
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
119859
119845
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119860
119846
|
try {
|
|
119861
119847
|
var info = gen[key](arg);
|
|
@@ -120035,48 +120021,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120035
120021
|
value: function renderFile(resource, target) {
|
|
120036
120022
|
var _this = this;
|
|
120037
120023
|
return _async_to_generator8(function() {
|
|
120038
|
-
var
|
|
120024
|
+
var filePath;
|
|
120039
120025
|
return __generator8(this, function(_state) {
|
|
120040
120026
|
switch (_state.label) {
|
|
120041
120027
|
case 0:
|
|
120042
120028
|
if (resource._type !== FS_RESOURCE) {
|
|
120043
120029
|
throw new Error("resource not match");
|
|
120044
120030
|
}
|
|
120031
|
+
filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
120045
120032
|
return [
|
|
120046
120033
|
4,
|
|
120047
|
-
|
|
120034
|
+
import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
|
|
120048
120035
|
];
|
|
120049
120036
|
case 1:
|
|
120050
|
-
resourceValue = _state.sent();
|
|
120051
|
-
resourceFileExt = import_path2.default.extname(resource.filePath);
|
|
120052
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
120053
|
-
return [
|
|
120054
|
-
3,
|
|
120055
|
-
3
|
|
120056
|
-
];
|
|
120057
|
-
return [
|
|
120058
|
-
4,
|
|
120059
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
120060
|
-
encoding: "binary"
|
|
120061
|
-
})
|
|
120062
|
-
];
|
|
120063
|
-
case 2:
|
|
120064
120037
|
_state.sent();
|
|
120065
|
-
return [
|
|
120066
|
-
3,
|
|
120067
|
-
5
|
|
120068
|
-
];
|
|
120069
|
-
case 3:
|
|
120070
120038
|
return [
|
|
120071
120039
|
4,
|
|
120072
|
-
|
|
120073
|
-
encoding: "utf-8"
|
|
120074
|
-
})
|
|
120040
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
120075
120041
|
];
|
|
120076
|
-
case
|
|
120042
|
+
case 2:
|
|
120077
120043
|
_state.sent();
|
|
120078
|
-
_state.label = 5;
|
|
120079
|
-
case 5:
|
|
120080
120044
|
return [
|
|
120081
120045
|
2
|
|
120082
120046
|
];
|
|
@@ -120139,7 +120103,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120139
120103
|
return FsAPI2;
|
|
120140
120104
|
}();
|
|
120141
120105
|
|
|
120142
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120106
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
120143
120107
|
var toString = Object.prototype.toString;
|
|
120144
120108
|
var isType = function(type) {
|
|
120145
120109
|
return function(obj) {
|
|
@@ -120165,7 +120129,7 @@ var isObj = function(val) {
|
|
|
120165
120129
|
};
|
|
120166
120130
|
var isRegExp = isType("RegExp");
|
|
120167
120131
|
|
|
120168
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120132
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
120169
120133
|
var toArr = function(val) {
|
|
120170
120134
|
return isArr(val) ? val : val ? [val] : [];
|
|
120171
120135
|
};
|
|
@@ -120216,7 +120180,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
120216
120180
|
return result;
|
|
120217
120181
|
}
|
|
120218
120182
|
|
|
120219
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120183
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
120220
120184
|
function globalSelf() {
|
|
120221
120185
|
try {
|
|
120222
120186
|
if (typeof self !== "undefined") {
|
|
@@ -120240,7 +120204,7 @@ function globalSelf() {
|
|
|
120240
120204
|
}
|
|
120241
120205
|
var globalThisPolyfill = globalSelf();
|
|
120242
120206
|
|
|
120243
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120207
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
120244
120208
|
var instOf = function(value, cls) {
|
|
120245
120209
|
if (isFn(cls))
|
|
120246
120210
|
return value instanceof cls;
|
|
@@ -120249,7 +120213,7 @@ var instOf = function(value, cls) {
|
|
|
120249
120213
|
return false;
|
|
120250
120214
|
};
|
|
120251
120215
|
|
|
120252
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120216
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
120253
120217
|
var isArray = isArr;
|
|
120254
120218
|
var keyList = Object.keys;
|
|
120255
120219
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -120356,7 +120320,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
120356
120320
|
}
|
|
120357
120321
|
};
|
|
120358
120322
|
|
|
120359
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120323
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
120360
120324
|
var clone = function(values) {
|
|
120361
120325
|
if (Array.isArray(values)) {
|
|
120362
120326
|
var res_1 = [];
|
|
@@ -120392,7 +120356,7 @@ var clone = function(values) {
|
|
|
120392
120356
|
}
|
|
120393
120357
|
};
|
|
120394
120358
|
|
|
120395
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120359
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
120396
120360
|
var has = Object.prototype.hasOwnProperty;
|
|
120397
120361
|
var toString2 = Object.prototype.toString;
|
|
120398
120362
|
var isUndef = function(val) {
|
|
@@ -120520,7 +120484,7 @@ function pascalCase(input, options) {
|
|
|
120520
120484
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
120521
120485
|
}
|
|
120522
120486
|
|
|
120523
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120487
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
120524
120488
|
var ansiRegex = function() {
|
|
120525
120489
|
var pattern = [
|
|
120526
120490
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -120539,7 +120503,7 @@ var stringLength = function(input) {
|
|
|
120539
120503
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
|
120540
120504
|
};
|
|
120541
120505
|
|
|
120542
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120506
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
120543
120507
|
var __assign2 = function() {
|
|
120544
120508
|
__assign2 = Object.assign || function(t) {
|
|
120545
120509
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -120562,7 +120526,7 @@ var parenContext = ContextType("()");
|
|
|
120562
120526
|
var braceContext = ContextType("{}");
|
|
120563
120527
|
var destructorContext = ContextType("{x}");
|
|
120564
120528
|
|
|
120565
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120529
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
120566
120530
|
var __assign3 = function() {
|
|
120567
120531
|
__assign3 = Object.assign || function(t) {
|
|
120568
120532
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -120730,7 +120694,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
120730
120694
|
});
|
|
120731
120695
|
var eofTok = TokenType("eof");
|
|
120732
120696
|
|
|
120733
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120697
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
120734
120698
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
120735
120699
|
var fullCharCodeAtPos = function(input, pos) {
|
|
120736
120700
|
if (String.fromCharCode)
|
|
@@ -120982,7 +120946,7 @@ var Tokenizer = (
|
|
|
120982
120946
|
}()
|
|
120983
120947
|
);
|
|
120984
120948
|
|
|
120985
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120949
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
120986
120950
|
var isType2 = function(type) {
|
|
120987
120951
|
return function(obj) {
|
|
120988
120952
|
return obj && obj.type === type;
|
|
@@ -121000,7 +120964,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
121000
120964
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
121001
120965
|
var isArrayPattern = isType2("ArrayPattern");
|
|
121002
120966
|
|
|
121003
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120967
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
121004
120968
|
var toString3 = Object.prototype.toString;
|
|
121005
120969
|
var isType3 = function(type) {
|
|
121006
120970
|
return function(obj) {
|
|
@@ -121077,7 +121041,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
121077
121041
|
return a === b;
|
|
121078
121042
|
};
|
|
121079
121043
|
|
|
121080
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121044
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
121081
121045
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
121082
121046
|
var isValid2 = function(val) {
|
|
121083
121047
|
return val !== void 0 && val !== null;
|
|
@@ -121195,7 +121159,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
121195
121159
|
});
|
|
121196
121160
|
};
|
|
121197
121161
|
|
|
121198
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121162
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
121199
121163
|
var __extends = function() {
|
|
121200
121164
|
var extendStatics = function(d, b) {
|
|
121201
121165
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -121586,7 +121550,7 @@ var Parser = (
|
|
|
121586
121550
|
}(Tokenizer)
|
|
121587
121551
|
);
|
|
121588
121552
|
|
|
121589
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121553
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
121590
121554
|
var Matcher = (
|
|
121591
121555
|
/** @class */
|
|
121592
121556
|
function() {
|
|
@@ -121768,7 +121732,7 @@ var Matcher = (
|
|
|
121768
121732
|
}()
|
|
121769
121733
|
);
|
|
121770
121734
|
|
|
121771
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121735
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
121772
121736
|
var __read = function(o, n) {
|
|
121773
121737
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
121774
121738
|
if (!m)
|
|
@@ -122322,7 +122286,7 @@ var Path = (
|
|
|
122322
122286
|
}()
|
|
122323
122287
|
);
|
|
122324
122288
|
|
|
122325
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122289
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
122326
122290
|
var Subscribable = (
|
|
122327
122291
|
/** @class */
|
|
122328
122292
|
function() {
|
|
@@ -122374,7 +122338,7 @@ var Subscribable = (
|
|
|
122374
122338
|
}()
|
|
122375
122339
|
);
|
|
122376
122340
|
|
|
122377
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122341
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
122378
122342
|
function defaultIsMergeableObject(value) {
|
|
122379
122343
|
return isNonNullObject(value) && !isSpecial(value);
|
|
122380
122344
|
}
|
|
@@ -122567,7 +122531,7 @@ var lazyMerge = function(target) {
|
|
|
122567
122531
|
};
|
|
122568
122532
|
var merge = deepmerge;
|
|
122569
122533
|
|
|
122570
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122534
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
122571
122535
|
var IDX = 36;
|
|
122572
122536
|
var HEX = "";
|
|
122573
122537
|
while (IDX--)
|
|
@@ -122579,7 +122543,7 @@ function uid(len) {
|
|
|
122579
122543
|
return str;
|
|
122580
122544
|
}
|
|
122581
122545
|
|
|
122582
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122546
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
122583
122547
|
var toString4 = Object.prototype.toString;
|
|
122584
122548
|
var isMap = function(val) {
|
|
122585
122549
|
return val && val instanceof Map;
|
|
@@ -122610,7 +122574,7 @@ var isNormalType = function(target) {
|
|
|
122610
122574
|
return isPlainObj3(target) || isArr3(target);
|
|
122611
122575
|
};
|
|
122612
122576
|
|
|
122613
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122577
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
122614
122578
|
var toArray = function(value) {
|
|
122615
122579
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
122616
122580
|
};
|
|
@@ -122674,7 +122638,7 @@ var ArraySet = (
|
|
|
122674
122638
|
}()
|
|
122675
122639
|
);
|
|
122676
122640
|
|
|
122677
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122641
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
122678
122642
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
122679
122643
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
122680
122644
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -122693,7 +122657,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
122693
122657
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
122694
122658
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
122695
122659
|
|
|
122696
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122660
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
122697
122661
|
var ITERATION_KEY = Symbol("iteration key");
|
|
122698
122662
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
122699
122663
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -122923,7 +122887,7 @@ var disposeEffects = function(reaction2) {
|
|
|
122923
122887
|
}
|
|
122924
122888
|
};
|
|
122925
122889
|
|
|
122926
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122890
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
122927
122891
|
var DataChange = (
|
|
122928
122892
|
/** @class */
|
|
122929
122893
|
function() {
|
|
@@ -123019,7 +122983,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
123019
122983
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
123020
122984
|
};
|
|
123021
122985
|
|
|
123022
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122986
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
123023
122987
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
123024
122988
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
123025
122989
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -123121,7 +123085,7 @@ var hasCollected = function(callback) {
|
|
|
123121
123085
|
return DependencyCollected.value;
|
|
123122
123086
|
};
|
|
123123
123087
|
|
|
123124
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123088
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
123125
123089
|
var __read2 = function(o, n) {
|
|
123126
123090
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
123127
123091
|
if (!m)
|
|
@@ -123377,7 +123341,7 @@ var baseHandlers = {
|
|
|
123377
123341
|
}
|
|
123378
123342
|
};
|
|
123379
123343
|
|
|
123380
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123344
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
123381
123345
|
var createNormalProxy = function(target, shallow2) {
|
|
123382
123346
|
var proxy = new Proxy(target, baseHandlers);
|
|
123383
123347
|
ProxyRaw.set(proxy, target);
|
|
@@ -123492,7 +123456,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
123492
123456
|
return boundary;
|
|
123493
123457
|
};
|
|
123494
123458
|
|
|
123495
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123459
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
123496
123460
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
123497
123461
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
123498
123462
|
batch.endpoint = function(callback) {
|
|
@@ -123505,7 +123469,7 @@ batch.endpoint = function(callback) {
|
|
|
123505
123469
|
}
|
|
123506
123470
|
};
|
|
123507
123471
|
|
|
123508
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123472
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
123509
123473
|
var action = createBoundaryAnnotation(function() {
|
|
123510
123474
|
batchStart();
|
|
123511
123475
|
untrackStart();
|
|
@@ -123521,10 +123485,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
123521
123485
|
batchScopeEnd();
|
|
123522
123486
|
});
|
|
123523
123487
|
|
|
123524
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123488
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
123525
123489
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
123526
123490
|
|
|
123527
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123491
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
123528
123492
|
var observable = createAnnotation(function(_a2) {
|
|
123529
123493
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123530
123494
|
var store = {
|
|
@@ -123564,7 +123528,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
123564
123528
|
return store.value;
|
|
123565
123529
|
});
|
|
123566
123530
|
|
|
123567
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123531
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
123568
123532
|
var box = createAnnotation(function(_a2) {
|
|
123569
123533
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123570
123534
|
var store = {
|
|
@@ -123610,7 +123574,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
123610
123574
|
return proxy;
|
|
123611
123575
|
});
|
|
123612
123576
|
|
|
123613
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123577
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
123614
123578
|
var ref = createAnnotation(function(_a2) {
|
|
123615
123579
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123616
123580
|
var store = {
|
|
@@ -123658,7 +123622,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
123658
123622
|
return proxy;
|
|
123659
123623
|
});
|
|
123660
123624
|
|
|
123661
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123625
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
123662
123626
|
var shallow = createAnnotation(function(_a2) {
|
|
123663
123627
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123664
123628
|
var store = {
|
|
@@ -123698,7 +123662,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
123698
123662
|
return store.value;
|
|
123699
123663
|
});
|
|
123700
123664
|
|
|
123701
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123665
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
123702
123666
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
123703
123667
|
var getProto = Object.getPrototypeOf;
|
|
123704
123668
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -123819,7 +123783,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
123819
123783
|
return proxy;
|
|
123820
123784
|
});
|
|
123821
123785
|
|
|
123822
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123786
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
123823
123787
|
function observable2(target) {
|
|
123824
123788
|
return createObservable(null, null, target);
|
|
123825
123789
|
}
|
|
@@ -123830,7 +123794,7 @@ observable2.shallow = shallow;
|
|
|
123830
123794
|
observable2.computed = computed;
|
|
123831
123795
|
observable2[MakeObModelSymbol] = observable;
|
|
123832
123796
|
|
|
123833
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123797
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
123834
123798
|
function define2(target, annotations) {
|
|
123835
123799
|
if (isObservable(target))
|
|
123836
123800
|
return target;
|
|
@@ -123850,7 +123814,7 @@ function define2(target, annotations) {
|
|
|
123850
123814
|
return target;
|
|
123851
123815
|
}
|
|
123852
123816
|
|
|
123853
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123817
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
123854
123818
|
var __assign4 = function() {
|
|
123855
123819
|
__assign4 = Object.assign || function(t) {
|
|
123856
123820
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -123996,7 +123960,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
123996
123960
|
};
|
|
123997
123961
|
};
|
|
123998
123962
|
|
|
123999
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123963
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
124000
123964
|
var Tracker = (
|
|
124001
123965
|
/** @class */
|
|
124002
123966
|
function() {
|
|
@@ -124041,7 +124005,7 @@ var Tracker = (
|
|
|
124041
124005
|
}()
|
|
124042
124006
|
);
|
|
124043
124007
|
|
|
124044
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
124008
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
124045
124009
|
var observe = function(target, observer, deep) {
|
|
124046
124010
|
if (deep === void 0) {
|
|
124047
124011
|
deep = true;
|
|
@@ -124074,7 +124038,7 @@ var observe = function(target, observer, deep) {
|
|
|
124074
124038
|
return addListener(target);
|
|
124075
124039
|
};
|
|
124076
124040
|
|
|
124077
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124041
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
124078
124042
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
124079
124043
|
var SchemaNestedMap = {
|
|
124080
124044
|
parent: true,
|
|
@@ -124261,7 +124225,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
124261
124225
|
});
|
|
124262
124226
|
};
|
|
124263
124227
|
|
|
124264
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124228
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
124265
124229
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
124266
124230
|
var Registry = {
|
|
124267
124231
|
silent: false,
|
|
@@ -124365,7 +124329,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
124365
124329
|
});
|
|
124366
124330
|
};
|
|
124367
124331
|
|
|
124368
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124332
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
124369
124333
|
var LifeCycle = (
|
|
124370
124334
|
/** @class */
|
|
124371
124335
|
function() {
|
|
@@ -124411,7 +124375,7 @@ var LifeCycle = (
|
|
|
124411
124375
|
}()
|
|
124412
124376
|
);
|
|
124413
124377
|
|
|
124414
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124378
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
124415
124379
|
var __extends2 = function() {
|
|
124416
124380
|
var extendStatics = function(d, b) {
|
|
124417
124381
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -124507,7 +124471,7 @@ var Heart = (
|
|
|
124507
124471
|
}(Subscribable)
|
|
124508
124472
|
);
|
|
124509
124473
|
|
|
124510
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124474
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
124511
124475
|
var isForm = function(node) {
|
|
124512
124476
|
return node instanceof Form;
|
|
124513
124477
|
};
|
|
@@ -124553,7 +124517,7 @@ var isQuery = function(query2) {
|
|
|
124553
124517
|
return query2 && query2 instanceof Query;
|
|
124554
124518
|
};
|
|
124555
124519
|
|
|
124556
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124520
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
124557
124521
|
var Graph = (
|
|
124558
124522
|
/** @class */
|
|
124559
124523
|
function() {
|
|
@@ -124605,12 +124569,12 @@ var Graph = (
|
|
|
124605
124569
|
}()
|
|
124606
124570
|
);
|
|
124607
124571
|
|
|
124608
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124572
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
124609
124573
|
var isValidateResult = function(obj) {
|
|
124610
124574
|
return !!obj["type"] && !!obj["message"];
|
|
124611
124575
|
};
|
|
124612
124576
|
|
|
124613
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124577
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
124614
124578
|
var getIn2 = Path.getIn;
|
|
124615
124579
|
var self2 = globalThisPolyfill;
|
|
124616
124580
|
var defaultLanguage = "en";
|
|
@@ -124681,7 +124645,7 @@ var registerValidateFormats = function(formats) {
|
|
|
124681
124645
|
});
|
|
124682
124646
|
};
|
|
124683
124647
|
|
|
124684
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124648
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
124685
124649
|
var render = function(result, rules) {
|
|
124686
124650
|
var message = result.message;
|
|
124687
124651
|
if (isStr(result.message)) {
|
|
@@ -124696,7 +124660,7 @@ var render = function(result, rules) {
|
|
|
124696
124660
|
return result;
|
|
124697
124661
|
};
|
|
124698
124662
|
|
|
124699
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124663
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
124700
124664
|
var __assign5 = function() {
|
|
124701
124665
|
__assign5 = Object.assign || function(t) {
|
|
124702
124666
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -124947,7 +124911,7 @@ var parseValidator = function(validator, options) {
|
|
|
124947
124911
|
}, []);
|
|
124948
124912
|
};
|
|
124949
124913
|
|
|
124950
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124914
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
124951
124915
|
var locale_default = {
|
|
124952
124916
|
en: {
|
|
124953
124917
|
pattern: "This field is invalid",
|
|
@@ -125167,7 +125131,7 @@ var locale_default = {
|
|
|
125167
125131
|
}
|
|
125168
125132
|
};
|
|
125169
125133
|
|
|
125170
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125134
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
125171
125135
|
var formats_default = {
|
|
125172
125136
|
url: new RegExp(
|
|
125173
125137
|
// protocol identifier
|
|
@@ -125187,7 +125151,7 @@ var formats_default = {
|
|
|
125187
125151
|
zip: /^[0-9]{6}$/
|
|
125188
125152
|
};
|
|
125189
125153
|
|
|
125190
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125154
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
125191
125155
|
var __assign6 = function() {
|
|
125192
125156
|
__assign6 = Object.assign || function(t) {
|
|
125193
125157
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125502,7 +125466,7 @@ extendSameRules(RULES, {
|
|
|
125502
125466
|
});
|
|
125503
125467
|
var rules_default = RULES;
|
|
125504
125468
|
|
|
125505
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125469
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
125506
125470
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
125507
125471
|
function adopt(value) {
|
|
125508
125472
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -125647,7 +125611,7 @@ var validate = function(value, validator, options) {
|
|
|
125647
125611
|
});
|
|
125648
125612
|
};
|
|
125649
125613
|
|
|
125650
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125614
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
125651
125615
|
var LifeCycleTypes;
|
|
125652
125616
|
(function(LifeCycleTypes2) {
|
|
125653
125617
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -125699,7 +125663,7 @@ var LifeCycleTypes;
|
|
|
125699
125663
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
125700
125664
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
125701
125665
|
|
|
125702
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125666
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
125703
125667
|
var ReservedProperties = {
|
|
125704
125668
|
form: true,
|
|
125705
125669
|
parent: true,
|
|
@@ -125751,7 +125715,7 @@ var GlobalState = {
|
|
|
125751
125715
|
};
|
|
125752
125716
|
var NumberIndexReg = /^\.(\d+)/;
|
|
125753
125717
|
|
|
125754
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125718
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
125755
125719
|
var __assign7 = function() {
|
|
125756
125720
|
__assign7 = Object.assign || function(t) {
|
|
125757
125721
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -126858,7 +126822,7 @@ var getObjectParent = function(field) {
|
|
|
126858
126822
|
}
|
|
126859
126823
|
};
|
|
126860
126824
|
|
|
126861
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126825
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
126862
126826
|
var output = function(field, taker) {
|
|
126863
126827
|
if (!field)
|
|
126864
126828
|
return;
|
|
@@ -126941,7 +126905,7 @@ var Query = (
|
|
|
126941
126905
|
}()
|
|
126942
126906
|
);
|
|
126943
126907
|
|
|
126944
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126908
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
126945
126909
|
var __read4 = function(o, n) {
|
|
126946
126910
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
126947
126911
|
if (!m)
|
|
@@ -127321,7 +127285,7 @@ var BaseField = (
|
|
|
127321
127285
|
}()
|
|
127322
127286
|
);
|
|
127323
127287
|
|
|
127324
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127288
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
127325
127289
|
var __extends3 = function() {
|
|
127326
127290
|
var extendStatics = function(d, b) {
|
|
127327
127291
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -127962,7 +127926,7 @@ var Field = (
|
|
|
127962
127926
|
}(BaseField)
|
|
127963
127927
|
);
|
|
127964
127928
|
|
|
127965
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127929
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
127966
127930
|
var __read5 = function(o, n) {
|
|
127967
127931
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127968
127932
|
if (!m)
|
|
@@ -128056,7 +128020,7 @@ var runEffects = function(context) {
|
|
|
128056
128020
|
return GlobalState.lifecycles;
|
|
128057
128021
|
};
|
|
128058
128022
|
|
|
128059
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128023
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
128060
128024
|
var __extends4 = function() {
|
|
128061
128025
|
var extendStatics = function(d, b) {
|
|
128062
128026
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128246,7 +128210,7 @@ var ArrayField = (
|
|
|
128246
128210
|
}(Field)
|
|
128247
128211
|
);
|
|
128248
128212
|
|
|
128249
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128213
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
128250
128214
|
var __extends5 = function() {
|
|
128251
128215
|
var extendStatics = function(d, b) {
|
|
128252
128216
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128307,7 +128271,7 @@ var ObjectField = (
|
|
|
128307
128271
|
}(Field)
|
|
128308
128272
|
);
|
|
128309
128273
|
|
|
128310
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128274
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
128311
128275
|
var __extends6 = function() {
|
|
128312
128276
|
var extendStatics = function(d, b) {
|
|
128313
128277
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128422,7 +128386,7 @@ var VoidField = (
|
|
|
128422
128386
|
}(BaseField)
|
|
128423
128387
|
);
|
|
128424
128388
|
|
|
128425
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128389
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
128426
128390
|
var __assign8 = function() {
|
|
128427
128391
|
__assign8 = Object.assign || function(t) {
|
|
128428
128392
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -128950,7 +128914,7 @@ var Form = (
|
|
|
128950
128914
|
}()
|
|
128951
128915
|
);
|
|
128952
128916
|
|
|
128953
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128917
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
128954
128918
|
function createFormEffect(type) {
|
|
128955
128919
|
return createEffectHook(type, function(form) {
|
|
128956
128920
|
return function(callback) {
|
|
@@ -128983,7 +128947,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
128983
128947
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
128984
128948
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
128985
128949
|
|
|
128986
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128950
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
128987
128951
|
function createFieldEffect(type) {
|
|
128988
128952
|
return createEffectHook(type, function(field, form) {
|
|
128989
128953
|
return function(pattern, callback) {
|
|
@@ -129028,7 +128992,7 @@ function onFieldInit(pattern, callback) {
|
|
|
129028
128992
|
}
|
|
129029
128993
|
}
|
|
129030
128994
|
|
|
129031
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
128995
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
129032
128996
|
var __read7 = function(o, n) {
|
|
129033
128997
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
129034
128998
|
if (!m)
|
|
@@ -129253,7 +129217,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
129253
129217
|
};
|
|
129254
129218
|
};
|
|
129255
129219
|
|
|
129256
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129220
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
129257
129221
|
var __assign9 = function() {
|
|
129258
129222
|
__assign9 = Object.assign || function(t) {
|
|
129259
129223
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129302,7 +129266,7 @@ var enablePolyfills = function(versions) {
|
|
|
129302
129266
|
}
|
|
129303
129267
|
};
|
|
129304
129268
|
|
|
129305
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129269
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
129306
129270
|
var __assign10 = function() {
|
|
129307
129271
|
__assign10 = Object.assign || function(t) {
|
|
129308
129272
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129459,7 +129423,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
129459
129423
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
129460
129424
|
};
|
|
129461
129425
|
|
|
129462
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129426
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
129463
129427
|
var Schema = (
|
|
129464
129428
|
/** @class */
|
|
129465
129429
|
function() {
|
|
@@ -129695,10 +129659,10 @@ var Schema = (
|
|
|
129695
129659
|
}()
|
|
129696
129660
|
);
|
|
129697
129661
|
|
|
129698
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129662
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
129699
129663
|
var import_inquirer = __toESM(require_inquirer());
|
|
129700
129664
|
|
|
129701
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129665
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
129702
129666
|
var import_lodash2 = __toESM(require_lodash2());
|
|
129703
129667
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129704
129668
|
try {
|
|
@@ -130045,7 +130009,7 @@ function transformForm(schema) {
|
|
|
130045
130009
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
130046
130010
|
}
|
|
130047
130011
|
|
|
130048
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130012
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130049
130013
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130050
130014
|
try {
|
|
130051
130015
|
var info = gen[key](arg);
|
|
@@ -130569,7 +130533,7 @@ function _prompt() {
|
|
|
130569
130533
|
return _prompt.apply(this, arguments);
|
|
130570
130534
|
}
|
|
130571
130535
|
|
|
130572
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130536
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
130573
130537
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130574
130538
|
try {
|
|
130575
130539
|
var info = gen[key](arg);
|
|
@@ -130809,7 +130773,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
130809
130773
|
return CLIReader2;
|
|
130810
130774
|
}();
|
|
130811
130775
|
|
|
130812
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130776
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
130813
130777
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
130814
130778
|
|
|
130815
130779
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -130888,7 +130852,7 @@ var I18n = class {
|
|
|
130888
130852
|
}
|
|
130889
130853
|
};
|
|
130890
130854
|
|
|
130891
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130855
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
130892
130856
|
var ZH_LOCALE = {
|
|
130893
130857
|
environment: {
|
|
130894
130858
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -130915,7 +130879,7 @@ var ZH_LOCALE = {
|
|
|
130915
130879
|
}
|
|
130916
130880
|
};
|
|
130917
130881
|
|
|
130918
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130882
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
130919
130883
|
var EN_LOCALE = {
|
|
130920
130884
|
environment: {
|
|
130921
130885
|
node_version: "please upgrade node to lts version",
|
|
@@ -130942,14 +130906,14 @@ var EN_LOCALE = {
|
|
|
130942
130906
|
}
|
|
130943
130907
|
};
|
|
130944
130908
|
|
|
130945
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130909
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
130946
130910
|
var i18n = new I18n();
|
|
130947
130911
|
var localeKeys = i18n.init("zh", {
|
|
130948
130912
|
zh: ZH_LOCALE,
|
|
130949
130913
|
en: EN_LOCALE
|
|
130950
130914
|
});
|
|
130951
130915
|
|
|
130952
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130916
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
130953
130917
|
var import_lodash5 = __toESM(require_lodash2());
|
|
130954
130918
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130955
130919
|
try {
|
|
@@ -131158,7 +131122,7 @@ function transformInquirerSchema(questions) {
|
|
|
131158
131122
|
return questions;
|
|
131159
131123
|
}
|
|
131160
131124
|
|
|
131161
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131125
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
131162
131126
|
var import_path4 = __toESM(require("path"));
|
|
131163
131127
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131164
131128
|
try {
|
|
@@ -131422,7 +131386,7 @@ function _checkUseNvm() {
|
|
|
131422
131386
|
return _checkUseNvm.apply(this, arguments);
|
|
131423
131387
|
}
|
|
131424
131388
|
|
|
131425
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131389
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
131426
131390
|
function _array_like_to_array(arr, len) {
|
|
131427
131391
|
if (len == null || len > arr.length)
|
|
131428
131392
|
len = arr.length;
|
|
@@ -132003,7 +131967,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132003
131967
|
switch (_state2.label) {
|
|
132004
131968
|
case 0:
|
|
132005
131969
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
132006
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
131970
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
132007
131971
|
return [
|
|
132008
131972
|
4,
|
|
132009
131973
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
|
@@ -132352,11 +132316,11 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132352
132316
|
return AppAPI2;
|
|
132353
132317
|
}();
|
|
132354
132318
|
|
|
132355
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132319
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132356
132320
|
var import_comment_json2 = __toESM(require_src2());
|
|
132357
132321
|
var declarationUpdate = __toESM(require_dist());
|
|
132358
132322
|
|
|
132359
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132323
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
|
132360
132324
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132361
132325
|
try {
|
|
132362
132326
|
var info = gen[key](arg);
|
|
@@ -132530,7 +132494,7 @@ function _editJson() {
|
|
|
132530
132494
|
return _editJson.apply(this, arguments);
|
|
132531
132495
|
}
|
|
132532
132496
|
|
|
132533
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132497
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132534
132498
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132535
132499
|
try {
|
|
132536
132500
|
var info = gen[key](arg);
|
|
@@ -133321,7 +133285,7 @@ var MWADefaultConfig = {
|
|
|
133321
133285
|
|
|
133322
133286
|
// ../../generator-utils/dist/esm/index.js
|
|
133323
133287
|
var import_path5 = __toESM(require("path"));
|
|
133324
|
-
var
|
|
133288
|
+
var import_utils15 = __toESM(require_cjs2());
|
|
133325
133289
|
|
|
133326
133290
|
// ../../generator-utils/dist/esm/utils/stripAnsi.js
|
|
133327
133291
|
function ansiRegex2({ onlyFirst = false } = {}) {
|
|
@@ -133368,11 +133332,11 @@ var localeKeys3 = i18n3.init("en", {
|
|
|
133368
133332
|
// ../../generator-utils/dist/esm/index.js
|
|
133369
133333
|
function getPackageVersion(packageName, registry2) {
|
|
133370
133334
|
return __async(this, null, function* () {
|
|
133371
|
-
const spinner = (0,
|
|
133335
|
+
const spinner = (0, import_utils15.ora)({
|
|
133372
133336
|
text: "Load Generator...",
|
|
133373
133337
|
spinner: "runner"
|
|
133374
133338
|
}).start();
|
|
133375
|
-
if (yield (0,
|
|
133339
|
+
if (yield (0, import_utils15.canUsePnpm)()) {
|
|
133376
133340
|
const args = [
|
|
133377
133341
|
"info",
|
|
133378
133342
|
packageName,
|
|
@@ -133381,11 +133345,11 @@ function getPackageVersion(packageName, registry2) {
|
|
|
133381
133345
|
if (registry2) {
|
|
133382
133346
|
args.push(`--registry=${registry2}`);
|
|
133383
133347
|
}
|
|
133384
|
-
const result = yield (0,
|
|
133348
|
+
const result = yield (0, import_utils15.execa)("pnpm", args);
|
|
133385
133349
|
spinner.stop();
|
|
133386
133350
|
return stripAnsi2(result.stdout);
|
|
133387
133351
|
}
|
|
133388
|
-
if (yield (0,
|
|
133352
|
+
if (yield (0, import_utils15.canUseNpm)()) {
|
|
133389
133353
|
const args = [
|
|
133390
133354
|
"view",
|
|
133391
133355
|
packageName,
|
|
@@ -133394,7 +133358,7 @@ function getPackageVersion(packageName, registry2) {
|
|
|
133394
133358
|
if (registry2) {
|
|
133395
133359
|
args.push(`--registry=${registry2}`);
|
|
133396
133360
|
}
|
|
133397
|
-
const result = yield (0,
|
|
133361
|
+
const result = yield (0, import_utils15.execa)("npm", args);
|
|
133398
133362
|
spinner.stop();
|
|
133399
133363
|
return stripAnsi2(result.stdout);
|
|
133400
133364
|
}
|
|
@@ -133413,7 +133377,7 @@ function getPackageManagerText(packageManager) {
|
|
|
133413
133377
|
return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
|
|
133414
133378
|
}
|
|
133415
133379
|
function getAllPackages(appDir) {
|
|
133416
|
-
const packages = (0,
|
|
133380
|
+
const packages = (0, import_utils15.getMonorepoPackages)(appDir);
|
|
133417
133381
|
return packages.map((pkg) => pkg.name);
|
|
133418
133382
|
}
|
|
133419
133383
|
function validatePackageName(value, packages, options) {
|
|
@@ -133441,7 +133405,7 @@ function validatePackagePath(value, projectDir, options) {
|
|
|
133441
133405
|
dir = isPublic ? "packages" : "features";
|
|
133442
133406
|
}
|
|
133443
133407
|
const packageDir = import_path5.default.resolve(projectDir || "", dir, value);
|
|
133444
|
-
if (
|
|
133408
|
+
if (import_utils15.fs.existsSync(packageDir)) {
|
|
133445
133409
|
return {
|
|
133446
133410
|
success: false,
|
|
133447
133411
|
error: i18n3.t(localeKeys3.packagePath.exit, {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.19",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@modern-js/codesmith": "2.2.
|
|
27
|
-
"@modern-js/codesmith-api-app": "2.2.
|
|
28
|
-
"@modern-js/codesmith-api-json": "2.2.
|
|
26
|
+
"@modern-js/codesmith": "2.2.3",
|
|
27
|
+
"@modern-js/codesmith-api-app": "2.2.3",
|
|
28
|
+
"@modern-js/codesmith-api-json": "2.2.3",
|
|
29
29
|
"@types/jest": "^29",
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
|
-
"typescript": "^
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/dependence-generator": "3.1.
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/generator-
|
|
37
|
-
"@modern-js/generator
|
|
38
|
-
"@modern-js/
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@modern-js/
|
|
41
|
-
"@scripts/build": "2.
|
|
42
|
-
"@scripts/jest-config": "2.
|
|
32
|
+
"typescript": "^5",
|
|
33
|
+
"@modern-js/generator-common": "3.1.19",
|
|
34
|
+
"@modern-js/dependence-generator": "3.1.19",
|
|
35
|
+
"@modern-js/packages-generator": "3.1.19",
|
|
36
|
+
"@modern-js/generator-utils": "3.1.19",
|
|
37
|
+
"@modern-js/rspack-generator": "3.1.19",
|
|
38
|
+
"@modern-js/plugin-i18n": "2.21.1",
|
|
39
|
+
"@modern-js/entry-generator": "3.1.19",
|
|
40
|
+
"@modern-js/base-generator": "3.1.19",
|
|
41
|
+
"@scripts/build": "2.21.1",
|
|
42
|
+
"@scripts/jest-config": "2.21.1"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"publishConfig": {
|