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

execa

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

execa - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0

17

index.d.ts

@@ -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 @@

1

lib/error.js

@@ -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 {

4

package.json
{
"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 @@

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