Skip to content

Commit

Permalink
fix: replace global NodeJS fetch reference for request info with default
Browse files Browse the repository at this point in the history
  • Loading branch information
VisargD committed Jan 15, 2024
1 parent f806ceb commit dc9b042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/baseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { APIConnectionError, APIConnectionTimeoutError, APIError } from "./error
import { Stream, createResponseHeaders, safeJSON } from "./streaming";
import { castToError, getPlatformProperties, parseBody } from "./utils";
import { VERSION } from "./version";
fetch

const defaultHttpAgent: Agent = new KeepAliveAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
export type Fetch = (url: NodeJS.fetch.RequestInfo, init?: RequestInit) => Promise<Response>;
export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;

export type HTTPMethod = "post" | "get" | "put" | "delete"

Expand Down

0 comments on commit dc9b042

Please sign in to comment.