Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (typeof appName === 'undefined') {
appName = 'Gulp';
}
applicationOptions = util._extend({
icon: fs.readFileSync(__dirname + '/gulp.png')
}, applicationOptions || {});
var app = new growler.GrowlApplication(appName, applicationOptions);
app.setNotifications({
Gulp: {}
});
var reporter = notify.withReporter(function(notificationOptions, callback) {
app.register(function(success, err) {
if (!success) {
return callback(err);
}
// Rename 'message' property to 'text'
notificationOptions.text = notificationOptions.message;
delete notificationOptions.message;
app.sendNotification('Gulp', notificationOptions, function(success, err) {
return callback(err, success);
});
});