@modern-js/router-v5-generator 3.7.23 → 3.7.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +33 -64
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -3875,37 +3875,6 @@ var require_ensure = __commonJS({
3875
3875
  }
3876
3876
  });
3877
3877
 
3878
- // ../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
3879
- var require_universalify2 = __commonJS({
3880
- "../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
3881
- "use strict";
3882
- exports.fromCallback = function(fn) {
3883
- return Object.defineProperty(function(...args) {
3884
- if (typeof args[args.length - 1] === "function")
3885
- fn.apply(this, args);
3886
- else {
3887
- return new Promise((resolve, reject) => {
3888
- fn.call(
3889
- this,
3890
- ...args,
3891
- (err, res) => err != null ? reject(err) : resolve(res)
3892
- );
3893
- });
3894
- }
3895
- }, "name", { value: fn.name });
3896
- };
3897
- exports.fromPromise = function(fn) {
3898
- return Object.defineProperty(function(...args) {
3899
- const cb = args[args.length - 1];
3900
- if (typeof cb !== "function")
3901
- return fn.apply(this, args);
3902
- else
3903
- fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
3904
- }, "name", { value: fn.name });
3905
- };
3906
- }
3907
- });
3908
-
3909
3878
  // ../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
3910
3879
  var require_utils2 = __commonJS({
3911
3880
  "../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
@@ -3934,7 +3903,7 @@ var require_jsonfile = __commonJS({
3934
3903
  } catch (_) {
3935
3904
  _fs = require("fs");
3936
3905
  }
3937
- var universalify = require_universalify2();
3906
+ var universalify = require_universalify();
3938
3907
  var { stringify: stringify2, stripBom } = require_utils2();
3939
3908
  function _readFile(_0) {
3940
3909
  return __async(this, arguments, function* (file, options = {}) {
@@ -4509,9 +4478,9 @@ var require_path_key = __commonJS({
4509
4478
  }
4510
4479
  });
4511
4480
 
4512
- // ../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
4481
+ // ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
4513
4482
  var require_resolveCommand = __commonJS({
4514
- "../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
4483
+ "../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
4515
4484
  "use strict";
4516
4485
  var path6 = require("path");
4517
4486
  var which = require_which();
@@ -4551,9 +4520,9 @@ var require_resolveCommand = __commonJS({
4551
4520
  }
4552
4521
  });
4553
4522
 
4554
- // ../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
4523
+ // ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
4555
4524
  var require_escape = __commonJS({
4556
- "../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
4525
+ "../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
4557
4526
  "use strict";
4558
4527
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
4559
4528
  function escapeCommand(arg) {
@@ -4562,8 +4531,8 @@ var require_escape = __commonJS({
4562
4531
  }
4563
4532
  function escapeArgument(arg, doubleEscapeMetaChars) {
4564
4533
  arg = `${arg}`;
4565
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
4566
- arg = arg.replace(/(\\*)$/, "$1$1");
4534
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
4535
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
4567
4536
  arg = `"${arg}"`;
4568
4537
  arg = arg.replace(metaCharsRegExp, "^$1");
4569
4538
  if (doubleEscapeMetaChars) {
@@ -4604,9 +4573,9 @@ var require_shebang_command = __commonJS({
4604
4573
  }
4605
4574
  });
4606
4575
 
4607
- // ../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
4576
+ // ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
4608
4577
  var require_readShebang = __commonJS({
4609
- "../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
4578
+ "../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
4610
4579
  "use strict";
4611
4580
  var fs2 = require("fs");
4612
4581
  var shebangCommand = require_shebang_command();
@@ -4626,9 +4595,9 @@ var require_readShebang = __commonJS({
4626
4595
  }
4627
4596
  });
4628
4597
 
4629
- // ../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
4598
+ // ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
4630
4599
  var require_parse = __commonJS({
4631
- "../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
4600
+ "../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
4632
4601
  "use strict";
4633
4602
  var path6 = require("path");
4634
4603
  var resolveCommand = require_resolveCommand();
@@ -4688,9 +4657,9 @@ var require_parse = __commonJS({
4688
4657
  }
4689
4658
  });
4690
4659
 
4691
- // ../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
4660
+ // ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
4692
4661
  var require_enoent = __commonJS({
4693
- "../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
4662
+ "../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
4694
4663
  "use strict";
4695
4664
  var isWin = process.platform === "win32";
4696
4665
  function notFoundError(original, syscall) {
@@ -4709,7 +4678,7 @@ var require_enoent = __commonJS({
4709
4678
  const originalEmit = cp.emit;
4710
4679
  cp.emit = function(name, arg1) {
4711
4680
  if (name === "exit") {
4712
- const err = verifyENOENT(arg1, parsed, "spawn");
4681
+ const err = verifyENOENT(arg1, parsed);
4713
4682
  if (err) {
4714
4683
  return originalEmit.call(cp, "error", err);
4715
4684
  }
@@ -4738,9 +4707,9 @@ var require_enoent = __commonJS({
4738
4707
  }
4739
4708
  });
4740
4709
 
4741
- // ../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
4710
+ // ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
4742
4711
  var require_cross_spawn = __commonJS({
4743
- "../../../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module2) {
4712
+ "../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module2) {
4744
4713
  "use strict";
4745
4714
  var cp = require("child_process");
4746
4715
  var parse3 = require_parse();
@@ -67833,7 +67802,7 @@ autorun.effect = function(callback, dependencies) {
67833
67802
  }
67834
67803
  };
67835
67804
 
67836
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/shared.js
67805
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/shared.js
67837
67806
  var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
67838
67807
  var SchemaNestedMap = {
67839
67808
  parent: true,
@@ -68020,7 +67989,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
68020
67989
  });
68021
67990
  };
68022
67991
 
68023
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/compiler.js
67992
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/compiler.js
68024
67993
  var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
68025
67994
  var Registry = {
68026
67995
  silent: false,
@@ -69382,7 +69351,7 @@ function onFieldInit(pattern, callback) {
69382
69351
  }
69383
69352
  }
69384
69353
 
69385
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/transformer.js
69354
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/transformer.js
69386
69355
  var __read5 = function(o, n) {
69387
69356
  var m = typeof Symbol === "function" && o[Symbol.iterator];
69388
69357
  if (!m)
@@ -69607,7 +69576,7 @@ var transformFieldProps = function(schema, options) {
69607
69576
  };
69608
69577
  };
69609
69578
 
69610
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/patches.js
69579
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/patches.js
69611
69580
  var __assign5 = function() {
69612
69581
  __assign5 = Object.assign || function(t) {
69613
69582
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -69656,7 +69625,7 @@ var enablePolyfills = function(versions) {
69656
69625
  }
69657
69626
  };
69658
69627
 
69659
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
69628
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
69660
69629
  var __assign6 = function() {
69661
69630
  __assign6 = Object.assign || function(t) {
69662
69631
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -69813,7 +69782,7 @@ var registerTypeDefaultComponents = function(maps) {
69813
69782
  Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
69814
69783
  };
69815
69784
 
69816
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/schema.js
69785
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/schema.js
69817
69786
  var Schema = (
69818
69787
  /** @class */
69819
69788
  function() {
@@ -70049,10 +70018,10 @@ var Schema = (
70049
70018
  }()
70050
70019
  );
70051
70020
 
70052
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70021
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70053
70022
  var import_inquirer = __toESM(require_inquirer());
70054
70023
 
70055
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
70024
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
70056
70025
  function validateSchema(schema) {
70057
70026
  const { type, properties } = schema;
70058
70027
  if (type !== "object") {
@@ -70139,7 +70108,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
70139
70108
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
70140
70109
  }
70141
70110
 
70142
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70111
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70143
70112
  var compileRule = (rule, scope) => {
70144
70113
  const state = Schema.compile(rule, __spreadValues({
70145
70114
  $self: {},
@@ -70239,7 +70208,7 @@ function prompt(_0) {
70239
70208
  });
70240
70209
  }
70241
70210
 
70242
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
70211
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
70243
70212
  var CLIReader = class {
70244
70213
  getAnswers() {
70245
70214
  return this.answers;
@@ -70267,7 +70236,7 @@ var CLIReader = class {
70267
70236
  }
70268
70237
  };
70269
70238
 
70270
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70239
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70271
70240
  var import_comment_json = __toESM(require_src2());
70272
70241
  var import_inquirer2 = __toESM(require_inquirer2());
70273
70242
 
@@ -70334,7 +70303,7 @@ var I18n = class {
70334
70303
  }
70335
70304
  };
70336
70305
 
70337
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
70306
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
70338
70307
  var EN_LOCALE = {
70339
70308
  environment: {
70340
70309
  node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
@@ -70361,7 +70330,7 @@ var EN_LOCALE = {
70361
70330
  }
70362
70331
  };
70363
70332
 
70364
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
70333
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
70365
70334
  var ZH_LOCALE = {
70366
70335
  environment: {
70367
70336
  node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
@@ -70388,14 +70357,14 @@ var ZH_LOCALE = {
70388
70357
  }
70389
70358
  };
70390
70359
 
70391
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
70360
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
70392
70361
  var i18n = new I18n();
70393
70362
  var localeKeys = i18n.init("zh", {
70394
70363
  zh: ZH_LOCALE,
70395
70364
  en: EN_LOCALE
70396
70365
  });
70397
70366
 
70398
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
70367
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
70399
70368
  var import_path3 = __toESM(require("path"));
70400
70369
  var NODE_MAJOR_VERSION_MAP = {
70401
70370
  "lts/*": 18,
@@ -70446,7 +70415,7 @@ function checkUseNvm(cwd, logger) {
70446
70415
  });
70447
70416
  }
70448
70417
 
70449
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
70418
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
70450
70419
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
70451
70420
  for (const question of questions) {
70452
70421
  question.default = initValue[question.name] || question.default;
@@ -70473,7 +70442,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
70473
70442
  return questions;
70474
70443
  }
70475
70444
 
70476
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70445
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70477
70446
  var AppAPI = class {
70478
70447
  checkEnvironment(nodeVersion) {
70479
70448
  return __async(this, null, function* () {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.7.23",
18
+ "version": "3.7.24",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,12 +30,12 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/generator-utils": "3.7.23",
34
- "@modern-js/dependence-generator": "3.7.23",
35
- "@modern-js/plugin-i18n": "2.65.5",
36
- "@scripts/build": "2.65.5",
37
- "@modern-js/generator-common": "3.7.23",
38
- "@scripts/jest-config": "2.65.5"
33
+ "@modern-js/dependence-generator": "3.7.24",
34
+ "@modern-js/generator-common": "3.7.24",
35
+ "@modern-js/generator-utils": "3.7.24",
36
+ "@modern-js/plugin-i18n": "2.66.0",
37
+ "@scripts/build": "2.66.0",
38
+ "@scripts/jest-config": "2.66.0"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {