mas-server 2.0.11 → 2.0.42

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.
Binary file
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
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">
7
+ <title>Vite App</title>
8
+ <script type="module" crossorigin src="./assets/index-b56e6bc6.js"></script>
9
+ <link rel="stylesheet" href="./assets/index-bb16d834.css">
10
+ </head>
11
+ <body>
12
+ <div id="app"></div>
13
+
14
+ </body>
15
+ </html>
package/dist/index.js CHANGED
@@ -104,6 +104,7 @@ function getApp(DIRNAME, beforeMounted) {
104
104
  }
105
105
  // 数据效验
106
106
  app.use(validRouteData_1.default);
107
+ // 使用接口文档
107
108
  if (config.apidoc) {
108
109
  app.use("/apidoc", express_1.default.static(path_1.default.join(__dirname, "/apiDoc")));
109
110
  (0, apiDoc_1.default)(app);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mas-server",
3
- "version": "2.0.11",
3
+ "version": "2.0.42",
4
4
  "description": "一款基于express面向中小型项目的后端框架",
5
5
  "main": "dist/index.js",
6
6
  "typings": "src/index.ts",
@@ -14,7 +14,8 @@
14
14
  "createApis": "npx ts-node ./test/scripts/createApis.ts",
15
15
  "init": "npx nodemon ./test/scripts/beforeCreated.ts -end",
16
16
  "gsft": "npx nodemon ./test/scripts/getSqlFormType.ts",
17
- "build":"tsc"
17
+ "build":"tsc",
18
+ "sync": "tsc && npm publish && cnpm sync cnpmcore"
18
19
  },
19
20
  "keywords": [],
20
21
  "author": "tingxi8087",
package/src/index.ts CHANGED
@@ -78,6 +78,7 @@ export function getApp(
78
78
  }
79
79
  // 数据效验
80
80
  app.use(validRouteData);
81
+ // 使用接口文档
81
82
  if (config.apidoc) {
82
83
  app.use("/apidoc", express.static(path.join(__dirname, "/apiDoc")));
83
84
  apiDoc(app);