@modern-js/dependence-generator 3.7.31 → 3.7.33

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 -32
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -65101,16 +65101,16 @@ __export(src_exports, {
65101
65101
  module.exports = __toCommonJS(src_exports);
65102
65102
  var import_path5 = __toESM(require("path"));
65103
65103
 
65104
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
65104
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
65105
65105
  var import_chalk = __toESM(require_source());
65106
65106
 
65107
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
65107
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
65108
65108
  var import_fs_extra = __toESM(require_lib());
65109
65109
 
65110
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
65110
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
65111
65111
  var FS_RESOURCE = "_codesmith_core_fs_resource";
65112
65112
 
65113
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
65113
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
65114
65114
  function fsExists(path5) {
65115
65115
  return __async(this, null, function* () {
65116
65116
  try {
@@ -65122,19 +65122,19 @@ function fsExists(path5) {
65122
65122
  });
65123
65123
  }
65124
65124
 
65125
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
65125
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
65126
65126
  var import_execa = __toESM(require_execa());
65127
65127
 
65128
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
65128
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
65129
65129
  var import_semver = __toESM(require_semver2());
65130
65130
 
65131
- // ../../../../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
65131
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
65132
65132
  var import_ejs = __toESM(require_ejs());
65133
65133
  function renderString(template, fullData) {
65134
65134
  return import_ejs.default.render(template, fullData) || "";
65135
65135
  }
65136
65136
 
65137
- // ../../../../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
65137
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
65138
65138
  var EjsAPI = class {
65139
65139
  renderTemplate(_0, _1) {
65140
65140
  return __async(this, arguments, function* (templateResource, target, parameters = {}) {
@@ -65169,7 +65169,7 @@ var EjsAPI = class {
65169
65169
  }
65170
65170
  };
65171
65171
 
65172
- // ../../../../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
65172
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
65173
65173
  var import_path = __toESM(require("path"));
65174
65174
  var FsAPI = class {
65175
65175
  renderFile(resource, target) {
@@ -65198,7 +65198,7 @@ var FsAPI = class {
65198
65198
  }
65199
65199
  };
65200
65200
 
65201
- // ../../../../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
65201
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
65202
65202
  function canUseGit() {
65203
65203
  return __async(this, null, function* () {
65204
65204
  try {
@@ -65282,7 +65282,7 @@ function gitCommit(cwd, commitMessage) {
65282
65282
  });
65283
65283
  }
65284
65284
 
65285
- // ../../../../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
65285
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
65286
65286
  var GitAPI = class {
65287
65287
  isInGitRepo() {
65288
65288
  return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
@@ -65338,7 +65338,7 @@ var GitAPI = class {
65338
65338
  }
65339
65339
  };
65340
65340
 
65341
- // ../../../../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
65341
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
65342
65342
  var import_handlebars = __toESM(require_lib2());
65343
65343
  function renderString2(template, fullData, registers) {
65344
65344
  const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
@@ -65348,7 +65348,7 @@ function renderString2(template, fullData, registers) {
65348
65348
  return import_handlebars.default.compile(template)(fullData) || "";
65349
65349
  }
65350
65350
 
65351
- // ../../../../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
65351
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
65352
65352
  var HandlebarsAPI = class {
65353
65353
  registerHelp(helpers) {
65354
65354
  return __async(this, null, function* () {
@@ -65505,7 +65505,7 @@ function __generator(thisArg, body) {
65505
65505
  }
65506
65506
  }
65507
65507
 
65508
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
65508
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
65509
65509
  var import_execa3 = __toESM(require_execa());
65510
65510
  function canUseNvm() {
65511
65511
  return _canUseNvm.apply(this, arguments);
@@ -65726,7 +65726,7 @@ function _canUsePnpm() {
65726
65726
  return _canUsePnpm.apply(this, arguments);
65727
65727
  }
65728
65728
 
65729
- // ../../../../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
65729
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
65730
65730
  function execaWithStreamLog(command, args, options) {
65731
65731
  const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
65732
65732
  stdin: "inherit",
@@ -65827,7 +65827,7 @@ function pnpmInstall(_0) {
65827
65827
  });
65828
65828
  }
65829
65829
 
65830
- // ../../../../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
65830
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
65831
65831
  var NpmAPI = class {
65832
65832
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
65833
65833
  return npmInstall({
@@ -65855,7 +65855,7 @@ var NpmAPI = class {
65855
65855
  }
65856
65856
  };
65857
65857
 
65858
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
65858
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
65859
65859
  var import_lodash = __toESM(require_lodash());
65860
65860
  var import_lodash2 = __toESM(require_lodash2());
65861
65861
  var import_lodash3 = __toESM(require_lodash3());
@@ -71622,10 +71622,10 @@ var Schema = (
71622
71622
  }()
71623
71623
  );
71624
71624
 
71625
- // ../../../../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
71625
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
71626
71626
  var import_inquirer = __toESM(require_inquirer());
71627
71627
 
71628
- // ../../../../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
71628
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
71629
71629
  function validateSchema(schema) {
71630
71630
  const { type, properties } = schema;
71631
71631
  if (type !== "object") {
@@ -71712,7 +71712,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
71712
71712
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
71713
71713
  }
71714
71714
 
71715
- // ../../../../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
71715
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
71716
71716
  var compileRule = (rule, scope) => {
71717
71717
  const state = Schema.compile(rule, __spreadValues({
71718
71718
  $self: {},
@@ -71812,7 +71812,7 @@ function prompt(_0) {
71812
71812
  });
71813
71813
  }
71814
71814
 
71815
- // ../../../../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
71815
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
71816
71816
  var CLIReader = class {
71817
71817
  getAnswers() {
71818
71818
  return this.answers;
@@ -71840,7 +71840,7 @@ var CLIReader = class {
71840
71840
  }
71841
71841
  };
71842
71842
 
71843
- // ../../../../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
71843
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
71844
71844
  var import_comment_json = __toESM(require_src3());
71845
71845
  var import_inquirer2 = __toESM(require_inquirer2());
71846
71846
 
@@ -71907,7 +71907,7 @@ var I18n = class {
71907
71907
  }
71908
71908
  };
71909
71909
 
71910
- // ../../../../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
71910
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
71911
71911
  var EN_LOCALE = {
71912
71912
  environment: {
71913
71913
  node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
@@ -71934,7 +71934,7 @@ var EN_LOCALE = {
71934
71934
  }
71935
71935
  };
71936
71936
 
71937
- // ../../../../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
71937
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
71938
71938
  var ZH_LOCALE = {
71939
71939
  environment: {
71940
71940
  node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
@@ -71961,14 +71961,14 @@ var ZH_LOCALE = {
71961
71961
  }
71962
71962
  };
71963
71963
 
71964
- // ../../../../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
71964
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
71965
71965
  var i18n = new I18n();
71966
71966
  var localeKeys = i18n.init("zh", {
71967
71967
  zh: ZH_LOCALE,
71968
71968
  en: EN_LOCALE
71969
71969
  });
71970
71970
 
71971
- // ../../../../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
71971
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
71972
71972
  var import_path3 = __toESM(require("path"));
71973
71973
  var NODE_MAJOR_VERSION_MAP = {
71974
71974
  "lts/*": 18,
@@ -71979,7 +71979,8 @@ var NODE_MAJOR_VERSION_MAP = {
71979
71979
  "lts/erbium": 12,
71980
71980
  "lts/fermium": 14,
71981
71981
  "lts/gallium": 16,
71982
- "lts/hydrogen": 18
71982
+ "lts/hydrogen": 18,
71983
+ "lts/jod": 22
71983
71984
  };
71984
71985
  function getNoteVersion() {
71985
71986
  return __async(this, null, function* () {
@@ -72019,7 +72020,7 @@ function checkUseNvm(cwd, logger) {
72019
72020
  });
72020
72021
  }
72021
72022
 
72022
- // ../../../../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
72023
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
72023
72024
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
72024
72025
  for (const question of questions) {
72025
72026
  question.default = initValue[question.name] || question.default;
@@ -72046,7 +72047,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
72046
72047
  return questions;
72047
72048
  }
72048
72049
 
72049
- // ../../../../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
72050
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
72050
72051
  var AppAPI = class {
72051
72052
  checkEnvironment(nodeVersion) {
72052
72053
  return __async(this, null, function* () {
@@ -72289,11 +72290,11 @@ var AppAPI = class {
72289
72290
  }
72290
72291
  };
72291
72292
 
72292
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.7/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
72293
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.8/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
72293
72294
  var import_comment_json2 = __toESM(require_src3());
72294
72295
  var declarationUpdate = __toESM(require_dist());
72295
72296
 
72296
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.7/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
72297
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.8/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
72297
72298
  function editJson(generatorCore, resource, getNewJsonValue) {
72298
72299
  return __async(this, null, function* () {
72299
72300
  const originJsonValue = yield resource.value();
@@ -72308,7 +72309,7 @@ function editJson(generatorCore, resource, getNewJsonValue) {
72308
72309
  });
72309
72310
  }
72310
72311
 
72311
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.7/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
72312
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.8/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
72312
72313
  var JsonAPI = class {
72313
72314
  get(resource) {
72314
72315
  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.31",
18
+ "version": "3.7.33",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,17 +23,17 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "devDependencies": {
26
- "@modern-js/codesmith": "2.6.7",
27
- "@modern-js/codesmith-api-app": "2.6.7",
28
- "@modern-js/codesmith-api-json": "2.6.7",
29
- "@modern-js/codesmith-utils": "2.6.7",
26
+ "@modern-js/codesmith": "2.6.8",
27
+ "@modern-js/codesmith-api-app": "2.6.8",
28
+ "@modern-js/codesmith-api-json": "2.6.8",
29
+ "@modern-js/codesmith-utils": "2.6.8",
30
30
  "@types/jest": "^29",
31
31
  "@types/node": "^14",
32
32
  "jest": "^29",
33
33
  "typescript": "^5",
34
- "@modern-js/generator-common": "3.7.31",
35
- "@modern-js/generator-utils": "3.7.31",
36
- "@modern-js/plugin-i18n": "2.67.6",
34
+ "@modern-js/generator-utils": "3.7.33",
35
+ "@modern-js/generator-common": "3.7.33",
36
+ "@modern-js/plugin-i18n": "2.67.8",
37
37
  "@scripts/build": "2.66.0",
38
38
  "@scripts/jest-config": "2.66.0"
39
39
  },