This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/fast-glob/package/out/utils/stream.js
2019-08-11 20:48:02 +02:00

14 lines
465 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var merge2 = require("merge2");
/**
* Merge multiple streams and propagate their errors into one stream in parallel.
*/
function merge(streams) {
var mergedStream = merge2(streams);
streams.forEach(function (stream) {
stream.on('error', function (err) { return mergedStream.emit('error', err); });
});
return mergedStream;
}
exports.merge = merge;