debug-callback
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -41,7 +41,7 @@ 'use strict'; | ||
var done = function (res) { | ||
var duration = (Date.now() - callbackTimes[key].time) / 1000; | ||
var duration = _.isUndefined(callbackTimes[key]) ? -1 : (Date.now() - callbackTimes[key].time) / 1000; | ||
debug('success (%o): %s\t\t%d seconds\n', res, msg, duration); | ||
}; | ||
var fail = function (err) { | ||
var duration = (Date.now() - callbackTimes[key].time) / 1000; | ||
var duration = _.isUndefined(callbackTimes[key]) ? -1 : (Date.now() - callbackTimes[key].time) / 1000; | ||
debug('failure (%o): %s\t\t%d seconds\n', err, msg, duration); | ||
@@ -69,2 +69,2 @@ }; | ||
}; | ||
}; | ||
}; |
{ | ||
"name": "debug-callback", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Debug output outstanding callbacks, results, errors, and call times.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
3856
62