Comparing version 2.2.1 to 3.0.0
@@ -37,15 +37,13 @@ 'use strict'; | ||
if (index >= 0) { | ||
(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]; | ||
} | ||
(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 { | ||
@@ -52,0 +50,0 @@ // no callback at all. Wow.. |
@@ -11,3 +11,3 @@ 'use strict'; | ||
Object.keys(_sync).forEach(function (key) { | ||
if (key === "default") return; | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
@@ -24,3 +24,3 @@ enumerable: true, | ||
Object.keys(_promise).forEach(function (key) { | ||
if (key === "default") return; | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
@@ -37,3 +37,3 @@ enumerable: true, | ||
Object.keys(_callback).forEach(function (key) { | ||
if (key === "default") return; | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
@@ -50,3 +50,3 @@ enumerable: true, | ||
Object.keys(_middleware).forEach(function (key) { | ||
if (key === "default") return; | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
@@ -53,0 +53,0 @@ enumerable: true, |
@@ -54,3 +54,3 @@ 'use strict'; | ||
function createDecorator(type) { | ||
var printer = arguments.length <= 1 || arguments[1] === undefined ? defaultPrinter : arguments[1]; | ||
var printer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultPrinter; | ||
@@ -83,3 +83,3 @@ return function decorate(namespace) { | ||
return function (namespace, fn) { | ||
var printer = arguments.length <= 2 || arguments[2] === undefined ? defaultPrinter : arguments[2]; | ||
var printer = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultPrinter; | ||
@@ -86,0 +86,0 @@ // 'cast' namespace to be a debug function |
{ | ||
"name": "derf", | ||
"version": "2.2.1", | ||
"version": "3.0.0", | ||
"description": "A javascript performance debugger.", | ||
@@ -44,3 +44,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"debug": "^2.2.0", | ||
"debug": "^3.1.0", | ||
"lodash": "^4.12.0", | ||
@@ -59,4 +59,2 @@ "mimic-fn": "^1.1.0", | ||
"eslint": "^2.10.2", | ||
"eslint-config-airbnb": "^9.0.1", | ||
"eslint-plugin-import": "^1.8.0", | ||
"glob": "^7.0.3", | ||
@@ -63,0 +61,0 @@ "in-publish": "^2.0.0", |
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
13
0
19338
330
+ Addeddebug@3.2.7(transitive)
+ Addedms@2.1.3(transitive)
- Removeddebug@2.6.9(transitive)
- Removedms@2.0.0(transitive)
Updateddebug@^3.1.0