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

authy

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authy - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

32

index.js

@@ -33,6 +33,10 @@ var request = require('request');

}, function (err, res, body) {
if (res.statusCode === 200) {
cb(null, toJSON(body));
if (!err) {
if (res.statusCode === 200) {
cb(null, toJSON(body));
} else {
cb(JSON.parse(toJSON(body)));
}
} else {
cb(JSON.parse(toJSON(body)));
throw new Error(err);
}

@@ -56,7 +60,11 @@ });

}, function (err, res, body) {
if (res.statusCode === 200) {
cb(null, toJSON(body));
if (!err) {
if (res.statusCode === 200) {
cb(null, toJSON(body));
} else {
cb(toJSON(body));
}
} else {
cb(toJSON(body));
}
throw new Error(err);
}
});

@@ -79,6 +87,10 @@ };

}, function (err, res, body) {
if (res.statusCode === 200) {
cb(null, toJSON(body));
if (!err) {
if (res.statusCode === 200) {
cb(null, toJSON(body));
} else {
cb(toJSON(body));
}
} else {
cb(toJSON(body));
throw new Error(err);
}

@@ -85,0 +97,0 @@ });

{
"name": "authy",
"version": "0.0.2",
"version": "0.0.3",
"description": "Authy.com API lib for node.js",

@@ -10,3 +10,3 @@ "main": "index.js",

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "nodeunit tests/tests.js"
},

@@ -13,0 +13,0 @@ "repository": {

node-authy
==========
Authy API Client for node.js
[Authy](https://authy.com/) API Client for node.js

@@ -6,0 +6,0 @@ Usage

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