@modern-js/server-generator 3.3.9 → 3.3.10

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 +27 -27
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -53139,12 +53139,12 @@ function _define_property2(obj, key, value) {
53139
53139
  return obj;
53140
53140
  }
53141
53141
 
53142
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
53142
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
53143
53143
  var import_utils17 = require("@modern-js/utils");
53144
53144
  var import_lodash7 = require("@modern-js/utils/lodash");
53145
53145
  var import_comment_json = __toESM(require_src2());
53146
53146
 
53147
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
53147
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
53148
53148
  var import_utils5 = require("@modern-js/utils");
53149
53149
  async function canUseNvm() {
53150
53150
  try {
@@ -53194,7 +53194,7 @@ async function canUsePnpm3() {
53194
53194
  }
53195
53195
  }
53196
53196
 
53197
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
53197
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
53198
53198
  var import_utils6 = require("@modern-js/utils");
53199
53199
  function execaWithStreamLog(command, args, options) {
53200
53200
  const promise = (0, import_utils6.execa)(command, args, {
@@ -53290,7 +53290,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
53290
53290
  throw new Error("please install pnpm first");
53291
53291
  }
53292
53292
 
53293
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
53293
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
53294
53294
  var NpmAPI = class {
53295
53295
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
53296
53296
  return npmInstall({
@@ -53319,7 +53319,7 @@ var NpmAPI = class {
53319
53319
  }
53320
53320
  };
53321
53321
 
53322
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
53322
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
53323
53323
  var import_utils8 = require("@modern-js/utils");
53324
53324
  async function canUseGit() {
53325
53325
  try {
@@ -53394,7 +53394,7 @@ async function gitCommit(cwd, commitMessage) {
53394
53394
  });
53395
53395
  }
53396
53396
 
53397
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
53397
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
53398
53398
  var GitAPI = class {
53399
53399
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
53400
53400
  const canUse = await canUseGit();
@@ -53446,12 +53446,12 @@ var GitAPI = class {
53446
53446
  }
53447
53447
  };
53448
53448
 
53449
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
53449
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
53450
53450
  var import_path2 = __toESM(require("path"));
53451
53451
  var import_utils10 = require("@modern-js/utils");
53452
53452
  var FS_RESOURCE = "_codesmith_core_fs_resource";
53453
53453
 
53454
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
53454
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
53455
53455
  var import_utils11 = require("@modern-js/utils");
53456
53456
  async function fsExists(path6) {
53457
53457
  try {
@@ -53462,7 +53462,7 @@ async function fsExists(path6) {
53462
53462
  }
53463
53463
  }
53464
53464
 
53465
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
53465
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
53466
53466
  var import_handlebars = __toESM(require_lib());
53467
53467
  function renderString(template, fullData, registers) {
53468
53468
  const helpers = {
@@ -53476,7 +53476,7 @@ function renderString(template, fullData, registers) {
53476
53476
  return import_handlebars.default.compile(template)(fullData) || "";
53477
53477
  }
53478
53478
 
53479
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
53479
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
53480
53480
  var HandlebarsAPI = class {
53481
53481
  async registerHelp(helpers) {
53482
53482
  this.registers.helpers = {
@@ -53526,13 +53526,13 @@ var HandlebarsAPI = class {
53526
53526
  }
53527
53527
  };
53528
53528
 
53529
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
53529
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
53530
53530
  var import_ejs = __toESM(require_ejs());
53531
53531
  function renderString2(template, fullData) {
53532
53532
  return import_ejs.default.render(template, fullData) || "";
53533
53533
  }
53534
53534
 
53535
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
53535
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
53536
53536
  var EjsAPI = class {
53537
53537
  async renderTemplate(templateResource, target, parameters = {}) {
53538
53538
  if (templateResource._type !== FS_RESOURCE) {
@@ -53565,7 +53565,7 @@ var EjsAPI = class {
53565
53565
  }
53566
53566
  };
53567
53567
 
53568
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
53568
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
53569
53569
  var import_path3 = __toESM(require("path"));
53570
53570
  var import_utils14 = require("@modern-js/utils");
53571
53571
  var FsAPI = class {
@@ -63149,10 +63149,10 @@ var Schema = (
63149
63149
  }()
63150
63150
  );
63151
63151
 
63152
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
63152
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
63153
63153
  var import_inquirer = __toESM(require_inquirer());
63154
63154
 
63155
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
63155
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
63156
63156
  var import_lodash3 = require("@modern-js/utils/lodash");
63157
63157
  function validateSchema(schema) {
63158
63158
  const { type, properties } = schema;
@@ -63244,7 +63244,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
63244
63244
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
63245
63245
  }
63246
63246
 
63247
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
63247
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
63248
63248
  var compileRule = (rule, scope) => {
63249
63249
  const state = Schema.compile(rule, {
63250
63250
  $self: {},
@@ -63348,7 +63348,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
63348
63348
  return answers;
63349
63349
  }
63350
63350
 
63351
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
63351
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
63352
63352
  var CLIReader = class {
63353
63353
  getAnswers() {
63354
63354
  return this.answers;
@@ -63379,7 +63379,7 @@ var CLIReader = class {
63379
63379
  }
63380
63380
  };
63381
63381
 
63382
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63382
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63383
63383
  var import_inquirer2 = __toESM(require_inquirer2());
63384
63384
 
63385
63385
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -63445,7 +63445,7 @@ var I18n2 = class {
63445
63445
  }
63446
63446
  };
63447
63447
 
63448
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
63448
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
63449
63449
  var ZH_LOCALE2 = {
63450
63450
  environment: {
63451
63451
  node_version: "请升级 Node 版本至 LIS",
@@ -63472,7 +63472,7 @@ var ZH_LOCALE2 = {
63472
63472
  }
63473
63473
  };
63474
63474
 
63475
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
63475
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
63476
63476
  var EN_LOCALE2 = {
63477
63477
  environment: {
63478
63478
  node_version: "please upgrade node to lts version",
@@ -63499,14 +63499,14 @@ var EN_LOCALE2 = {
63499
63499
  }
63500
63500
  };
63501
63501
 
63502
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
63502
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
63503
63503
  var i18n2 = new I18n2();
63504
63504
  var localeKeys2 = i18n2.init("zh", {
63505
63505
  zh: ZH_LOCALE2,
63506
63506
  en: EN_LOCALE2
63507
63507
  });
63508
63508
 
63509
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
63509
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
63510
63510
  var import_lodash6 = require("@modern-js/utils/lodash");
63511
63511
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
63512
63512
  for (const question of questions) {
@@ -63534,7 +63534,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
63534
63534
  return questions;
63535
63535
  }
63536
63536
 
63537
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
63537
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
63538
63538
  var import_path5 = __toESM(require("path"));
63539
63539
  var import_utils16 = require("@modern-js/utils");
63540
63540
  var NODE_MAJOR_VERSION_MAP = {
@@ -63582,7 +63582,7 @@ async function checkUseNvm(cwd, logger2) {
63582
63582
  }
63583
63583
  }
63584
63584
 
63585
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63585
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63586
63586
  var AppAPI = class {
63587
63587
  async checkEnvironment(nodeVersion) {
63588
63588
  if (import_utils17.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
@@ -63822,11 +63822,11 @@ var AppAPI = class {
63822
63822
  }
63823
63823
  };
63824
63824
 
63825
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63825
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63826
63826
  var import_comment_json2 = __toESM(require_src2());
63827
63827
  var declarationUpdate = __toESM(require_dist());
63828
63828
 
63829
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
63829
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
63830
63830
  async function editJson(generatorCore, resource, getNewJsonValue) {
63831
63831
  const originJsonValue = await resource.value();
63832
63832
  const newJsonString = await getNewJsonValue(originJsonValue.content);
@@ -63839,7 +63839,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
63839
63839
  return newJsonString;
63840
63840
  }
63841
63841
 
63842
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63842
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63843
63843
  var JsonAPI = class {
63844
63844
  async get(resource) {
63845
63845
  const originJsonValue = await resource.value();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.3.9",
18
+ "version": "3.3.10",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./src/index.ts",
21
21
  "main": "./dist/index.js",
@@ -24,21 +24,21 @@
24
24
  "/dist/index.js"
25
25
  ],
26
26
  "dependencies": {
27
- "@modern-js/utils": "2.47.0"
27
+ "@modern-js/utils": "2.47.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@modern-js/codesmith": "2.3.4",
31
- "@modern-js/codesmith-api-app": "2.3.4",
32
- "@modern-js/codesmith-api-json": "2.3.4",
30
+ "@modern-js/codesmith": "2.3.5",
31
+ "@modern-js/codesmith-api-app": "2.3.5",
32
+ "@modern-js/codesmith-api-json": "2.3.5",
33
33
  "@types/jest": "^29",
34
34
  "@types/node": "^14",
35
35
  "jest": "^29",
36
36
  "typescript": "^5",
37
- "@modern-js/generator-common": "3.3.9",
38
- "@modern-js/generator-utils": "3.3.9",
39
- "@modern-js/dependence-generator": "3.3.9",
40
- "@scripts/jest-config": "2.47.0",
41
- "@scripts/build": "2.47.0"
37
+ "@modern-js/generator-common": "3.3.10",
38
+ "@modern-js/dependence-generator": "3.3.10",
39
+ "@modern-js/generator-utils": "3.3.10",
40
+ "@scripts/jest-config": "2.47.1",
41
+ "@scripts/build": "2.47.1"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "publishConfig": {