Comparing version 2.2.0 to 2.2.1
@@ -212,4 +212,6 @@ 'use strict' | ||
(opts = opts || {}).end = false | ||
this.pipes.push({ dest: dest, opts: opts }) | ||
dest.on('drain', _ => this[RESUME]()) | ||
const p = { dest: dest, opts: opts, ondrain: _ => this[RESUME]() } | ||
this.pipes.push(p) | ||
dest.on('drain', p.ondrain) | ||
this[RESUME]() | ||
@@ -263,2 +265,3 @@ return dest | ||
this.pipes.forEach(p => { | ||
p.dest.removeListener('drain', p.ondrain) | ||
if (!p.opts || p.opts.end !== false) | ||
@@ -265,0 +268,0 @@ p.dest.end() |
{ | ||
"name": "minipass", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "minimal implementation of a PassThrough stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84995
966