New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

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
3.2.0
to
3.2.1
+27
CHANGELOG.md
Changelog
===
### `v3.2.1`
1. Fixes support for notifications from folders with spaces on Windows.
### `v3.2.0`
1. Adds native Windows 8 support.
### `v3.1.0`
1. Adds Growl as fallback for Mac OS X pre 10.8.
### `v3.0.6`
1. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
### `v3.0.5`
1. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
### `v3.0.4`
1. Fixes expires for notify-send (Issue #13)
### `v3.0.2`
1. Fixes version check for Mac OS X Yosemite
### `v3.0.0`
1. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
2. Removes parsing of output sent from notifier (Notification Center)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

+5
-1

@@ -38,3 +38,7 @@ /**

argsList = utils.constructArgumentList(options, initial, "-", allowedArguments);
argsList = utils.constructArgumentList(options, {
initial: initial,
keyExtra: '-',
allowedArguments: allowedArguments
});

@@ -41,0 +45,0 @@ utils.command(notifier, argsList, callback);

+5
-2

@@ -33,4 +33,7 @@ /**

options = utils.mapToWin8(options);
var argsList = utils.constructArgumentList(options);
utils.command(notifier, argsList, callback);
var argsList = utils.constructArgumentList(options, {
wrapper: '',
noEscape: true
});
utils.windowsCommand(notifier, argsList, callback);
return this;

@@ -37,0 +40,0 @@ };

@@ -42,12 +42,13 @@ var cp = require('child_process')

module.exports.command = function (notifier, options, cb) {
return cp.exec(shellwords.escape(notifier) + ' ' + options.join(' '), function (error, stdout, stderr) {
if (error) return cb(error);
cb(stderr, stdout);
});
};
var notifyApp = cp.exec(shellwords.escape(notifier) + ' ' + options.join(' '), function (error, stdout, stderr) {
if (error) {
return cb(error);
}
module.exports.windowsCommand = function (notifier, options, cb) {
return cp.execFile(notifier, options, function (error, stdout, stderr) {
if (error) return cb(error);
cb(stderr, stdout);
});
return notifyApp;
};

@@ -125,13 +126,22 @@

module.exports.constructArgumentList = function (options, initial, keyExtra, allowedArguments) {
module.exports.constructArgumentList = function (options, extra) {
var args = [];
keyExtra = keyExtra || "";
var checkForAllowed = allowedArguments !== void 0;
extra = extra || {};
(initial || []).forEach(function (val) {
args.push('"' + escapeQuotes(val) + '"');
// Massive ugly setup. Default args
var initial = extra.initial || [];
var keyExtra = extra.keyExtra || "";
var allowedArguments = extra.allowedArguments || [];
var noEscape = extra.noEscape !== void 0;
var checkForAllowed = extra.allowedArguments !== void 0;
var wrapper = extra.wrapper === void 0 ? '"' : extra.wrapper;
var escapeFn = noEscape ? function (i) { return i; } : escapeQuotes;
initial.forEach(function (val) {
args.push(wrapper + escapeFn(val) + wrapper);
});
for(var key in options) {
if (options.hasOwnProperty(key) && (!checkForAllowed || inArray(allowedArguments, key))) {
args.push('-' + keyExtra + key, '"' + escapeQuotes(options[key]) + '"');
args.push('-' + keyExtra + key, wrapper + escapeFn(options[key]) + wrapper);
}

@@ -138,0 +148,0 @@ }

{
"name": "node-notifier",
"version": "3.2.0",
"version": "3.2.1",
"description": "A Node.js module for sending notifications on mac, windows and linux",

@@ -5,0 +5,0 @@ "main": "index.js",

# node-notifier [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]
A node module for sending notification using node. Uses terminal-notifier on mac,
notify-send for Linux, toaster for Windows 8.1 and Growl for others.
notify-send for Linux, toaster for Windows 8 and Growl for others.
![Mac Screenshot](https://github.com/mikaelbr/node-notifier/blob/master/example/mac.png)
![Native Windows Screenshot](https://github.com/mikaelbr/node-notifier/blob/master/example/windows.png)
![Growl Screenshot](https://github.com/mikaelbr/node-notifier/blob/master/example/growl.png)
## Requirements
- Mac OS X >= 10.8.
- Linux with the notify-osd/notify-send module
- Windows >= 8.1.
- Windows >= 8.
- Or if no of the above requirements are met, Growl is used.

@@ -16,3 +20,3 @@

This also goes for native Windows (version >=8.1) as well, where
This also goes for native Windows (version >=8) as well, where
[toaster.exe](https://github.com/nels-o/toaster) is bundled. Note, for native

@@ -186,26 +190,2 @@ Windows notifications [a toast must have a shortcut installed (though not

## Changelog
### `v3.2.0`
1. Adds native Windows 8.1 support.
### `v3.1.0`
1. Adds Growl as fallback for Mac OS X pre 10.8.
### `v3.0.6`
1. Fixes typo: Changes Growl app name from `Gulp` to `Node`.
### `v3.0.5`
1. Maps common options between the different notifiers. Allowing for common usage with different notifiers.
### `v3.0.4`
1. Fixes expires for notify-send (Issue #13)
### `v3.0.2`
1. Fixes version check for Mac OS X Yosemite
### `v3.0.0`
1. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage
2. Removes parsing of output sent from notifier (Notification Center)
[![NPM downloads][npm-downloads]][npm-url]

@@ -212,0 +192,0 @@