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

cli-error-notifier

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-error-notifier - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

15

CHANGELOG.md

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

4

cli.js

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

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