diff --git a/lib/datasource/npm/get.ts b/lib/datasource/npm/get.ts index 72c33caa8d2962b19a2162cf01c25c607b923a5f..1cffe927b7a7e510cda94c9b6fd189c84bc064ca 100644 --- a/lib/datasource/npm/get.ts +++ b/lib/datasource/npm/get.ts @@ -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 diff --git a/lib/util/got/common.ts b/lib/util/got/common.ts index 1d881e8511305bc9cbcf2d9fab482117842e22c3..579c9a88edf6ad5809978fd0a19a0abb7cf2d7c1 100644 --- a/lib/util/got/common.ts +++ b/lib/util/got/common.ts @@ -5,6 +5,7 @@ export interface Options { hostType?: string; search?: string; useCache?: boolean; + readableHighWaterMark?: number; } export type GotJSONOptions = Options & got.GotJSONOptions;