Socket
Socket
Sign inDemoInstall

switchback

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

switchback - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc