concurrently 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.travis.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  language: node_js
2
2
  node_js:
3
+ - 12
3
4
  - 10
4
5
  - 8
5
6
  - 6
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "eslint.enable": true,
3
3
  "jest.autoEnable": true,
4
- "jest.showCoverageOnLoad": true
4
+ "jest.showCoverageOnLoad": true,
5
+ "editor.rulers": [100]
5
6
  }
@@ -13,7 +13,12 @@ const createKillMessage = prefix => new RegExp(
13
13
 
14
14
  const run = args => {
15
15
  const child = spawn('node ./concurrently.js ' + args, {
16
- cwd: __dirname
16
+ cwd: __dirname,
17
+ env: Object.assign({}, process.env, {
18
+ // When upgrading from jest 23 -> 24, colors started printing in the test output.
19
+ // They are forcibly disabled here
20
+ FORCE_COLOR: 0
21
+ }),
17
22
  });
18
23
 
19
24
  const stdout = readline.createInterface({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "concurrently",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Run commands concurrently",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -29,20 +29,20 @@
29
29
  "author": "Kimmo Brunfeldt",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "chalk": "^2.4.1",
33
- "date-fns": "^1.23.0",
34
- "lodash": "^4.17.10",
32
+ "chalk": "^2.4.2",
33
+ "date-fns": "^1.30.1",
34
+ "lodash": "^4.17.15",
35
35
  "read-pkg": "^4.0.1",
36
- "rxjs": "^6.3.3",
36
+ "rxjs": "^6.5.2",
37
37
  "spawn-command": "^0.0.2-1",
38
38
  "supports-color": "^4.5.0",
39
- "tree-kill": "^1.1.0",
40
- "yargs": "^12.0.1"
39
+ "tree-kill": "^1.2.1",
40
+ "yargs": "^12.0.5"
41
41
  },
42
42
  "devDependencies": {
43
- "coveralls": "^3.0.2",
44
- "eslint": "^5.4.0",
45
- "jest": "^23.5.0",
43
+ "coveralls": "^3.0.4",
44
+ "eslint": "^5.16.0",
45
+ "jest": "^24.8.0",
46
46
  "jest-create-mock-instance": "^1.1.0"
47
47
  },
48
48
  "jest": {
@@ -3,7 +3,7 @@ module.exports = class StripQuotes {
3
3
  let { command } = commandInfo;
4
4
 
5
5
  // Removes the quotes surrounding a command.
6
- if (command[0] === '"' || command[0] === '\'') {
6
+ if (/^"(.+?)"$/.test(command) || /^'(.+?)'$/.test(command)) {
7
7
  command = command.substr(1, command.length - 2);
8
8
  }
9
9
 
@@ -12,3 +12,9 @@ it('strips single quotes', () => {
12
12
  it('strips double quotes', () => {
13
13
  expect(parser.parse({ command: '"echo foo"' })).toEqual({ command: 'echo foo' });
14
14
  });
15
+
16
+ it('does not remove quotes if they are impaired', () => {
17
+ expect(parser.parse({ command: '"echo foo' })).toEqual({ command: '"echo foo' });
18
+ expect(parser.parse({ command: 'echo foo\'' })).toEqual({ command: 'echo foo\'' });
19
+ expect(parser.parse({ command: '"echo foo\'' })).toEqual({ command: '"echo foo\'' });
20
+ });