diff --git a/src/index.ts b/src/index.ts index c9ccae6..9a76b2a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ type ResponseData = { body: http.IncomingMessage; headers: http.IncomingHttpHeaders; text: () => Promise; - json: () => Promise; + json: () => Promise; buffer: () => Promise; arrayBuffer: () => Promise; }; @@ -43,7 +43,10 @@ const readData = ( .on("error", reject); }); -export default async (urlString: string, options: ExtendedRequestOptions = {}): Promise => { +export default async ( + urlString: string, + options: ExtendedRequestOptions = {} +): Promise => { const { protocol, hostname, pathname, search, port } = new URL(urlString); const body =