fast-vue-multi-pages-vite 1.2.7 → 1.2.8
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/cli/bin/index.mjs +1 -0
- package/dist/index.js +3 -1
- package/package.json +2 -2
- package/vite/index.js +8 -1
package/cli/bin/index.mjs
CHANGED
|
@@ -120,6 +120,7 @@ export const post = (relativeUrl, params, requestConfig,callback) => {
|
|
|
120
120
|
if (apiItem.summary !== apiItem.description) {
|
|
121
121
|
realDesc.push(apiItem.description)
|
|
122
122
|
}
|
|
123
|
+
realDesc.push(apiItem.url)
|
|
123
124
|
if (curr_js_content.includes(apiItem.method)) {
|
|
124
125
|
continue
|
|
125
126
|
}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import _ from "lodash";
|
|
|
2
2
|
import crypto from "crypto-js";
|
|
3
3
|
import axios from "axios";
|
|
4
4
|
import { clear, del, get, keys, set } from "idb-keyval";
|
|
5
|
+
import CryptoJSMD5 from "crypto-js/md5";
|
|
5
6
|
import * as uuid from "uuid";
|
|
6
7
|
import store from "store2";
|
|
7
8
|
import cookies from "js-cookie";
|
|
@@ -377,7 +378,7 @@ var FastVueMultiUUID = class FastVueMultiUUID {
|
|
|
377
378
|
* @param prefix 唯一标识的前缀
|
|
378
379
|
*/
|
|
379
380
|
static buildOnlyCode(prefix) {
|
|
380
|
-
return prefix +
|
|
381
|
+
return prefix + CryptoJSMD5(this.buildUUID_V4()).toString();
|
|
381
382
|
}
|
|
382
383
|
/**
|
|
383
384
|
* 构建唯一标识符号
|
|
@@ -1306,6 +1307,7 @@ var FastVueMultiFunction = class FastVueMultiFunction {
|
|
|
1306
1307
|
finally_call();
|
|
1307
1308
|
finally_call.called = true;
|
|
1308
1309
|
}
|
|
1310
|
+
FastVueMultiFunction._FUNCTION_FINALLY_QUEUES[code] = void 0;
|
|
1309
1311
|
FastVueMultiFunction._FUNCTION_QUEUES[code] = [];
|
|
1310
1312
|
}
|
|
1311
1313
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fast-vue-multi-pages-vite",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"author": "janesen",
|
|
5
5
|
"description": "Vite-快速搭建VUE项目工具类的基本库,主要用于多个页面独立生成html",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"animejs": "^4.0.2",
|
|
24
|
-
"axios": "^1.
|
|
24
|
+
"axios": "^1.15.2",
|
|
25
25
|
"axios-retry": "^4.5.0",
|
|
26
26
|
"cac": "^6.7.14",
|
|
27
27
|
"cheerio": "^1.0.0",
|
package/vite/index.js
CHANGED
|
@@ -858,7 +858,14 @@ var FastViteMultiTool = class FastViteMultiTool {
|
|
|
858
858
|
options = FastViteMultiPagesOption.merge(options, new FastViteMultiPagesOption());
|
|
859
859
|
if (options.httpFinalParams) this.setGlobalConfig("httpFinalParams", options.httpFinalParams);
|
|
860
860
|
if (options.httpFinalHeaders) this.setGlobalConfig("httpFinalHeaders", options.httpFinalHeaders);
|
|
861
|
+
let date = /* @__PURE__ */ new Date();
|
|
862
|
+
const year = date.getFullYear();
|
|
863
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
864
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
865
|
+
const hours = String(date.getHours()).padStart(2, "0");
|
|
866
|
+
const minutes = String(date.getMinutes()).padStart(2, "0");
|
|
861
867
|
const pages = FastViteBuildPages.getBuildPages(options.projectRootDir, command, options);
|
|
868
|
+
this.setGlobalConfig("buildTime", "Build" + year + month + day + hours + minutes);
|
|
862
869
|
this.setGlobalConfig("projectTitle", options.projectTitle);
|
|
863
870
|
this.setGlobalConfig("projectModel", process.env.NODE_ENV);
|
|
864
871
|
this.setGlobalConfig("projectVersion", process.env.npm_package_version);
|
|
@@ -939,7 +946,7 @@ var FastViteMultiTool = class FastViteMultiTool {
|
|
|
939
946
|
else FastViteMultiTool._ghostFile.push(parent_dir);
|
|
940
947
|
rollupOptions.input[pagesKey] = file;
|
|
941
948
|
}
|
|
942
|
-
if (!FastViteMultiTool.isServiceDebug() && options.vConsole !== "true") viteConfig.esbuild = { drop: ["console", "debugger"] };
|
|
949
|
+
if (!FastViteMultiTool.isServiceDebug() && options.vConsole.toString() !== "true") viteConfig.esbuild = { drop: ["console", "debugger"] };
|
|
943
950
|
}
|
|
944
951
|
if (options.autoCreatePageUrlFileDir) FastViteBuildPages.createPageUrlJsFile(pages, options);
|
|
945
952
|
build.rollupOptions = rollupOptions;
|