Skip to content

Commit 9205e49

Browse files
authored
chore: integrate getBufferResponse (#710)
1 parent 2ac2834 commit 9205e49

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/fetch-wrapper.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { isPlainObject } from "./is-plain-object.js";
22
import { RequestError } from "@octokit/request-error";
33
import type { EndpointInterface } from "@octokit/types";
44

5-
import getBuffer from "./get-buffer-response.js";
6-
75
export default function fetchWrapper(
86
requestOptions: ReturnType<EndpointInterface>,
97
) {
@@ -175,7 +173,7 @@ async function getResponseData(response: Response) {
175173
return response.text();
176174
}
177175

178-
return getBuffer(response);
176+
return response.arrayBuffer();
179177
}
180178

181179
function toErrorMessage(data: any) {

src/get-buffer-response.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy