@modern-js/upgrade-generator 3.1.17 → 3.1.18

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.
Files changed (2) hide show
  1. package/dist/index.js +137 -173
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -115348,6 +115348,8 @@ var require_chainId = __commonJS({
115348
115348
  BOTTOM_TEMPLATE: "bottom-template",
115349
115349
  /** HtmlCrossOriginPlugin */
115350
115350
  HTML_CROSS_ORIGIN: "html-cross-origin",
115351
+ /** HtmlNoncePlugin */
115352
+ HTML_NONCE: "html-nonce",
115351
115353
  /** MiniCssExtractPlugin */
115352
115354
  MINI_CSS_EXTRACT: "mini-css-extract",
115353
115355
  /** ReactFastRefreshPlugin */
@@ -117580,11 +117582,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
117580
117582
  var chokidar = Import.lazy("../compiled/chokidar", require);
117581
117583
  var inquirer = Import.lazy("../compiled/inquirer", require);
117582
117584
 
117583
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
117585
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
117584
117586
  var import_lodash6 = __toESM(require_lodash2());
117585
117587
  var import_comment_json = __toESM(require_src2());
117586
117588
 
117587
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.0/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
117589
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
117588
117590
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
117589
117591
  try {
117590
117592
  var info = gen[key](arg);
@@ -117892,7 +117894,7 @@ function _canUsePnpm() {
117892
117894
  return _canUsePnpm.apply(this, arguments);
117893
117895
  }
117894
117896
 
117895
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.0/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
117897
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
117896
117898
  function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
117897
117899
  try {
117898
117900
  var info = gen[key](arg);
@@ -118259,7 +118261,7 @@ function _pnpmInstall() {
118259
118261
  return _pnpmInstall.apply(this, arguments);
118260
118262
  }
118261
118263
 
118262
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.0/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
118264
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
118263
118265
  function _class_call_check(instance, Constructor) {
118264
118266
  if (!(instance instanceof Constructor)) {
118265
118267
  throw new TypeError("Cannot call a class as a function");
@@ -118340,7 +118342,7 @@ var NpmAPI = /* @__PURE__ */ function() {
118340
118342
  return NpmAPI2;
118341
118343
  }();
118342
118344
 
118343
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
118345
+ // ../../../../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
118344
118346
  function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
118345
118347
  try {
118346
118348
  var info = gen[key](arg);
@@ -118682,7 +118684,7 @@ function _gitCommit() {
118682
118684
  return _gitCommit.apply(this, arguments);
118683
118685
  }
118684
118686
 
118685
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
118687
+ // ../../../../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
118686
118688
  function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
118687
118689
  try {
118688
118690
  var info = gen[key](arg);
@@ -119013,11 +119015,11 @@ var GitAPI = /* @__PURE__ */ function() {
119013
119015
  return GitAPI2;
119014
119016
  }();
119015
119017
 
119016
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
119018
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
119017
119019
  var import_path = __toESM(require("path"));
119018
119020
  var FS_RESOURCE = "_codesmith_core_fs_resource";
119019
119021
 
119020
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
119022
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
119021
119023
  function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
119022
119024
  try {
119023
119025
  var info = gen[key](arg);
@@ -119190,7 +119192,7 @@ function _fsExists() {
119190
119192
  return _fsExists.apply(this, arguments);
119191
119193
  }
119192
119194
 
119193
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
119195
+ // ../../../../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
119194
119196
  var import_handlebars = __toESM(require_lib());
119195
119197
  function _define_property4(obj, key, value) {
119196
119198
  if (key in obj) {
@@ -119232,7 +119234,7 @@ function renderString(template, fullData, registers) {
119232
119234
  return import_handlebars.default.compile(template)(fullData) || "";
119233
119235
  }
119234
119236
 
119235
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
119237
+ // ../../../../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
119236
119238
  function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
119237
119239
  try {
119238
119240
  var info = gen[key](arg);
@@ -119550,13 +119552,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
119550
119552
  return HandlebarsAPI2;
119551
119553
  }();
119552
119554
 
119553
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
119555
+ // ../../../../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
119554
119556
  var import_ejs = __toESM(require_ejs());
119555
119557
  function renderString2(template, fullData) {
119556
119558
  return import_ejs.default.render(template, fullData) || "";
119557
119559
  }
119558
119560
 
119559
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
119561
+ // ../../../../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
119560
119562
  function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
119561
119563
  try {
119562
119564
  var info = gen[key](arg);
@@ -119826,24 +119828,8 @@ var EjsAPI = /* @__PURE__ */ function() {
119826
119828
  return EjsAPI2;
119827
119829
  }();
119828
119830
 
119829
- // ../../../../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
119831
+ // ../../../../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
119830
119832
  var import_path2 = __toESM(require("path"));
119831
-
119832
- // ../../../../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
119833
- var imageExtNameList = [
119834
- ".jpg",
119835
- ".jpeg",
119836
- ".png",
119837
- ".gif",
119838
- ".bmp",
119839
- ".ico",
119840
- ".icon",
119841
- ".mpt",
119842
- ".psd",
119843
- ".wmf"
119844
- ];
119845
-
119846
- // ../../../../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
119847
119833
  function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
119848
119834
  try {
119849
119835
  var info = gen[key](arg);
@@ -120023,48 +120009,26 @@ var FsAPI = /* @__PURE__ */ function() {
120023
120009
  value: function renderFile(resource, target) {
120024
120010
  var _this = this;
120025
120011
  return _async_to_generator8(function() {
120026
- var resourceValue, resourceFileExt;
120012
+ var filePath;
120027
120013
  return __generator8(this, function(_state) {
120028
120014
  switch (_state.label) {
120029
120015
  case 0:
120030
120016
  if (resource._type !== FS_RESOURCE) {
120031
120017
  throw new Error("resource not match");
120032
120018
  }
120019
+ filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
120033
120020
  return [
120034
120021
  4,
120035
- resource.value()
120022
+ import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
120036
120023
  ];
120037
120024
  case 1:
120038
- resourceValue = _state.sent();
120039
- resourceFileExt = import_path2.default.extname(resource.filePath);
120040
- if (!imageExtNameList.includes(resourceFileExt))
120041
- return [
120042
- 3,
120043
- 3
120044
- ];
120045
- return [
120046
- 4,
120047
- _this.generatorCore.output.fs(target, resourceValue.content, {
120048
- encoding: "binary"
120049
- })
120050
- ];
120051
- case 2:
120052
120025
  _state.sent();
120053
- return [
120054
- 3,
120055
- 5
120056
- ];
120057
- case 3:
120058
120026
  return [
120059
120027
  4,
120060
- _this.generatorCore.output.fs(target, resourceValue.content, {
120061
- encoding: "utf-8"
120062
- })
120028
+ import_fs_extra.default.copyFile(resource.filePath, filePath)
120063
120029
  ];
120064
- case 4:
120030
+ case 2:
120065
120031
  _state.sent();
120066
- _state.label = 5;
120067
- case 5:
120068
120032
  return [
120069
120033
  2
120070
120034
  ];
@@ -120127,7 +120091,7 @@ var FsAPI = /* @__PURE__ */ function() {
120127
120091
  return FsAPI2;
120128
120092
  }();
120129
120093
 
120130
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/checkers.js
120094
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
120131
120095
  var toString = Object.prototype.toString;
120132
120096
  var isType = function(type) {
120133
120097
  return function(obj) {
@@ -120153,7 +120117,7 @@ var isObj = function(val) {
120153
120117
  };
120154
120118
  var isRegExp = isType("RegExp");
120155
120119
 
120156
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/array.js
120120
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
120157
120121
  var toArr = function(val) {
120158
120122
  return isArr(val) ? val : val ? [val] : [];
120159
120123
  };
@@ -120204,7 +120168,7 @@ function reduce(val, iterator, accumulator, revert) {
120204
120168
  return result;
120205
120169
  }
120206
120170
 
120207
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/global.js
120171
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
120208
120172
  function globalSelf() {
120209
120173
  try {
120210
120174
  if (typeof self !== "undefined") {
@@ -120228,7 +120192,7 @@ function globalSelf() {
120228
120192
  }
120229
120193
  var globalThisPolyfill = globalSelf();
120230
120194
 
120231
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/instanceof.js
120195
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
120232
120196
  var instOf = function(value, cls) {
120233
120197
  if (isFn(cls))
120234
120198
  return value instanceof cls;
@@ -120237,7 +120201,7 @@ var instOf = function(value, cls) {
120237
120201
  return false;
120238
120202
  };
120239
120203
 
120240
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/compare.js
120204
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
120241
120205
  var isArray = isArr;
120242
120206
  var keyList = Object.keys;
120243
120207
  var hasProp = Object.prototype.hasOwnProperty;
@@ -120344,7 +120308,7 @@ var isEqual = function exportedEqual(a, b) {
120344
120308
  }
120345
120309
  };
120346
120310
 
120347
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/clone.js
120311
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
120348
120312
  var clone = function(values) {
120349
120313
  if (Array.isArray(values)) {
120350
120314
  var res_1 = [];
@@ -120380,7 +120344,7 @@ var clone = function(values) {
120380
120344
  }
120381
120345
  };
120382
120346
 
120383
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/isEmpty.js
120347
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
120384
120348
  var has = Object.prototype.hasOwnProperty;
120385
120349
  var toString2 = Object.prototype.toString;
120386
120350
  var isUndef = function(val) {
@@ -120508,7 +120472,7 @@ function pascalCase(input, options) {
120508
120472
  return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
120509
120473
  }
120510
120474
 
120511
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/string.js
120475
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
120512
120476
  var ansiRegex = function() {
120513
120477
  var pattern = [
120514
120478
  "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
@@ -120527,7 +120491,7 @@ var stringLength = function(input) {
120527
120491
  return stripAnsi(input).replace(astralRegex(), " ").length;
120528
120492
  };
120529
120493
 
120530
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/contexts.js
120494
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
120531
120495
  var __assign2 = function() {
120532
120496
  __assign2 = Object.assign || function(t) {
120533
120497
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -120550,7 +120514,7 @@ var parenContext = ContextType("()");
120550
120514
  var braceContext = ContextType("{}");
120551
120515
  var destructorContext = ContextType("{x}");
120552
120516
 
120553
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/tokens.js
120517
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
120554
120518
  var __assign3 = function() {
120555
120519
  __assign3 = Object.assign || function(t) {
120556
120520
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -120718,7 +120682,7 @@ var expandTok = TokenType("expandTok", {
120718
120682
  });
120719
120683
  var eofTok = TokenType("eof");
120720
120684
 
120721
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/tokenizer.js
120685
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
120722
120686
  var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
120723
120687
  var fullCharCodeAtPos = function(input, pos) {
120724
120688
  if (String.fromCharCode)
@@ -120970,7 +120934,7 @@ var Tokenizer = (
120970
120934
  }()
120971
120935
  );
120972
120936
 
120973
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/types.js
120937
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
120974
120938
  var isType2 = function(type) {
120975
120939
  return function(obj) {
120976
120940
  return obj && obj.type === type;
@@ -120988,7 +120952,7 @@ var isObjectPattern = isType2("ObjectPattern");
120988
120952
  var isObjectPatternProperty = isType2("ObjectPatternProperty");
120989
120953
  var isArrayPattern = isType2("ArrayPattern");
120990
120954
 
120991
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/shared.js
120955
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
120992
120956
  var toString3 = Object.prototype.toString;
120993
120957
  var isType3 = function(type) {
120994
120958
  return function(obj) {
@@ -121065,7 +121029,7 @@ var isSegmentEqual = function(a, b) {
121065
121029
  return a === b;
121066
121030
  };
121067
121031
 
121068
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/destructor.js
121032
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
121069
121033
  var DestructorCache = /* @__PURE__ */ new Map();
121070
121034
  var isValid2 = function(val) {
121071
121035
  return val !== void 0 && val !== null;
@@ -121183,7 +121147,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
121183
121147
  });
121184
121148
  };
121185
121149
 
121186
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/parser.js
121150
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
121187
121151
  var __extends = function() {
121188
121152
  var extendStatics = function(d, b) {
121189
121153
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -121574,7 +121538,7 @@ var Parser = (
121574
121538
  }(Tokenizer)
121575
121539
  );
121576
121540
 
121577
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/matcher.js
121541
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
121578
121542
  var Matcher = (
121579
121543
  /** @class */
121580
121544
  function() {
@@ -121756,7 +121720,7 @@ var Matcher = (
121756
121720
  }()
121757
121721
  );
121758
121722
 
121759
- // ../../../../node_modules/.pnpm/@formily+path@2.2.22/node_modules/@formily/path/esm/index.js
121723
+ // ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
121760
121724
  var __read = function(o, n) {
121761
121725
  var m = typeof Symbol === "function" && o[Symbol.iterator];
121762
121726
  if (!m)
@@ -122310,7 +122274,7 @@ var Path = (
122310
122274
  }()
122311
122275
  );
122312
122276
 
122313
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/subscribable.js
122277
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
122314
122278
  var Subscribable = (
122315
122279
  /** @class */
122316
122280
  function() {
@@ -122362,7 +122326,7 @@ var Subscribable = (
122362
122326
  }()
122363
122327
  );
122364
122328
 
122365
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/merge.js
122329
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
122366
122330
  function defaultIsMergeableObject(value) {
122367
122331
  return isNonNullObject(value) && !isSpecial(value);
122368
122332
  }
@@ -122555,7 +122519,7 @@ var lazyMerge = function(target) {
122555
122519
  };
122556
122520
  var merge = deepmerge;
122557
122521
 
122558
- // ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/uid.js
122522
+ // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
122559
122523
  var IDX = 36;
122560
122524
  var HEX = "";
122561
122525
  while (IDX--)
@@ -122567,7 +122531,7 @@ function uid(len) {
122567
122531
  return str;
122568
122532
  }
122569
122533
 
122570
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/checkers.js
122534
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
122571
122535
  var toString4 = Object.prototype.toString;
122572
122536
  var isMap = function(val) {
122573
122537
  return val && val instanceof Map;
@@ -122598,7 +122562,7 @@ var isNormalType = function(target) {
122598
122562
  return isPlainObj3(target) || isArr3(target);
122599
122563
  };
122600
122564
 
122601
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/array.js
122565
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
122602
122566
  var toArray = function(value) {
122603
122567
  return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
122604
122568
  };
@@ -122662,7 +122626,7 @@ var ArraySet = (
122662
122626
  }()
122663
122627
  );
122664
122628
 
122665
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/environment.js
122629
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
122666
122630
  var ProxyRaw = /* @__PURE__ */ new WeakMap();
122667
122631
  var RawProxy = /* @__PURE__ */ new WeakMap();
122668
122632
  var RawShallowProxy = /* @__PURE__ */ new WeakMap();
@@ -122681,7 +122645,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
122681
122645
  var ObModelSymbol = Symbol("ObModelSymbol");
122682
122646
  var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
122683
122647
 
122684
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/reaction.js
122648
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
122685
122649
  var ITERATION_KEY = Symbol("iteration key");
122686
122650
  var addRawReactionsMap = function(target, key, reaction2) {
122687
122651
  var reactionsMap = RawReactionsMap.get(target);
@@ -122911,7 +122875,7 @@ var disposeEffects = function(reaction2) {
122911
122875
  }
122912
122876
  };
122913
122877
 
122914
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/tree.js
122878
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
122915
122879
  var DataChange = (
122916
122880
  /** @class */
122917
122881
  function() {
@@ -123007,7 +122971,7 @@ var buildDataTree = function(target, key, value) {
123007
122971
  setDataNode(raw2, new DataNode(target, key, value));
123008
122972
  };
123009
122973
 
123010
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/externals.js
122974
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
123011
122975
  var RAW_TYPE = Symbol("RAW_TYPE");
123012
122976
  var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
123013
122977
  var hasOwnProperty2 = Object.prototype.hasOwnProperty;
@@ -123109,7 +123073,7 @@ var hasCollected = function(callback) {
123109
123073
  return DependencyCollected.value;
123110
123074
  };
123111
123075
 
123112
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/handlers.js
123076
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
123113
123077
  var __read2 = function(o, n) {
123114
123078
  var m = typeof Symbol === "function" && o[Symbol.iterator];
123115
123079
  if (!m)
@@ -123365,7 +123329,7 @@ var baseHandlers = {
123365
123329
  }
123366
123330
  };
123367
123331
 
123368
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/internals.js
123332
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
123369
123333
  var createNormalProxy = function(target, shallow2) {
123370
123334
  var proxy = new Proxy(target, baseHandlers);
123371
123335
  ProxyRaw.set(proxy, target);
@@ -123480,7 +123444,7 @@ var createBoundaryAnnotation = function(start, end) {
123480
123444
  return boundary;
123481
123445
  };
123482
123446
 
123483
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/batch.js
123447
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
123484
123448
  var batch = createBoundaryAnnotation(batchStart, batchEnd);
123485
123449
  batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
123486
123450
  batch.endpoint = function(callback) {
@@ -123493,7 +123457,7 @@ batch.endpoint = function(callback) {
123493
123457
  }
123494
123458
  };
123495
123459
 
123496
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/action.js
123460
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
123497
123461
  var action = createBoundaryAnnotation(function() {
123498
123462
  batchStart();
123499
123463
  untrackStart();
@@ -123509,10 +123473,10 @@ action.scope = createBoundaryAnnotation(function() {
123509
123473
  batchScopeEnd();
123510
123474
  });
123511
123475
 
123512
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/untracked.js
123476
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
123513
123477
  var untracked = createBoundaryFunction(untrackStart, untrackEnd);
123514
123478
 
123515
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/annotations/observable.js
123479
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
123516
123480
  var observable = createAnnotation(function(_a2) {
123517
123481
  var target = _a2.target, key = _a2.key, value = _a2.value;
123518
123482
  var store = {
@@ -123552,7 +123516,7 @@ var observable = createAnnotation(function(_a2) {
123552
123516
  return store.value;
123553
123517
  });
123554
123518
 
123555
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/annotations/box.js
123519
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
123556
123520
  var box = createAnnotation(function(_a2) {
123557
123521
  var target = _a2.target, key = _a2.key, value = _a2.value;
123558
123522
  var store = {
@@ -123598,7 +123562,7 @@ var box = createAnnotation(function(_a2) {
123598
123562
  return proxy;
123599
123563
  });
123600
123564
 
123601
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/annotations/ref.js
123565
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
123602
123566
  var ref = createAnnotation(function(_a2) {
123603
123567
  var target = _a2.target, key = _a2.key, value = _a2.value;
123604
123568
  var store = {
@@ -123646,7 +123610,7 @@ var ref = createAnnotation(function(_a2) {
123646
123610
  return proxy;
123647
123611
  });
123648
123612
 
123649
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/annotations/shallow.js
123613
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
123650
123614
  var shallow = createAnnotation(function(_a2) {
123651
123615
  var target = _a2.target, key = _a2.key, value = _a2.value;
123652
123616
  var store = {
@@ -123686,7 +123650,7 @@ var shallow = createAnnotation(function(_a2) {
123686
123650
  return store.value;
123687
123651
  });
123688
123652
 
123689
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/annotations/computed.js
123653
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
123690
123654
  var getDescriptor = Object.getOwnPropertyDescriptor;
123691
123655
  var getProto = Object.getPrototypeOf;
123692
123656
  var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
@@ -123807,7 +123771,7 @@ var computed = createAnnotation(function(_a2) {
123807
123771
  return proxy;
123808
123772
  });
123809
123773
 
123810
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/observable.js
123774
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
123811
123775
  function observable2(target) {
123812
123776
  return createObservable(null, null, target);
123813
123777
  }
@@ -123818,7 +123782,7 @@ observable2.shallow = shallow;
123818
123782
  observable2.computed = computed;
123819
123783
  observable2[MakeObModelSymbol] = observable;
123820
123784
 
123821
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/model.js
123785
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
123822
123786
  function define2(target, annotations) {
123823
123787
  if (isObservable(target))
123824
123788
  return target;
@@ -123838,7 +123802,7 @@ function define2(target, annotations) {
123838
123802
  return target;
123839
123803
  }
123840
123804
 
123841
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/autorun.js
123805
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
123842
123806
  var __assign4 = function() {
123843
123807
  __assign4 = Object.assign || function(t) {
123844
123808
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -123984,7 +123948,7 @@ var reaction = function(tracker, subscriber, options) {
123984
123948
  };
123985
123949
  };
123986
123950
 
123987
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/tracker.js
123951
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
123988
123952
  var Tracker = (
123989
123953
  /** @class */
123990
123954
  function() {
@@ -124029,7 +123993,7 @@ var Tracker = (
124029
123993
  }()
124030
123994
  );
124031
123995
 
124032
- // ../../../../node_modules/.pnpm/@formily+reactive@2.2.22/node_modules/@formily/reactive/esm/observe.js
123996
+ // ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
124033
123997
  var observe = function(target, observer, deep) {
124034
123998
  if (deep === void 0) {
124035
123999
  deep = true;
@@ -124062,7 +124026,7 @@ var observe = function(target, observer, deep) {
124062
124026
  return addListener(target);
124063
124027
  };
124064
124028
 
124065
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.22_typescript@4.9.3/node_modules/@formily/json-schema/esm/shared.js
124029
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
124066
124030
  var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
124067
124031
  var SchemaNestedMap = {
124068
124032
  parent: true,
@@ -124249,7 +124213,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
124249
124213
  });
124250
124214
  };
124251
124215
 
124252
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.22_typescript@4.9.3/node_modules/@formily/json-schema/esm/compiler.js
124216
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
124253
124217
  var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
124254
124218
  var Registry = {
124255
124219
  silent: false,
@@ -124353,7 +124317,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
124353
124317
  });
124354
124318
  };
124355
124319
 
124356
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/LifeCycle.js
124320
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
124357
124321
  var LifeCycle = (
124358
124322
  /** @class */
124359
124323
  function() {
@@ -124399,7 +124363,7 @@ var LifeCycle = (
124399
124363
  }()
124400
124364
  );
124401
124365
 
124402
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/Heart.js
124366
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
124403
124367
  var __extends2 = function() {
124404
124368
  var extendStatics = function(d, b) {
124405
124369
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -124495,7 +124459,7 @@ var Heart = (
124495
124459
  }(Subscribable)
124496
124460
  );
124497
124461
 
124498
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/shared/checkers.js
124462
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
124499
124463
  var isForm = function(node) {
124500
124464
  return node instanceof Form;
124501
124465
  };
@@ -124541,7 +124505,7 @@ var isQuery = function(query2) {
124541
124505
  return query2 && query2 instanceof Query;
124542
124506
  };
124543
124507
 
124544
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/Graph.js
124508
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
124545
124509
  var Graph = (
124546
124510
  /** @class */
124547
124511
  function() {
@@ -124593,12 +124557,12 @@ var Graph = (
124593
124557
  }()
124594
124558
  );
124595
124559
 
124596
- // ../../../../node_modules/.pnpm/@formily+validator@2.2.22/node_modules/@formily/validator/esm/types.js
124560
+ // ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
124597
124561
  var isValidateResult = function(obj) {
124598
124562
  return !!obj["type"] && !!obj["message"];
124599
124563
  };
124600
124564
 
124601
- // ../../../../node_modules/.pnpm/@formily+validator@2.2.22/node_modules/@formily/validator/esm/registry.js
124565
+ // ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
124602
124566
  var getIn2 = Path.getIn;
124603
124567
  var self2 = globalThisPolyfill;
124604
124568
  var defaultLanguage = "en";
@@ -124669,7 +124633,7 @@ var registerValidateFormats = function(formats) {
124669
124633
  });
124670
124634
  };
124671
124635
 
124672
- // ../../../../node_modules/.pnpm/@formily+validator@2.2.22/node_modules/@formily/validator/esm/template.js
124636
+ // ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
124673
124637
  var render = function(result, rules) {
124674
124638
  var message = result.message;
124675
124639
  if (isStr(result.message)) {
@@ -124684,7 +124648,7 @@ var render = function(result, rules) {
124684
124648
  return result;
124685
124649
  };
124686
124650
 
124687
- // ../../../../node_modules/.pnpm/@formily+validator@2.2.22/node_modules/@formily/validator/esm/parser.js
124651
+ // ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
124688
124652
  var __assign5 = function() {
124689
124653
  __assign5 = Object.assign || function(t) {
124690
124654
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -124935,7 +124899,7 @@ var parseValidator = function(validator, options) {
124935
124899
  }, []);
124936
124900
  };
124937
124901
 
124938
- // ../../../../node_modules/.pnpm/@formily+validator@2.2.22/node_modules/@formily/validator/esm/locale.js
124902
+ // ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
124939
124903
  var locale_default = {
124940
124904
  en: {
124941
124905
  pattern: "This field is invalid",
@@ -125155,7 +125119,7 @@ var locale_default = {
125155
125119
  }
125156
125120
  };
125157
125121
 
125158
- // ../../../../node_modules/.pnpm/@formily+validator@2.2.22/node_modules/@formily/validator/esm/formats.js
125122
+ // ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
125159
125123
  var formats_default = {
125160
125124
  url: new RegExp(
125161
125125
  // protocol identifier
@@ -125175,7 +125139,7 @@ var formats_default = {
125175
125139
  zip: /^[0-9]{6}$/
125176
125140
  };
125177
125141
 
125178
- // ../../../../node_modules/.pnpm/@formily+validator@2.2.22/node_modules/@formily/validator/esm/rules.js
125142
+ // ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
125179
125143
  var __assign6 = function() {
125180
125144
  __assign6 = Object.assign || function(t) {
125181
125145
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -125490,7 +125454,7 @@ extendSameRules(RULES, {
125490
125454
  });
125491
125455
  var rules_default = RULES;
125492
125456
 
125493
- // ../../../../node_modules/.pnpm/@formily+validator@2.2.22/node_modules/@formily/validator/esm/validator.js
125457
+ // ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
125494
125458
  var __awaiter3 = function(thisArg, _arguments, P, generator) {
125495
125459
  function adopt(value) {
125496
125460
  return value instanceof P ? value : new P(function(resolve) {
@@ -125635,7 +125599,7 @@ var validate = function(value, validator, options) {
125635
125599
  });
125636
125600
  };
125637
125601
 
125638
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/types.js
125602
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
125639
125603
  var LifeCycleTypes;
125640
125604
  (function(LifeCycleTypes2) {
125641
125605
  LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
@@ -125687,7 +125651,7 @@ var LifeCycleTypes;
125687
125651
  LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
125688
125652
  })(LifeCycleTypes || (LifeCycleTypes = {}));
125689
125653
 
125690
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/shared/constants.js
125654
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
125691
125655
  var ReservedProperties = {
125692
125656
  form: true,
125693
125657
  parent: true,
@@ -125739,7 +125703,7 @@ var GlobalState = {
125739
125703
  };
125740
125704
  var NumberIndexReg = /^\.(\d+)/;
125741
125705
 
125742
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/shared/internals.js
125706
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
125743
125707
  var __assign7 = function() {
125744
125708
  __assign7 = Object.assign || function(t) {
125745
125709
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -126846,7 +126810,7 @@ var getObjectParent = function(field) {
126846
126810
  }
126847
126811
  };
126848
126812
 
126849
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/Query.js
126813
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
126850
126814
  var output = function(field, taker) {
126851
126815
  if (!field)
126852
126816
  return;
@@ -126929,7 +126893,7 @@ var Query = (
126929
126893
  }()
126930
126894
  );
126931
126895
 
126932
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/BaseField.js
126896
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
126933
126897
  var __read4 = function(o, n) {
126934
126898
  var m = typeof Symbol === "function" && o[Symbol.iterator];
126935
126899
  if (!m)
@@ -127309,7 +127273,7 @@ var BaseField = (
127309
127273
  }()
127310
127274
  );
127311
127275
 
127312
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/Field.js
127276
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
127313
127277
  var __extends3 = function() {
127314
127278
  var extendStatics = function(d, b) {
127315
127279
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -127950,7 +127914,7 @@ var Field = (
127950
127914
  }(BaseField)
127951
127915
  );
127952
127916
 
127953
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/shared/effective.js
127917
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
127954
127918
  var __read5 = function(o, n) {
127955
127919
  var m = typeof Symbol === "function" && o[Symbol.iterator];
127956
127920
  if (!m)
@@ -128044,7 +128008,7 @@ var runEffects = function(context) {
128044
128008
  return GlobalState.lifecycles;
128045
128009
  };
128046
128010
 
128047
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/ArrayField.js
128011
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
128048
128012
  var __extends4 = function() {
128049
128013
  var extendStatics = function(d, b) {
128050
128014
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -128234,7 +128198,7 @@ var ArrayField = (
128234
128198
  }(Field)
128235
128199
  );
128236
128200
 
128237
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/ObjectField.js
128201
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
128238
128202
  var __extends5 = function() {
128239
128203
  var extendStatics = function(d, b) {
128240
128204
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -128295,7 +128259,7 @@ var ObjectField = (
128295
128259
  }(Field)
128296
128260
  );
128297
128261
 
128298
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/VoidField.js
128262
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
128299
128263
  var __extends6 = function() {
128300
128264
  var extendStatics = function(d, b) {
128301
128265
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -128410,7 +128374,7 @@ var VoidField = (
128410
128374
  }(BaseField)
128411
128375
  );
128412
128376
 
128413
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/models/Form.js
128377
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
128414
128378
  var __assign8 = function() {
128415
128379
  __assign8 = Object.assign || function(t) {
128416
128380
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -128938,7 +128902,7 @@ var Form = (
128938
128902
  }()
128939
128903
  );
128940
128904
 
128941
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/effects/onFormEffects.js
128905
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
128942
128906
  function createFormEffect(type) {
128943
128907
  return createEffectHook(type, function(form) {
128944
128908
  return function(callback) {
@@ -128971,7 +128935,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
128971
128935
  var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
128972
128936
  var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
128973
128937
 
128974
- // ../../../../node_modules/.pnpm/@formily+core@2.2.22/node_modules/@formily/core/esm/effects/onFieldEffects.js
128938
+ // ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
128975
128939
  function createFieldEffect(type) {
128976
128940
  return createEffectHook(type, function(field, form) {
128977
128941
  return function(pattern, callback) {
@@ -129016,7 +128980,7 @@ function onFieldInit(pattern, callback) {
129016
128980
  }
129017
128981
  }
129018
128982
 
129019
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.22_typescript@4.9.3/node_modules/@formily/json-schema/esm/transformer.js
128983
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
129020
128984
  var __read7 = function(o, n) {
129021
128985
  var m = typeof Symbol === "function" && o[Symbol.iterator];
129022
128986
  if (!m)
@@ -129241,7 +129205,7 @@ var transformFieldProps = function(schema, options) {
129241
129205
  };
129242
129206
  };
129243
129207
 
129244
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.22_typescript@4.9.3/node_modules/@formily/json-schema/esm/patches.js
129208
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
129245
129209
  var __assign9 = function() {
129246
129210
  __assign9 = Object.assign || function(t) {
129247
129211
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -129290,7 +129254,7 @@ var enablePolyfills = function(versions) {
129290
129254
  }
129291
129255
  };
129292
129256
 
129293
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.22_typescript@4.9.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
129257
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
129294
129258
  var __assign10 = function() {
129295
129259
  __assign10 = Object.assign || function(t) {
129296
129260
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -129447,7 +129411,7 @@ var registerTypeDefaultComponents = function(maps) {
129447
129411
  Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
129448
129412
  };
129449
129413
 
129450
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.22_typescript@4.9.3/node_modules/@formily/json-schema/esm/schema.js
129414
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
129451
129415
  var Schema = (
129452
129416
  /** @class */
129453
129417
  function() {
@@ -129683,10 +129647,10 @@ var Schema = (
129683
129647
  }()
129684
129648
  );
129685
129649
 
129686
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
129650
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
129687
129651
  var import_inquirer = __toESM(require_inquirer());
129688
129652
 
129689
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
129653
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
129690
129654
  var import_lodash2 = __toESM(require_lodash2());
129691
129655
  function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
129692
129656
  try {
@@ -130033,7 +129997,7 @@ function transformForm(schema) {
130033
129997
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
130034
129998
  }
130035
129999
 
130036
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
130000
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
130037
130001
  function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
130038
130002
  try {
130039
130003
  var info = gen[key](arg);
@@ -130557,7 +130521,7 @@ function _prompt() {
130557
130521
  return _prompt.apply(this, arguments);
130558
130522
  }
130559
130523
 
130560
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
130524
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
130561
130525
  function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
130562
130526
  try {
130563
130527
  var info = gen[key](arg);
@@ -130797,7 +130761,7 @@ var CLIReader = /* @__PURE__ */ function() {
130797
130761
  return CLIReader2;
130798
130762
  }();
130799
130763
 
130800
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
130764
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
130801
130765
  var import_inquirer2 = __toESM(require_inquirer2());
130802
130766
 
130803
130767
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -130876,7 +130840,7 @@ var I18n = class {
130876
130840
  }
130877
130841
  };
130878
130842
 
130879
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
130843
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
130880
130844
  var ZH_LOCALE = {
130881
130845
  environment: {
130882
130846
  node_version: "请升级 Node 版本至 LIS",
@@ -130903,7 +130867,7 @@ var ZH_LOCALE = {
130903
130867
  }
130904
130868
  };
130905
130869
 
130906
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
130870
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
130907
130871
  var EN_LOCALE = {
130908
130872
  environment: {
130909
130873
  node_version: "please upgrade node to lts version",
@@ -130930,14 +130894,14 @@ var EN_LOCALE = {
130930
130894
  }
130931
130895
  };
130932
130896
 
130933
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
130897
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
130934
130898
  var i18n = new I18n();
130935
130899
  var localeKeys = i18n.init("zh", {
130936
130900
  zh: ZH_LOCALE,
130937
130901
  en: EN_LOCALE
130938
130902
  });
130939
130903
 
130940
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
130904
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
130941
130905
  var import_lodash5 = __toESM(require_lodash2());
130942
130906
  function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
130943
130907
  try {
@@ -131146,7 +131110,7 @@ function transformInquirerSchema(questions) {
131146
131110
  return questions;
131147
131111
  }
131148
131112
 
131149
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
131113
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
131150
131114
  var import_path4 = __toESM(require("path"));
131151
131115
  function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
131152
131116
  try {
@@ -131410,7 +131374,7 @@ function _checkUseNvm() {
131410
131374
  return _checkUseNvm.apply(this, arguments);
131411
131375
  }
131412
131376
 
131413
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.0_skvqcrgwbq4kgo5eynkccbgoly/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
131377
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
131414
131378
  function _array_like_to_array(arr, len) {
131415
131379
  if (len == null || len > arr.length)
131416
131380
  len = arr.length;
@@ -131991,7 +131955,7 @@ var AppAPI = /* @__PURE__ */ function() {
131991
131955
  switch (_state2.label) {
131992
131956
  case 0:
131993
131957
  _this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
131994
- target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
131958
+ target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
131995
131959
  return [
131996
131960
  4,
131997
131961
  api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
@@ -132340,11 +132304,11 @@ var AppAPI = /* @__PURE__ */ function() {
132340
132304
  return AppAPI2;
132341
132305
  }();
132342
132306
 
132343
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.0/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
132307
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
132344
132308
  var import_comment_json2 = __toESM(require_src2());
132345
132309
  var declarationUpdate = __toESM(require_dist());
132346
132310
 
132347
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.0/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
132311
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
132348
132312
  function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
132349
132313
  try {
132350
132314
  var info = gen[key](arg);
@@ -132518,7 +132482,7 @@ function _editJson() {
132518
132482
  return _editJson.apply(this, arguments);
132519
132483
  }
132520
132484
 
132521
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.0/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
132485
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
132522
132486
  function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
132523
132487
  try {
132524
132488
  var info = gen[key](arg);
@@ -132814,7 +132778,7 @@ var JsonAPI = /* @__PURE__ */ function() {
132814
132778
 
132815
132779
  // ../../generator-utils/dist/esm/index.js
132816
132780
  var import_path5 = __toESM(require("path"));
132817
- var import_utils15 = __toESM(require_cjs2());
132781
+ var import_utils16 = __toESM(require_cjs2());
132818
132782
 
132819
132783
  // ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
132820
132784
  function _define_property14(obj, key, value) {
@@ -133165,10 +133129,10 @@ function stripAnsi2(string) {
133165
133129
  }
133166
133130
 
133167
133131
  // ../../generator-utils/dist/esm/utils/package.js
133168
- var import_utils14 = __toESM(require_cjs2());
133132
+ var import_utils15 = __toESM(require_cjs2());
133169
133133
  function isPackageExist(packageName, registry2) {
133170
133134
  return __async(this, null, function* () {
133171
- if (yield (0, import_utils14.canUseNpm)()) {
133135
+ if (yield (0, import_utils15.canUseNpm)()) {
133172
133136
  const args = [
133173
133137
  "view",
133174
133138
  packageName,
@@ -133177,15 +133141,15 @@ function isPackageExist(packageName, registry2) {
133177
133141
  if (registry2) {
133178
133142
  args.push(`--registry=${registry2}`);
133179
133143
  }
133180
- const result = yield (0, import_utils14.execa)("npm", args);
133181
- return (0, import_utils14.stripAnsi)(result.stdout);
133144
+ const result = yield (0, import_utils15.execa)("npm", args);
133145
+ return (0, import_utils15.stripAnsi)(result.stdout);
133182
133146
  }
133183
133147
  throw new Error("not found npm, please install npm before");
133184
133148
  });
133185
133149
  }
133186
133150
  function isPackageDeprecated(packageName, registry2) {
133187
133151
  return __async(this, null, function* () {
133188
- if (yield (0, import_utils14.canUseNpm)()) {
133152
+ if (yield (0, import_utils15.canUseNpm)()) {
133189
133153
  const args = [
133190
133154
  "view",
133191
133155
  packageName,
@@ -133194,14 +133158,14 @@ function isPackageDeprecated(packageName, registry2) {
133194
133158
  if (registry2) {
133195
133159
  args.push(`--registry=${registry2}`);
133196
133160
  }
133197
- const result = yield (0, import_utils14.execa)("npm", args);
133198
- return (0, import_utils14.stripAnsi)(result.stdout);
133161
+ const result = yield (0, import_utils15.execa)("npm", args);
133162
+ return (0, import_utils15.stripAnsi)(result.stdout);
133199
133163
  }
133200
133164
  throw new Error("not found npm, please install npm before");
133201
133165
  });
133202
133166
  }
133203
133167
  function semverDecrease(version) {
133204
- const versionObj = import_utils14.semver.parse(version, {
133168
+ const versionObj = import_utils15.semver.parse(version, {
133205
133169
  loose: true
133206
133170
  });
133207
133171
  if (!versionObj) {
@@ -133211,8 +133175,8 @@ function semverDecrease(version) {
133211
133175
  versionObj.prerelease = [];
133212
133176
  versionObj.patch--;
133213
133177
  const result = versionObj.format();
133214
- if (!import_utils14.semver.valid(result)) {
133215
- import_utils14.logger.debug(`Version ${result} is not valid semver`);
133178
+ if (!import_utils15.semver.valid(result)) {
133179
+ import_utils15.logger.debug(`Version ${result} is not valid semver`);
133216
133180
  return version;
133217
133181
  }
133218
133182
  return result;
@@ -133223,7 +133187,7 @@ function getAvailableVersion(packageName, currentVersion, registry2) {
133223
133187
  let version = currentVersion;
133224
133188
  while (times) {
133225
133189
  if (!(yield isPackageExist(`${packageName}@${version}`, registry2)) || (yield isPackageDeprecated(`${packageName}@${version}`, registry2))) {
133226
- version = import_utils14.semver.inc(version, "patch");
133190
+ version = import_utils15.semver.inc(version, "patch");
133227
133191
  times--;
133228
133192
  continue;
133229
133193
  }
@@ -133243,14 +133207,14 @@ function getAvailableVersion(packageName, currentVersion, registry2) {
133243
133207
  }
133244
133208
 
133245
133209
  // ../../generator-utils/dist/esm/index.js
133246
- var import_utils16 = __toESM(require_cjs2());
133210
+ var import_utils17 = __toESM(require_cjs2());
133247
133211
  function getPackageVersion(packageName, registry2) {
133248
133212
  return __async(this, null, function* () {
133249
- const spinner = (0, import_utils15.ora)({
133213
+ const spinner = (0, import_utils16.ora)({
133250
133214
  text: "Load Generator...",
133251
133215
  spinner: "runner"
133252
133216
  }).start();
133253
- if (yield (0, import_utils15.canUsePnpm)()) {
133217
+ if (yield (0, import_utils16.canUsePnpm)()) {
133254
133218
  const args = [
133255
133219
  "info",
133256
133220
  packageName,
@@ -133259,11 +133223,11 @@ function getPackageVersion(packageName, registry2) {
133259
133223
  if (registry2) {
133260
133224
  args.push(`--registry=${registry2}`);
133261
133225
  }
133262
- const result = yield (0, import_utils15.execa)("pnpm", args);
133226
+ const result = yield (0, import_utils16.execa)("pnpm", args);
133263
133227
  spinner.stop();
133264
133228
  return stripAnsi2(result.stdout);
133265
133229
  }
133266
- if (yield (0, import_utils15.canUseNpm)()) {
133230
+ if (yield (0, import_utils16.canUseNpm)()) {
133267
133231
  const args = [
133268
133232
  "view",
133269
133233
  packageName,
@@ -133272,7 +133236,7 @@ function getPackageVersion(packageName, registry2) {
133272
133236
  if (registry2) {
133273
133237
  args.push(`--registry=${registry2}`);
133274
133238
  }
133275
- const result = yield (0, import_utils15.execa)("npm", args);
133239
+ const result = yield (0, import_utils16.execa)("npm", args);
133276
133240
  spinner.stop();
133277
133241
  return stripAnsi2(result.stdout);
133278
133242
  }
@@ -133361,22 +133325,22 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
133361
133325
  return;
133362
133326
  }
133363
133327
  const appDir = context.materials.default.basePath;
133364
- const packageManager = yield (0, import_utils16.getPackageManager)(appDir);
133328
+ const packageManager = yield (0, import_utils17.getPackageManager)(appDir);
133365
133329
  context.config.packageManager = packageManager;
133366
133330
  if (packageManager === PackageManager.Pnpm) {
133367
133331
  const npmrcPath = import_path6.default.join(generator.outputPath, ".npmrc");
133368
- if (import_utils16.fs.existsSync(npmrcPath)) {
133369
- const content = import_utils16.fs.readFileSync(npmrcPath, "utf-8");
133332
+ if (import_utils17.fs.existsSync(npmrcPath)) {
133333
+ const content = import_utils17.fs.readFileSync(npmrcPath, "utf-8");
133370
133334
  if (!content.includes("strict-peer-dependencies=false")) {
133371
- import_utils16.fs.appendFileSync(npmrcPath, "\nstrict-peer-dependencies=false\n");
133335
+ import_utils17.fs.appendFileSync(npmrcPath, "\nstrict-peer-dependencies=false\n");
133372
133336
  }
133373
133337
  } else {
133374
- import_utils16.fs.ensureFileSync(npmrcPath);
133375
- import_utils16.fs.writeFileSync(npmrcPath, "strict-peer-dependencies=false");
133338
+ import_utils17.fs.ensureFileSync(npmrcPath);
133339
+ import_utils17.fs.writeFileSync(npmrcPath, "strict-peer-dependencies=false");
133376
133340
  }
133377
133341
  }
133378
133342
  if (solutions[0] === Solution.Monorepo && packageManager === PackageManager.Pnpm) {
133379
- yield (0, import_utils16.execa)(
133343
+ yield (0, import_utils17.execa)(
133380
133344
  "pnpm",
133381
133345
  ["update", "@modern-js/*", "@modern-js-app/*", "--recursive", "--latest"],
133382
133346
  {
@@ -133394,7 +133358,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
133394
133358
  (dep) => dep.startsWith("@modern-js") || dep.startsWith("@modern-js-app")
133395
133359
  );
133396
133360
  const updateInfo = {};
133397
- const spinner = (0, import_utils16.ora)({
133361
+ const spinner = (0, import_utils17.ora)({
133398
133362
  text: "Load Generator...",
133399
133363
  spinner: "runner"
133400
133364
  }).start();
@@ -133430,7 +133394,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
133430
133394
  spinner.stop();
133431
133395
  const huskyVersion = deps.husky;
133432
133396
  try {
133433
- if (huskyVersion && import_utils16.semver.lt(huskyVersion, "8.0.0")) {
133397
+ if (huskyVersion && import_utils17.semver.lt(huskyVersion, "8.0.0")) {
133434
133398
  generator.logger.info(`${i18n3.t(localeKeys3.updateHusky)}`);
133435
133399
  yield jsonAPI.update(
133436
133400
  context.materials.default.get(import_path6.default.join(appDir, "package.json")),
@@ -133446,7 +133410,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
133446
133410
  const pkgPath = context.materials.default.get(
133447
133411
  import_path6.default.join(appDir, "package.json")
133448
133412
  ).filePath;
133449
- const pkgInfo2 = import_utils16.fs.readJSONSync(pkgPath, "utf-8");
133413
+ const pkgInfo2 = import_utils17.fs.readJSONSync(pkgPath, "utf-8");
133450
133414
  const { prepare } = pkgInfo2.scripts;
133451
133415
  if (!prepare) {
133452
133416
  pkgInfo2.scripts.prepare = "husky install";
@@ -133454,9 +133418,9 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
133454
133418
  pkgInfo2.scripts.prepare = `${prepare} && husky install`;
133455
133419
  }
133456
133420
  pkgInfo2.husky = void 0;
133457
- import_utils16.fs.writeJSONSync(pkgPath, pkgInfo2, { spaces: 2 });
133421
+ import_utils17.fs.writeJSONSync(pkgPath, pkgInfo2, { spaces: 2 });
133458
133422
  yield appApi.forgeTemplate("templates/**/*");
133459
- import_utils16.fs.chmodSync(
133423
+ import_utils17.fs.chmodSync(
133460
133424
  import_path6.default.join(generator.outputPath, ".husky", "pre-commit"),
133461
133425
  "755"
133462
133426
  );
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.17",
18
+ "version": "3.1.18",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,18 +23,18 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "devDependencies": {
26
- "@modern-js/codesmith": "2.2.0",
27
- "@modern-js/codesmith-api-app": "2.2.0",
28
- "@modern-js/codesmith-api-json": "2.2.0",
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": "^4",
33
- "@modern-js/generator-common": "3.1.17",
34
- "@modern-js/generator-utils": "3.1.17",
35
- "@modern-js/plugin-i18n": "2.20.0",
36
- "@scripts/build": "2.20.0",
37
- "@scripts/jest-config": "2.20.0"
32
+ "typescript": "^5",
33
+ "@modern-js/generator-common": "3.1.18",
34
+ "@modern-js/plugin-i18n": "2.21.0",
35
+ "@modern-js/generator-utils": "3.1.18",
36
+ "@scripts/jest-config": "2.21.0",
37
+ "@scripts/build": "2.21.0"
38
38
  },
39
39
  "sideEffects": false,
40
40
  "publishConfig": {