@silentswap/react 0.0.85 → 0.0.86
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/hooks/useQuote.js +7 -0
- package/package.json +3 -3
package/dist/hooks/useQuote.js
CHANGED
|
@@ -371,6 +371,13 @@ export function useQuote({ address, maxImpactPercent = X_MAX_IMPACT_PERCENT, for
|
|
|
371
371
|
});
|
|
372
372
|
// Both failed
|
|
373
373
|
if (!relayQuote && !debridgeQuote) {
|
|
374
|
+
// If the signal was aborted, this request was superseded by a newer one.
|
|
375
|
+
// Treat it as an abort (not a real error) so the UI doesn't show an error state.
|
|
376
|
+
if (signal.aborted) {
|
|
377
|
+
console.log('[Quote] All providers returned null because request was aborted');
|
|
378
|
+
const abortError = new DOMException('The operation was aborted.', 'AbortError');
|
|
379
|
+
throw abortError;
|
|
380
|
+
}
|
|
374
381
|
console.error('[Quote] Error: All quote providers failed');
|
|
375
382
|
throw new AggregateError([
|
|
376
383
|
relayResult.status === 'rejected' ? relayResult.reason : null,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silentswap/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.86",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@bigmi/core": "^0.6.5",
|
|
26
26
|
"@ensdomains/ensjs": "^4.2.0",
|
|
27
|
-
"@silentswap/sdk": "0.0.
|
|
28
|
-
"@silentswap/ui-kit": "0.0.
|
|
27
|
+
"@silentswap/sdk": "0.0.86",
|
|
28
|
+
"@silentswap/ui-kit": "0.0.86",
|
|
29
29
|
"@solana/codecs-strings": "^5.1.0",
|
|
30
30
|
"@solana/kit": "^5.1.0",
|
|
31
31
|
"@solana/rpc": "^5.1.0",
|