@haven-fi/solauto-sdk 1.0.775 → 1.0.776
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.
@@ -64,7 +64,7 @@ class TransactionsManager {
|
|
64
64
|
]);
|
65
65
|
for (let j = i; j >= 0; j--) {
|
66
66
|
const tx = txItems[j];
|
67
|
-
if (
|
67
|
+
if (await newSet.fitsWith(tx)) {
|
68
68
|
newSet.prepend(tx);
|
69
69
|
i--;
|
70
70
|
}
|
@@ -346,7 +346,7 @@ class TransactionsManager {
|
|
346
346
|
});
|
347
347
|
(0, utils_1.consoleLog)(errorString);
|
348
348
|
if (!errorDetails.canBeIgnored) {
|
349
|
-
throw error;
|
349
|
+
throw errorDetails.errorName ? new Error(errorString) : error;
|
350
350
|
}
|
351
351
|
}
|
352
352
|
}
|
package/dist/utils/priceUtils.js
CHANGED
package/package.json
CHANGED
@@ -126,7 +126,7 @@ export class TransactionsManager<T extends TxHandler> {
|
|
126
126
|
]);
|
127
127
|
for (let j = i; j >= 0; j--) {
|
128
128
|
const tx = txItems[j];
|
129
|
-
if (
|
129
|
+
if (await newSet.fitsWith(tx)) {
|
130
130
|
newSet.prepend(tx);
|
131
131
|
i--;
|
132
132
|
} else {
|
@@ -585,7 +585,7 @@ export class TransactionsManager<T extends TxHandler> {
|
|
585
585
|
consoleLog(errorString);
|
586
586
|
|
587
587
|
if (!errorDetails.canBeIgnored) {
|
588
|
-
throw error;
|
588
|
+
throw errorDetails.errorName ? new Error(errorString) : error;
|
589
589
|
}
|
590
590
|
}
|
591
591
|
}
|