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

bitpay-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitpay-nodejs - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

19

lib/client.js

@@ -36,3 +36,7 @@ const request = require('request')

request(options, function(err, resp, body) {
if(err) console.log(err);
if(err) {
console.log(err);
return fn(err, null);
}
let result = JSON.parse(body);

@@ -49,7 +53,11 @@ if (result.error) {

var options = new Object(this.httpOptions);
options.url = api+'/invoiceData/'+invoiceId;
options.url = 'https://bitpay.com/invoiceData/'+invoiceId;
console.log(options.url);
options.method = 'GET';
request(options, function(err, resp, body) {
if(err) console.log(err);
if(err) {
console.log(err);
return fn(err, null);
}
console.log(body)
let result = JSON.parse(body);

@@ -71,3 +79,6 @@ if (result.error) {

request(options, function(err, resp, body) {
if(err) console.log(err);
if(err) {
console.log(err);
return fn(err, null);
}
let result = JSON.parse(body);

@@ -74,0 +85,0 @@ if (result.error) {

{
"name": "bitpay-nodejs",
"version": "0.0.8",
"version": "0.0.9",
"description": "A Node.js library for the Bitpay Bitcoin API",

@@ -5,0 +5,0 @@ "main": "bitpay.js",

Sorry, the diff of this file is not supported yet

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