From b8862ca5af1cc3ea9331636ac26146ce9d58a4ed Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 11 Jan 2016 16:50:22 +0000 Subject: [PATCH] switch to node-byline module to avoid buffering problem with readline-stream for lines > 64k the readline-stream module is affected by https://github.com/jahewson/node-byline/issues/30 which is fixed in node-byline (readline-stream was an earlier fork of the byline module) --- services/track-changes/app/coffee/MongoAWS.coffee | 2 +- services/track-changes/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/track-changes/app/coffee/MongoAWS.coffee b/services/track-changes/app/coffee/MongoAWS.coffee index 81261fc18d..15053f9766 100644 --- a/services/track-changes/app/coffee/MongoAWS.coffee +++ b/services/track-changes/app/coffee/MongoAWS.coffee @@ -4,7 +4,7 @@ AWS = require 'aws-sdk' S3S = require 's3-streams' {db, ObjectId} = require "./mongojs" JSONStream = require "JSONStream" -ReadlineStream = require "readline-stream" +ReadlineStream = require "byline" module.exports = MongoAWS = diff --git a/services/track-changes/package.json b/services/track-changes/package.json index 37699bbb4a..581e97c79d 100644 --- a/services/track-changes/package.json +++ b/services/track-changes/package.json @@ -9,6 +9,7 @@ "dependencies": { "async": "~0.2.10", "bson": "^0.4.20", + "byline": "^4.2.1", "cli": "^0.6.6", "express": "3.3.5", "line-reader": "^0.2.4", @@ -22,8 +23,7 @@ "underscore": "~1.7.0", "mongo-uri": "^0.1.2", "s3-streams": "^0.3.0", - "JSONStream": "^1.0.4", - "readline-stream": "^1.0.1" + "JSONStream": "^1.0.4" }, "devDependencies": { "chai": "~1.9.0",