mas-server 2.0.57 → 2.0.59

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.
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" href="./favicon.ico">
6
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-2d9f5a8a.js"></script>
9
+ <link rel="stylesheet" href="./assets/index-b04b459f.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
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.59",
4
4
  "description": "一款基于express面向中小型项目的后端框架",
5
5
  "main": "dist/index.js",
6
6
  "typings": "src/index.ts",
@@ -13,8 +13,8 @@
13
13
  "createApis": "npx ts-node ./test/scripts/createApis.ts",
14
14
  "init": "npx nodemon ./test/scripts/beforeCreated.ts -end",
15
15
  "gsft": "npx nodemon ./test/scripts/getSqlFormType.ts",
16
- "build": "tsc --project ./tsconfig-build.json",
17
- "sync": "npm run build && node ./beforebuild.js && npm publish && cnpm sync mas-server && explorer \"https://npmmirror.com/package/mas-server\""
16
+ "build": "node ./beforebuild.js && tsc --project ./tsconfig-build.json",
17
+ "sync": "npm run build && npm publish && cnpm sync mas-server && explorer \"https://npmmirror.com/package/mas-server\""
18
18
  },
19
19
  "keywords": [],
20
20
  "author": "tingxi8087",
@@ -1 +1 @@
1
- import{_ as e}from"./index-7aebccaa.js";const r={};function t(c,n){return null}const o=e(r,[["render",t]]);export{o as default};
1
+ import{_ as e}from"./index-2d9f5a8a.js";const r={};function t(c,n){return null}const o=e(r,[["render",t]]);export{o as default};