bitpay-nodejs
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -19,7 +19,5 @@ const request = require('request') | ||
options.url = api+"/invoice"; | ||
options.form = { | ||
...opts | ||
}; | ||
options.form = opts | ||
request(options, function(err, resp, body) { | ||
result = JSON.parse(body); | ||
let result = JSON.parse(body); | ||
if (result.error) { | ||
@@ -40,3 +38,3 @@ fn(result.error, null); | ||
if(err) console.log(err); | ||
result = JSON.parse(body); | ||
let result = JSON.parse(body); | ||
if (result.error) { | ||
@@ -57,3 +55,3 @@ fn(result.error, null); | ||
if(err) console.log(err); | ||
result = JSON.parse(body); | ||
let result = JSON.parse(body); | ||
if (result.error) { | ||
@@ -75,3 +73,3 @@ fn(result.error, null); | ||
if(err) console.log(err); | ||
result = JSON.parse(body); | ||
let result = JSON.parse(body); | ||
if (result.error) { | ||
@@ -78,0 +76,0 @@ fn(result.error, null); |
{ | ||
"name": "bitpay-nodejs", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A Node.js library for the Bitpay Bitcoin API", | ||
@@ -5,0 +5,0 @@ "main": "bitpay.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22798
12
161