You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

express-http-context

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-http-context - npm Package Compare versions

Comparing version

to
2.0.0-rc.2

14

index.d.ts

@@ -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",