event-stream
Advanced tools
Comparing version 2.1.8 to 2.1.9
@@ -485,2 +485,4 @@ //filter will reemit the data if cb(err,pass) pass is truthy | ||
// | ||
// must be used after es.split() to ensure that each chunk represents a line | ||
// source.pipe(es.split()).pipe(es.parse()) | ||
@@ -506,4 +508,4 @@ es.parse = function () { | ||
es.stringify = function () { | ||
return es.mapSync(function (e){ | ||
return JSON.stringify(e) + '\n' | ||
return es.mapSync(function (e){ | ||
return JSON.stringify(Buffer.isBuffer(e) ? e.toString() : e) + '\n' | ||
}) | ||
@@ -510,0 +512,0 @@ } |
{ | ||
"name": "event-stream", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"description": "construct pipes of streams of events", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/dominictarr/event-stream", |
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
50609
18
1302