From 8598c5edead7f643a16516ef34d17599cc8e72b6 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Sun, 16 Feb 2020 05:32:03 +0100 Subject: [PATCH] fix(npm): increase highWaterMark --- lib/datasource/npm/get.ts | 1 + lib/util/got/common.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/datasource/npm/get.ts b/lib/datasource/npm/get.ts index 72c33caa8d2962..1cffe927b7a7e5 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 1d881e8511305b..579c9a88edf6ad 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;