node-notifier
Advanced tools
Comparing version 1.1.1-1 to 1.1.1-2
@@ -33,21 +33,22 @@ /** | ||
Notifier.prototype.notify = function (options, callback) { | ||
if (!options.message) { | ||
throw new Error('Message is required.'); | ||
} | ||
options = options || {}; | ||
if (!options.message) { | ||
throw new Error('Message is required.'); | ||
} | ||
if (os.type() !npm == 'Linux') { | ||
throw new Error('Only supported on Linux systems'); | ||
} | ||
options.title = options.title || 'Node Notification:'; | ||
var initial = [options.title, options.message]; | ||
if (os.type() !== 'Linux') { | ||
throw new Error('Only supported on Linux systems'); | ||
} | ||
options.title = options.title || 'Node Notification:'; | ||
var initial = [options.title, options.message]; | ||
delete options.title; | ||
delete options.message; | ||
var argsList = constructArgumentList(options, initial); | ||
callback = callback || function (err, data) {}; | ||
delete options.title; | ||
delete options.message; | ||
var argsList = constructArgumentList(options, initial); | ||
callback = callback || function (err, data) {}; | ||
utils.command(notifier, argsList, callback); | ||
return this; | ||
utils.command(notifier, argsList, callback); | ||
return this; | ||
}; | ||
module.exports = new Notifier(); |
{ | ||
"name": "node-notifier", | ||
"version": "1.1.1-1", | ||
"version": "1.1.1-2", | ||
"description": "A Node.js wrapper for the terminal-notifier application", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
280
0
447446