Skip to content

Commit

Permalink
feat: Allow parcel to be passed as a Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Apr 30, 2020
1 parent d76dccc commit b1dfba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface DeliveryOptions {
*/
export async function deliverParcel(
targetNodeUrl: string,
parcelSerialized: ArrayBuffer,
parcelSerialized: ArrayBuffer | Buffer,
options: Partial<DeliveryOptions> = {},
): Promise<AxiosResponse> {
const axiosOptions = {
Expand All @@ -48,7 +48,7 @@ interface SupportedAxiosRequestConfig {

async function postRequest(
url: string,
body: ArrayBuffer,
body: ArrayBuffer | Buffer,
axiosInstance: AxiosInstance,
options: SupportedAxiosRequestConfig,
): Promise<AxiosResponse> {
Expand Down

0 comments on commit b1dfba1

Please sign in to comment.