easy-json-stream
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -23,4 +23,5 @@ var Transform = require('stream').Transform | ||
StringifyStream.prototype._flush = function(done) { | ||
if (!this.first) | ||
this.push(this.tail); | ||
if (this.first) | ||
this.push(this.head); | ||
this.push(this.tail); | ||
done(); | ||
@@ -27,0 +28,0 @@ } |
{ | ||
"name": "easy-json-stream", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Stream objects to JSON and JSON into objects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -100,3 +100,3 @@ var path = require('path') | ||
.on('end', function() { | ||
t.notOk(buffer.length, 'no data added to buffer'); | ||
t.equals(buffer.join(''), '[]', 'empty array added to buffer'); | ||
t.end(); | ||
@@ -103,0 +103,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
7319
155