Socket
Socket
Sign inDemoInstall

stream-combiner2

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-combiner2 - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

12

index.js

@@ -0,3 +1,4 @@

var PassThrough = require('readable-stream').PassThrough
var Readable = require('readable-stream').Readable
var duplexer = require('duplexer2')
var through = require('through2')

@@ -31,3 +32,3 @@ module.exports = function () {

if(streams.length == 0)
return through(opts)
return new PassThrough(opts)
else if(streams.length == 1)

@@ -67,8 +68,3 @@ return streams[0]

if (typeof tr.read === 'function') return tr
if (!opts) opts = tr._options || {}
var input = through(opts), output = through(opts)
input.pipe(tr).pipe(output)
var dup = duplexer(input, output)
tr.on('error', function (err) { dup.emit('error', err) });
return dup;
return new Readable(opts).wrap(tr)
}
{
"name": "stream-combiner2",
"version": "1.0.2",
"version": "1.1.0",
"homepage": "https://github.com/substack/stream-combiner2",

@@ -10,8 +10,8 @@ "repository": {

"dependencies": {
"duplexer2": "~0.0.2",
"through2": "~0.5.1"
"duplexer2": "~0.1.0",
"readable-stream": "^2.0.2"
},
"devDependencies": {
"tape": "~2.3.0",
"through": "~2.3.4",
"through2": "^2.0.0",
"event-stream": "~3.0.7"

@@ -18,0 +18,0 @@ },

@@ -5,3 +5,3 @@ # stream-combiner2

[stream-combiner](https://npmjs.org/package/stream-combiner)
for streams2.
for streams3.

@@ -17,3 +17,3 @@ ``` js

Streams1 streams are automatically upgraded to be streams2 streams.
Streams1 streams are automatically upgraded to be streams3 streams.

@@ -20,0 +20,0 @@ Listening for 'error' will recieve errors from all streams inside the pipe.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc