Comparing version 0.7.3 to 0.7.4
@@ -8,2 +8,3 @@ var Q = require('q'); | ||
var normalizePath; | ||
var debugInited = false; | ||
@@ -264,6 +265,9 @@ | ||
// the require line, but after that point we lose access to `.enable()`. | ||
if (shouldDebug) { | ||
debug.enable('*'); | ||
if (!debugInited) { | ||
if (shouldDebug) { | ||
debug.enable('*'); | ||
} | ||
debug = debug('helper'); | ||
debugInited = true; | ||
} | ||
debug = debug('helper'); | ||
@@ -270,0 +274,0 @@ // TODO: I bet we can simply all this nonsense with a chdir() |
@@ -11,2 +11,3 @@ var Q = require('q'); | ||
var helper; | ||
var debugInited = false; | ||
@@ -29,6 +30,9 @@ | ||
if (this.options.debug) { | ||
debug.enable('*'); | ||
if (!debugInited) { | ||
if (this.options.debug) { | ||
debug.enable('*'); | ||
} | ||
debug = debug('cleaver'); | ||
debugInited = true; | ||
} | ||
debug = debug('cleaver'); | ||
@@ -35,0 +39,0 @@ /** |
{ | ||
"name": "cleaver", | ||
"preferGlobal": true, | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"author": "Jordan Scales <scalesjordan@gmail.com>", | ||
@@ -6,0 +6,0 @@ "description": "30-second slideshows for hackers", |
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
47670
1015