JSONStream
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -114,3 +114,3 @@ #! /usr/bin/env node | ||
} | ||
parser.onError = function (err) { | ||
@@ -159,3 +159,7 @@ if(err.message.indexOf("at position") > -1) | ||
anyData = true | ||
var json = JSON.stringify(data, null, indent) | ||
try { | ||
var json = JSON.stringify(data, null, indent) | ||
} catch (err) { | ||
return stream.emit('error', err) | ||
} | ||
if(first) { first = false ; stream.queue(op + json)} | ||
@@ -214,1 +218,2 @@ else stream.queue(sep + json) | ||
} | ||
{ | ||
"name": "JSONStream", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "rawStream.pipe(JSONStream.parse()).pipe(streamOfObjects)", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/dominictarr/JSONStream", |
Sorry, the diff of this file is not supported yet
403794
4942