Comparing version 2.1.4 to 2.2.0
@@ -33,2 +33,4 @@ var es = require('event-stream') | ||
} | ||
else if (event === 'error') | ||
s.emit('error', new Error(data[1])) | ||
else { | ||
@@ -81,2 +83,5 @@ s.emit.apply(s, data) | ||
} | ||
s.error = function (message) { | ||
md.emit('data', [s.id, 'error', message]) | ||
} | ||
s.once('close', function () { | ||
@@ -83,0 +88,0 @@ md.emit('data', [s.id, 'close']) |
{ | ||
"name": "mux-demux", | ||
"version": "2.1.4", | ||
"version": "2.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/dominictarr/mux-demux", |
19834
14
604
3