debug
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -106,3 +106,7 @@ | ||
try { | ||
localStorage.debug = namespaces; | ||
if (null == namespaces) { | ||
localStorage.removeItem('debug'); | ||
} else { | ||
localStorage.debug = namespaces; | ||
} | ||
} catch(e) {} | ||
@@ -109,0 +113,0 @@ } |
@@ -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 @@ ================== |
10
node.js
@@ -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 <tj@vision-media.ca> | ||
Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca> | ||
@@ -107,0 +112,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18628
376
128
0
4