gulp-notify
Advanced tools
Comparing version 1.8.0 to 2.0.0
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) |
@@ -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" |
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
91326
1038
+ Addedansi-escapes@3.2.0(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedansicolors@0.3.2(transitive)
+ Addedcardinal@2.1.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcli-table@0.3.11(transitive)
+ Addedcli-usage@0.1.10(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolors@1.0.3(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedhas-flag@2.0.03.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlodash._arraycopy@3.0.0(transitive)
+ Addedlodash._arrayeach@3.0.0(transitive)
+ Addedlodash._baseassign@3.2.0(transitive)
+ Addedlodash._baseclone@3.3.0(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._basefor@3.0.3(transitive)
+ Addedlodash._bindcallback@3.0.1(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash.clonedeep@3.0.2(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedmarked@0.7.0(transitive)
+ Addedmarked-terminal@3.3.0(transitive)
+ Addednode-emoji@1.11.0(transitive)
+ Addednode-notifier@4.6.1(transitive)
+ Addedredeyed@2.1.1(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedsupports-hyperlinks@1.0.1(transitive)
- Removednode-notifier@3.4.1(transitive)
- Removedsemver@3.0.1(transitive)
Updatednode-notifier@^4.0.0