Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.1 to 1.0.2

2

index.js

@@ -70,4 +70,4 @@ var duplexer = require('duplexer2')

var dup = duplexer(input, output)
tr.on('error', function (err) { dup.emit('error') });
tr.on('error', function (err) { dup.emit('error', err) });
return dup;
}
{
"name": "stream-combiner2",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/substack/stream-combiner2",

@@ -5,0 +5,0 @@ "repository": {

@@ -6,2 +6,20 @@ var es = require('event-stream')

test('re-emit error object for old streams', function (test) {
test.plan(1)
var expectedErr = new Error('asplode')
var pipe = combine(
es.through(function(data) {
return this.emit('error', expectedErr)
})
)
pipe.on('error', function (err) {
test.equal(err, expectedErr)
})
pipe.write('pow')
})
test('do not duplicate errors', function (test) {

@@ -8,0 +26,0 @@

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