From 270e6280edca3f86be8167d079cdd963342f7439 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 19 Nov 2012 16:20:40 +0100 Subject: [PATCH] Upgrade node-csv module to version 0.2.4 Will help with compressed-csv export format --- app/controllers/app.js | 4 ++-- npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/app.js b/app/controllers/app.js index cbe43151..b9be729a 100755 --- a/app/controllers/app.js +++ b/app/controllers/app.js @@ -424,8 +424,8 @@ function toCSV(data, res, callback){ // stream the csv out over http csv() - .from(data.rows) - .toStream(res, {end: true, columns: columns, header: true}); + .from.array(data.rows) + .to.stream(res, {columns: columns, header: true, lineBreaks: 'windows'}); return true; } catch (err) { callback(err,null); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 6bf900b9..5f5eb97e 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "cartodb_api", - "version": "1.3.0", + "version": "1.3.2", "dependencies": { "cluster2": { "version": "0.3.5-cdb02", @@ -216,7 +216,7 @@ "version": "1.3.3" }, "csv": { - "version": "0.0.13" + "version": "0.2.4" }, "zipfile": { "version": "0.3.2" diff --git a/package.json b/package.json index f46b4eac..3972b030 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "step": "0.0.x", "oauth-client": "0.2.0", "node-uuid":"1.3.3", - "csv":"0.0.13" + "csv":"*" }, "devDependencies": { "mocha": "1.2.1",