diff --git a/object_duplex_stream.js b/object_duplex_stream.js index f3fbd36..7128622 100644 --- a/object_duplex_stream.js +++ b/object_duplex_stream.js @@ -5,8 +5,6 @@ var duplexer = require('duplexer'); // object duplex stream function toObjectDuplex(stream) { - stream.setEncoding('utf8'); - //// Write Stream (Server -> Client) // Create a write stream that accepts objects diff --git a/package.json b/package.json index e9616fb..36727e2 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "dependencies": { "duplexer": "0.0.2", "emit-stream": "0.1.x", - "JSONStream": "0.4.x" + "JSONStream": ">=0.6.4 && < 0.7.0" }, "devDependencies": { "tap": "0.3.x",