mm_os 1.7.7 → 1.7.9

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.
@@ -10,6 +10,9 @@ module.exports = function(server, config) {
10
10
  var body = "";
11
11
  if (ctx.request.body) {
12
12
  body = JSON.stringify(ctx.request.body);
13
+ if (body.length > 1024) {
14
+ body = body.substring(0, 1024) + "..."
15
+ }
13
16
  }
14
17
  $.log.http(`${ctx.method} ${url} ${body}`);
15
18
  await next();
@@ -3,5 +3,7 @@
3
3
  "title": "web请求日志",
4
4
  "description": "用于记录http请求",
5
5
  "version": "1.0",
6
+ "type": "web",
7
+ "process_type": "common_before",
6
8
  "sort": 13
7
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  "koa-websocket": "^7.0.0",
37
37
  "mm_check": "^1.4.4",
38
38
  "mm_excel": "^1.1.1",
39
- "mm_expand": "^1.6.6",
39
+ "mm_expand": "^1.6.7",
40
40
  "mm_html": "^1.1.1",
41
41
  "mm_koa_proxy": "^1.0.0",
42
42
  "mm_logs": "^1.1.2",