@supabase/postgrest-js 2.105.2-canary.0 → 2.105.2-canary.2

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
@@ -266,7 +266,7 @@ var PostgrestBuilder = class {
266
266
  signal: _this.signal
267
267
  });
268
268
  } catch (fetchError) {
269
- if ((fetchError === null || fetchError === void 0 ? void 0 : fetchError.name) === "AbortError" || (fetchError === null || fetchError === void 0 ? void 0 : fetchError.code) === "ABORT_ERR") throw fetchError;
269
+ if (fetchError instanceof Error && (fetchError.name === "AbortError" || "code" in fetchError && fetchError.code === "ABORT_ERR")) throw fetchError;
270
270
  if (!RETRYABLE_METHODS.includes(_this.method)) throw fetchError;
271
271
  if (_this.retryEnabled && attemptCount < DEFAULT_MAX_RETRIES) {
272
272
  const delay = getRetryDelay(attemptCount);