Skip to content

Commit eb327c9

Browse files
chore(internal): update global Error reference
1 parent b2acf6d commit eb327c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export class NextbillionSDK {
465465
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
466466
const headersTime = Date.now();
467467

468-
if (response instanceof Error) {
468+
if (response instanceof globalThis.Error) {
469469
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
470470
if (options.signal?.aborted) {
471471
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)