@toruslabs/torus.js
Advanced tools
Comparing version 12.3.2 to 12.3.3
@@ -463,5 +463,9 @@ import stringify from 'json-stable-stringify'; | ||
} = _ref; | ||
// its fine to log responses in errors logs for better debugging, | ||
// as data is always encrypted with temp key | ||
// temp key should not be logged anywhere | ||
const message = `Unable to resolve enough promises. | ||
errors: ${errors.map(x => (x === null || x === void 0 ? void 0 : x.message) || x).join(", ")}, | ||
${responses.length} responses, | ||
responses: ${JSON.stringify(responses)}, | ||
predicate error: ${predicate}`; | ||
@@ -687,4 +691,2 @@ super(message); | ||
logTracingHeader: config.logRequestTracing | ||
}).catch(err => { | ||
log.error("commitment error", err); | ||
}); | ||
@@ -710,4 +712,3 @@ promiseArr.push(p); | ||
const requiredNodeResult = completedRequests.find(resp => { | ||
var _resp$result; | ||
if (resp && ((_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result.nodeindex) === "1") { | ||
if (resp) { | ||
return true; | ||
@@ -766,3 +767,3 @@ } | ||
logTracingHeader: config.logRequestTracing | ||
}).catch(err => log.error("share req", err)); | ||
}); | ||
promiseArrRequest.push(p); | ||
@@ -783,3 +784,3 @@ } else { | ||
logTracingHeader: config.logRequestTracing | ||
}).catch(err => log.error("share req", err)); | ||
}); | ||
promiseArrRequest.push(p); | ||
@@ -786,0 +787,0 @@ } |
{ | ||
"name": "@toruslabs/torus.js", | ||
"version": "12.3.2", | ||
"version": "12.3.3", | ||
"description": "Handle communication with torus nodes", | ||
@@ -5,0 +5,0 @@ "main": "dist/torusUtils.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3467
377087