@modern-js/router-v5-generator 3.7.30 → 3.7.32
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 +30 -29
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -63497,16 +63497,16 @@ __export(src_exports, {
|
|
|
63497
63497
|
module.exports = __toCommonJS(src_exports);
|
|
63498
63498
|
var import_path6 = __toESM(require("path"));
|
|
63499
63499
|
|
|
63500
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63500
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
|
|
63501
63501
|
var import_chalk = __toESM(require_source());
|
|
63502
63502
|
|
|
63503
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63503
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
|
|
63504
63504
|
var import_fs_extra = __toESM(require_lib());
|
|
63505
63505
|
|
|
63506
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
63506
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
63507
63507
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
63508
63508
|
|
|
63509
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
63509
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
63510
63510
|
function fsExists(path6) {
|
|
63511
63511
|
return __async(this, null, function* () {
|
|
63512
63512
|
try {
|
|
@@ -63518,19 +63518,19 @@ function fsExists(path6) {
|
|
|
63518
63518
|
});
|
|
63519
63519
|
}
|
|
63520
63520
|
|
|
63521
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63521
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
|
|
63522
63522
|
var import_execa = __toESM(require_execa());
|
|
63523
63523
|
|
|
63524
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63524
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
|
63525
63525
|
var import_semver = __toESM(require_semver2());
|
|
63526
63526
|
|
|
63527
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.
|
|
63527
|
+
// ../../../../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
|
|
63528
63528
|
var import_ejs = __toESM(require_ejs());
|
|
63529
63529
|
function renderString(template, fullData) {
|
|
63530
63530
|
return import_ejs.default.render(template, fullData) || "";
|
|
63531
63531
|
}
|
|
63532
63532
|
|
|
63533
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.
|
|
63533
|
+
// ../../../../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
|
|
63534
63534
|
var EjsAPI = class {
|
|
63535
63535
|
renderTemplate(_0, _1) {
|
|
63536
63536
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
|
@@ -63565,7 +63565,7 @@ var EjsAPI = class {
|
|
|
63565
63565
|
}
|
|
63566
63566
|
};
|
|
63567
63567
|
|
|
63568
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.
|
|
63568
|
+
// ../../../../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
|
|
63569
63569
|
var import_path = __toESM(require("path"));
|
|
63570
63570
|
var FsAPI = class {
|
|
63571
63571
|
renderFile(resource, target) {
|
|
@@ -63594,7 +63594,7 @@ var FsAPI = class {
|
|
|
63594
63594
|
}
|
|
63595
63595
|
};
|
|
63596
63596
|
|
|
63597
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.
|
|
63597
|
+
// ../../../../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
|
|
63598
63598
|
function canUseGit() {
|
|
63599
63599
|
return __async(this, null, function* () {
|
|
63600
63600
|
try {
|
|
@@ -63678,7 +63678,7 @@ function gitCommit(cwd, commitMessage) {
|
|
|
63678
63678
|
});
|
|
63679
63679
|
}
|
|
63680
63680
|
|
|
63681
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.
|
|
63681
|
+
// ../../../../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
|
|
63682
63682
|
var GitAPI = class {
|
|
63683
63683
|
isInGitRepo() {
|
|
63684
63684
|
return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
|
|
@@ -63734,7 +63734,7 @@ var GitAPI = class {
|
|
|
63734
63734
|
}
|
|
63735
63735
|
};
|
|
63736
63736
|
|
|
63737
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.
|
|
63737
|
+
// ../../../../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
|
|
63738
63738
|
var import_handlebars = __toESM(require_lib2());
|
|
63739
63739
|
function renderString2(template, fullData, registers) {
|
|
63740
63740
|
const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
|
|
@@ -63744,7 +63744,7 @@ function renderString2(template, fullData, registers) {
|
|
|
63744
63744
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
63745
63745
|
}
|
|
63746
63746
|
|
|
63747
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.
|
|
63747
|
+
// ../../../../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
|
|
63748
63748
|
var HandlebarsAPI = class {
|
|
63749
63749
|
registerHelp(helpers) {
|
|
63750
63750
|
return __async(this, null, function* () {
|
|
@@ -63901,7 +63901,7 @@ function __generator(thisArg, body) {
|
|
|
63901
63901
|
}
|
|
63902
63902
|
}
|
|
63903
63903
|
|
|
63904
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63904
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
|
|
63905
63905
|
var import_execa3 = __toESM(require_execa());
|
|
63906
63906
|
function canUseNvm() {
|
|
63907
63907
|
return _canUseNvm.apply(this, arguments);
|
|
@@ -64122,7 +64122,7 @@ function _canUsePnpm() {
|
|
|
64122
64122
|
return _canUsePnpm.apply(this, arguments);
|
|
64123
64123
|
}
|
|
64124
64124
|
|
|
64125
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.
|
|
64125
|
+
// ../../../../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
|
|
64126
64126
|
function execaWithStreamLog(command, args, options) {
|
|
64127
64127
|
const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
|
|
64128
64128
|
stdin: "inherit",
|
|
@@ -64223,7 +64223,7 @@ function pnpmInstall(_0) {
|
|
|
64223
64223
|
});
|
|
64224
64224
|
}
|
|
64225
64225
|
|
|
64226
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.
|
|
64226
|
+
// ../../../../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
|
|
64227
64227
|
var NpmAPI = class {
|
|
64228
64228
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
64229
64229
|
return npmInstall({
|
|
@@ -64251,7 +64251,7 @@ var NpmAPI = class {
|
|
|
64251
64251
|
}
|
|
64252
64252
|
};
|
|
64253
64253
|
|
|
64254
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
64254
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
|
|
64255
64255
|
var import_lodash = __toESM(require_lodash());
|
|
64256
64256
|
var import_lodash2 = __toESM(require_lodash2());
|
|
64257
64257
|
var import_lodash3 = __toESM(require_lodash3());
|
|
@@ -70018,10 +70018,10 @@ var Schema = (
|
|
|
70018
70018
|
}()
|
|
70019
70019
|
);
|
|
70020
70020
|
|
|
70021
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
70021
|
+
// ../../../../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
|
|
70022
70022
|
var import_inquirer = __toESM(require_inquirer());
|
|
70023
70023
|
|
|
70024
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
70024
|
+
// ../../../../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
|
|
70025
70025
|
function validateSchema(schema) {
|
|
70026
70026
|
const { type, properties } = schema;
|
|
70027
70027
|
if (type !== "object") {
|
|
@@ -70108,7 +70108,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
70108
70108
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
70109
70109
|
}
|
|
70110
70110
|
|
|
70111
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
70111
|
+
// ../../../../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
|
|
70112
70112
|
var compileRule = (rule, scope) => {
|
|
70113
70113
|
const state = Schema.compile(rule, __spreadValues({
|
|
70114
70114
|
$self: {},
|
|
@@ -70208,7 +70208,7 @@ function prompt(_0) {
|
|
|
70208
70208
|
});
|
|
70209
70209
|
}
|
|
70210
70210
|
|
|
70211
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
70211
|
+
// ../../../../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
|
|
70212
70212
|
var CLIReader = class {
|
|
70213
70213
|
getAnswers() {
|
|
70214
70214
|
return this.answers;
|
|
@@ -70236,7 +70236,7 @@ var CLIReader = class {
|
|
|
70236
70236
|
}
|
|
70237
70237
|
};
|
|
70238
70238
|
|
|
70239
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70239
|
+
// ../../../../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
|
|
70240
70240
|
var import_comment_json = __toESM(require_src2());
|
|
70241
70241
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
70242
70242
|
|
|
@@ -70303,7 +70303,7 @@ var I18n = class {
|
|
|
70303
70303
|
}
|
|
70304
70304
|
};
|
|
70305
70305
|
|
|
70306
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70306
|
+
// ../../../../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
|
|
70307
70307
|
var EN_LOCALE = {
|
|
70308
70308
|
environment: {
|
|
70309
70309
|
node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
|
|
@@ -70330,7 +70330,7 @@ var EN_LOCALE = {
|
|
|
70330
70330
|
}
|
|
70331
70331
|
};
|
|
70332
70332
|
|
|
70333
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70333
|
+
// ../../../../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
|
|
70334
70334
|
var ZH_LOCALE = {
|
|
70335
70335
|
environment: {
|
|
70336
70336
|
node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
|
|
@@ -70357,14 +70357,14 @@ var ZH_LOCALE = {
|
|
|
70357
70357
|
}
|
|
70358
70358
|
};
|
|
70359
70359
|
|
|
70360
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70360
|
+
// ../../../../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
|
|
70361
70361
|
var i18n = new I18n();
|
|
70362
70362
|
var localeKeys = i18n.init("zh", {
|
|
70363
70363
|
zh: ZH_LOCALE,
|
|
70364
70364
|
en: EN_LOCALE
|
|
70365
70365
|
});
|
|
70366
70366
|
|
|
70367
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70367
|
+
// ../../../../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
|
|
70368
70368
|
var import_path3 = __toESM(require("path"));
|
|
70369
70369
|
var NODE_MAJOR_VERSION_MAP = {
|
|
70370
70370
|
"lts/*": 18,
|
|
@@ -70375,7 +70375,8 @@ var NODE_MAJOR_VERSION_MAP = {
|
|
|
70375
70375
|
"lts/erbium": 12,
|
|
70376
70376
|
"lts/fermium": 14,
|
|
70377
70377
|
"lts/gallium": 16,
|
|
70378
|
-
"lts/hydrogen": 18
|
|
70378
|
+
"lts/hydrogen": 18,
|
|
70379
|
+
"lts/jod": 22
|
|
70379
70380
|
};
|
|
70380
70381
|
function getNoteVersion() {
|
|
70381
70382
|
return __async(this, null, function* () {
|
|
@@ -70415,7 +70416,7 @@ function checkUseNvm(cwd, logger) {
|
|
|
70415
70416
|
});
|
|
70416
70417
|
}
|
|
70417
70418
|
|
|
70418
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70419
|
+
// ../../../../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
|
|
70419
70420
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
70420
70421
|
for (const question of questions) {
|
|
70421
70422
|
question.default = initValue[question.name] || question.default;
|
|
@@ -70442,7 +70443,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
70442
70443
|
return questions;
|
|
70443
70444
|
}
|
|
70444
70445
|
|
|
70445
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70446
|
+
// ../../../../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
|
|
70446
70447
|
var AppAPI = class {
|
|
70447
70448
|
checkEnvironment(nodeVersion) {
|
|
70448
70449
|
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.
|
|
18
|
+
"version": "3.7.32",
|
|
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.
|
|
27
|
-
"@modern-js/codesmith-api-app": "2.6.
|
|
28
|
-
"@modern-js/codesmith-utils": "2.6.
|
|
26
|
+
"@modern-js/codesmith": "2.6.8",
|
|
27
|
+
"@modern-js/codesmith-api-app": "2.6.8",
|
|
28
|
+
"@modern-js/codesmith-utils": "2.6.8",
|
|
29
29
|
"@types/jest": "^29",
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/dependence-generator": "3.7.
|
|
34
|
-
"@modern-js/generator-common": "3.7.
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/
|
|
33
|
+
"@modern-js/dependence-generator": "3.7.32",
|
|
34
|
+
"@modern-js/generator-common": "3.7.32",
|
|
35
|
+
"@modern-js/plugin-i18n": "2.67.7",
|
|
36
|
+
"@modern-js/generator-utils": "3.7.32",
|
|
37
37
|
"@scripts/build": "2.66.0",
|
|
38
38
|
"@scripts/jest-config": "2.66.0"
|
|
39
39
|
},
|