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

coinbase

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinbase - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

13

lib/errorHandler.js

@@ -43,6 +43,11 @@ "use strict";

response.statusCode !== 204) {
var errorBody = _parseError(JSON.parse(response.body));
var error = createError(response.statusCode,
errorBody.message,
{name: _convertErrorName(errorBody.id)});
var error;
try {
var errorBody = _parseError(JSON.parse(response.body));
error = createError(response.statusCode,
errorBody.message,
{name: _convertErrorName(errorBody.id)});
} catch (ex) {
error = createError(response.statusCode, response.body);
}
callback(error, null);

@@ -49,0 +54,0 @@ return true;

{
"name": "coinbase",
"version": "2.0.4",
"version": "2.0.5",
"author": "Coinbase",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/coinbase/coinbase-node/issues",

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