@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 CHANGED
@@ -272,7 +272,7 @@ var PostgrestBuilder = class {
272
272
  signal: _this.signal
273
273
  });
274
274
  } catch (fetchError) {
275
- if ((fetchError === null || fetchError === void 0 ? void 0 : fetchError.name) === "AbortError" || (fetchError === null || fetchError === void 0 ? void 0 : fetchError.code) === "ABORT_ERR") throw fetchError;
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);