summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/tar/lib/read-entry.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/tar/lib/read-entry.js')
-rw-r--r--deps/npm/node_modules/tar/lib/read-entry.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/npm/node_modules/tar/lib/read-entry.js b/deps/npm/node_modules/tar/lib/read-entry.js
index aa369c74f5..8acee94bac 100644
--- a/deps/npm/node_modules/tar/lib/read-entry.js
+++ b/deps/npm/node_modules/tar/lib/read-entry.js
@@ -6,6 +6,10 @@ const SLURP = Symbol('slurp')
module.exports = class ReadEntry extends MiniPass {
constructor (header, ex, gex) {
super()
+ // read entries always start life paused. this is to avoid the
+ // situation where Minipass's auto-ending empty streams results
+ // in an entry ending before we're ready for it.
+ this.pause()
this.extended = ex
this.globalExtended = gex
this.header = header