From 9468256b1d5f211ab29a85a8bcd9e12579c05def Mon Sep 17 00:00:00 2001 From: tex0l Date: Tue, 7 Jul 2020 12:51:56 +0200 Subject: [PATCH] Fix #123 - compatibility with native node@14 streams (#124) * Set `autoDestroy` to `false` when defining `Source` streams for compatibility with node@14 native streams, and test in CI compatibility with native streams. * Update .travis.yml Co-authored-by: Mathias Buus --- .travis.yml | 2 ++ extract.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e303031..d4eb441 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,5 @@ node_js: - '6' - '8' - '10' + - '12' + - '14' diff --git a/extract.js b/extract.js index 1a2a445..6278c38 100644 --- a/extract.js +++ b/extract.js @@ -29,7 +29,7 @@ var mixinPax = function (header, pax) { var Source = function (self, offset) { this._parent = self this.offset = offset - PassThrough.call(this) + PassThrough.call(this, { autoDestroy: false }) } util.inherits(Source, PassThrough)