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

gulp-notify

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-notify - npm Package Compare versions

Comparing version 1.8.0 to 2.0.0

6

CHANGELOG.md
Changelog
===
#### `v2.0.0`
1. Major bump due to node-notifier (underlying module for doing notifications) have changed it's API and thus this has as well.
See [changelog on node-notifier](https://github.com/mikaelbr/node-notifier/blob/master/CHANGELOG.md#v400).
#### `v1.8.0`

@@ -5,0 +11,0 @@ 1. Changes notification to continue stream at once (unless when using the stream - i.e. when emitting errors)

9

examples/gulpfile.js

@@ -73,4 +73,4 @@

"icon": path.join(__dirname, "gulp.png"), // case sensitive
"open": "https://github.com/mikaelbr/gulp-notify",
"onLast": true
"onLast": true,
"wait": true
}));

@@ -96,3 +96,6 @@ });

}))
.on("error", notify.onError('Error: <%= error.message %>'))
.on("error", notify.onError({
message: 'Error: <%= error.message %>',
sound: false // deactivate sound?
}))
.on("error", function (err) {

@@ -99,0 +102,0 @@ console.log("Error:", err);

var through = require("through2");
var gutil = require("gulp-util");
var Notification = require("node-notifier");
var notifier = require("node-notifier");
var report = require("./report");

@@ -42,3 +42,2 @@

} else {
var notifier = new Notification(options);
reporter = notifier.notify.bind(notifier);

@@ -45,0 +44,0 @@ }

var through = require("through2");
var report = require('./report');
var extra = require('./extra_api');
var Notification = require("node-notifier");
var notifier = require("node-notifier");

@@ -9,3 +9,3 @@ "use strict";

module.exports = function (options) {
var reporter, notifier;
var reporter;

@@ -18,3 +18,2 @@ options = options || {};

} else {
notifier = new Notification(options);
reporter = notifier.notify.bind(notifier);

@@ -74,3 +73,3 @@ }

var isGrowl = notifier && notifier instanceof Notification.Growl;
var isGrowl = notifier && notifier instanceof notifier.Growl;
var isEcon = err.message.indexOf('ECONNREFUSED') !== -1;

@@ -77,0 +76,0 @@ var dropMessage = isGrowl && isEcon;

{
"name": "gulp-notify",
"version": "1.8.0",
"version": "2.0.0",
"description": "gulp plugin to send messages based on Vinyl Files or Errors to Mac OS X, Linux or Windows using the node-notifier module. Fallbacks to Growl or simply logging",

@@ -35,3 +35,3 @@ "keywords": [

"lodash.template": "~2.4.1",
"node-notifier": "^3.4.1",
"node-notifier": "^4.0.0",
"node.extend": "^1.0.9",

@@ -38,0 +38,0 @@ "through2": "^1.0.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