csv-stringify
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -17,8 +17,2 @@ | ||
const api = stringifier(options, state, info); | ||
// stringifier.push = function(record){ | ||
// if(record === null){ | ||
// return; | ||
// } | ||
// data.push(record.toString()); | ||
// }; | ||
for(const record of records){ | ||
@@ -30,6 +24,13 @@ const err = api.__transform(record, function(record){ | ||
} | ||
if(data.length === 0){ | ||
api.bom((d) => { | ||
data.push(d); | ||
}); | ||
const err = api.headers((headers) => { | ||
data.push(headers); | ||
}); | ||
} | ||
return data.join(''); | ||
}; | ||
// export default stringify | ||
export { stringify }; |
{ | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"name": "csv-stringify", | ||
@@ -96,3 +96,3 @@ "description": "CSV stringifier implementing the Node.js `stream.Transform` API", | ||
}, | ||
"gitHead": "59cf7a4333c08020a029fa6922483f058bec04ab" | ||
"gitHead": "851a129b5c57c5c77e49fee3587a0d4afb91c683" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
866539
23657