pull-stream-to-stream
Advanced tools
Comparing version 1.3.4 to 2.0.0
12
index.js
@@ -86,3 +86,15 @@ | ||
s.sink(read) | ||
s.paused = true | ||
var on = s.on.bind(s) | ||
s.on = (event, listener) => { | ||
var res = on(event, listener) | ||
if (event === 'data' && s.paused) { | ||
next(s.resume.bind(s)) | ||
} | ||
return res | ||
} | ||
var pipe = s.pipe.bind(s) | ||
@@ -89,0 +101,0 @@ s.pipe = function (dest, opts) { |
{ | ||
"name": "pull-stream-to-stream", | ||
"description": "", | ||
"version": "1.3.4", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/dominictarr/pull-stream-to-stream", | ||
@@ -11,5 +11,5 @@ "repository": { | ||
"devDependencies": { | ||
"pull-stream": "^3.4.4", | ||
"pull-defer": "^0.2.2", | ||
"tape": "1.0.4" | ||
"pull-stream": "^3.6.14", | ||
"tape": "^4.11.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -15,2 +15,3 @@ var pull = require('pull-stream') | ||
}) | ||
s.on('data', () => {}) | ||
}) | ||
@@ -17,0 +18,0 @@ |
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
23176
13
435