Skip to content

Commit

Permalink
Emit correct lines from transform
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Apr 9, 2018
1 parent e07d315 commit 5f96f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/JSON2CSVTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class JSON2CSVTransform extends Transform {
if (line === undefined) return;
const eoledLine = (this._hasWritten ? this.opts.eol : '')
+ line;
this.emit('line', eoledLine);
this.emit('line', line);
this.push(eoledLine);
this._hasWritten = true;
});
Expand Down

0 comments on commit 5f96f7d

Please sign in to comment.