cli-error-notifier
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="2.1.0"></a> | ||
# [2.1.0](https://github.com/micromata/cli-error-notifier/compare/2.0.1...2.1.0) (2019-02-11) | ||
### Bug Fixes | ||
* Update dependencies ([d1527cd](https://github.com/micromata/cli-error-notifier/commit/d1527cd)) | ||
### Features | ||
* Stream output ([65569d7](https://github.com/micromata/cli-error-notifier/commit/65569d7)), closes [#9](https://github.com/micromata/cli-error-notifier/issues/9) | ||
<a name="2.0.1"></a> | ||
@@ -7,0 +22,0 @@ ## [2.0.1](https://github.com/micromata/cli-error-notifier/compare/2.0.0...2.0.1) (2018-05-31) |
@@ -79,8 +79,4 @@ #!/usr/bin/env node | ||
errorNotifier(cli.input[0], cli.flags) | ||
.then(result => { | ||
console.log(result.stdout || result.stderr); | ||
}) | ||
.catch(error => { | ||
console.error(error.stdout || error.stderr); | ||
process.exit(error.code); | ||
}); |
@@ -10,6 +10,8 @@ const execa = require('execa'); | ||
return new Promise((resolve, reject) => { | ||
execa.shell(command, {env: {FORCE_COLOR: true}}) | ||
.then(result => resolve(result)) | ||
.catch(err => notifier.notify(notifierOptions(opts), () => reject(err))); | ||
const execaPending = execa.shell(command, {env: {FORCE_COLOR: true}}); | ||
execaPending.stdout.pipe(process.stdout); | ||
execaPending.stderr.pipe(process.stderr); | ||
return execaPending.then(result => resolve(result)) | ||
.catch(error => notifier.notify(notifierOptions(opts), () => reject(error))); | ||
}); | ||
}; |
{ | ||
"name": "cli-error-notifier", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Sends native desktop notifications if CLI apps fail", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"lint:fix": "npm run lint --silent -- --fix", | ||
"release": "nsp check && standard-version --tag-prefix", | ||
"release": "standard-version --tag-prefix", | ||
"release:patch": "npm run release --silent -- --release-as patch", | ||
@@ -41,3 +41,3 @@ "release:minor": "npm run release --silent -- --release-as minor", | ||
"dependencies": { | ||
"execa": "^0.10.0", | ||
"execa": "^1.0.0", | ||
"log-symbols": "^2.2.0", | ||
@@ -49,12 +49,11 @@ "meow": "^5.0.0", | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"ava": "^1.2.1", | ||
"codecov": "^3.0.2", | ||
"eslint": "^4.19.1", | ||
"eslint-config-xo": "^0.22.2", | ||
"eslint": "^5.13.0", | ||
"eslint-config-xo": "^0.26.0", | ||
"eslint-plugin-filenames": "^1.2.0", | ||
"eslint-plugin-security": "^1.4.0", | ||
"eslint-plugin-unicorn": "^4.0.3", | ||
"eslint-plugin-unicorn": "^7.1.0", | ||
"is-semver": "^1.0.8", | ||
"nsp": "^3.2.1", | ||
"nyc": "^11.8.0", | ||
"nyc": "^13.2.0", | ||
"standard-version": "^4.4.0" | ||
@@ -61,0 +60,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
12717
10
94
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexeca@1.0.0(transitive)
+ Addedget-stream@4.1.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedexeca@0.10.0(transitive)
Updatedexeca@^1.0.0