Comparing version 2.2.0 to 2.3.0
@@ -9,3 +9,3 @@ var MuxDemux = require('..') | ||
stream.on('error', function (error) { | ||
console.log(error.message) | ||
console.log(error) | ||
}) | ||
@@ -23,3 +23,5 @@ }) | ||
setInterval(function () { | ||
es.error("error message as string") | ||
es.error({ | ||
"any error": "message" | ||
}) | ||
}, 1e3) | ||
@@ -26,0 +28,0 @@ |
@@ -34,3 +34,3 @@ var es = require('event-stream') | ||
else if (event === 'error') | ||
s.emit('error', new Error(data[1])) | ||
s.emit('error', data[1]) | ||
else { | ||
@@ -37,0 +37,0 @@ s.emit.apply(s, data) |
{ | ||
"name": "mux-demux", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/dominictarr/mux-demux", |
606
19828