bitagora-booth
Advanced tools
Comparing version 1.0.161 to 1.0.162
12
booth.js
@@ -211,7 +211,11 @@ /** | ||
let result = await postVote(bytes, apis[i]).catch((e) => { | ||
console.log("Response in error from postVote"); | ||
console.log(e); | ||
if (Boolean(e['error']) && Boolean(e['error']['code'])) { | ||
response['code'] = e['error']['code']; | ||
response['message'] = e['error']['message']; | ||
} | ||
try { | ||
let error = JSON.parse(e); | ||
if (Boolean(error['error']) && Boolean(error['error']['code'])) { | ||
response['code'] = error['error']['code']; | ||
response['message'] = error['error']['message']; | ||
} | ||
} catch() {} | ||
return false; | ||
@@ -218,0 +222,0 @@ }); |
{ | ||
"name": "bitagora-booth", | ||
"version": "1.0.161", | ||
"version": "1.0.162", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "author": "Ignasi Ribó, 2018", |
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
77742
2916