event-stream
Advanced tools
Comparing version 0.7.0 to 0.8.0
25
index.js
@@ -12,2 +12,26 @@ //filter will reemit the data if cb(err,pass) pass is truthy | ||
<<<<<<< index.js | ||
//a do nothing stream that just passes through | ||
es.through = function () { | ||
var s = new Stream() | ||
s.readable = true | ||
s.writeable = true | ||
s.write = function (data) { | ||
this.emit('data', data) | ||
return true | ||
} | ||
s.end = function (data) { | ||
if(data) | ||
this.write(data) | ||
this.emit('end') | ||
this.writable = false | ||
} | ||
return s | ||
} | ||
||||||| node_modules/event-stream/index.js | ||
======= | ||
// through | ||
@@ -34,2 +58,3 @@ // | ||
>>>>>>> ../snob/node_modules/event-stream/index.js | ||
// writable stream, collects all events into an array | ||
@@ -36,0 +61,0 @@ // and calls back when 'end' occurs |
{ "name": "event-stream" | ||
, "version": "0.7.0" | ||
, "version": "0.8.0" | ||
, "description": "construct pipes of streams of events" | ||
@@ -17,2 +17,2 @@ , "homepage": "http://github.com/dominictarr/event-stream" | ||
, "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://bit.ly/dominictarr)" | ||
} | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
25338
8
516