pull-stream
Advanced tools
Comparing version 2.7.0 to 2.8.0
20
index.js
@@ -20,3 +20,5 @@ | ||
export.addPipe = addPipe | ||
exports.addPipe = addPipe | ||
exports.addReaderPipe | ||
= addReaderPipe | ||
@@ -43,2 +45,18 @@ function addPipe(read) { | ||
function addReaderPipe(reader) { | ||
var piped = [] | ||
function _reader (read) { | ||
read = reader(read) | ||
while(piped.length) | ||
read = piped.shift()(read) | ||
return read | ||
//pipeing to from this reader should compose... | ||
} | ||
_reader.pipe = function (read) { | ||
piped.push(read) | ||
return reader | ||
} | ||
return _reader | ||
} | ||
function Through (createRead) { | ||
@@ -45,0 +63,0 @@ return function () { |
{ | ||
"name": "pull-stream", | ||
"description": "minimal pull stream", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"homepage": "https://github.com/dominictarr/pull-stream", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
29380
717