[Pkg-javascript-commits] [node-stream-splicer] 40/71: turn arrays into sub-pipelines
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:55:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-stream-splicer.
commit 41c4ad43f4f64cd43886f8af0794d3bce62df50a
Author: James Halliday <mail at substack.net>
Date: Mon Jun 9 19:25:55 2014 -0700
turn arrays into sub-pipelines
---
index.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/index.js b/index.js
index 140fb46..e4db03c 100644
--- a/index.js
+++ b/index.js
@@ -123,6 +123,9 @@ Pipeline.prototype.splice = function (start, removeLen) {
var reps = [], args = arguments;
for (var j = 2; j < args.length; j++) (function (stream) {
+ if (isArray(stream)) {
+ stream = new Pipeline(stream, self._options);
+ }
stream.on('error', function (err) {
err.stream = this;
self.emit('error', err);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-splicer.git
More information about the Pkg-javascript-commits
mailing list