Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

authbox

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authbox - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

13

lib/Client.js

@@ -92,3 +92,14 @@ 'use strict';

}
cb(JSON.parse(body));
var parsedResponse;
try {
parsedResponse = JSON.parse(body);
invariant(typeof parsedResponse.type === 'string', 'verdict did not include a type key');
} catch (e) {
// fail open
cb({type: 'ALLOW', info: 'Bad response from server: ' + e.toString()});
return;
}
cb(parsedResponse);
});

@@ -95,0 +106,0 @@ });

2

package.json
{
"name": "authbox",
"version": "0.2.0",
"version": "0.3.0",
"description": "",

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