Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@venncity/nested-config

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@venncity/nested-config - npm Package Compare versions

Comparing version 3.1.19 to 3.1.20-jest-memory-fixes2.39

6

package.json
{
"name": "@venncity/nested-config",
"version": "3.1.19",
"version": "3.1.20-jest-memory-fixes2.39+bbecdffca",
"author": "Venn Engineering",

@@ -32,3 +32,3 @@ "main": "src/nestedConfig.js",

"dependencies": {
"@venncity/package-info": "^1.1.63",
"@venncity/package-info": "^1.1.64-jest-memory-fixes2.39+bbecdffca",
"config": "^3.1.0",

@@ -53,3 +53,3 @@ "lodash": "^4.17.11",

},
"gitHead": "a2b3814145dc03f83e6368cedf6cc8724e19b1fe"
"gitHead": "bbecdffca3e791988956fa8e4ab0992cc9f9d288"
}

@@ -9,3 +9,4 @@ const cls = require('cls-hooked');

}
const requestNamespace = cls.getNamespace(config.get('clsNamespace.request'));
const jestWorkerId = process.env.JEST_WORKER_ID || '';
const requestNamespace = cls.getNamespace(config.get('clsNamespace.request') + jestWorkerId);
return requestNamespace && requestNamespace.get(key);

@@ -15,3 +16,4 @@ }

function setReqV(key, value) {
const requestNamespace = cls.getNamespace(config.get('clsNamespace.request'));
const jestWorkerId = process.env.JEST_WORKER_ID || '';
const requestNamespace = cls.getNamespace(config.get('clsNamespace.request') + jestWorkerId);
if (requestNamespace) {

@@ -25,3 +27,4 @@ requestNamespace.set(key, value);

function isInRequestContext() {
const requestNamespace = cls.getNamespace(config.get('clsNamespace.request'));
const jestWorkerId = process.env.JEST_WORKER_ID || '';
const requestNamespace = cls.getNamespace(config.get('clsNamespace.request') + jestWorkerId);
return requestNamespace && requestNamespace.active;

@@ -28,0 +31,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc