mas-server 2.0.55 → 2.0.56
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/beforebuild.js +2 -1
- package/dist/apiDoc/assets/empty-b57cf97c.js +1 -0
- package/dist/apiDoc/assets/index-7aebccaa.js +1427 -0
- package/dist/apiDoc/assets/index-a3168eed.css +6 -0
- package/dist/apiDoc/assets/jsoneditor-icons-45c98bf0.svg +749 -0
- package/dist/apiDoc/favicon.ico +0 -0
- package/dist/apiDoc/index.html +15 -0
- package/package.json +1 -1
- package/dist/utils/getLog.js +0 -18
|
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-7aebccaa.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="./assets/index-a3168eed.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
package/package.json
CHANGED
package/dist/utils/getLog.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const fs_1 = __importDefault(require("fs"));
|
|
7
|
-
const state_1 = require("../state");
|
|
8
|
-
const moment_1 = __importDefault(require("moment"));
|
|
9
|
-
exports.default = (req, res, next) => {
|
|
10
|
-
const { config } = state_1.state;
|
|
11
|
-
const date = (0, moment_1.default)().format("YYYY-MM-DD HH:mm:ss");
|
|
12
|
-
const data = `${date} ${req.method} ${req.ipInfo.ip} ${req.url} ${req.body ? JSON.stringify(req.body) : ""}\n`;
|
|
13
|
-
fs_1.default.appendFileSync(state_1.state.DIRNAME + `/logs/${(0, moment_1.default)().format("YYYY-MM-DD")}.log`, data);
|
|
14
|
-
if (config.logs.debug) {
|
|
15
|
-
console.info(data);
|
|
16
|
-
}
|
|
17
|
-
next();
|
|
18
|
-
};
|