Comparing version 1.0.8 to 1.0.9
14
index.js
@@ -8,2 +8,8 @@ var CryptoJS = require('crypto-js') | ||
function status(response) { | ||
if (response.ok) | ||
return response | ||
return response.json().then(res => Promise.reject(res)) | ||
} | ||
var avalon = { | ||
@@ -61,4 +67,6 @@ config: { | ||
} | ||
}).then(res => res.json()).then(function(res) { | ||
}).then(status).then(res => res.json()).then(function(res) { | ||
cb(null, res) | ||
}).catch(function(err) { | ||
cb(err) | ||
}) | ||
@@ -75,2 +83,4 @@ }, | ||
cb(null, res) | ||
}).catch(function(err) { | ||
cb(err) | ||
}) | ||
@@ -87,2 +97,4 @@ }, | ||
cb(null, res) | ||
}).catch(function(err) { | ||
cb(err) | ||
}) | ||
@@ -89,0 +101,0 @@ }, |
{ | ||
"name": "javalon", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "javascript api for the avalon blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.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
19124
438