bitagora-booth
Advanced tools
Comparing version 1.0.154 to 1.0.155
@@ -207,3 +207,3 @@ /** | ||
for (var i=0; i<apis.length; i++) { | ||
let result = await postVote(bytes, apis[i]).catch(() => { return undefined; }); | ||
let result = await postVote(bytes, apis[i]).catch(() => { }); | ||
console.log("Result from calling API "+apis[i]); | ||
@@ -210,0 +210,0 @@ response = result; |
@@ -102,4 +102,2 @@ /** | ||
const request = require('request'); | ||
console.log("Requesting from "); | ||
console.log(url); | ||
try { | ||
@@ -209,3 +207,2 @@ request.get({ | ||
} else if (type == 'poll') { | ||
console.log("In poll"); | ||
let data = cbor.decode(Buffer.from(json.data, 'base64')); | ||
@@ -231,3 +228,2 @@ if (!Boolean(data)) throw 'No data'; | ||
} | ||
console.log(ballots); | ||
decryptBallots(ballots, opt.privkey).then((decrypted) => { | ||
@@ -403,3 +399,2 @@ resolve({ 'status': 'FOUND', 'ballots': decrypted }); | ||
for (var i=0; i<ballots.length; i++) { | ||
console.log(ballots[i]); | ||
decVote = decryptBallot(pollPrivkey, ballots[i].ballot, ballots[i].vote); | ||
@@ -406,0 +401,0 @@ if (decVote) { |
{ | ||
"name": "bitagora-booth", | ||
"version": "1.0.154", | ||
"version": "1.0.155", | ||
"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
76981
9
2894