Socket
Socket
Sign inDemoInstall

concurrently

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concurrently - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1

2

package.json
{
"name": "concurrently",
"version": "3.6.0",
"version": "3.6.1",
"description": "Run commands concurrently",

@@ -5,0 +5,0 @@ "main": "src/main.js",

@@ -475,3 +475,3 @@ #!/usr/bin/env node

const prefixes = getPrefixes(childrenInfo, child);
const prefixType = config.prefix || prefixes.name ? 'name' : 'index';
const prefixType = config.prefix || (prefixes.name ? 'name' : 'index');
if (_.includes(_.keys(prefixes), prefixType)) {

@@ -478,0 +478,0 @@ return '[' + prefixes[prefixType] + '] ';

@@ -120,2 +120,35 @@ 'use strict';

it('--prefix can contain PID', () => {
const collectedLines = [];
return run('node ./src/main.js --prefix pid "echo one" "echo two"', {
onOutputLine(line) {
collectedLines.push(line);
}
}).then(() => {
assert.ok(collectedLines.every(line => /^\[\d+\] /.test(line)));
});
});
it('--prefix can contain command itself', () => {
const collectedLines = [];
return run('node ./src/main.js --prefix "[{command}]" "echo one" "echo two"', {
onOutputLine(line) {
collectedLines.push(line);
}
}).then(() => {
assert.ok(collectedLines.every(line => /^\[echo (one|two)\] /.test(line)));
});
});
it('--prefix can contain time', () => {
const collectedLines = [];
return run('node ./src/main.js --prefix time "echo one" "echo two"', {
onOutputLine(line) {
collectedLines.push(line);
}
}).then(() => {
assert.ok(collectedLines.every(line => /^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\] /.test(line)));
});
});
it('--prefix should default to "index"', () => {

@@ -122,0 +155,0 @@ const collectedLines = [];

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