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

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 +28 -28
  2. package/package.json +11 -12
package/dist/index.js CHANGED
@@ -63528,16 +63528,16 @@ __export(src_exports, {
63528
63528
  module.exports = __toCommonJS(src_exports);
63529
63529
  var import_path6 = __toESM(require("path"));
63530
63530
 
63531
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
63531
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
63532
63532
  var import_chalk = __toESM(require_source());
63533
63533
 
63534
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
63534
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
63535
63535
  var import_fs_extra = __toESM(require_lib());
63536
63536
 
63537
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
63537
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
63538
63538
  var FS_RESOURCE = "_codesmith_core_fs_resource";
63539
63539
 
63540
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
63540
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
63541
63541
  function fsExists(path6) {
63542
63542
  return __async(this, null, function* () {
63543
63543
  try {
@@ -63549,19 +63549,19 @@ function fsExists(path6) {
63549
63549
  });
63550
63550
  }
63551
63551
 
63552
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
63552
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
63553
63553
  var import_execa = __toESM(require_execa());
63554
63554
 
63555
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
63555
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
63556
63556
  var import_semver = __toESM(require_semver2());
63557
63557
 
63558
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
63558
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
63559
63559
  var import_ejs = __toESM(require_ejs());
63560
63560
  function renderString(template, fullData) {
63561
63561
  return import_ejs.default.render(template, fullData) || "";
63562
63562
  }
63563
63563
 
63564
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
63564
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
63565
63565
  var EjsAPI = class {
63566
63566
  renderTemplate(_0, _1) {
63567
63567
  return __async(this, arguments, function* (templateResource, target, parameters = {}) {
@@ -63596,7 +63596,7 @@ var EjsAPI = class {
63596
63596
  }
63597
63597
  };
63598
63598
 
63599
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
63599
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
63600
63600
  var import_path = __toESM(require("path"));
63601
63601
  var FsAPI = class {
63602
63602
  renderFile(resource, target) {
@@ -63625,7 +63625,7 @@ var FsAPI = class {
63625
63625
  }
63626
63626
  };
63627
63627
 
63628
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
63628
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
63629
63629
  function canUseGit() {
63630
63630
  return __async(this, null, function* () {
63631
63631
  try {
@@ -63709,7 +63709,7 @@ function gitCommit(cwd, commitMessage) {
63709
63709
  });
63710
63710
  }
63711
63711
 
63712
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
63712
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
63713
63713
  var GitAPI = class {
63714
63714
  isInGitRepo() {
63715
63715
  return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
@@ -63765,7 +63765,7 @@ var GitAPI = class {
63765
63765
  }
63766
63766
  };
63767
63767
 
63768
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
63768
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
63769
63769
  var import_handlebars = __toESM(require_lib2());
63770
63770
  function renderString2(template, fullData, registers) {
63771
63771
  const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
@@ -63775,7 +63775,7 @@ function renderString2(template, fullData, registers) {
63775
63775
  return import_handlebars.default.compile(template)(fullData) || "";
63776
63776
  }
63777
63777
 
63778
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
63778
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
63779
63779
  var HandlebarsAPI = class {
63780
63780
  registerHelp(helpers) {
63781
63781
  return __async(this, null, function* () {
@@ -63932,7 +63932,7 @@ function __generator(thisArg, body) {
63932
63932
  }
63933
63933
  }
63934
63934
 
63935
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
63935
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
63936
63936
  var import_execa3 = __toESM(require_execa());
63937
63937
  function canUseNvm() {
63938
63938
  return _canUseNvm.apply(this, arguments);
@@ -64153,7 +64153,7 @@ function _canUsePnpm() {
64153
64153
  return _canUsePnpm.apply(this, arguments);
64154
64154
  }
64155
64155
 
64156
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
64156
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
64157
64157
  function execaWithStreamLog(command, args, options) {
64158
64158
  const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
64159
64159
  stdin: "inherit",
@@ -64254,7 +64254,7 @@ function pnpmInstall(_0) {
64254
64254
  });
64255
64255
  }
64256
64256
 
64257
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
64257
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
64258
64258
  var NpmAPI = class {
64259
64259
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
64260
64260
  return npmInstall({
@@ -64282,7 +64282,7 @@ var NpmAPI = class {
64282
64282
  }
64283
64283
  };
64284
64284
 
64285
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
64285
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
64286
64286
  var import_lodash = __toESM(require_lodash());
64287
64287
  var import_lodash2 = __toESM(require_lodash2());
64288
64288
  var import_lodash3 = __toESM(require_lodash3());
@@ -70049,10 +70049,10 @@ var Schema = (
70049
70049
  }()
70050
70050
  );
70051
70051
 
70052
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
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
70053
70053
  var import_inquirer = __toESM(require_inquirer());
70054
70054
 
70055
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
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
70056
70056
  function validateSchema(schema) {
70057
70057
  const { type, properties } = schema;
70058
70058
  if (type !== "object") {
@@ -70139,7 +70139,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
70139
70139
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
70140
70140
  }
70141
70141
 
70142
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
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
70143
70143
  var compileRule = (rule, scope) => {
70144
70144
  const state = Schema.compile(rule, __spreadValues({
70145
70145
  $self: {},
@@ -70239,7 +70239,7 @@ function prompt(_0) {
70239
70239
  });
70240
70240
  }
70241
70241
 
70242
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
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
70243
70243
  var CLIReader = class {
70244
70244
  getAnswers() {
70245
70245
  return this.answers;
@@ -70267,7 +70267,7 @@ var CLIReader = class {
70267
70267
  }
70268
70268
  };
70269
70269
 
70270
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
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
70271
70271
  var import_comment_json = __toESM(require_src2());
70272
70272
  var import_inquirer2 = __toESM(require_inquirer2());
70273
70273
 
@@ -70334,7 +70334,7 @@ var I18n = class {
70334
70334
  }
70335
70335
  };
70336
70336
 
70337
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
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
70338
70338
  var EN_LOCALE = {
70339
70339
  environment: {
70340
70340
  node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
@@ -70361,7 +70361,7 @@ var EN_LOCALE = {
70361
70361
  }
70362
70362
  };
70363
70363
 
70364
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
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
70365
70365
  var ZH_LOCALE = {
70366
70366
  environment: {
70367
70367
  node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
@@ -70388,14 +70388,14 @@ var ZH_LOCALE = {
70388
70388
  }
70389
70389
  };
70390
70390
 
70391
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
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
70392
70392
  var i18n = new I18n();
70393
70393
  var localeKeys = i18n.init("zh", {
70394
70394
  zh: ZH_LOCALE,
70395
70395
  en: EN_LOCALE
70396
70396
  });
70397
70397
 
70398
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
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
70399
70399
  var import_path3 = __toESM(require("path"));
70400
70400
  var NODE_MAJOR_VERSION_MAP = {
70401
70401
  "lts/*": 18,
@@ -70446,7 +70446,7 @@ function checkUseNvm(cwd, logger) {
70446
70446
  });
70447
70447
  }
70448
70448
 
70449
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
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
70450
70450
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
70451
70451
  for (const question of questions) {
70452
70452
  question.default = initValue[question.name] || question.default;
@@ -70473,7 +70473,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
70473
70473
  return questions;
70474
70474
  }
70475
70475
 
70476
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
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
70477
70477
  var AppAPI = class {
70478
70478
  checkEnvironment(nodeVersion) {
70479
70479
  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.22",
18
+ "version": "3.7.23",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,25 +23,24 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "devDependencies": {
26
- "@modern-js/codesmith": "2.6.6",
27
- "@modern-js/codesmith-api-app": "2.6.6",
28
- "@modern-js/codesmith-utils": "2.6.6",
26
+ "@modern-js/codesmith": "2.6.7",
27
+ "@modern-js/codesmith-api-app": "2.6.7",
28
+ "@modern-js/codesmith-utils": "2.6.7",
29
29
  "@types/jest": "^29",
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/dependence-generator": "3.7.22",
34
- "@modern-js/generator-common": "3.7.22",
35
- "@modern-js/generator-utils": "3.7.22",
36
- "@modern-js/plugin-i18n": "2.65.4",
37
- "@scripts/build": "2.65.4",
38
- "@scripts/jest-config": "2.65.4"
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"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {
42
42
  "registry": "https://registry.npmjs.org/",
43
- "access": "public",
44
- "provenance": true
43
+ "access": "public"
45
44
  },
46
45
  "types": "./src/index.ts",
47
46
  "scripts": {