Skip to content
Snippets Groups Projects
Commit 8598c5ed authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(npm): increase highWaterMark

parent 64de057c
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,7 @@ export async function getDependency( ...@@ -113,6 +113,7 @@ export async function getDependency(
retry: 5, retry: 5,
headers, headers,
useCache, useCache,
readableHighWaterMark: 1024 * 1024 * 10, // https://github.com/sindresorhus/got/issues/1062#issuecomment-586580036
}; };
const raw = await got(pkgUrl, opts); const raw = await got(pkgUrl, opts);
// istanbul ignore if // istanbul ignore if
......
...@@ -5,6 +5,7 @@ export interface Options { ...@@ -5,6 +5,7 @@ export interface Options {
hostType?: string; hostType?: string;
search?: string; search?: string;
useCache?: boolean; useCache?: boolean;
readableHighWaterMark?: number;
} }
export type GotJSONOptions = Options & got.GotJSONOptions; export type GotJSONOptions = Options & got.GotJSONOptions;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment