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

grunt-anybar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-anybar - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

18

lib/fail-hook.js

@@ -14,8 +14,18 @@ /*

var anybar = require('anybar');
var anybarSync = require('deasync')(anybar);
function hook() {
// require('child_process').execFileSync('nc', ['-4u', '-w0', 'localhost', options.port], { input: 'exclamation' });
anybarSync('exclamation', options);
}
// run on warning
grunt.util.hooker.hook(grunt, 'warn', anybar('red', options));
grunt.util.hooker.hook(grunt, 'error', anybar('exlamation', options));
grunt.util.hooker.hook(grunt, 'fail', anybar('exlamation', options));
grunt.util.hooker.hook(grunt, 'fatal', anybar('exlamation', options));
grunt.util.hooker.hook(grunt, 'warn', hook);
grunt.util.hooker.hook(grunt.fail, 'warn', hook);
// run on error
grunt.util.hooker.hook(grunt.fail, 'error', hook);
grunt.util.hooker.hook(grunt.log, 'fail', hook);
grunt.util.hooker.hook(grunt.log, 'error', hook);
// run on fatal
grunt.util.hooker.hook(grunt.fail, 'fatal', hook);

@@ -22,0 +32,0 @@ function setOptions(opts) {

{
"name": "grunt-anybar",
"description": "Grunt plugin to show the current build status in the AnyBar menu app.",
"version": "0.1.0",
"version": "0.2.0",
"homepage": "https://github.com/frdmn/grunt-anybar",

@@ -11,2 +11,7 @@ "author": {

},
"contributors": {
"name": "Anton Eprev",
"email": "a.eprev@gmail.com",
"url": "http://eprev.org"
},
"repository": {

@@ -32,6 +37,7 @@ "type": "git",

"devDependencies": {
"deasync": "^0.1.0",
"grunt": "~0.4.5",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-jshint": "^0.9.2",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-nodeunit": "^0.3.3",
"grunt": "~0.4.5"
"grunt-contrib-nodeunit": "^0.3.3"
},

@@ -38,0 +44,0 @@ "peerDependencies": {

@@ -122,2 +122,5 @@ # grunt-anybar

## Release History
_(Nothing yet)_
v0.2.0
* Fixed error hooks. So it works now.
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