Upgrade node-csv module to version 0.2.4

Will help with compressed-csv export format
This commit is contained in:
Sandro Santilli 2012-11-19 16:20:40 +01:00
parent 0274425de9
commit 270e6280ed
3 changed files with 5 additions and 5 deletions

View File

@ -424,8 +424,8 @@ function toCSV(data, res, callback){
// stream the csv out over http // stream the csv out over http
csv() csv()
.from(data.rows) .from.array(data.rows)
.toStream(res, {end: true, columns: columns, header: true}); .to.stream(res, {columns: columns, header: true, lineBreaks: 'windows'});
return true; return true;
} catch (err) { } catch (err) {
callback(err,null); callback(err,null);

4
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "cartodb_api", "name": "cartodb_api",
"version": "1.3.0", "version": "1.3.2",
"dependencies": { "dependencies": {
"cluster2": { "cluster2": {
"version": "0.3.5-cdb02", "version": "0.3.5-cdb02",
@ -216,7 +216,7 @@
"version": "1.3.3" "version": "1.3.3"
}, },
"csv": { "csv": {
"version": "0.0.13" "version": "0.2.4"
}, },
"zipfile": { "zipfile": {
"version": "0.3.2" "version": "0.3.2"

View File

@ -20,7 +20,7 @@
"step": "0.0.x", "step": "0.0.x",
"oauth-client": "0.2.0", "oauth-client": "0.2.0",
"node-uuid":"1.3.3", "node-uuid":"1.3.3",
"csv":"0.0.13" "csv":"*"
}, },
"devDependencies": { "devDependencies": {
"mocha": "1.2.1", "mocha": "1.2.1",