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

npm-run-parallel

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-run-parallel - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

25

dist/run.js

@@ -18,10 +18,20 @@ 'use strict';

var runTask = function runTask(task) {
var _exec = (0, _child_process.exec)('npm run ' + task);
var addExitOnInterrupt = function addExitOnInterrupt(taskProcess) {
return process.on('SIGINT', taskProcess.kill);
}; /* eslint-disable no-console */
var stdout = _exec.stdout;
var stderr = _exec.stderr;
var executeTask = function executeTask(task) {
var taskProcess = (0, _child_process.exec)('npm run ' + task);
addExitOnInterrupt(taskProcess);
return taskProcess;
};
var createOutputStreamsFromProcess = function createOutputStreamsFromProcess(_ref) {
var stdout = _ref.stdout;
var stderr = _ref.stderr;
var stdoutStream = _rxNode2.default.fromReadableStream(stdout);
var stderrStream = _rxNode2.default.fromReadableStream(stderr).select(function (e) {

@@ -32,4 +42,9 @@ return process.stderr.write(e) && process.exit(1);

return stdoutStream.merge(stderrStream);
}; /* eslint-disable no-console */
};
var runTask = function runTask(task) {
var taskProcess = executeTask(task);
return createOutputStreamsFromProcess(taskProcess);
};
var runTasks = exports.runTasks = function runTasks(tasks) {

@@ -36,0 +51,0 @@ _rx.Observable.from(tasks).selectMany(runTask).subscribe(function (output) {

2

package.json
{
"name": "npm-run-parallel",
"version": "0.4.2",
"version": "0.4.3",
"description": "Run npm tasks in parallel and exit when they are all done.",

@@ -5,0 +5,0 @@ "bin": "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