@modern-js/upgrade-generator 3.3.3 → 3.3.5

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 +19 -19
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -52698,7 +52698,7 @@ function _define_property(obj, key, value) {
52698
52698
  return obj;
52699
52699
  }
52700
52700
 
52701
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
52701
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
52702
52702
  var import_utils13 = require("@modern-js/utils");
52703
52703
  var import_lodash5 = require("@modern-js/utils/lodash");
52704
52704
  var import_comment_json = __toESM(require_src2());
@@ -53473,7 +53473,7 @@ function isEmpty(val, strict) {
53473
53473
  return false;
53474
53474
  }
53475
53475
 
53476
- // ../../../../node_modules/.pnpm/tslib@2.4.0/node_modules/tslib/tslib.es6.js
53476
+ // ../../../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs
53477
53477
  var __assign = function() {
53478
53478
  __assign = Object.assign || function __assign11(t) {
53479
53479
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -57087,7 +57087,7 @@ var observe = function(target, observer, deep) {
57087
57087
  return addListener(target);
57088
57088
  };
57089
57089
 
57090
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
57090
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/shared.js
57091
57091
  var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
57092
57092
  var SchemaNestedMap = {
57093
57093
  parent: true,
@@ -57274,7 +57274,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
57274
57274
  });
57275
57275
  };
57276
57276
 
57277
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
57277
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/compiler.js
57278
57278
  var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
57279
57279
  var Registry = {
57280
57280
  silent: false,
@@ -62041,7 +62041,7 @@ function onFieldInit(pattern, callback) {
62041
62041
  }
62042
62042
  }
62043
62043
 
62044
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
62044
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/transformer.js
62045
62045
  var __read7 = function(o, n) {
62046
62046
  var m = typeof Symbol === "function" && o[Symbol.iterator];
62047
62047
  if (!m)
@@ -62266,7 +62266,7 @@ var transformFieldProps = function(schema, options) {
62266
62266
  };
62267
62267
  };
62268
62268
 
62269
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
62269
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/patches.js
62270
62270
  var __assign9 = function() {
62271
62271
  __assign9 = Object.assign || function(t) {
62272
62272
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -62315,7 +62315,7 @@ var enablePolyfills = function(versions) {
62315
62315
  }
62316
62316
  };
62317
62317
 
62318
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
62318
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
62319
62319
  var __assign10 = function() {
62320
62320
  __assign10 = Object.assign || function(t) {
62321
62321
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -62472,7 +62472,7 @@ var registerTypeDefaultComponents = function(maps) {
62472
62472
  Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
62473
62473
  };
62474
62474
 
62475
- // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
62475
+ // ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/schema.js
62476
62476
  var Schema = (
62477
62477
  /** @class */
62478
62478
  function() {
@@ -62708,10 +62708,10 @@ var Schema = (
62708
62708
  }()
62709
62709
  );
62710
62710
 
62711
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62711
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62712
62712
  var import_inquirer = __toESM(require_inquirer());
62713
62713
 
62714
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
62714
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
62715
62715
  var import_lodash = require("@modern-js/utils/lodash");
62716
62716
  function validateSchema(schema) {
62717
62717
  const { type, properties } = schema;
@@ -62803,7 +62803,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
62803
62803
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
62804
62804
  }
62805
62805
 
62806
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62806
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62807
62807
  var compileRule = (rule, scope) => {
62808
62808
  const state = Schema.compile(rule, {
62809
62809
  $self: {},
@@ -62907,7 +62907,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
62907
62907
  return answers;
62908
62908
  }
62909
62909
 
62910
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
62910
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
62911
62911
  var CLIReader = class {
62912
62912
  getAnswers() {
62913
62913
  return this.answers;
@@ -62938,7 +62938,7 @@ var CLIReader = class {
62938
62938
  }
62939
62939
  };
62940
62940
 
62941
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
62941
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
62942
62942
  var import_inquirer2 = __toESM(require_inquirer2());
62943
62943
 
62944
62944
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -63004,7 +63004,7 @@ var I18n = class {
63004
63004
  }
63005
63005
  };
63006
63006
 
63007
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
63007
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
63008
63008
  var ZH_LOCALE = {
63009
63009
  environment: {
63010
63010
  node_version: "请升级 Node 版本至 LIS",
@@ -63031,7 +63031,7 @@ var ZH_LOCALE = {
63031
63031
  }
63032
63032
  };
63033
63033
 
63034
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
63034
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
63035
63035
  var EN_LOCALE = {
63036
63036
  environment: {
63037
63037
  node_version: "please upgrade node to lts version",
@@ -63058,14 +63058,14 @@ var EN_LOCALE = {
63058
63058
  }
63059
63059
  };
63060
63060
 
63061
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
63061
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
63062
63062
  var i18n = new I18n();
63063
63063
  var localeKeys = i18n.init("zh", {
63064
63064
  zh: ZH_LOCALE,
63065
63065
  en: EN_LOCALE
63066
63066
  });
63067
63067
 
63068
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
63068
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
63069
63069
  var import_lodash4 = require("@modern-js/utils/lodash");
63070
63070
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
63071
63071
  for (const question of questions) {
@@ -63093,7 +63093,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
63093
63093
  return questions;
63094
63094
  }
63095
63095
 
63096
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
63096
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
63097
63097
  var import_path4 = __toESM(require("path"));
63098
63098
  var import_utils12 = require("@modern-js/utils");
63099
63099
  var NODE_MAJOR_VERSION_MAP = {
@@ -63141,7 +63141,7 @@ async function checkUseNvm(cwd, logger2) {
63141
63141
  }
63142
63142
  }
63143
63143
 
63144
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63144
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63145
63145
  var AppAPI = class {
63146
63146
  async checkEnvironment(nodeVersion) {
63147
63147
  if (import_utils13.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.3.3",
18
+ "version": "3.3.5",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,7 +23,7 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "dependencies": {
26
- "@modern-js/utils": "2.42.2"
26
+ "@modern-js/utils": "2.44.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@modern-js/codesmith": "2.3.2",
@@ -33,11 +33,11 @@
33
33
  "@types/node": "^14",
34
34
  "jest": "^29",
35
35
  "typescript": "^5",
36
- "@modern-js/generator-common": "3.3.3",
37
- "@modern-js/generator-utils": "3.3.3",
38
- "@modern-js/plugin-i18n": "2.42.2",
39
- "@scripts/jest-config": "2.42.2",
40
- "@scripts/build": "2.42.2"
36
+ "@modern-js/generator-common": "3.3.5",
37
+ "@modern-js/generator-utils": "3.3.5",
38
+ "@modern-js/plugin-i18n": "2.44.0",
39
+ "@scripts/build": "2.44.0",
40
+ "@scripts/jest-config": "2.44.0"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {