@compas/server
Advanced tools
Comparing version 0.0.165 to 0.0.166
{ | ||
"name": "@compas/server", | ||
"version": "0.0.165", | ||
"version": "0.0.166", | ||
"description": "Koa server and common middleware", | ||
@@ -18,3 +18,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@compas/stdlib": "0.0.165", | ||
"@compas/stdlib": "0.0.166", | ||
"@types/formidable": "1.2.4", | ||
@@ -21,0 +21,0 @@ "@types/koa": "2.13.4", |
@@ -34,3 +34,3 @@ import { environment, isStaging } from "@compas/stdlib"; | ||
credentials: true, | ||
exposeHeaders: ["x-request-id"], | ||
exposeHeaders: [], | ||
}; | ||
@@ -37,0 +37,0 @@ |
@@ -5,5 +5,5 @@ import { Transform } from "stream"; | ||
eventStop, | ||
isNil, | ||
newEvent, | ||
newLogger, | ||
isNil, | ||
uuid, | ||
@@ -52,13 +52,6 @@ } from "@compas/stdlib"; | ||
const startTime = process.hrtime.bigint(); | ||
let requestId = ctx.get("x-request-id"); | ||
if (isNil(requestId) || requestId.length === 0) { | ||
requestId = uuid(); | ||
} | ||
ctx.set("x-request-id", requestId); | ||
ctx.log = newLogger({ | ||
ctx: { | ||
type: "http", | ||
requestId, | ||
requestId: uuid(), | ||
}, | ||
@@ -65,0 +58,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48152
1238
+ Added@compas/stdlib@0.0.166(transitive)
+ Added@types/node@16.10.2(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
- Removed@compas/stdlib@0.0.165(transitive)
- Removed@types/node@16.10.1(transitive)
- Removedgopd@1.1.0(transitive)
- Removedhas-proto@1.1.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
Updated@compas/stdlib@0.0.166