[Pkg-javascript-commits] [node-jsonstream] 205/214: Move header emit to before a row is parsed - closes #122
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 12:59:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-jsonstream.
commit 2b74c4d32a9355d320b279edc85119b3cc3d74aa
Author: Steve Lacy <me at slacy.me>
Date: Thu Feb 23 14:19:23 2017 -0700
Move header emit to before a row is parsed - closes #122
---
index.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/index.js b/index.js
index c164100..6d68a19 100755
--- a/index.js
+++ b/index.js
@@ -94,6 +94,12 @@ exports.parse = function (path, map) {
}
}
+
+ // emit header
+ if (header) {
+ stream.emit('header', header);
+ header = false;
+ }
if (j !== this.stack.length) return
count ++
@@ -115,12 +121,6 @@ exports.parse = function (path, map) {
for(var k in this.stack)
if (!Object.isFrozen(this.stack[k]))
this.stack[k].value = null
-
- // emit header
- if (header) {
- stream.emit('header', header);
- header = false;
- }
}
parser._onToken = parser.onToken;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jsonstream.git
More information about the Pkg-javascript-commits
mailing list