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

fork-stream

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fork-stream - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

19

index.js

@@ -17,6 +17,15 @@ var stream = require("stream");

this.a._read = function(n) {};
this.b._read = function(n) {};
var self = this;
var self = this;
var resume = function resume() {
if (self.resume) {
var r = self.resume;
self.resume = null;
r.call(null);
}
};
this.a._read = resume;
this.b._read = resume;
this.on("finish", function() {

@@ -45,6 +54,6 @@ self.a.push(null);

return done();
} else {
self.resume = done;
}
return out.on("drain", done);
});
};
{
"name": "fork-stream",
"version": "0.0.3",
"version": "0.0.4",
"description": "Fork a stream in multiple directions according to a function",

@@ -5,0 +5,0 @@ "main": "index.js",

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