diff --git a/src/core/streaming-fetcher/StreamingFetcher.ts b/src/core/streaming-fetcher/StreamingFetcher.ts index eeaaf42..9a6abdc 100644 --- a/src/core/streaming-fetcher/StreamingFetcher.ts +++ b/src/core/streaming-fetcher/StreamingFetcher.ts @@ -1,5 +1,5 @@ +import { default as URLSearchParams } from "@ungap/url-search-params"; import axios, { AxiosAdapter, AxiosResponse } from "axios"; -import qs from "qs"; import { Readable } from "stream"; export type StreamingFetchFunction = (args: StreamingFetcher.Args) => Promise>; @@ -9,7 +9,7 @@ export declare namespace StreamingFetcher { url: string; method: string; headers?: Record; - queryParameters?: Record; + queryParameters?: URLSearchParams; body?: unknown; timeoutMs?: number; withCredentials?: boolean; @@ -41,9 +41,6 @@ export async function streamingFetcher(args: StreamingFetcher.Args): Promi const response = await axios({ url: args.url, params: args.queryParameters, - paramsSerializer: (params) => { - return qs.stringify(params); - }, method: args.method, headers, data: args.body,