@streamflow/stream 4.1.0-beta.10 → 4.1.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evm/StreamClient.js +3 -2
- package/package.json +1 -1
package/dist/evm/StreamClient.js
CHANGED
|
@@ -191,7 +191,7 @@ var EvmStreamClient = /** @class */ (function (_super) {
|
|
|
191
191
|
errors = [];
|
|
192
192
|
metadataToRecipient = {};
|
|
193
193
|
confirmations.forEach(function (result, index) {
|
|
194
|
-
var _a, _b;
|
|
194
|
+
var _a, _b, _c, _d, _e, _f;
|
|
195
195
|
var recipient = multipleStreamData.recipients[index];
|
|
196
196
|
if (result.status === "fulfilled") {
|
|
197
197
|
var metadataId = _this.formatMetadataId(result.value.logs[result.value.logs.length - 1].data);
|
|
@@ -200,9 +200,10 @@ var EvmStreamClient = /** @class */ (function (_super) {
|
|
|
200
200
|
metadataToRecipient[metadataId] = recipient;
|
|
201
201
|
}
|
|
202
202
|
else {
|
|
203
|
+
var error = (_e = (_c = (_b = (_a = result.reason) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : (_d = result.reason) === null || _d === void 0 ? void 0 : _d.message) !== null && _e !== void 0 ? _e : result.reason;
|
|
203
204
|
errors.push({
|
|
204
205
|
recipient: recipient.recipient,
|
|
205
|
-
error: (
|
|
206
|
+
error: (_f = error === null || error === void 0 ? void 0 : error.toString()) !== null && _f !== void 0 ? _f : "Unknown error!",
|
|
206
207
|
});
|
|
207
208
|
}
|
|
208
209
|
});
|
package/package.json
CHANGED