From a21f65e3b0ef27fe44baf91a5b9c895d935bd12b Mon Sep 17 00:00:00 2001 From: Pedro Teixeira Date: Wed, 10 Apr 2013 10:34:47 +0100 Subject: [PATCH] using JSONStream 0.6.4 now, fixes #4 --- object_duplex_stream.js | 2 -- package.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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",