New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kraken-api

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kraken-api - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

.npmignore

23

kraken.js

@@ -135,4 +135,3 @@ var request = require('request');

if(error) {
callback.call(self, new Error('Error in server response: ' + JSON.stringify(error)), null);
return;
return callback.call(self, new Error('Error in server response: ' + JSON.stringify(error)), null);
}

@@ -144,15 +143,23 @@

catch(e) {
callback.call(self, new Error('Could not understand response from server: ' + body), null);
return;
return callback.call(self, new Error('Could not understand response from server: ' + body), null);
}
//If any errors occured, Kraken will give back an array with error strings under
//the key "error". We should then propagate back the error message as a proper error.
if(data.error && data.error.length) {
callback.call(self, data.error, null);
var krakenError = null;
data.error.forEach(function(element) {
if (element.charAt(0) === "E") {
krakenError = element.substr(1);
return false;
}
});
if (krakenError) {
return callback.call(self, new Error('Kraken API returned error: ' + krakenError), null);
}
}
else {
callback.call(self, null, data);
return callback.call(self, null, data);
}
}
});
return req;

@@ -159,0 +166,0 @@ }

{
"name": "kraken-api",
"version": "0.1.6",
"version": "0.1.7",
"description": "kraken.com API client library for NodeJS",

@@ -5,0 +5,0 @@ "keywords": [

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