Socket
Socket
Sign inDemoInstall

combined-stream

Package Overview
Dependencies
1
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

yarn.lock

23

lib/combined_stream.js
var util = require('util');
var Stream = require('stream').Stream;
var DelayedStream = require('delayed-stream');
var defer = require('./defer.js');

@@ -17,2 +16,4 @@ module.exports = CombinedStream;

this._currentStream = null;
this._insideLoop = false;
this._pendingNext = false;
}

@@ -72,2 +73,20 @@ util.inherits(CombinedStream, Stream);

this._currentStream = null;
if (this._insideLoop) {
this._pendingNext = true;
return; // defer call
}
this._insideLoop = true;
try {
do {
this._pendingNext = false;
this._realGetNext();
} while (this._pendingNext);
} finally {
this._insideLoop = false;
}
};
CombinedStream.prototype._realGetNext = function() {
var stream = this._streams.shift();

@@ -94,3 +113,3 @@

defer(this._pipeNext.bind(this, stream));
this._pipeNext(stream);
}.bind(this));

@@ -97,0 +116,0 @@ };

2

package.json

@@ -5,3 +5,3 @@ {

"description": "A stream that emits multiple other streams one after another.",
"version": "1.0.7",
"version": "1.0.8",
"homepage": "https://github.com/felixge/node-combined-stream",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc