switchback
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -149,3 +149,3 @@ /** | ||
if (numIterations > MAX_FORWARDS) { | ||
throw new Error('Default handlers object (' + util.inspect(defaultHandlers) + ') has a cyclic redirect.'); | ||
throw new Error('Switchback: Default handlers object (' + util.inspect(defaultHandlers) + ') has a cyclic redirect.'); | ||
} | ||
@@ -152,0 +152,0 @@ |
@@ -40,3 +40,3 @@ /** | ||
if (!args[0]) { | ||
args[0] = new Error(); | ||
args[0] = new Error('An error occurred. The error exit was triggered on a switchback that is being handled with a callback function in userland. And since no truthy argument was provided, switchback created this anoymous error.'); | ||
} | ||
@@ -43,0 +43,0 @@ _originalCallbackFn.apply(callbackContext || this, args); |
{ | ||
"name": "switchback", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Normalize callback fns to switchbacks and vice versa", | ||
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
30672
1