diff --git a/index.js b/index.js index 195af43..03aea19 100644 --- a/index.js +++ b/index.js @@ -24,9 +24,9 @@ module.exports = shell => { return execa(shell || defaultShell, args) .then(result => parseEnv(result.stdout)) - .catch(err => { + .catch(error => { if (shell) { - throw err; + throw error; } else { return process.env; } @@ -41,9 +41,9 @@ module.exports.sync = shell => { try { const {stdout} = execa.sync(shell || defaultShell, args); return parseEnv(stdout); - } catch (err) { + } catch (error) { if (shell) { - throw err; + throw error; } else { return process.env; } diff --git a/package.json b/package.json index 913cf04..d86ccb3 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ ], "dependencies": { "default-shell": "^1.0.1", - "execa": "^0.10.0", + "execa": "^1.0.0", "strip-ansi": "^4.0.0" }, "devDependencies": {