@ravnexchange/react 0.1.7 → 0.1.8
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/useRavnStatus.js +1 -1
- package/package.json +1 -1
package/dist/useRavnStatus.js
CHANGED
|
@@ -10,7 +10,7 @@ const polling_1 = require("./polling");
|
|
|
10
10
|
// Codes the API itself defines as request-shaped, not transient: retrying with the exact same
|
|
11
11
|
// arguments can never turn one of these into success. Anything else (RATE_LIMITED, INTERNAL, a
|
|
12
12
|
// network failure) is worth retrying through.
|
|
13
|
-
const PERMANENT_ERROR_CODES = new Set(["UNAUTHORIZED", "INVALID_REQUEST", "QUOTE_INVALID", "NOT_FOUND"]);
|
|
13
|
+
const PERMANENT_ERROR_CODES = new Set(["UNAUTHORIZED", "FORBIDDEN", "INVALID_REQUEST", "QUOTE_INVALID", "NOT_FOUND"]);
|
|
14
14
|
function isPermanentError(err) {
|
|
15
15
|
return err instanceof sdk_1.RavnApiError && PERMANENT_ERROR_CODES.has(err.code);
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ravnexchange/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "React hooks for @ravnexchange/sdk: quote/execute/status state management. Bring your own wallet.",
|
|
5
5
|
"keywords": ["ravn", "cross-chain", "swap", "swap-api", "dex-aggregator", "bitcoin", "native-btc", "solana", "evm", "crypto", "defi", "react", "react-hooks", "typescript"],
|
|
6
6
|
"main": "./dist/index.js",
|