JSONStream
Advanced tools
Comparing version 1.3.0 to 1.3.1
12
index.js
@@ -97,2 +97,8 @@ #! /usr/bin/env node | ||
} | ||
// emit header | ||
if (header) { | ||
stream.emit('header', header); | ||
header = false; | ||
} | ||
if (j !== this.stack.length) return | ||
@@ -119,8 +125,2 @@ | ||
this.stack[k].value = null | ||
// emit header | ||
if (header) { | ||
stream.emit('header', header); | ||
header = false; | ||
} | ||
} | ||
@@ -127,0 +127,0 @@ parser._onToken = parser.onToken; |
{ | ||
"name": "JSONStream", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "rawStream.pipe(JSONStream.parse()).pipe(streamOfObjects)", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/dominictarr/JSONStream", |
@@ -41,2 +41,3 @@ | ||
}) | ||
it(headerCalled).equal(1) | ||
parsed.push(data) | ||
@@ -43,0 +44,0 @@ }) |
Sorry, the diff of this file is not supported yet
408510
35
5093