ponder 0.8.32 → 0.8.33
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/bin/ponder.js +20 -32
- package/dist/bin/ponder.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/requestQueue.ts +20 -27
package/dist/bin/ponder.js
CHANGED
|
@@ -10007,11 +10007,11 @@ import {
|
|
|
10007
10007
|
getLogsRetryHelper as getLogsRetryHelper2
|
|
10008
10008
|
} from "@ponder/utils";
|
|
10009
10009
|
import {
|
|
10010
|
-
BlockNotFoundError as BlockNotFoundError2,
|
|
10011
10010
|
HttpRequestError,
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10011
|
+
JsonRpcVersionUnsupportedError,
|
|
10012
|
+
MethodNotFoundRpcError,
|
|
10013
|
+
MethodNotSupportedRpcError,
|
|
10014
|
+
ParseRpcError,
|
|
10015
10015
|
isHex
|
|
10016
10016
|
} from "viem";
|
|
10017
10017
|
var RETRY_COUNT2 = 9;
|
|
@@ -10096,36 +10096,24 @@ var createRequestQueue = ({
|
|
|
10096
10096
|
};
|
|
10097
10097
|
function shouldRetry(error) {
|
|
10098
10098
|
if ("code" in error && typeof error.code === "number") {
|
|
10099
|
-
if (error.code ===
|
|
10100
|
-
return
|
|
10101
|
-
if (error.code ===
|
|
10102
|
-
return
|
|
10103
|
-
if (error.code ===
|
|
10104
|
-
return
|
|
10105
|
-
if (error.code ===
|
|
10106
|
-
return
|
|
10107
|
-
return false;
|
|
10099
|
+
if (error.code === ParseRpcError.code)
|
|
10100
|
+
return false;
|
|
10101
|
+
if (error.code === MethodNotFoundRpcError.code)
|
|
10102
|
+
return false;
|
|
10103
|
+
if (error.code === MethodNotSupportedRpcError.code)
|
|
10104
|
+
return false;
|
|
10105
|
+
if (error.code === JsonRpcVersionUnsupportedError.code)
|
|
10106
|
+
return false;
|
|
10108
10107
|
}
|
|
10109
|
-
if (error instanceof BlockNotFoundError2)
|
|
10110
|
-
return true;
|
|
10111
10108
|
if (error instanceof HttpRequestError && error.status) {
|
|
10112
|
-
if (error.status ===
|
|
10113
|
-
return
|
|
10114
|
-
if (error.status ===
|
|
10115
|
-
return
|
|
10116
|
-
if (error.status ===
|
|
10117
|
-
return
|
|
10118
|
-
if (error.status ===
|
|
10119
|
-
return
|
|
10120
|
-
if (error.status === 500)
|
|
10121
|
-
return true;
|
|
10122
|
-
if (error.status === 502)
|
|
10123
|
-
return true;
|
|
10124
|
-
if (error.status === 503)
|
|
10125
|
-
return true;
|
|
10126
|
-
if (error.status === 504)
|
|
10127
|
-
return true;
|
|
10128
|
-
return false;
|
|
10109
|
+
if (error.status === 405)
|
|
10110
|
+
return false;
|
|
10111
|
+
if (error.status === 404)
|
|
10112
|
+
return false;
|
|
10113
|
+
if (error.status === 501)
|
|
10114
|
+
return false;
|
|
10115
|
+
if (error.status === 505)
|
|
10116
|
+
return false;
|
|
10129
10117
|
}
|
|
10130
10118
|
return true;
|
|
10131
10119
|
}
|