callstackjs
Advanced tools
Comparing version 0.5.0 to 1.0.0
@@ -217,7 +217,24 @@ /**! | ||
if (callStack.disabled) { | ||
return fn; | ||
return function callStackDisabledWrapper() { | ||
return fn.apply(ctx, arguments); | ||
}; | ||
} | ||
return function callStackWrapper() { | ||
if (!opts.uniq || _ifNotInStack(stack.calls, fn, arguments, opts.uniq)) { | ||
var length = arguments.length | ||
var args = new Array(length); | ||
if (length > 0) { | ||
if (length <= 2) { | ||
args[0] = arguments[0]; | ||
(length === 2) && (args[1] = arguments[1]); | ||
} else { | ||
for (var i = 0; i < length; i++) { | ||
args[i] = arguments[i]; | ||
} | ||
} | ||
} | ||
if (!opts.uniq || _ifNotInStack(stack.calls, fn, args, opts.uniq)) { | ||
var calls = stack.calls; | ||
@@ -229,3 +246,3 @@ | ||
ctx: ctx, | ||
args: arguments, | ||
args: args, | ||
weight: opts.weight | 0 | ||
@@ -432,4 +449,4 @@ }); | ||
// Export | ||
callStack.version = '0.5.0'; | ||
callStack.version = '1.0.0-rc'; | ||
return callStack; | ||
}); |
{ | ||
"name": "callstackjs", | ||
"exportName": "callStack", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
@@ -6,0 +6,0 @@ "grunt": "~0.4.5", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
607
1
17306
7