Socket
Socket
Sign inDemoInstall

debug

Package Overview
Dependencies
1
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

6

browser.js

@@ -106,3 +106,7 @@

try {
localStorage.debug = namespaces;
if (null == namespaces) {
localStorage.removeItem('debug');
} else {
localStorage.debug = namespaces;
}
} catch(e) {}

@@ -109,0 +113,0 @@ }

2

component.json

@@ -5,3 +5,3 @@ {

"description": "small debugging utility",
"version": "1.0.0",
"version": "1.0.1",
"keywords": [

@@ -8,0 +8,0 @@ "debug",

1.0.1 / 2014-06-06
==================
* browser: use `removeItem()` to clear localStorage
* browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
* package: add "contributors" section
* node: fix comment typo
* README: list authors
1.0.0 / 2014-06-04

@@ -3,0 +12,0 @@ ==================

@@ -80,3 +80,3 @@

/**
* Save `namespaces
* Save `namespaces`.
*

@@ -88,3 +88,9 @@ * @param {String} namespaces

function save(namespaces) {
process.env.DEBUG = namespaces;
if (null == namespaces) {
// If you set a process.env field to null or undefined, it gets cast to the
// string 'null' or 'undefined'. Just delete instead.
delete process.env.DEBUG;
} else {
process.env.DEBUG = namespaces;
}
}

@@ -91,0 +97,0 @@

{
"name": "debug",
"version": "1.0.0",
"version": "1.0.1",
"repository": {

@@ -15,2 +15,5 @@ "type": "git",

"author": "TJ Holowaychuk <tj@vision-media.ca>",
"contributors": [
"Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)"
],
"dependencies": {

@@ -17,0 +20,0 @@ "ms": "0.6.2"

@@ -99,2 +99,7 @@ # debug

## Authors
- TJ Holowaychuk
- Nathan Rajlich
## License

@@ -104,3 +109,3 @@

Copyright (c) 2011 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
Copyright (c) 2014 TJ Holowaychuk &lt;tj@vision-media.ca&gt;

@@ -107,0 +112,0 @@ Permission is hereby granted, free of charge, to any person obtaining

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc