execa
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -267,2 +267,6 @@ 'use strict'; | ||
if (result.error || result.status !== 0) { | ||
throw (result.error || new Error(result.stderr === '' ? result.stdout : result.stderr)); | ||
} | ||
result.stdout = handleOutput(parsed.opts, result.stdout); | ||
@@ -269,0 +273,0 @@ result.stderr = handleOutput(parsed.opts, result.stderr); |
{ | ||
"name": "execa", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "A better `child_process`", | ||
@@ -47,4 +47,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"cross-spawn": "^4.0.0", | ||
"get-stream": "^2.2.0", | ||
"cross-spawn": "^5.0.1", | ||
"get-stream": "^3.0.0", | ||
"is-stream": "^1.1.0", | ||
@@ -62,3 +62,3 @@ "npm-run-path": "^2.0.0", | ||
"is-running": "^2.0.0", | ||
"nyc": "^8.3.0", | ||
"nyc": "^10.0.0", | ||
"xo": "*" | ||
@@ -72,3 +72,2 @@ }, | ||
"exclude": [ | ||
"node_modules", | ||
"**/fixtures/**", | ||
@@ -75,0 +74,0 @@ "**/test.js", |
@@ -99,2 +99,4 @@ # execa [![Build Status: Linux](https://travis-ci.org/sindresorhus/execa.svg?branch=master)](https://travis-ci.org/sindresorhus/execa) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/x5ajamxtjtt93cqv/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/execa/branch/master) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/execa/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/execa?branch=master) | ||
This method throws an `Error` if the command fails. | ||
### execa.shellSync(file, [options]) | ||
@@ -101,0 +103,0 @@ |
14264
253
153
+ Addedcross-spawn@5.1.0(transitive)
+ Addedget-stream@3.0.0(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
- Removedcross-spawn@4.0.2(transitive)
- Removedget-stream@2.3.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
Updatedcross-spawn@^5.0.1
Updatedget-stream@^3.0.0