@lbu/server
Advanced tools
Comparing version 0.0.79 to 0.0.80
{ | ||
"name": "@lbu/server", | ||
"version": "0.0.79", | ||
"version": "0.0.80", | ||
"description": "Koa server and common middleware", | ||
@@ -19,4 +19,4 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@lbu/insight": "0.0.79", | ||
"@lbu/stdlib": "0.0.79", | ||
"@lbu/insight": "0.0.80", | ||
"@lbu/stdlib": "0.0.80", | ||
"formidable": "2.0.0-canary.20200504.1", | ||
@@ -49,3 +49,3 @@ "keygrip": "1.1.0", | ||
}, | ||
"gitHead": "c8f13508e33887b1c9ac6586c4cc1aa906c0a121" | ||
"gitHead": "5cf8ecaee5bb425f50daf095ba8860436f3d69a8" | ||
} |
import { Transform } from "stream"; | ||
import { bindLoggerContext, newLogger } from "@lbu/insight"; | ||
import { | ||
bindLoggerContext, | ||
newLogger, | ||
newEvent, | ||
eventStart, | ||
eventStop, | ||
} from "@lbu/insight"; | ||
import { isNil, uuid } from "@lbu/stdlib"; | ||
@@ -24,2 +30,4 @@ | ||
}); | ||
ctx.event = newEvent(ctx.log); | ||
eventStart(ctx.event, `${ctx.method}.${ctx.path}`); | ||
@@ -83,2 +91,4 @@ await next(); | ||
}); | ||
eventStop(ctx.event); | ||
} | ||
@@ -100,5 +110,2 @@ | ||
/** | ||
* | ||
*/ | ||
function done() { | ||
@@ -105,0 +112,0 @@ ctx.body.removeListener("finish", onFinish); |
56082
1787
+ Added@lbu/insight@0.0.80(transitive)
+ Added@lbu/stdlib@0.0.80(transitive)
+ Added@types/node@14.11.4(transitive)
- Removed@lbu/insight@0.0.79(transitive)
- Removed@lbu/stdlib@0.0.79(transitive)
- Removed@types/node@14.11.2(transitive)
Updated@lbu/insight@0.0.80
Updated@lbu/stdlib@0.0.80