stream-json
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
208999
4223
156