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