Comparing version 2.0.5 to 2.1.0
@@ -264,2 +264,12 @@ /// <reference types="node"/> | ||
/** | ||
Result of a child process execution. On success this is a plain object. On failure this is also an `Error` instance. | ||
The child process fails when: | ||
- its exit code is not `0` | ||
- it was killed with a signal | ||
- timing out | ||
- being canceled | ||
- there's not enough memory or there are already too many child processes | ||
*/ | ||
interface ExecaReturnValue<StdoutErrorType = string> | ||
@@ -285,2 +295,9 @@ extends ExecaSyncReturnValue<StdoutErrorType> { | ||
message: string; | ||
/** | ||
Original error message. This is `undefined` unless the child process exited due to an `error` event or a timeout. | ||
The `message` property contains both the `originalMessage` and some additional information added by Execa. | ||
*/ | ||
originalMessage?: string; | ||
} | ||
@@ -287,0 +304,0 @@ |
@@ -56,2 +56,3 @@ 'use strict'; | ||
if (error instanceof Error) { | ||
error.originalMessage = error.message; | ||
error.message = `${message}\n${error.message}`; | ||
@@ -58,0 +59,0 @@ } else { |
{ | ||
"name": "execa", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"description": "Process execution for humans", | ||
@@ -41,3 +41,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"cross-spawn": "^6.0.5", | ||
"cross-spawn": "^7.0.0", | ||
"get-stream": "^5.0.0", | ||
@@ -44,0 +44,0 @@ "is-stream": "^2.0.0", |
@@ -9,9 +9,2 @@ <img src="media/logo.svg" width="400"> | ||
--- | ||
One of the maintainers [@ehmicky](https://github.com/ehmicky) is looking for a remote full-time position as a Node.js back-end lead. Feel free to [contact him](https://www.mickael-hebert.com)! | ||
--- | ||
## Why | ||
@@ -209,2 +202,9 @@ | ||
The child process [fails](#failed) when: | ||
- its [exit code](#exitcode) is not `0` | ||
- it was [killed](#killed) with a [signal](#signal) | ||
- [timing out](#timedout) | ||
- [being canceled](#iscanceled) | ||
- there's not enough memory or there are already too many child processes | ||
#### command | ||
@@ -276,2 +276,10 @@ | ||
#### originalMessage | ||
Type: `string | undefined` | ||
Original error message. This is `undefined` unless the child process exited due to an `error` event or a timeout. | ||
The `message` property contains both the `originalMessage` and some additional information added by Execa. | ||
### options | ||
@@ -278,0 +286,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49164
948
547
+ Addedcross-spawn@7.0.5(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedwhich@2.0.2(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removednice-try@1.0.5(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedwhich@1.3.1(transitive)
Updatedcross-spawn@^7.0.0