New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

jsonstream-next

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonstream-next - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

@@ -32,4 +32,3 @@ const Parser = require('jsonparse')

let count = 0,
_key
let count = 0, _key
if (!path || !path.length) path = null

@@ -123,3 +122,3 @@

if (err.message.indexOf('at position') > -1) err.message = 'Invalid JSON (' + err.message + ')'
stream.emit('error', err)
stream.destroy(err)
}

@@ -126,0 +125,0 @@

{
"name": "jsonstream-next",
"version": "2.0.0",
"version": "3.0.0",
"description": "rawStream.pipe(JSONStream.parse()).pipe(streamOfObjects)",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/contra/JSONStream",

@@ -13,4 +13,4 @@ var JSONStream = require("../");

t.ok(
error === 2,
"expect error to be called twice ('Invalid JSON', 'Incomplete JSON'): " +
error === 1,
"expect error to be called twice ('Invalid JSON'): " +
error

@@ -17,0 +17,0 @@ );

Sorry, the diff of this file is not supported yet