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.
@@ -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-7aebccaa.js"></script>
9
- <link rel="stylesheet" href="./assets/index-a3168eed.css">
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 ((_a = config.apiLimit) === null || _a === void 0 ? void 0 : _a.open) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mas-server",
3
- "version": "2.0.57",
3
+ "version": "2.0.58",
4
4
  "description": "一款基于express面向中小型项目的后端框架",
5
5
  "main": "dist/index.js",
6
6
  "typings": "src/index.ts",
@@ -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};