Comparing version 3.0.0 to 3.0.2
@@ -37,13 +37,15 @@ 'use strict'; | ||
if (index >= 0) { | ||
(0, _constants.debug)('wrapping callback at arguments[%s]', index); | ||
var start = process.hrtime(); | ||
var cb = args[index]; | ||
args[index] = function perfWrappedCb() { | ||
for (var _len2 = arguments.length, retArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
retArgs[_key2] = arguments[_key2]; | ||
} | ||
(function () { | ||
(0, _constants.debug)('wrapping callback at arguments[%s]', index); | ||
var start = process.hrtime(); | ||
var cb = args[index]; | ||
args[index] = function perfWrappedCb() { | ||
for (var _len2 = arguments.length, retArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
retArgs[_key2] = arguments[_key2]; | ||
} | ||
print(start, args, retArgs); | ||
return cb.apply(this, retArgs); | ||
}; | ||
print(start, args, retArgs); | ||
return cb.apply(this, retArgs); | ||
}; | ||
})(); | ||
} else { | ||
@@ -50,0 +52,0 @@ // no callback at all. Wow.. |
{ | ||
"name": "derf", | ||
"version": "3.0.0", | ||
"version": "3.0.2", | ||
"description": "A javascript performance debugger.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
20687
380