Skip to content

Commit 653df20

Browse files
chore(internal): update global Error reference
1 parent bca1ee9 commit 653df20

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
@@ -448,7 +448,7 @@ export class ImageKit {
448448
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
449449
const headersTime = Date.now();
450450

451-
if (response instanceof Error) {
451+
if (response instanceof globalThis.Error) {
452452
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
453453
if (options.signal?.aborted) {
454454
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)