Comparing version 2.3.0 to 2.3.1
@@ -145,2 +145,8 @@ | ||
} catch(e) {} | ||
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG | ||
if ('env' in (process || {})) { | ||
r = process.env.DEBUG; | ||
} | ||
return r; | ||
@@ -147,0 +153,0 @@ } |
@@ -0,2 +1,9 @@ | ||
2.3.1 / 2016-11-09 | ||
================== | ||
* Fix: Added electron compatibility (#324, @paulcbetts) | ||
* Improvement: Added performance optimizations (@tootallnate) | ||
* Readme: Corrected PowerShell environment variable example (#252, @gimre) | ||
* Misc: Removed yarn lock file from source control (#321, @fengmk2) | ||
2.3.0 / 2016-11-07 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -5,3 +5,3 @@ { | ||
"description": "small debugging utility", | ||
"version": "2.2.0", | ||
"version": "2.3.1", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "debug", |
11
debug.js
@@ -86,3 +86,6 @@ | ||
var args = Array.prototype.slice.call(arguments); | ||
var args = new Array(arguments.length); | ||
for (var i = 0; i < args.length; i++) { | ||
args[i] = arguments[i]; | ||
} | ||
@@ -114,5 +117,5 @@ args[0] = exports.coerce(args[0]); | ||
if ('function' === typeof exports.formatArgs) { | ||
args = exports.formatArgs.apply(self, args); | ||
} | ||
// apply env-specific formatting | ||
args = exports.formatArgs.apply(self, args); | ||
var logFn = enabled.log || exports.log || console.log.bind(console); | ||
@@ -119,0 +122,0 @@ logFn.apply(self, args); |
@@ -83,8 +83,8 @@ | ||
function formatArgs() { | ||
var args = []; | ||
var len = arguments.length; | ||
var args = new Array(len); | ||
var useColors = this.useColors; | ||
var name = this.namespace; | ||
for (var i = 0; i < len; i++) { | ||
args.push(arguments[i]); | ||
args[i] = arguments[i]; | ||
} | ||
@@ -91,0 +91,0 @@ |
{ | ||
"name": "debug", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"repository": { | ||
@@ -27,3 +27,3 @@ "type": "git", | ||
}, | ||
"main": "./node.js", | ||
"main": "./index.js", | ||
"browser": "./browser.js", | ||
@@ -30,0 +30,0 @@ "component": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
540
1
30743
7