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

debug

Package Overview
Dependencies
Maintainers
4
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debug - npm Package Compare versions

Comparing version 4.3.1 to 4.3.2

2

package.json
{
"name": "debug",
"version": "4.3.1",
"version": "4.3.2",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -63,2 +63,4 @@

let enableOverride = null;
let namespacesCache;
let enabledCache;

@@ -124,3 +126,13 @@ function debug(...args) {

configurable: false,
get: () => enableOverride === null ? createDebug.enabled(namespace) : enableOverride,
get: () => {
if (enableOverride !== null) {
return enableOverride;
}
if (namespacesCache !== createDebug.namespaces) {
namespacesCache = createDebug.namespaces;
enabledCache = createDebug.enabled(namespace);
}
return enabledCache;
},
set: v => {

@@ -154,2 +166,3 @@ enableOverride = v;

createDebug.save(namespaces);
createDebug.namespaces = namespaces;

@@ -156,0 +169,0 @@ createDebug.names = [];

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