stream-chopper
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -51,7 +51,3 @@ 'use strict' | ||
function oneos (err) { | ||
// If oneos is called because of a close event, some streams will give a | ||
// boolean as the first argument indicating if the stream was closed | ||
// because of an error | ||
if (err && typeof err !== 'boolean') self.destroy(err) // TODO: This error is already emitted by the stream. Maybe we shouldn't pass it on to destroy? | ||
function oneos () { | ||
self._removeStream() | ||
@@ -110,3 +106,3 @@ } | ||
.on('finish', this._oneos) | ||
.on('end', this._oneos) // in case stream.destroy() is called by the user | ||
.on('end', this._oneos) | ||
.on('drain', this._ondrain) | ||
@@ -113,0 +109,0 @@ |
{ | ||
"name": "stream-chopper", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Chop a single stream of data into a series of readable streams", | ||
@@ -47,5 +47,5 @@ "main": "index.js", | ||
"coordinates": [ | ||
55.778278, | ||
12.593052 | ||
55.778265, | ||
12.593146 | ||
] | ||
} |
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
18115
276