Comparing version 4.1.0 to 4.1.1
@@ -34,2 +34,4 @@ var stream = require('readable-stream') | ||
var noop = function() {} | ||
var toStreams2 = function(rs) { | ||
@@ -177,4 +179,5 @@ return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs) | ||
Duplexify.prototype.destroy = function(err) { | ||
if (this.destroyed) return | ||
Duplexify.prototype.destroy = function(err, cb) { | ||
if (!cb) cb = noop | ||
if (this.destroyed) return cb(null) | ||
this.destroyed = true | ||
@@ -185,2 +188,3 @@ | ||
self._destroy(err) | ||
cb(null) | ||
}) | ||
@@ -187,0 +191,0 @@ } |
{ | ||
"name": "duplexify", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Turn a writable and readable stream into a streams2 duplex stream with support for async initialization and streams1/streams2 input", | ||
@@ -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
18227
479