Socket
Socket
Sign inDemoInstall

node-notifier

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-notifier - npm Package Compare versions

Comparing version 1.1.1-1 to 1.1.1-2

29

lib/notify-send.js

@@ -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",

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