From 44cab038040e91ca6584e27f4d0cd0ea73844a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=AC=E3=82=A2=E3=82=B3=E3=82=A4=E3=83=AB?= <47268795+rarecoil@users.noreply.github.com> Date: Tue, 9 Jul 2019 17:22:31 -0700 Subject: [PATCH] [tar] add maxReadSize, maxMetaEntrySize to tar.extract per documentation (#36776) * add maxReadSize, maxMetaEntrySize to extract per documentation * lint --- types/tar/index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/tar/index.d.ts b/types/tar/index.d.ts index 0dbf08bf90..9db580014e 100644 --- a/types/tar/index.d.ts +++ b/types/tar/index.d.ts @@ -489,6 +489,19 @@ export interface ExtractOptions { * filter. */ onentry?(entry: ReadEntry): void; + + // The following options are mostly internal, but can be modified in some + // advanced use cases, such as re-using caches between runs. + + /** + * The maximum buffer size for fs.read() operations (in bytes). Defaults to 16 MB. + */ + maxReadSize?: number; + + /** + * The maximum size of meta entries that is supported. Defaults to 1 MB. + */ + maxMetaEntrySize?: number; } export interface ListOptions {