mas-server 2.0.57 → 2.0.58
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/{src/apiDoc/assets/empty-b57cf97c.js → dist/apiDoc/assets/empty-cf406033.js} +1 -1
- package/{src/apiDoc/assets/index-a3168eed.css → dist/apiDoc/assets/index-cfd53149.css} +2 -2
- package/{src/apiDoc/assets/index-7aebccaa.js → dist/apiDoc/assets/index-e07831eb.js} +68 -68
- package/dist/apiDoc/index.html +5 -6
- package/dist/index.js +4 -3
- package/package.json +1 -1
- package/src/apiDoc/assets/empty-cf406033.js +1 -0
- package/src/apiDoc/assets/index-cfd53149.css +6 -0
- package/src/apiDoc/assets/index-e07831eb.js +1427 -0
- package/src/apiDoc/index.html +5 -6
- package/src/index.ts +2 -1
- package/test/config/docNav.ts +4 -0
- package/test/src/api/example/ArrValid.ts +1 -0
package/dist/apiDoc/index.html
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<meta charset="UTF-8"
|
|
5
|
-
<link rel="icon" href="./favicon.ico"
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" href="./favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Vite App</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
-
<link rel="stylesheet" href="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-e07831eb.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="./assets/index-cfd53149.css" />
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="app"></div>
|
|
13
|
-
|
|
14
13
|
</body>
|
|
15
14
|
</html>
|
package/dist/index.js
CHANGED
|
@@ -43,18 +43,19 @@ const logs_1 = __importDefault(require("./utils/logs"));
|
|
|
43
43
|
const apiLimit_1 = __importDefault(require("./utils/apiLimit"));
|
|
44
44
|
// =================================================================
|
|
45
45
|
function getApp(DIRNAME, beforeMounted) {
|
|
46
|
-
var _a;
|
|
46
|
+
var _a, _b;
|
|
47
47
|
// 路径和配置放入state
|
|
48
48
|
state_1.state.DIRNAME = DIRNAME;
|
|
49
49
|
const config = require(path_1.default.join(DIRNAME, "/config/config.ts")).default;
|
|
50
50
|
// 获取路由信息
|
|
51
51
|
(0, getRouterInfo_1.default)(path_1.default.join(state_1.state.DIRNAME, "src/api"), path_1.default.join(state_1.state.DIRNAME, "config/defaultApiConfig.ts"));
|
|
52
52
|
state_1.state.config = config;
|
|
53
|
-
state_1.state.apiCN =
|
|
53
|
+
state_1.state.apiCN =
|
|
54
|
+
((_a = require(path_1.default.join(state_1.state.DIRNAME, "config/docNav.ts"))) === null || _a === void 0 ? void 0 : _a.default) || {};
|
|
54
55
|
// new express
|
|
55
56
|
const app = (0, express_1.default)();
|
|
56
57
|
// ip限制
|
|
57
|
-
if ((
|
|
58
|
+
if ((_b = config.apiLimit) === null || _b === void 0 ? void 0 : _b.open) {
|
|
58
59
|
(0, apiLimit_1.default)(app, config.apiLimit || {});
|
|
59
60
|
}
|
|
60
61
|
// 是否允许跨域
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./index-e07831eb.js";const r={};function t(c,n){return null}const o=e(r,[["render",t]]);export{o as default};
|