@modern-js/server-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 +7 -7
package/dist/index.js
CHANGED
|
@@ -53171,7 +53171,7 @@ function _define_property2(obj, key, value) {
|
|
|
53171
53171
|
return obj;
|
|
53172
53172
|
}
|
|
53173
53173
|
|
|
53174
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
53174
|
+
// ../../../../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
|
|
53175
53175
|
var import_utils17 = require("@modern-js/utils");
|
|
53176
53176
|
var import_lodash7 = require("@modern-js/utils/lodash");
|
|
53177
53177
|
var import_comment_json = __toESM(require_src2());
|
|
@@ -53946,7 +53946,7 @@ function isEmpty(val, strict) {
|
|
|
53946
53946
|
return false;
|
|
53947
53947
|
}
|
|
53948
53948
|
|
|
53949
|
-
// ../../../../node_modules/.pnpm/tslib@2.
|
|
53949
|
+
// ../../../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs
|
|
53950
53950
|
var __assign = function() {
|
|
53951
53951
|
__assign = Object.assign || function __assign11(t) {
|
|
53952
53952
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -57560,7 +57560,7 @@ var observe = function(target, observer, deep) {
|
|
|
57560
57560
|
return addListener(target);
|
|
57561
57561
|
};
|
|
57562
57562
|
|
|
57563
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
57563
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/shared.js
|
|
57564
57564
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
57565
57565
|
var SchemaNestedMap = {
|
|
57566
57566
|
parent: true,
|
|
@@ -57747,7 +57747,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
57747
57747
|
});
|
|
57748
57748
|
};
|
|
57749
57749
|
|
|
57750
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
57750
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/compiler.js
|
|
57751
57751
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
57752
57752
|
var Registry = {
|
|
57753
57753
|
silent: false,
|
|
@@ -62514,7 +62514,7 @@ function onFieldInit(pattern, callback) {
|
|
|
62514
62514
|
}
|
|
62515
62515
|
}
|
|
62516
62516
|
|
|
62517
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
62517
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/transformer.js
|
|
62518
62518
|
var __read7 = function(o, n) {
|
|
62519
62519
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
62520
62520
|
if (!m)
|
|
@@ -62739,7 +62739,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
62739
62739
|
};
|
|
62740
62740
|
};
|
|
62741
62741
|
|
|
62742
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
62742
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/patches.js
|
|
62743
62743
|
var __assign9 = function() {
|
|
62744
62744
|
__assign9 = Object.assign || function(t) {
|
|
62745
62745
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -62788,7 +62788,7 @@ var enablePolyfills = function(versions) {
|
|
|
62788
62788
|
}
|
|
62789
62789
|
};
|
|
62790
62790
|
|
|
62791
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
62791
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
62792
62792
|
var __assign10 = function() {
|
|
62793
62793
|
__assign10 = Object.assign || function(t) {
|
|
62794
62794
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -62945,7 +62945,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
62945
62945
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
62946
62946
|
};
|
|
62947
62947
|
|
|
62948
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
62948
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/schema.js
|
|
62949
62949
|
var Schema = (
|
|
62950
62950
|
/** @class */
|
|
62951
62951
|
function() {
|
|
@@ -63181,10 +63181,10 @@ var Schema = (
|
|
|
63181
63181
|
}()
|
|
63182
63182
|
);
|
|
63183
63183
|
|
|
63184
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63184
|
+
// ../../../../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
|
|
63185
63185
|
var import_inquirer = __toESM(require_inquirer());
|
|
63186
63186
|
|
|
63187
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63187
|
+
// ../../../../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
|
|
63188
63188
|
var import_lodash3 = require("@modern-js/utils/lodash");
|
|
63189
63189
|
function validateSchema(schema) {
|
|
63190
63190
|
const { type, properties } = schema;
|
|
@@ -63276,7 +63276,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
63276
63276
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
63277
63277
|
}
|
|
63278
63278
|
|
|
63279
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63279
|
+
// ../../../../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
|
|
63280
63280
|
var compileRule = (rule, scope) => {
|
|
63281
63281
|
const state = Schema.compile(rule, {
|
|
63282
63282
|
$self: {},
|
|
@@ -63380,7 +63380,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
|
63380
63380
|
return answers;
|
|
63381
63381
|
}
|
|
63382
63382
|
|
|
63383
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63383
|
+
// ../../../../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
|
|
63384
63384
|
var CLIReader = class {
|
|
63385
63385
|
getAnswers() {
|
|
63386
63386
|
return this.answers;
|
|
@@ -63411,7 +63411,7 @@ var CLIReader = class {
|
|
|
63411
63411
|
}
|
|
63412
63412
|
};
|
|
63413
63413
|
|
|
63414
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63414
|
+
// ../../../../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
|
|
63415
63415
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
63416
63416
|
|
|
63417
63417
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -63477,7 +63477,7 @@ var I18n2 = class {
|
|
|
63477
63477
|
}
|
|
63478
63478
|
};
|
|
63479
63479
|
|
|
63480
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63480
|
+
// ../../../../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
|
|
63481
63481
|
var ZH_LOCALE2 = {
|
|
63482
63482
|
environment: {
|
|
63483
63483
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -63504,7 +63504,7 @@ var ZH_LOCALE2 = {
|
|
|
63504
63504
|
}
|
|
63505
63505
|
};
|
|
63506
63506
|
|
|
63507
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63507
|
+
// ../../../../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
|
|
63508
63508
|
var EN_LOCALE2 = {
|
|
63509
63509
|
environment: {
|
|
63510
63510
|
node_version: "please upgrade node to lts version",
|
|
@@ -63531,14 +63531,14 @@ var EN_LOCALE2 = {
|
|
|
63531
63531
|
}
|
|
63532
63532
|
};
|
|
63533
63533
|
|
|
63534
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63534
|
+
// ../../../../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
|
|
63535
63535
|
var i18n2 = new I18n2();
|
|
63536
63536
|
var localeKeys2 = i18n2.init("zh", {
|
|
63537
63537
|
zh: ZH_LOCALE2,
|
|
63538
63538
|
en: EN_LOCALE2
|
|
63539
63539
|
});
|
|
63540
63540
|
|
|
63541
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63541
|
+
// ../../../../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
|
|
63542
63542
|
var import_lodash6 = require("@modern-js/utils/lodash");
|
|
63543
63543
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
63544
63544
|
for (const question of questions) {
|
|
@@ -63566,7 +63566,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
63566
63566
|
return questions;
|
|
63567
63567
|
}
|
|
63568
63568
|
|
|
63569
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63569
|
+
// ../../../../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
|
|
63570
63570
|
var import_path5 = __toESM(require("path"));
|
|
63571
63571
|
var import_utils16 = require("@modern-js/utils");
|
|
63572
63572
|
var NODE_MAJOR_VERSION_MAP = {
|
|
@@ -63614,7 +63614,7 @@ async function checkUseNvm(cwd, logger2) {
|
|
|
63614
63614
|
}
|
|
63615
63615
|
}
|
|
63616
63616
|
|
|
63617
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.
|
|
63617
|
+
// ../../../../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
|
|
63618
63618
|
var AppAPI = class {
|
|
63619
63619
|
async checkEnvironment(nodeVersion) {
|
|
63620
63620
|
if (import_utils17.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
|
"types": "./src/index.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"/dist/index.js"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@modern-js/utils": "2.
|
|
27
|
+
"@modern-js/utils": "2.44.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@modern-js/codesmith": "2.3.2",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@types/node": "^14",
|
|
35
35
|
"jest": "^29",
|
|
36
36
|
"typescript": "^5",
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@modern-js/generator
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@scripts/
|
|
37
|
+
"@modern-js/generator-utils": "3.3.5",
|
|
38
|
+
"@modern-js/dependence-generator": "3.3.5",
|
|
39
|
+
"@scripts/build": "2.44.0",
|
|
40
|
+
"@modern-js/generator-common": "3.3.5",
|
|
41
|
+
"@scripts/jest-config": "2.44.0"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"publishConfig": {
|