pull-stream
Advanced tools
Comparing version 2.8.0 to 2.9.0
{ | ||
"name": "pull-stream", | ||
"description": "minimal pull stream", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"homepage": "https://github.com/dominictarr/pull-stream", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -55,6 +55,14 @@ function prop (map) { | ||
var through = exports.through = | ||
function (read, op) { | ||
function (read, op, onEnd) { | ||
var a = false | ||
function once (abort) { | ||
if(a || !onEnd) return | ||
a = true | ||
onEnd(abort === true ? null : abort) | ||
} | ||
return function (end, cb) { | ||
return read(end, function (end, data) { | ||
if(!end) op && op(data) | ||
else once(end) | ||
cb(end, data) | ||
@@ -192,1 +200,3 @@ }) | ||
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
29858
21
739