Skip to content

Commit

Permalink
fix(npm): increase highWaterMark
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 16, 2020
1 parent 64de057 commit 8598c5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/datasource/npm/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/util/got/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface Options {
hostType?: string;
search?: string;
useCache?: boolean;
readableHighWaterMark?: number;
}

export type GotJSONOptions = Options & got.GotJSONOptions;
Expand Down

0 comments on commit 8598c5e

Please sign in to comment.