UNPKG

@coinbase/cdp-sdk

Version:

SDK for interacting with the Coinbase Developer Platform Wallet API

15 lines 505 B
export function getBinaryResponse(response) { const binaryResponse = { get bodyUsed() { return response.bodyUsed; }, stream: () => response.body, arrayBuffer: response.arrayBuffer.bind(response), blob: response.blob.bind(response), }; if ("bytes" in response && typeof response.bytes === "function") { binaryResponse.bytes = response.bytes.bind(response); } return binaryResponse; } //# sourceMappingURL=BinaryResponse.js.map