postchain-client
Advanced tools
Comparing version 0.7.3 to 0.7.4
{ | ||
"name": "postchain-client", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Client library for accessing a Postchain node through REST.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -141,3 +141,3 @@ "use strict"; | ||
setTimeout( | ||
() => resolve(this.waitConfirmation(txRID)), | ||
() => this.waitConfirmation(txRID).then(resolve, reject), | ||
511 | ||
@@ -162,3 +162,3 @@ ); | ||
else { | ||
resolve(this.waitConfirmation(txRID)); | ||
this.waitConfirmation(txRID).then(resolve, reject); | ||
} | ||
@@ -223,3 +223,3 @@ }) | ||
console.log(typeof body); | ||
callback(null, response.statusCode, body ? body : null); | ||
callback(null, response.statusCode, body !== null ? body : null); | ||
} catch (e) { | ||
@@ -226,0 +226,0 @@ callback(e); |
Sorry, the diff of this file is too big to display
914002
42