* 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:
parent
81cd7390f0
commit
9468256b1d
2 changed files with 3 additions and 1 deletions
|
@ -3,3 +3,5 @@ node_js:
|
||||||
- '6'
|
- '6'
|
||||||
- '8'
|
- '8'
|
||||||
- '10'
|
- '10'
|
||||||
|
- '12'
|
||||||
|
- '14'
|
||||||
|
|
|
@ -29,7 +29,7 @@ var mixinPax = function (header, pax) {
|
||||||
var Source = function (self, offset) {
|
var Source = function (self, offset) {
|
||||||
this._parent = self
|
this._parent = self
|
||||||
this.offset = offset
|
this.offset = offset
|
||||||
PassThrough.call(this)
|
PassThrough.call(this, { autoDestroy: false })
|
||||||
}
|
}
|
||||||
|
|
||||||
util.inherits(Source, PassThrough)
|
util.inherits(Source, PassThrough)
|
||||||
|
|
Loading…
Reference in a new issue