xrpl-txdata
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -419,9 +419,10 @@ "use strict"; | ||
const onTx = (r) => { | ||
if (typeof r.id !== 'undefined') { | ||
if (r.id === id) { | ||
process.nextTick(() => { | ||
this.EventBus.removeListener('xrpljson', onTx); | ||
}); | ||
return resolve(r); | ||
} | ||
var _a, _b, _c, _d, _e; | ||
if (((r === null || r === void 0 ? void 0 : r.id) === id || ((_b = (_a = r) === null || _a === void 0 ? void 0 : _a.transaction) === null || _b === void 0 ? void 0 : _b.hash) === TxHash) | ||
&& | ||
(((_d = (_c = r) === null || _c === void 0 ? void 0 : _c.result) === null || _d === void 0 ? void 0 : _d.validated) || ((_e = r) === null || _e === void 0 ? void 0 : _e.validated))) { | ||
process.nextTick(() => { | ||
this.EventBus.removeListener('xrpljson', onTx); | ||
}); | ||
return resolve(r); | ||
} | ||
@@ -428,0 +429,0 @@ }; |
{ | ||
"name": "xrpl-txdata", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "Fetch XRPL transaction by hash (+ meta & balances), awaits if required", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
46184
728