easy-json-stream
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -9,4 +9,3 @@ var Transform = require('stream').Transform | ||
Transform.call(this, { objectMode: true }); | ||
if (options.head) | ||
this.push(options.head); | ||
this.head = options.head; | ||
this.tail = options.tail; | ||
@@ -17,4 +16,4 @@ this.sep = options.sep || ','; | ||
StringifyStream.prototype._transform = function(chunk, enc, next) { | ||
if (!this.first) | ||
this.push(this.sep); | ||
if (!this.first) this.push(this.sep); | ||
else if (this.head) this.push(this.head); | ||
this.push(JSON.stringify(chunk)); | ||
@@ -21,0 +20,0 @@ this.first = false; |
{ | ||
"name": "easy-json-stream", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Stream objects to JSON and JSON into objects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6975
143