@supabase/postgrest-js 3.0.0-next.17 → 3.0.0-next.19
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +331 -16
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +331 -16
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PostgrestBuilder.ts +6 -2
- package/src/PostgrestQueryBuilder.ts +0 -76
- package/src/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -272,7 +272,7 @@ var PostgrestBuilder = class {
|
|
|
272
272
|
signal: _this.signal
|
|
273
273
|
});
|
|
274
274
|
} catch (fetchError) {
|
|
275
|
-
if (
|
|
275
|
+
if (fetchError instanceof Error && (fetchError.name === "AbortError" || "code" in fetchError && fetchError.code === "ABORT_ERR")) throw fetchError;
|
|
276
276
|
if (!RETRYABLE_METHODS.includes(_this.method)) throw fetchError;
|
|
277
277
|
if (_this.retryEnabled && attemptCount < DEFAULT_MAX_RETRIES) {
|
|
278
278
|
const delay = getRetryDelay(attemptCount);
|