Socket
Socket
Sign inDemoInstall

node-notifier

Package Overview
Dependencies
4
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.3 to 3.0.4

DEPRECATED.md

23

lib/notifiers/notify-send.js

@@ -22,3 +22,3 @@ /**

"urgency",
"expire",
"expire-time",
"icon",

@@ -29,2 +29,17 @@ "category",

var notifySendFlags = {
"u": "urgency",
"urgency": "urgency",
"t": "expire-time",
"e": "expire-time",
"expire": "expire-time",
"expire-time": "expire-time",
"i": "icon",
"icon": "icon",
"c": "category",
"category": "category",
"h": "hint",
"hint": "hint"
}
var doNotification = function (options, callback) {

@@ -35,2 +50,8 @@ options.title = options.title || 'Node Notification:';

delete options.message;
for (var key in options) {
if (options.hasOwnProperty(key) && (notifySendFlags[key] != key)) {
options[notifySendFlags[key]] = options[key];
delete options[key];
}
}
var argsList = utils.constructArgumentList(options, initial, "-", allowedArguments);

@@ -37,0 +58,0 @@

2

package.json
{
"name": "node-notifier",
"version": "3.0.3",
"version": "3.0.4",
"description": "A Node.js module for sending notifications on mac, windows and linux",

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

@@ -65,2 +65,4 @@ # node-notifier [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]

See removed documentation for pre version `3.0.0` in [Deprecated documentation](DEPRECATED.md)
---

@@ -112,39 +114,2 @@

The response will be given as an object. E.g., when running ```notifier.notify({list: "ALL"})```, this could be the response:
**Note: Deprecated as of version `3.0.0`.**
```
{ response:
[ { GroupID: null,
Title: 'Terminal',
Subtitle: null,
Message: 'Another message',
'Delivered At': Wed Dec 12 2012 15:23:38 GMT+0100 (CET) },
{ GroupID: null,
Title: 'Terminal',
Subtitle: null,
Message: 'Another message',
'Delivered At': Wed Dec 12 2012 15:23:31 GMT+0100 (CET) },
{ GroupID: 2,
Title: 'Terminal',
Subtitle: null,
Message: 'Testing',
'Delivered At': Wed Dec 12 2012 15:22:41 GMT+0100 (CET) },
{ GroupID: 1,
Title: 'Terminal',
Subtitle: null,
Message: 'Testing',
'Delivered At': Wed Dec 12 2012 15:22:29 GMT+0100 (CET) } ],
type: 'list' }
```
There are three different types:
- ```deliviered``` when a message is delivered.
- ```removed``` when all or one message is removed. If all messages are removed, the response property will have several elements.
- ```list``` when a list is presented. Even when doing ```list: 1```.
## Usage NotifySend

@@ -163,2 +128,4 @@

See flags and options [on the man pages](http://manpages.ubuntu.com/manpages/gutsy/man1/notify-send.1.html)
## Usage Growl

@@ -185,2 +152,5 @@

### `v3.0.4`
1. Fixes expires for notify-send (Issue #13)
### `v3.0.2`

@@ -187,0 +157,0 @@ 1. Fixes version check for Mac OS X Yosemite

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc