Skip to content

Commit a1c4a4b

Browse files
chore(internal): update global Error reference
1 parent 7fc7e22 commit a1c4a4b

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
@@ -382,7 +382,7 @@ export class CasParser {
382382
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
383383
const headersTime = Date.now();
384384

385-
if (response instanceof Error) {
385+
if (response instanceof globalThis.Error) {
386386
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
387387
if (options.signal?.aborted) {
388388
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)