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
0.3.1

6

index.js

@@ -9,6 +9,4 @@ 'use strict';

middleware: function (req, res, next) {
if (cls.getNamespace(nsid)) {
const ns = cls.createNamespace(nsid);
ns.run(() => next());
}
const ns = cls.getNamespace(nsid) || cls.createNamespace(nsid);
ns.run(() => next());
},

@@ -15,0 +13,0 @@ get: function (key) {

{
"name": "express-http-context",
"version": "0.3.0",
"version": "0.3.1",
"description": "Get and set request-scoped context anywhere",

@@ -5,0 +5,0 @@ "main": "index.js",