Closed stephenlacy closed 7 years ago
I don't quite understand the difference here - was the header
event emitted after the first data
event?
It should certainly be before, I would be happy to merge a PR for that.
Yes, the header event was emitted after the first event:
https://github.com/dominictarr/JSONStream/blob/master/index.js#L112, while the header emitter is on line 120
I'll open a PR, thanks
The
header
event is emitted after the first row is parsed.output:
I fixed it by doing this:
output:
@dominictarr Would you be to accept a PR with tests passing for this change?