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,
headers,
useCache,
readableHighWaterMark: 1024 * 1024 * 10, // https://github.com/sindresorhus/got/issues/1062#issuecomment-586580036
};
const raw = await got(pkgUrl, opts);
// istanbul ignore if

View file

@ -5,6 +5,7 @@ export interface Options {
hostType?: string;
search?: string;
useCache?: boolean;
readableHighWaterMark?: number;
}
export type GotJSONOptions = Options & got.GotJSONOptions;