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 <mathiasbuus@gmail.com>
This commit is contained in:
tex0l 2020-07-07 12:51:56 +02:00 committed by GitHub
parent 81cd7390f0
commit 9468256b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -3,3 +3,5 @@ node_js:
- '6'
- '8'
- '10'
- '12'
- '14'

View file

@ -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)