Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-json

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-json - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"name": "stream-json",
"version": "1.3.0",
"version": "1.3.1",
"description": "stream-json is the micro-library of Node.js stream components for creating custom JSON processing pipelines with a minimal memory footprint. It can parse JSON files far exceeding available memory streaming individual primitives using a SAX-inspired API. Includes utilities to stream JSON database dumps.",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/uhop/stream-json",

@@ -113,2 +113,3 @@ # stream-json

- 1.3.1 *Bugfix: reverted the last bugfix in `Verifier`, a bugfix in tests, thx [Guillermo Ares](https://github.com/guillermoares).*
- 1.3.0 *added `Batch`, a bugfix in `Verifier`.*

@@ -115,0 +116,0 @@ - 1.2.1 *the technical release.*

@@ -125,3 +125,5 @@ 'use strict';

let gotError = false;
pipeline.on('error', function(error) {
gotError = true;
eval(t.TEST('error.line === 1 && error.pos === 3 && error.offset === 2'));

@@ -131,6 +133,8 @@ async.done();

pipeline.on('finish', function() {
t.test(!"We shouldn't be here!");
async.done();
if (!gotError) {
t.test(!"We shouldn't be here!");
async.done();
}
});
}
]);

@@ -106,3 +106,4 @@ 'use strict';

if (!match) {
if (index < this._buffer.length || this._done) return callback(this._makeError('Verifier cannot parse input: expected a value'));
if (index < this._buffer.length && this._done) return callback(this._makeError('Verifier cannot parse input: expected a value'));
if (this._done) return callback(this._makeError('Verifier has expected a value'));
break main; // wait for more input

@@ -315,3 +316,4 @@ }

if (!match) {
if (index < this._buffer.length || this._done) return callback(this._makeError('Verifier cannot parse input: expected a fractional part of a number'));
if (index < this._buffer.length || this._done)
return callback(this._makeError('Verifier cannot parse input: expected a fractional part of a number'));
break main; // wait for more input

@@ -398,3 +400,4 @@ }

if (!match) {
if (index < this._buffer.length || this._done) return callback(this._makeError('Verifier cannot parse input: expected an exponent part of a number'));
if (index < this._buffer.length || this._done)
return callback(this._makeError('Verifier cannot parse input: expected an exponent part of a number'));
break main; // wait for more input

@@ -401,0 +404,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc