Skip to content

Commit

Permalink
Make execa compatible with Node.js 13.0.0-pre (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott authored and ehmicky committed Oct 4, 2019
1 parent ac2bc15 commit d268fd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -189,7 +189,7 @@ module.exports.sync = (file, args, options) => {
code: result.status,
command,
parsed,
timedOut: result.error && result.error.errno === 'ETIMEDOUT',
timedOut: result.error && result.error.code === 'ETIMEDOUT',
isCanceled: false,
killed: result.signal !== null
});
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -66,7 +66,7 @@ const execa = require('execa');
/*
{
message: 'Command failed with exit code 2 (ENOENT): wrong command spawn wrong ENOENT',
errno: 'ENOENT',
errno: -2,
syscall: 'spawn wrong',
path: 'wrong',
spawnargs: ['command'],
Expand Down Expand Up @@ -105,7 +105,7 @@ try {
/*
{
message: 'Command failed with exit code 2 (ENOENT): wrong command spawnSync wrong ENOENT',
errno: 'ENOENT',
errno: -2,
syscall: 'spawnSync wrong',
path: 'wrong',
spawnargs: ['command'],
Expand Down

0 comments on commit d268fd1

Please sign in to comment.