end-of-stream
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -49,3 +49,3 @@ var once = require('once'); | ||
stream.on('finish', onfinish); | ||
stream.on('error', callback); | ||
if (opts.error !== false) stream.on('error', callback); | ||
stream.on('close', onclose); | ||
@@ -52,0 +52,0 @@ |
{ | ||
"name": "end-of-stream", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Call a callback when a readable/writable/duplex stream has completed or failed.", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/mafintosh/end-of-stream.git", |
@@ -39,2 +39,6 @@ # end-of-stream | ||
}); | ||
eos(readableStream, {error:false}, function(err) { | ||
// do not treat emit('error', err) as a end-of-stream | ||
}); | ||
``` | ||
@@ -41,0 +45,0 @@ |
4175
47