Comparing version 2.0.1 to 2.0.3
24
index.js
@@ -30,24 +30,2 @@ /* | ||
/** | ||
* Promisify httpreq.doRequest | ||
* | ||
* @param {object} options doRequest options | ||
* | ||
* @return {Promise<object>} | ||
*/ | ||
_httpRequest (options) { | ||
return new Promise ((resolve, reject) => { | ||
doRequest (options, (err, res) => { | ||
if (err) { | ||
reject (err); | ||
return; | ||
} | ||
resolve (res); | ||
}); | ||
}); | ||
} | ||
/** | ||
* Send API request | ||
@@ -76,3 +54,3 @@ * | ||
return this._httpRequest (options) | ||
return doRequest (options) | ||
.then (res => res.body) | ||
@@ -79,0 +57,0 @@ .then (JSON.parse) |
@@ -9,3 +9,3 @@ { | ||
"description": "Bitonic API (unofficial)", | ||
"version": "2.0.1", | ||
"version": "2.0.3", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
@@ -20,3 +20,3 @@ # bitonic | ||
bitonic.buy ({ | ||
bitonic.priceBuy ({ | ||
from: 'eur', | ||
@@ -23,0 +23,0 @@ amount: 5, |
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
8795
121