express-http-context
Advanced tools
Comparing version
@@ -1,9 +0,6 @@ | ||
import { Request, Response, NextFunction } from "express"; | ||
import { Namespace } from 'cls-hooked'; | ||
/** Express.js middleware that is responsible for initializing the context for each request. */ | ||
export declare function middleware( | ||
req: Request, | ||
res: Response, | ||
next: NextFunction | ||
req: any, | ||
res: any, | ||
next: (err?: any) => void | ||
): void; | ||
@@ -20,6 +17,1 @@ | ||
export declare function set(key: string, value: any): void; | ||
/** | ||
* Gets the underlying continuation namespace. | ||
*/ | ||
export declare const ns: Namespace; |
{ | ||
"name": "express-http-context", | ||
"version": "2.0.0-rc.1", | ||
"version": "2.0.0-rc.2", | ||
"description": "Get and set request-scoped context anywhere", | ||
@@ -34,7 +34,3 @@ "main": "index.js", | ||
"funding": "https://github.com/skonves/express-http-context?sponsor=1", | ||
"peerDependencies": { | ||
"@types/express": "^4.16.0" | ||
}, | ||
"devDependencies": { | ||
"@types/express": "^4.16.0", | ||
"express": "^4.21.2", | ||
@@ -41,0 +37,0 @@ "jest": "^29.7.0", |
0
-100%3
-25%6273
-4.39%56
-9.68%