fix(npm): increase highWaterMark

This commit is contained in:
Rhys Arkins 2020-02-16 05:32:03 +01:00
parent 64de057cc1
commit 8598c5edea
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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;