Init
This commit is contained in:
commit
4e066bffc9
10017 changed files with 1322084 additions and 0 deletions
4
node_modules/node-notifier/.npmignore
generated
vendored
Normal file
4
node_modules/node-notifier/.npmignore
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
example/
|
||||
test
|
||||
*.md
|
||||
node-notifier_flow.png
|
||||
10
node_modules/node-notifier/.travis.yml
generated
vendored
Normal file
10
node_modules/node-notifier/.travis.yml
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
os:
|
||||
- linux
|
||||
- osx
|
||||
language: node_js
|
||||
node_js:
|
||||
- "6"
|
||||
- "5"
|
||||
- "4"
|
||||
- "0.11"
|
||||
- "0.10"
|
||||
159
node_modules/node-notifier/CHANGELOG.md
generated
vendored
Normal file
159
node_modules/node-notifier/CHANGELOG.md
generated
vendored
Normal file
|
|
@ -0,0 +1,159 @@
|
|||
Changelog
|
||||
===
|
||||
|
||||
|
||||
### `v4.6.1`
|
||||
|
||||
1. Adds npm ignore file, ignoring tests and examples from package.
|
||||
2. Fixes CI builds
|
||||
|
||||
### `v4.6.0`
|
||||
|
||||
1. Adds support for Icon URL in Growl ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
|
||||
2. Adds options for passing host and port to cli tool ([reported by @el-davo](https://github.com/mikaelbr/node-notifier/issues/106))
|
||||
3. Fixes sanitize response on `notify` callback ([by @MadLittleMods](https://github.com/mikaelbr/node-notifier/commit/a44454a11eff452a8b55f9fbe291e189ed088708))
|
||||
4. Fixes use of new line in messages ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115))
|
||||
5. Fixes use of `file:///xxx` protocol icon paths for Windows 8.1 ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/118))
|
||||
6. Fixes non-TTY usage and piping messages ([reported by @simensen](https://github.com/mikaelbr/node-notifier/issues/109))
|
||||
7. Updates vendor terminal-notifier version to 1.6.3 ([reported by @kid-icarus](https://github.com/mikaelbr/node-notifier/pull/120))
|
||||
|
||||
### `v4.5.0`
|
||||
|
||||
#### Additions
|
||||
1. Adds syntactic sugar for `notify`. Now able to just pass message:
|
||||
```js
|
||||
notifier.notify('My message');
|
||||
```
|
||||
|
||||
See [#45](https://github.com/mikaelbr/node-notifier/issues/45) for more info.
|
||||
|
||||
#### Fixes
|
||||
1. Improvements to docs and examples
|
||||
2. Updates `semver` dependency to support Webpacking with Electron.
|
||||
|
||||
### `v4.4.0`
|
||||
|
||||
1. Changes to exec terminal-notifier through execFile to allow for asar-packages
|
||||
2. Adds support for remote growl server
|
||||
3. Adds support for win7 with electron asar-package
|
||||
|
||||
### `v4.3.1`
|
||||
Obligatory patch fix:
|
||||
1. Adds new stdin CLI options to docs
|
||||
|
||||
### `v4.3.0`
|
||||
1. Adds support for piping messages in to CLI.
|
||||
(With `node-notifier` installed as a CLI `npm i -g node-notifier`)
|
||||
|
||||
```shell
|
||||
➜ echo "Message" | notify
|
||||
➜ echo "Message" | notify -t "My Title"
|
||||
➜ echo "Some message" | notify -t "My Title" -s
|
||||
```
|
||||
|
||||
### `v4.2.3`
|
||||
1. Fixed input arguments to CLI to be strings where they should be strings.
|
||||
|
||||
### `v4.2.2`
|
||||
1. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58)
|
||||
2. Changes `which` test to be sync, avoiding some edge cases with multiple notifications.
|
||||
|
||||
### `v4.2.1`
|
||||
1. Minor fix for docs in CLI usage
|
||||
|
||||
### `v4.2.0`
|
||||
1. Adds CLI support.
|
||||
2. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49)
|
||||
|
||||
### `v4.1.2`
|
||||
1. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier)
|
||||
to support activate / click.
|
||||
|
||||
### `v4.1.1`
|
||||
1. Fixes proper error codes for balloon: #42
|
||||
2. Removes unused debug files: #41
|
||||
3. Patches differences between subtitle for notify-send: #43
|
||||
4. Updates terminal-notifier dependency (removing black borders) #44 #18
|
||||
|
||||
### `v4.1.0`
|
||||
1. Adds support for changing host and port for Growl.
|
||||
|
||||
### `v4.0.3`
|
||||
1. Fixes Notification center issue with multiple callback events.
|
||||
2. Fixes error in source code: Fixes long-spaces to proper spaces
|
||||
|
||||
### `v4.0.2`
|
||||
1. Fixes issue with immidiate notifu notifications (with `wait : false`)
|
||||
2. Fixes issue with boolean flags for notifu.
|
||||
3. Restructures directories. Making it easier to require notifiers directly.
|
||||
|
||||
### `v4.0.1`
|
||||
1. Fixes issue with optional callback for notify-send
|
||||
|
||||
### `v4.0.0`
|
||||
Major changes and breaking API.
|
||||
1. require('node-notifier') now returns an instance with fallbackable notifications.
|
||||
```js
|
||||
var notifier = require('node-notifier');
|
||||
notifier.notify();
|
||||
```
|
||||
2. Introduced a `wait` property (default `false`), to get user input for
|
||||
Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not
|
||||
for notify-send.
|
||||
```js
|
||||
var notifier = require('node-notifier');
|
||||
notifier.notify({ wait: true }, function (err, response) {
|
||||
// response is response after user have interacted
|
||||
// with the notification or the notification has timed out.
|
||||
});
|
||||
```
|
||||
3. All notification instances are now event emitters, emitting events
|
||||
`click` or `timeout`. This is only applicable if `{ wait: true }`.
|
||||
```js
|
||||
var notifier = require('node-notifier');
|
||||
notifier.on('click', function (notificationObject, options) {
|
||||
// options.someArbitraryData === 'foo'
|
||||
});
|
||||
notifier.notify({ wait: true, someArbitraryData: 'foo' });
|
||||
```
|
||||
4. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`.
|
||||
Default NotificationCenter sound is Bottle. Can still use define sound on
|
||||
Mac:
|
||||
```js
|
||||
var notifier = require('node-notifier');
|
||||
notifier.notify({ sound: true });
|
||||
// For mac (same as sound: true on Windows 8)
|
||||
notifier.notify({ sound: 'Morse' });
|
||||
```
|
||||
|
||||
### `v3.4.0`
|
||||
1. Adds Growl as priority over Balloons
|
||||
|
||||
### `v3.3.0`
|
||||
1. Adds support for native Windows 7 and earlier (through task bar balloons)
|
||||
2. Changes growl implementation. Adds better support for GNTP
|
||||
|
||||
### `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)
|
||||
368
node_modules/node-notifier/README.md
generated
vendored
Normal file
368
node_modules/node-notifier/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,368 @@
|
|||
# node-notifier [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]
|
||||
|
||||
A Node.js module for sending cross platform system notifications. Using
|
||||
Notification Center for Mac, notify-osd/libnotify-bin for Linux, Toasters for
|
||||
Windows 8/10, or taskbar Balloons for earlier Windows versions. If none of
|
||||
these requirements are met, Growl is used.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## Quick Usage
|
||||
|
||||
Show a native notification on Mac, Windows, Linux:
|
||||
|
||||
```javascript
|
||||
const notifier = require('node-notifier');
|
||||
// String
|
||||
notifier.notify('Message');
|
||||
|
||||
// Object
|
||||
notifier.notify({
|
||||
'title': 'My notification',
|
||||
'message': 'Hello, there!'
|
||||
});
|
||||
```
|
||||
|
||||
## Requirements
|
||||
- **Mac OS X**: >= 10.8 or Growl if earlier.
|
||||
- **Linux**: `notify-osd` or `libnotify-bin` installed (Ubuntu should have this by default)
|
||||
- **Windows**: >= 8, task bar balloon if earlier or Growl if that is installed.
|
||||
- **General Fallback**: Growl
|
||||
|
||||
Growl takes precedence over Windows balloons.
|
||||
|
||||
See [documentation and flow chart for reporter choice](./DECISION_FLOW.md)
|
||||
|
||||
## Install
|
||||
```
|
||||
$ npm install --save node-notifier
|
||||
```
|
||||
|
||||
## Cross-Platform Advanced Usage
|
||||
|
||||
Standard usage, with cross-platform fallbacks as defined in the
|
||||
[reporter flow chart](./DECISION_FLOW.md). All of the options
|
||||
below will work in a way or another on all platforms.
|
||||
|
||||
```javascript
|
||||
const notifier = require('node-notifier');
|
||||
const path = require('path');
|
||||
|
||||
notifier.notify({
|
||||
title: 'My awesome title',
|
||||
message: 'Hello from node, Mr. User!',
|
||||
icon: path.join(__dirname, 'coulson.jpg'), // Absolute path (doesn't work on balloons)
|
||||
sound: true, // Only Notification Center or Windows Toasters
|
||||
wait: true // Wait with callback, until user action is taken against notification
|
||||
}, function (err, response) {
|
||||
// Response is response from notification
|
||||
});
|
||||
|
||||
notifier.on('click', function (notifierObject, options) {
|
||||
// Triggers if `wait: true` and user clicks notification
|
||||
});
|
||||
|
||||
notifier.on('timeout', function (notifierObject, options) {
|
||||
// Triggers if `wait: true` and notification closes
|
||||
});
|
||||
```
|
||||
|
||||
You can also specify what reporter you want to use if you
|
||||
want to customize it or have more specific options per system.
|
||||
See documentation for each reporter below.
|
||||
|
||||
Example:
|
||||
```javascript
|
||||
const NotificationCenter = require('node-notifier/notifiers/notificationcenter');
|
||||
new NotificationCenter(options).notify();
|
||||
|
||||
const NotifySend = require('node-notifier/notifiers/notifysend');
|
||||
new NotifySend(options).notify();
|
||||
|
||||
const WindowsToaster = require('node-notifier/notifiers/toaster');
|
||||
new WindowsToaster(options).notify();
|
||||
|
||||
const Growl = require('node-notifier/notifiers/growl');
|
||||
new Growl(options).notify();
|
||||
|
||||
const WindowsBalloon = require('node-notifier/notifiers/balloon');
|
||||
new WindowsBalloon(options).notify();
|
||||
|
||||
```
|
||||
|
||||
Or if you are using several (or you are lazy):
|
||||
(note: technically, this takes longer to require)
|
||||
|
||||
```javascript
|
||||
const nn = require('node-notifier');
|
||||
|
||||
new nn.NotificationCenter(options).notify();
|
||||
new nn.NotifySend(options).notify();
|
||||
new nn.WindowsToaster(options).notify(options);
|
||||
new nn.WindowsBalloon(options).notify(options);
|
||||
new nn.Growl(options).notify(options);
|
||||
```
|
||||
|
||||
## Contents
|
||||
|
||||
* [Notification Center documentation](#usage-notificationcenter)
|
||||
* [Windows Toaster documentation](#usage-windowstoaster)
|
||||
* [Windows Balloon documentation](#usage-windowsballoon)
|
||||
* [Growl documentation](#usage-growl)
|
||||
* [Notify-send documentation](#usage-notifysend)
|
||||
|
||||
|
||||
### Usage NotificationCenter
|
||||
|
||||
Same usage and parameter setup as [terminal-notifier](https://github.com/alloy/terminal-notifier).
|
||||
|
||||
Native Notification Center requires Mac OS X version 10.8 or higher. If you have
|
||||
an earlier version, Growl will be the fallback. If Growl isn't installed, an
|
||||
error will be returned in the callback.
|
||||
|
||||
|
||||
#### Example
|
||||
|
||||
Wrapping around [terminal-notifier](https://github.com/alloy/terminal-notifier), you can
|
||||
do all terminal-notifier can do through properties to the `notify` method. E.g.
|
||||
if `terminal-notifier` says `-message`, you can do `{message: 'Foo'}`, or
|
||||
if `terminal-notifier` says `-list ALL`, you can do `{list: 'ALL'}`. Notification
|
||||
is the primary focus for this module, so listing and activating do work,
|
||||
but isn't documented.
|
||||
|
||||
### All notification options with their defaults:
|
||||
|
||||
```javascript
|
||||
const NotificationCenter = require('node-notifier').NotificationCenter;
|
||||
|
||||
var notifier = new NotificationCenter({
|
||||
withFallback: false, // Use Growl Fallback if <= 10.8
|
||||
customPath: void 0 // Relative path if you want to use your fork of terminal-notifier
|
||||
});
|
||||
|
||||
notifier.notify({
|
||||
'title': void 0,
|
||||
'subtitle': void 0,
|
||||
'message': void 0,
|
||||
'sound': false, // Case Sensitive string for location of sound file, or use one of OS X's native sounds (see below)
|
||||
'icon': 'Terminal Icon', // Absolute Path to Triggering Icon
|
||||
'contentImage': void 0, // Absolute Path to Attached Image (Content Image)
|
||||
'open': void 0, // URL to open on Click
|
||||
'wait': false // Wait for User Action against Notification
|
||||
}, function(error, response) {
|
||||
console.log(response);
|
||||
});
|
||||
```
|
||||
|
||||
**For Mac OS notifications, icon and contentImage requires OS X 10.9.**
|
||||
|
||||
Sound can be one of these: `Basso`, `Blow`, `Bottle`, `Frog`, `Funk`, `Glass`,
|
||||
`Hero`, `Morse`, `Ping`, `Pop`, `Purr`, `Sosumi`, `Submarine`, `Tink`.
|
||||
If sound is simply `true`, `Bottle` is used.
|
||||
|
||||
See [specific Notification Center example](./example/advanced.js).
|
||||
|
||||
### Usage WindowsToaster
|
||||
|
||||
**Note:** There are some limitations for images in native Windows 8 notifications:
|
||||
The image must be a PNG image, and cannot be over 1024x1024 px, or over over 200Kb.
|
||||
You also need to specify the image by using an absolute path. These limitations are
|
||||
due to the Toast notification system. A good tip is to use something like
|
||||
`path.join` or `path.delimiter` to have cross-platform pathing.
|
||||
|
||||
**Windows 10 Note:** You might have to activate banner notification for the toast to show.
|
||||
|
||||
From [mikaelbr/gulp-notify#90 (comment)](https://github.com/mikaelbr/gulp-notify/issues/90#issuecomment-129333034)
|
||||
> You can make it work by going to System > Notifications & Actions. The 'toast' app needs to have Banners enabled. (You can activate banners by clicking on the 'toast' app and setting the 'Show notification banners' to On)
|
||||
|
||||
[toaster](https://github.com/nels-o/toaster) is used to get native Windows Toasts!
|
||||
|
||||
```javascript
|
||||
const WindowsToaster = require('node-notifier').WindowsToaster;
|
||||
|
||||
var notifier = new WindowsToaster({
|
||||
withFallback: false, // Fallback to Growl or Balloons?
|
||||
customPath: void 0 // Relative path if you want to use your fork of toast.exe
|
||||
});
|
||||
|
||||
notifier.notify({
|
||||
title: void 0,
|
||||
message: void 0,
|
||||
icon: void 0, // Absolute path to Icon
|
||||
sound: false, // true | false.
|
||||
wait: false, // Wait for User Action against Notification
|
||||
}, function(error, response) {
|
||||
console.log(response);
|
||||
});
|
||||
```
|
||||
|
||||
### Usage Growl
|
||||
|
||||
```javascript
|
||||
const Growl = require('node-notifier').Growl;
|
||||
|
||||
var notifier = new Growl({
|
||||
name: 'Growl Name Used', // Defaults as 'Node'
|
||||
host: 'localhost',
|
||||
port: 23053
|
||||
});
|
||||
|
||||
notifier.notify({
|
||||
title: 'Foo',
|
||||
message: 'Hello World',
|
||||
icon: fs.readFileSync(__dirname + "/coulson.jpg"),
|
||||
wait: false, // Wait for User Action against Notification
|
||||
|
||||
// and other growl options like sticky etc.
|
||||
sticky: false,
|
||||
label: void 0,
|
||||
priority: void 0
|
||||
});
|
||||
```
|
||||
|
||||
See more information about using
|
||||
[growly](https://github.com/theabraham/growly/).
|
||||
|
||||
### Usage WindowsBalloon
|
||||
|
||||
For earlier Windows versions, the taskbar balloons are used (unless
|
||||
fallback is activated and Growl is running). For balloons, a great
|
||||
project called [notifu](http://www.paralint.com/projects/notifu/) is used.
|
||||
|
||||
```javascript
|
||||
const WindowsBalloon = require('node-notifier').WindowsBalloon;
|
||||
|
||||
var notifier = new WindowsBalloon({
|
||||
withFallback: false, // Try Windows Toast and Growl first?
|
||||
customPath: void 0 // Relative path if you want to use your fork of notifu
|
||||
});
|
||||
|
||||
notifier.notify({
|
||||
title: void 0,
|
||||
message: void 0,
|
||||
sound: false, // true | false.
|
||||
time: 5000, // How long to show balloon in ms
|
||||
wait: false, // Wait for User Action against Notification
|
||||
type: 'info' // The notification type : info | warn | error
|
||||
}, function(error, response) {
|
||||
console.log(response);
|
||||
});
|
||||
```
|
||||
|
||||
See full usage on the [project homepage:
|
||||
notifu](http://www.paralint.com/projects/notifu/).
|
||||
|
||||
### Usage NotifySend
|
||||
|
||||
Note: notify-send doesn't support the wait flag.
|
||||
|
||||
```javascript
|
||||
const NotifySend = require('node-notifier').NotifySend;
|
||||
|
||||
var notifier = new NotifySend();
|
||||
|
||||
notifier.notify({
|
||||
title: 'Foo',
|
||||
message: 'Hello World',
|
||||
icon: __dirname + "/coulson.jpg",
|
||||
|
||||
// .. and other notify-send flags:
|
||||
urgency: void 0,
|
||||
time: void 0,
|
||||
category: void 0,
|
||||
hint: void 0,
|
||||
});
|
||||
```
|
||||
|
||||
See flags and options [on the man pages](http://manpages.ubuntu.com/manpages/gutsy/man1/notify-send.1.html)
|
||||
|
||||
## CLI
|
||||
|
||||
You can also use node-notifier as a CLI (as of `v4.2.0`).
|
||||
|
||||
```shell
|
||||
$ notify -h
|
||||
|
||||
# notify
|
||||
## Options
|
||||
* --help (alias -h)
|
||||
* --title (alias -t)
|
||||
* --subtitle (alias -st)
|
||||
* --message (alias -m)
|
||||
* --icon (alias -i)
|
||||
* --sound (alias -s)
|
||||
* --open (alias -o)
|
||||
|
||||
## Example
|
||||
|
||||
$ notify -t "Hello" -m "My Message" -s --open http://github.com
|
||||
$ notify -t "Agent Coulson" --icon https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/coulson.jpg -m "Well, that's new. "
|
||||
$ notify -m "My Message" -s Glass
|
||||
$ echo "My Message" | notify -t "Hello"
|
||||
```
|
||||
|
||||
You can also pass message in as `stdin`:
|
||||
|
||||
```js
|
||||
➜ echo "Message" | notify
|
||||
|
||||
# Works with existing arguments
|
||||
➜ echo "Message" | notify -t "My Title"
|
||||
➜ echo "Some message" | notify -t "My Title" -s
|
||||
```
|
||||
|
||||
## Thanks to OSS
|
||||
|
||||
`node-notifier` is made possible through Open Source Software. A very special thanks to all the modules `node-notifier` uses.
|
||||
* [terminal-notifier](https://github.com/alloy/terminal-notifier)
|
||||
* [toaster](https://github.com/nels-o/toaster)
|
||||
* [notifu](http://www.paralint.com/projects/notifu/)
|
||||
* [growly](https://github.com/theabraham/growly/)
|
||||
|
||||
[![NPM downloads][npm-downloads]][npm-url]
|
||||
|
||||
## Common Issues
|
||||
|
||||
### Use inside tmux session
|
||||
|
||||
When using node-notifier within a tmux session, it can cause a hang in the system. This can be solved by following the steps described in this comment: https://github.com/julienXX/terminal-notifier/issues/115#issuecomment-104214742
|
||||
|
||||
See more info here: https://github.com/mikaelbr/node-notifier/issues/61#issuecomment-163560801
|
||||
|
||||
|
||||
### Within Electron Packaging
|
||||
|
||||
If packaging your Electron app as an `asar`, you will find node-notifier will fail to load. Due to the way asar works, you cannot execute a binary from within an asar. As a simple solution, when packaging the app into an asar please make sure you `--unpack` the vendor folder of node-notifier, so the module still has access to the notification binaries. To do this, you can do so by using the following command:
|
||||
|
||||
```bash
|
||||
asar pack . app.asar --unpack "./node_modules/node-notifier/vendor/**"
|
||||
```
|
||||
|
||||
|
||||
### Using Webpack
|
||||
|
||||
When using node-notifier inside of webpack, you must add the following snippet to your `webpack.config.js`. The reason this is required, is because node-notifier loads the notifiers from a binary, and so a relative file path is needed. When webpack compiles the modules, it supresses file directories, causing node-notifier to error on certain platforms. To fix/workaround this, you must tell webpack to keep the relative file directories, by doing so, append the following code to your `webpack.config.js`
|
||||
|
||||
```javascript
|
||||
node: {
|
||||
__filename: true,
|
||||
__dirname: true
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
|
||||
|
||||
[npm-url]: https://npmjs.org/package/node-notifier
|
||||
[npm-image]: http://img.shields.io/npm/v/node-notifier.svg?style=flat
|
||||
[npm-downloads]: http://img.shields.io/npm/dm/node-notifier.svg?style=flat
|
||||
|
||||
[travis-url]: http://travis-ci.org/mikaelbr/node-notifier
|
||||
[travis-image]: http://img.shields.io/travis/mikaelbr/node-notifier.svg?style=flat
|
||||
|
||||
[depstat-url]: https://gemnasium.com/mikaelbr/node-notifier
|
||||
[depstat-image]: http://img.shields.io/gemnasium/mikaelbr/node-notifier.svg?style=flat
|
||||
99
node_modules/node-notifier/bin.js
generated
vendored
Executable file
99
node_modules/node-notifier/bin.js
generated
vendored
Executable file
|
|
@ -0,0 +1,99 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
var Notification = require('./').Notification;
|
||||
var minimist = require('minimist');
|
||||
var usage = require('cli-usage');
|
||||
|
||||
var aliases = {
|
||||
'help': 'h',
|
||||
'title': 't',
|
||||
'subtitle': 'st',
|
||||
'message': 'm',
|
||||
'icon': 'i',
|
||||
'sound': 's',
|
||||
'open': 'o',
|
||||
'port': 'p',
|
||||
};
|
||||
|
||||
var argv = minimist(process.argv.slice(2), {
|
||||
alias: aliases,
|
||||
string: ['icon', 'message', 'open', 'subtitle', 'title', 'host', 'port']
|
||||
});
|
||||
|
||||
readme(aliases, ['host']);
|
||||
|
||||
var validOpts = Object.keys(aliases).concat('host');
|
||||
var passedOptions = getOptionsIfExists(validOpts, argv);
|
||||
var stdinMessage = '';
|
||||
|
||||
if (process.stdin.isTTY) {
|
||||
doNotification(passedOptions);
|
||||
} else {
|
||||
process.stdin.resume();
|
||||
process.stdin.setEncoding('utf8');
|
||||
process.stdin.on('data', function(data) {
|
||||
if (data) {
|
||||
stdinMessage += data;
|
||||
} else {
|
||||
doNotification(passedOptions);
|
||||
this.end();
|
||||
return;
|
||||
}
|
||||
});
|
||||
process.stdin.on('end', function(){
|
||||
if (stdinMessage) {
|
||||
passedOptions.message = stdinMessage;
|
||||
}
|
||||
doNotification(passedOptions);
|
||||
});
|
||||
}
|
||||
|
||||
function doNotification (options) {
|
||||
var notifier = new Notification(options);
|
||||
if (!options.message) {
|
||||
// Do not show an empty message
|
||||
process.exit(0);
|
||||
}
|
||||
notifier.notify(options, function (err, msg) {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (!msg) return;
|
||||
console.log(msg);
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
|
||||
function getOptionsIfExists(optionTypes, argv) {
|
||||
var options = {};
|
||||
optionTypes.forEach(function (key) {
|
||||
if (key && argv[key]) {
|
||||
options[key] = argv[key];
|
||||
}
|
||||
});
|
||||
return options;
|
||||
}
|
||||
|
||||
function readme(input, extra) {
|
||||
var str = '# notify\n \n## Options\n' + params(input, extra) + '\n\n';
|
||||
str += '## Example\n```shell\n';
|
||||
str += '$ notify -t "Hello" -m "My Message" -s --open http://github.com\n';
|
||||
str += '$ notify -t "Agent Coulson" --icon https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/coulson.jpg \n';
|
||||
str += '$ notify -m "My Message" -s Glass\n';
|
||||
str += '$ echo "My Message" | notify -t "Hello"```\n\n';
|
||||
usage(str);
|
||||
}
|
||||
|
||||
function params(input, extra) {
|
||||
var withAlias = Object.keys(input).reduce(function (acc, key) {
|
||||
return acc + ' * --' + key + ' (alias -' + input[key] + ')\n';
|
||||
}, '');
|
||||
|
||||
if (!extra) return withAlias;
|
||||
|
||||
return withAlias + extra.reduce(function (acc, key) {
|
||||
return acc + ' * --' + key + '\n';
|
||||
}, '')
|
||||
}
|
||||
41
node_modules/node-notifier/index.js
generated
vendored
Normal file
41
node_modules/node-notifier/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
var os = require('os');
|
||||
var utils = require('./lib/utils');
|
||||
|
||||
// All notifiers
|
||||
var NotifySend = require('./notifiers/notifysend');
|
||||
var NotificationCenter = require('./notifiers/notificationcenter');
|
||||
var WindowsToaster = require('./notifiers/toaster');
|
||||
var Growl = require('./notifiers/growl');
|
||||
var WindowsBalloon = require('./notifiers/balloon');
|
||||
|
||||
var options = { withFallback: true };
|
||||
|
||||
switch(os.type()) {
|
||||
case 'Linux':
|
||||
module.exports = new NotifySend(options);
|
||||
module.exports.Notification = NotifySend;
|
||||
break;
|
||||
case 'Darwin':
|
||||
module.exports = new NotificationCenter(options);
|
||||
module.exports.Notification = NotificationCenter;
|
||||
break;
|
||||
case 'Windows_NT':
|
||||
if (utils.isLessThanWin8()) {
|
||||
module.exports = new WindowsBalloon(options);
|
||||
module.exports.Notification = WindowsBalloon;
|
||||
} else {
|
||||
module.exports = new WindowsToaster(options);
|
||||
module.exports.Notification = WindowsToaster;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
module.exports = new Growl(options);
|
||||
module.exports.Notification = Growl;
|
||||
}
|
||||
|
||||
// Expose notifiers to give full control.
|
||||
module.exports.NotifySend = NotifySend;
|
||||
module.exports.NotificationCenter = NotificationCenter;
|
||||
module.exports.WindowsToaster = WindowsToaster;
|
||||
module.exports.WindowsBalloon = WindowsBalloon;
|
||||
module.exports.Growl = Growl;
|
||||
25
node_modules/node-notifier/lib/checkGrowl.js
generated
vendored
Normal file
25
node_modules/node-notifier/lib/checkGrowl.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
var net = require('net');
|
||||
|
||||
var hasGrowl = false;
|
||||
|
||||
module.exports = function (growlConfig, cb) {
|
||||
if (typeof cb == 'undefined') {
|
||||
cb = growlConfig;
|
||||
growlConfig = {};
|
||||
}
|
||||
if (hasGrowl) return cb(hasGrowl);
|
||||
var port = growlConfig.port || 23053;
|
||||
var host = growlConfig.host || 'localhost';
|
||||
var socket = net.connect(port, host);
|
||||
socket.setTimeout(100);
|
||||
|
||||
socket.on('connect', function() {
|
||||
socket.end();
|
||||
cb(true);
|
||||
});
|
||||
|
||||
socket.on('error', function() {
|
||||
socket.end();
|
||||
cb(false);
|
||||
});
|
||||
};
|
||||
358
node_modules/node-notifier/lib/utils.js
generated
vendored
Normal file
358
node_modules/node-notifier/lib/utils.js
generated
vendored
Normal file
|
|
@ -0,0 +1,358 @@
|
|||
var cp = require('child_process'),
|
||||
os = require('os'),
|
||||
fs = require('fs'),
|
||||
url = require('url'),
|
||||
path = require('path'),
|
||||
shellwords = require('shellwords'),
|
||||
semver = require('semver'),
|
||||
clone = require('lodash.clonedeep');
|
||||
|
||||
|
||||
var escapeQuotes = function (str) {
|
||||
if (typeof str === 'string') {
|
||||
return str.replace(/(["$`\\])/g, '\\$1');
|
||||
} else {
|
||||
return str;
|
||||
}
|
||||
};
|
||||
|
||||
var inArray = function (arr, val) {
|
||||
for(var i = 0; i < arr.length; i++) {
|
||||
if (arr[i] === val) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
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",
|
||||
"subtitle": "category",
|
||||
"h": "hint",
|
||||
"hint": "hint"
|
||||
};
|
||||
|
||||
module.exports.command = function (notifier, options, cb) {
|
||||
notifier = shellwords.escape(notifier);
|
||||
return cp.exec(notifier + ' ' + options.join(' '), function (error, stdout, stderr) {
|
||||
if (error) return cb(error);
|
||||
cb(stderr, stdout);
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.fileCommand = function (notifier, options, cb) {
|
||||
return cp.execFile(notifier, options, function (error, stdout, stderr) {
|
||||
if (error) return cb(error, stdout);
|
||||
cb(stderr, stdout);
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.immediateFileCommand = function (notifier, options, cb) {
|
||||
notifierExists(notifier, function (exists) {
|
||||
if (!exists) return cb(new Error('Notifier (' + notifier + ') not found on system.'));
|
||||
cp.execFile(notifier, options);
|
||||
cb();
|
||||
});
|
||||
};
|
||||
|
||||
function notifierExists (notifier, cb) {
|
||||
return fs.stat(notifier, function (err, stat) {
|
||||
if (!err) return cb(stat.isFile());
|
||||
|
||||
// Check if Windows alias
|
||||
if (!!path.extname(notifier)) {
|
||||
// Has extentioon, no need to check more
|
||||
return cb(false);
|
||||
}
|
||||
|
||||
// Check if there is an exe file in the directory
|
||||
return fs.stat(notifier + '.exe', function (err, stat) {
|
||||
cb(stat.isFile());
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
var mapAppIcon = function (options) {
|
||||
if (options.appIcon) {
|
||||
options.icon = options.appIcon;
|
||||
delete options.appIcon;
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
var mapText = function (options) {
|
||||
if (options.text) {
|
||||
options.message = options.text;
|
||||
delete options.text;
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
var mapIconShorthand = function (options) {
|
||||
if (options.i) {
|
||||
options.icon = options.i;
|
||||
delete options.i;
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
module.exports.mapToNotifySend = function (options) {
|
||||
options = mapAppIcon(options);
|
||||
options = mapText(options);
|
||||
|
||||
for (var key in options) {
|
||||
if (key === "message" || key === "title") continue;
|
||||
if (options.hasOwnProperty(key) && (notifySendFlags[key] != key)) {
|
||||
options[notifySendFlags[key]] = options[key];
|
||||
delete options[key];
|
||||
}
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
module.exports.mapToGrowl = function (options) {
|
||||
options = mapAppIcon(options);
|
||||
options = mapIconShorthand(options);
|
||||
options = mapText(options);
|
||||
|
||||
if (options.icon && !Buffer.isBuffer(options.icon)) {
|
||||
try {
|
||||
options.icon = fs.readFileSync(options.icon);
|
||||
}catch(ex){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
module.exports.mapToMac = function (options) {
|
||||
options = mapIconShorthand(options);
|
||||
options = mapText(options);
|
||||
|
||||
if (options.icon) {
|
||||
options.appIcon = options.icon;
|
||||
delete options.icon;
|
||||
}
|
||||
|
||||
if (options.sound === true) {
|
||||
options.sound = 'Bottle';
|
||||
}
|
||||
|
||||
if (options.sound === false) {
|
||||
delete options.sound;
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
module.exports.actionJackerDecorator = function (emitter, options, fn, mapper) {
|
||||
options = clone(options);
|
||||
fn = fn || function (err, data) {};
|
||||
return function (err, data) {
|
||||
|
||||
var resultantData = data;
|
||||
// Sanitize the data
|
||||
if(resultantData) {
|
||||
resultantData = resultantData.toLowerCase().trim();
|
||||
if(resultantData.match(/^activate/)) {
|
||||
resultantData = 'activate';
|
||||
}
|
||||
}
|
||||
fn.apply(emitter, [err, resultantData]);
|
||||
if (err || !mapper || !resultantData) return;
|
||||
|
||||
var key = mapper(resultantData);
|
||||
if (!key) return;
|
||||
emitter.emit(key, emitter, options);
|
||||
};
|
||||
};
|
||||
|
||||
module.exports.constructArgumentList = function (options, extra) {
|
||||
var args = [];
|
||||
extra = extra || {};
|
||||
|
||||
// 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 explicitTrue = !!extra.explicitTrue;
|
||||
var wrapper = extra.wrapper === void 0 ? '"' : extra.wrapper;
|
||||
|
||||
var escapeFn = function(arg) {
|
||||
if (!noEscape) {
|
||||
arg = escapeQuotes(arg);
|
||||
}
|
||||
if(typeof arg === 'string'){
|
||||
arg = arg.replace(/\r?\n/g, '\\n');
|
||||
}
|
||||
return arg;
|
||||
}
|
||||
|
||||
initial.forEach(function (val) {
|
||||
args.push(wrapper + escapeFn(val) + wrapper);
|
||||
});
|
||||
for(var key in options) {
|
||||
if (options.hasOwnProperty(key) && (!checkForAllowed || inArray(allowedArguments, key))) {
|
||||
if (explicitTrue && options[key] === true) args.push('-' + keyExtra + key);
|
||||
else if (explicitTrue && options[key] === false) continue;
|
||||
else args.push('-' + keyExtra + key, wrapper + escapeFn(options[key]) + wrapper);
|
||||
}
|
||||
}
|
||||
return args;
|
||||
};
|
||||
|
||||
module.exports.mapToWin8 = function (options){
|
||||
|
||||
options = mapAppIcon(options);
|
||||
options = mapText(options);
|
||||
|
||||
if(options.icon){
|
||||
if (/^file:\/+/.test(options.icon)) {
|
||||
// should parse file protocol URL to path
|
||||
options.p = url.parse(options.icon).pathname.replace(/^\/(\w\:\/)/, "$1").replace(/\//g, "\\");
|
||||
} else {
|
||||
options.p = options.icon;
|
||||
}
|
||||
delete options.icon;
|
||||
}
|
||||
|
||||
if(options.message){
|
||||
// Remove escape char to debug "HRESULT : 0xC00CE508" exception
|
||||
options.m = options.message.replace(/\x1b/g, '');
|
||||
delete options.message;
|
||||
}
|
||||
|
||||
if (options.title) {
|
||||
options.t = options.title;
|
||||
delete options.title;
|
||||
}
|
||||
|
||||
if (options.quiet || options.silent) {
|
||||
options.q = options.quiet || options.silent;
|
||||
delete options.quiet;
|
||||
delete options.silent;
|
||||
}
|
||||
|
||||
if (options.q !== false) {
|
||||
options.q = true;
|
||||
} else {
|
||||
delete options.q;
|
||||
}
|
||||
|
||||
if (options.sound) {
|
||||
delete options.q;
|
||||
delete options.sound;
|
||||
}
|
||||
|
||||
if (options.wait) {
|
||||
options.w = options.wait;
|
||||
delete options.wait;
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
module.exports.mapToNotifu = function (options) {
|
||||
options = mapAppIcon(options);
|
||||
options = mapText(options);
|
||||
|
||||
if(options.icon){
|
||||
options.i = options.icon;
|
||||
delete options.icon;
|
||||
}
|
||||
|
||||
if(options.message){
|
||||
options.m = options.message;
|
||||
delete options.message;
|
||||
}
|
||||
|
||||
if (options.title) {
|
||||
options.p = options.title;
|
||||
delete options.title;
|
||||
}
|
||||
|
||||
if (options.time) {
|
||||
options.d = options.time;
|
||||
delete options.time;
|
||||
}
|
||||
|
||||
if (options.q !== false) {
|
||||
options.q = true;
|
||||
} else {
|
||||
delete options.q;
|
||||
}
|
||||
|
||||
if (options.quiet === false) {
|
||||
delete options.q;
|
||||
delete options.quiet;
|
||||
}
|
||||
|
||||
if (options.sound) {
|
||||
delete options.q;
|
||||
delete options.sound;
|
||||
}
|
||||
|
||||
if (options.t) {
|
||||
options.d = options.t;
|
||||
delete options.t;
|
||||
}
|
||||
|
||||
if (options.type) {
|
||||
options.t = sanitizeNotifuTypeArgument(options.type);
|
||||
delete options.type;
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
module.exports.isMac = function() {
|
||||
return os.type() === 'Darwin';
|
||||
};
|
||||
|
||||
module.exports.isMountainLion = function() {
|
||||
return os.type() === 'Darwin' && semver.satisfies(garanteeSemverFormat(os.release()), '>=12.0.0');
|
||||
};
|
||||
|
||||
module.exports.isWin8 = function() {
|
||||
return os.type() === 'Windows_NT' && semver.satisfies(garanteeSemverFormat(os.release()), '>=6.2.9200');
|
||||
};
|
||||
|
||||
module.exports.isLessThanWin8 = function() {
|
||||
return os.type() === 'Windows_NT' && semver.satisfies(garanteeSemverFormat(os.release()), '<6.2.9200');
|
||||
};
|
||||
|
||||
function garanteeSemverFormat (version) {
|
||||
if (version.split('.').length === 2) {
|
||||
version += '.0';
|
||||
}
|
||||
return version;
|
||||
}
|
||||
|
||||
function sanitizeNotifuTypeArgument(type) {
|
||||
if (typeof type === 'string' || type instanceof String) {
|
||||
if (type.toLowerCase() == 'info')
|
||||
return 'info';
|
||||
if (type.toLowerCase() == 'warn')
|
||||
return 'warn';
|
||||
if (type.toLowerCase() == 'error')
|
||||
return 'error';
|
||||
}
|
||||
|
||||
return 'info';
|
||||
}
|
||||
1
node_modules/node-notifier/node_modules/.bin/semver
generated
vendored
Symbolic link
1
node_modules/node-notifier/node_modules/.bin/semver
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../semver/bin/semver
|
||||
15
node_modules/node-notifier/node_modules/semver/LICENSE
generated
vendored
Normal file
15
node_modules/node-notifier/node_modules/semver/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
350
node_modules/node-notifier/node_modules/semver/README.md
generated
vendored
Normal file
350
node_modules/node-notifier/node_modules/semver/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,350 @@
|
|||
semver(1) -- The semantic versioner for npm
|
||||
===========================================
|
||||
|
||||
## Usage
|
||||
|
||||
$ npm install semver
|
||||
$ node
|
||||
var semver = require('semver')
|
||||
|
||||
semver.valid('1.2.3') // '1.2.3'
|
||||
semver.valid('a.b.c') // null
|
||||
semver.clean(' =v1.2.3 ') // '1.2.3'
|
||||
semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
|
||||
semver.gt('1.2.3', '9.8.7') // false
|
||||
semver.lt('1.2.3', '9.8.7') // true
|
||||
|
||||
As a command-line utility:
|
||||
|
||||
$ semver -h
|
||||
|
||||
SemVer 5.1.0
|
||||
|
||||
A JavaScript implementation of the http://semver.org/ specification
|
||||
Copyright Isaac Z. Schlueter
|
||||
|
||||
Usage: semver [options] <version> [<version> [...]]
|
||||
Prints valid versions sorted by SemVer precedence
|
||||
|
||||
Options:
|
||||
-r --range <range>
|
||||
Print versions that match the specified range.
|
||||
|
||||
-i --increment [<level>]
|
||||
Increment a version by the specified level. Level can
|
||||
be one of: major, minor, patch, premajor, preminor,
|
||||
prepatch, or prerelease. Default level is 'patch'.
|
||||
Only one version may be specified.
|
||||
|
||||
--preid <identifier>
|
||||
Identifier to be used to prefix premajor, preminor,
|
||||
prepatch or prerelease version increments.
|
||||
|
||||
-l --loose
|
||||
Interpret versions and ranges loosely
|
||||
|
||||
Program exits successfully if any valid version satisfies
|
||||
all supplied ranges, and prints all satisfying versions.
|
||||
|
||||
If no satisfying versions are found, then exits failure.
|
||||
|
||||
Versions are printed in ascending order, so supplying
|
||||
multiple versions to the utility will just sort them.
|
||||
|
||||
## Versions
|
||||
|
||||
A "version" is described by the `v2.0.0` specification found at
|
||||
<http://semver.org/>.
|
||||
|
||||
A leading `"="` or `"v"` character is stripped off and ignored.
|
||||
|
||||
## Ranges
|
||||
|
||||
A `version range` is a set of `comparators` which specify versions
|
||||
that satisfy the range.
|
||||
|
||||
A `comparator` is composed of an `operator` and a `version`. The set
|
||||
of primitive `operators` is:
|
||||
|
||||
* `<` Less than
|
||||
* `<=` Less than or equal to
|
||||
* `>` Greater than
|
||||
* `>=` Greater than or equal to
|
||||
* `=` Equal. If no operator is specified, then equality is assumed,
|
||||
so this operator is optional, but MAY be included.
|
||||
|
||||
For example, the comparator `>=1.2.7` would match the versions
|
||||
`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`
|
||||
or `1.1.0`.
|
||||
|
||||
Comparators can be joined by whitespace to form a `comparator set`,
|
||||
which is satisfied by the **intersection** of all of the comparators
|
||||
it includes.
|
||||
|
||||
A range is composed of one or more comparator sets, joined by `||`. A
|
||||
version matches a range if and only if every comparator in at least
|
||||
one of the `||`-separated comparator sets is satisfied by the version.
|
||||
|
||||
For example, the range `>=1.2.7 <1.3.0` would match the versions
|
||||
`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`,
|
||||
or `1.1.0`.
|
||||
|
||||
The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`,
|
||||
`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
|
||||
|
||||
### Prerelease Tags
|
||||
|
||||
If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then
|
||||
it will only be allowed to satisfy comparator sets if at least one
|
||||
comparator with the same `[major, minor, patch]` tuple also has a
|
||||
prerelease tag.
|
||||
|
||||
For example, the range `>1.2.3-alpha.3` would be allowed to match the
|
||||
version `1.2.3-alpha.7`, but it would *not* be satisfied by
|
||||
`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater
|
||||
than" `1.2.3-alpha.3` according to the SemVer sort rules. The version
|
||||
range only accepts prerelease tags on the `1.2.3` version. The
|
||||
version `3.4.5` *would* satisfy the range, because it does not have a
|
||||
prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
|
||||
|
||||
The purpose for this behavior is twofold. First, prerelease versions
|
||||
frequently are updated very quickly, and contain many breaking changes
|
||||
that are (by the author's design) not yet fit for public consumption.
|
||||
Therefore, by default, they are excluded from range matching
|
||||
semantics.
|
||||
|
||||
Second, a user who has opted into using a prerelease version has
|
||||
clearly indicated the intent to use *that specific* set of
|
||||
alpha/beta/rc versions. By including a prerelease tag in the range,
|
||||
the user is indicating that they are aware of the risk. However, it
|
||||
is still not appropriate to assume that they have opted into taking a
|
||||
similar risk on the *next* set of prerelease versions.
|
||||
|
||||
#### Prerelease Identifiers
|
||||
|
||||
The method `.inc` takes an additional `identifier` string argument that
|
||||
will append the value of the string as a prerelease identifier:
|
||||
|
||||
```javascript
|
||||
> semver.inc('1.2.3', 'prerelease', 'beta')
|
||||
'1.2.4-beta.0'
|
||||
```
|
||||
|
||||
command-line example:
|
||||
|
||||
```shell
|
||||
$ semver 1.2.3 -i prerelease --preid beta
|
||||
1.2.4-beta.0
|
||||
```
|
||||
|
||||
Which then can be used to increment further:
|
||||
|
||||
```shell
|
||||
$ semver 1.2.4-beta.0 -i prerelease
|
||||
1.2.4-beta.1
|
||||
```
|
||||
|
||||
### Advanced Range Syntax
|
||||
|
||||
Advanced range syntax desugars to primitive comparators in
|
||||
deterministic ways.
|
||||
|
||||
Advanced ranges may be combined in the same way as primitive
|
||||
comparators using white space or `||`.
|
||||
|
||||
#### Hyphen Ranges `X.Y.Z - A.B.C`
|
||||
|
||||
Specifies an inclusive set.
|
||||
|
||||
* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
|
||||
|
||||
If a partial version is provided as the first version in the inclusive
|
||||
range, then the missing pieces are replaced with zeroes.
|
||||
|
||||
* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
|
||||
|
||||
If a partial version is provided as the second version in the
|
||||
inclusive range, then all versions that start with the supplied parts
|
||||
of the tuple are accepted, but nothing that would be greater than the
|
||||
provided tuple parts.
|
||||
|
||||
* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
|
||||
* `1.2.3 - 2` := `>=1.2.3 <3.0.0`
|
||||
|
||||
#### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
|
||||
|
||||
Any of `X`, `x`, or `*` may be used to "stand in" for one of the
|
||||
numeric values in the `[major, minor, patch]` tuple.
|
||||
|
||||
* `*` := `>=0.0.0` (Any version satisfies)
|
||||
* `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
|
||||
* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
|
||||
|
||||
A partial version range is treated as an X-Range, so the special
|
||||
character is in fact optional.
|
||||
|
||||
* `""` (empty string) := `*` := `>=0.0.0`
|
||||
* `1` := `1.x.x` := `>=1.0.0 <2.0.0`
|
||||
* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
|
||||
|
||||
#### Tilde Ranges `~1.2.3` `~1.2` `~1`
|
||||
|
||||
Allows patch-level changes if a minor version is specified on the
|
||||
comparator. Allows minor-level changes if not.
|
||||
|
||||
* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
|
||||
* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
|
||||
* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
|
||||
* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
|
||||
* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
|
||||
* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
|
||||
* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in
|
||||
the `1.2.3` version will be allowed, if they are greater than or
|
||||
equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
|
||||
`1.2.4-beta.2` would not, because it is a prerelease of a
|
||||
different `[major, minor, patch]` tuple.
|
||||
|
||||
#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
|
||||
|
||||
Allows changes that do not modify the left-most non-zero digit in the
|
||||
`[major, minor, patch]` tuple. In other words, this allows patch and
|
||||
minor updates for versions `1.0.0` and above, patch updates for
|
||||
versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`.
|
||||
|
||||
Many authors treat a `0.x` version as if the `x` were the major
|
||||
"breaking-change" indicator.
|
||||
|
||||
Caret ranges are ideal when an author may make breaking changes
|
||||
between `0.2.4` and `0.3.0` releases, which is a common practice.
|
||||
However, it presumes that there will *not* be breaking changes between
|
||||
`0.2.4` and `0.2.5`. It allows for changes that are presumed to be
|
||||
additive (but non-breaking), according to commonly observed practices.
|
||||
|
||||
* `^1.2.3` := `>=1.2.3 <2.0.0`
|
||||
* `^0.2.3` := `>=0.2.3 <0.3.0`
|
||||
* `^0.0.3` := `>=0.0.3 <0.0.4`
|
||||
* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in
|
||||
the `1.2.3` version will be allowed, if they are greater than or
|
||||
equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
|
||||
`1.2.4-beta.2` would not, because it is a prerelease of a
|
||||
different `[major, minor, patch]` tuple.
|
||||
* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the
|
||||
`0.0.3` version *only* will be allowed, if they are greater than or
|
||||
equal to `beta`. So, `0.0.3-pr.2` would be allowed.
|
||||
|
||||
When parsing caret ranges, a missing `patch` value desugars to the
|
||||
number `0`, but will allow flexibility within that value, even if the
|
||||
major and minor versions are both `0`.
|
||||
|
||||
* `^1.2.x` := `>=1.2.0 <2.0.0`
|
||||
* `^0.0.x` := `>=0.0.0 <0.1.0`
|
||||
* `^0.0` := `>=0.0.0 <0.1.0`
|
||||
|
||||
A missing `minor` and `patch` values will desugar to zero, but also
|
||||
allow flexibility within those values, even if the major version is
|
||||
zero.
|
||||
|
||||
* `^1.x` := `>=1.0.0 <2.0.0`
|
||||
* `^0.x` := `>=0.0.0 <1.0.0`
|
||||
|
||||
### Range Grammar
|
||||
|
||||
Putting all this together, here is a Backus-Naur grammar for ranges,
|
||||
for the benefit of parser authors:
|
||||
|
||||
```bnf
|
||||
range-set ::= range ( logical-or range ) *
|
||||
logical-or ::= ( ' ' ) * '||' ( ' ' ) *
|
||||
range ::= hyphen | simple ( ' ' simple ) * | ''
|
||||
hyphen ::= partial ' - ' partial
|
||||
simple ::= primitive | partial | tilde | caret
|
||||
primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial
|
||||
partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
|
||||
xr ::= 'x' | 'X' | '*' | nr
|
||||
nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
|
||||
tilde ::= '~' partial
|
||||
caret ::= '^' partial
|
||||
qualifier ::= ( '-' pre )? ( '+' build )?
|
||||
pre ::= parts
|
||||
build ::= parts
|
||||
parts ::= part ( '.' part ) *
|
||||
part ::= nr | [-0-9A-Za-z]+
|
||||
```
|
||||
|
||||
## Functions
|
||||
|
||||
All methods and classes take a final `loose` boolean argument that, if
|
||||
true, will be more forgiving about not-quite-valid semver strings.
|
||||
The resulting output will always be 100% strict, of course.
|
||||
|
||||
Strict-mode Comparators and Ranges will be strict about the SemVer
|
||||
strings that they parse.
|
||||
|
||||
* `valid(v)`: Return the parsed version, or null if it's not valid.
|
||||
* `inc(v, release)`: Return the version incremented by the release
|
||||
type (`major`, `premajor`, `minor`, `preminor`, `patch`,
|
||||
`prepatch`, or `prerelease`), or null if it's not valid
|
||||
* `premajor` in one call will bump the version up to the next major
|
||||
version and down to a prerelease of that major version.
|
||||
`preminor`, and `prepatch` work the same way.
|
||||
* If called from a non-prerelease version, the `prerelease` will work the
|
||||
same as `prepatch`. It increments the patch version, then makes a
|
||||
prerelease. If the input version is already a prerelease it simply
|
||||
increments it.
|
||||
* `prerelease(v)`: Returns an array of prerelease components, or null
|
||||
if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]`
|
||||
* `major(v)`: Return the major version number.
|
||||
* `minor(v)`: Return the minor version number.
|
||||
* `patch(v)`: Return the patch version number.
|
||||
|
||||
### Comparison
|
||||
|
||||
* `gt(v1, v2)`: `v1 > v2`
|
||||
* `gte(v1, v2)`: `v1 >= v2`
|
||||
* `lt(v1, v2)`: `v1 < v2`
|
||||
* `lte(v1, v2)`: `v1 <= v2`
|
||||
* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent,
|
||||
even if they're not the exact same string. You already know how to
|
||||
compare strings.
|
||||
* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`.
|
||||
* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call
|
||||
the corresponding function above. `"==="` and `"!=="` do simple
|
||||
string comparison, but are included for completeness. Throws if an
|
||||
invalid comparison string is provided.
|
||||
* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if
|
||||
`v2` is greater. Sorts in ascending order if passed to `Array.sort()`.
|
||||
* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions
|
||||
in descending order when passed to `Array.sort()`.
|
||||
* `diff(v1, v2)`: Returns difference between two versions by the release type
|
||||
(`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`),
|
||||
or null if the versions are the same.
|
||||
|
||||
|
||||
### Ranges
|
||||
|
||||
* `validRange(range)`: Return the valid range or null if it's not valid
|
||||
* `satisfies(version, range)`: Return true if the version satisfies the
|
||||
range.
|
||||
* `maxSatisfying(versions, range)`: Return the highest version in the list
|
||||
that satisfies the range, or `null` if none of them do.
|
||||
* `minSatisfying(versions, range)`: Return the lowest version in the list
|
||||
that satisfies the range, or `null` if none of them do.
|
||||
* `gtr(version, range)`: Return `true` if version is greater than all the
|
||||
versions possible in the range.
|
||||
* `ltr(version, range)`: Return `true` if version is less than all the
|
||||
versions possible in the range.
|
||||
* `outside(version, range, hilo)`: Return true if the version is outside
|
||||
the bounds of the range in either the high or low direction. The
|
||||
`hilo` argument must be either the string `'>'` or `'<'`. (This is
|
||||
the function called by `gtr` and `ltr`.)
|
||||
|
||||
Note that, since ranges may be non-contiguous, a version might not be
|
||||
greater than a range, less than a range, *or* satisfy a range! For
|
||||
example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`
|
||||
until `2.0.0`, so the version `1.2.10` would not be greater than the
|
||||
range (because `2.0.1` satisfies, which is higher), nor less than the
|
||||
range (since `1.2.8` satisfies, which is lower), and it also does not
|
||||
satisfy the range.
|
||||
|
||||
If you want to know if a version satisfies or does not satisfy a
|
||||
range, use the `satisfies(version, range)` function.
|
||||
133
node_modules/node-notifier/node_modules/semver/bin/semver
generated
vendored
Executable file
133
node_modules/node-notifier/node_modules/semver/bin/semver
generated
vendored
Executable file
|
|
@ -0,0 +1,133 @@
|
|||
#!/usr/bin/env node
|
||||
// Standalone semver comparison program.
|
||||
// Exits successfully and prints matching version(s) if
|
||||
// any supplied version is valid and passes all tests.
|
||||
|
||||
var argv = process.argv.slice(2)
|
||||
, versions = []
|
||||
, range = []
|
||||
, gt = []
|
||||
, lt = []
|
||||
, eq = []
|
||||
, inc = null
|
||||
, version = require("../package.json").version
|
||||
, loose = false
|
||||
, identifier = undefined
|
||||
, semver = require("../semver")
|
||||
, reverse = false
|
||||
|
||||
main()
|
||||
|
||||
function main () {
|
||||
if (!argv.length) return help()
|
||||
while (argv.length) {
|
||||
var a = argv.shift()
|
||||
var i = a.indexOf('=')
|
||||
if (i !== -1) {
|
||||
a = a.slice(0, i)
|
||||
argv.unshift(a.slice(i + 1))
|
||||
}
|
||||
switch (a) {
|
||||
case "-rv": case "-rev": case "--rev": case "--reverse":
|
||||
reverse = true
|
||||
break
|
||||
case "-l": case "--loose":
|
||||
loose = true
|
||||
break
|
||||
case "-v": case "--version":
|
||||
versions.push(argv.shift())
|
||||
break
|
||||
case "-i": case "--inc": case "--increment":
|
||||
switch (argv[0]) {
|
||||
case "major": case "minor": case "patch": case "prerelease":
|
||||
case "premajor": case "preminor": case "prepatch":
|
||||
inc = argv.shift()
|
||||
break
|
||||
default:
|
||||
inc = "patch"
|
||||
break
|
||||
}
|
||||
break
|
||||
case "--preid":
|
||||
identifier = argv.shift()
|
||||
break
|
||||
case "-r": case "--range":
|
||||
range.push(argv.shift())
|
||||
break
|
||||
case "-h": case "--help": case "-?":
|
||||
return help()
|
||||
default:
|
||||
versions.push(a)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
versions = versions.filter(function (v) {
|
||||
return semver.valid(v, loose)
|
||||
})
|
||||
if (!versions.length) return fail()
|
||||
if (inc && (versions.length !== 1 || range.length))
|
||||
return failInc()
|
||||
|
||||
for (var i = 0, l = range.length; i < l ; i ++) {
|
||||
versions = versions.filter(function (v) {
|
||||
return semver.satisfies(v, range[i], loose)
|
||||
})
|
||||
if (!versions.length) return fail()
|
||||
}
|
||||
return success(versions)
|
||||
}
|
||||
|
||||
function failInc () {
|
||||
console.error("--inc can only be used on a single version with no range")
|
||||
fail()
|
||||
}
|
||||
|
||||
function fail () { process.exit(1) }
|
||||
|
||||
function success () {
|
||||
var compare = reverse ? "rcompare" : "compare"
|
||||
versions.sort(function (a, b) {
|
||||
return semver[compare](a, b, loose)
|
||||
}).map(function (v) {
|
||||
return semver.clean(v, loose)
|
||||
}).map(function (v) {
|
||||
return inc ? semver.inc(v, inc, loose, identifier) : v
|
||||
}).forEach(function (v,i,_) { console.log(v) })
|
||||
}
|
||||
|
||||
function help () {
|
||||
console.log(["SemVer " + version
|
||||
,""
|
||||
,"A JavaScript implementation of the http://semver.org/ specification"
|
||||
,"Copyright Isaac Z. Schlueter"
|
||||
,""
|
||||
,"Usage: semver [options] <version> [<version> [...]]"
|
||||
,"Prints valid versions sorted by SemVer precedence"
|
||||
,""
|
||||
,"Options:"
|
||||
,"-r --range <range>"
|
||||
," Print versions that match the specified range."
|
||||
,""
|
||||
,"-i --increment [<level>]"
|
||||
," Increment a version by the specified level. Level can"
|
||||
," be one of: major, minor, patch, premajor, preminor,"
|
||||
," prepatch, or prerelease. Default level is 'patch'."
|
||||
," Only one version may be specified."
|
||||
,""
|
||||
,"--preid <identifier>"
|
||||
," Identifier to be used to prefix premajor, preminor,"
|
||||
," prepatch or prerelease version increments."
|
||||
,""
|
||||
,"-l --loose"
|
||||
," Interpret versions and ranges loosely"
|
||||
,""
|
||||
,"Program exits successfully if any valid version satisfies"
|
||||
,"all supplied ranges, and prints all satisfying versions."
|
||||
,""
|
||||
,"If no satisfying versions are found, then exits failure."
|
||||
,""
|
||||
,"Versions are printed in ascending order, so supplying"
|
||||
,"multiple versions to the utility will just sort them."
|
||||
].join("\n"))
|
||||
}
|
||||
94
node_modules/node-notifier/node_modules/semver/package.json
generated
vendored
Normal file
94
node_modules/node-notifier/node_modules/semver/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "semver@^5.1.0",
|
||||
"scope": null,
|
||||
"escapedName": "semver",
|
||||
"name": "semver",
|
||||
"rawSpec": "^5.1.0",
|
||||
"spec": ">=5.1.0 <6.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/Users/jose/Documents/GitHub/About/node_modules/node-notifier"
|
||||
]
|
||||
],
|
||||
"_from": "semver@>=5.1.0 <6.0.0",
|
||||
"_id": "semver@5.3.0",
|
||||
"_inCache": true,
|
||||
"_location": "/node-notifier/semver",
|
||||
"_nodeVersion": "4.4.4",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/semver-5.3.0.tgz_1468515166602_0.9155273644719273"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "isaacs",
|
||||
"email": "i@izs.me"
|
||||
},
|
||||
"_npmVersion": "3.10.6",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "semver@^5.1.0",
|
||||
"scope": null,
|
||||
"escapedName": "semver",
|
||||
"name": "semver",
|
||||
"rawSpec": "^5.1.0",
|
||||
"spec": ">=5.1.0 <6.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/node-notifier"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
|
||||
"_shasum": "9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "semver@^5.1.0",
|
||||
"_where": "/Users/jose/Documents/GitHub/About/node_modules/node-notifier",
|
||||
"bin": {
|
||||
"semver": "./bin/semver"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/npm/node-semver/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "The semantic version parser used by npm.",
|
||||
"devDependencies": {
|
||||
"tap": "^2.0.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f",
|
||||
"tarball": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz"
|
||||
},
|
||||
"files": [
|
||||
"bin",
|
||||
"range.bnf",
|
||||
"semver.js"
|
||||
],
|
||||
"gitHead": "d21444a0658224b152ce54965d02dbe0856afb84",
|
||||
"homepage": "https://github.com/npm/node-semver#readme",
|
||||
"license": "ISC",
|
||||
"main": "semver.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "isaacs",
|
||||
"email": "isaacs@npmjs.com"
|
||||
},
|
||||
{
|
||||
"name": "othiym23",
|
||||
"email": "ogd@aoaioxxysz.net"
|
||||
}
|
||||
],
|
||||
"name": "semver",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/npm/node-semver.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tap test/*.js"
|
||||
},
|
||||
"version": "5.3.0"
|
||||
}
|
||||
16
node_modules/node-notifier/node_modules/semver/range.bnf
generated
vendored
Normal file
16
node_modules/node-notifier/node_modules/semver/range.bnf
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
range-set ::= range ( logical-or range ) *
|
||||
logical-or ::= ( ' ' ) * '||' ( ' ' ) *
|
||||
range ::= hyphen | simple ( ' ' simple ) * | ''
|
||||
hyphen ::= partial ' - ' partial
|
||||
simple ::= primitive | partial | tilde | caret
|
||||
primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial
|
||||
partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
|
||||
xr ::= 'x' | 'X' | '*' | nr
|
||||
nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
|
||||
tilde ::= '~' partial
|
||||
caret ::= '^' partial
|
||||
qualifier ::= ( '-' pre )? ( '+' build )?
|
||||
pre ::= parts
|
||||
build ::= parts
|
||||
parts ::= part ( '.' part ) *
|
||||
part ::= nr | [-0-9A-Za-z]+
|
||||
1203
node_modules/node-notifier/node_modules/semver/semver.js
generated
vendored
Normal file
1203
node_modules/node-notifier/node_modules/semver/semver.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
149
node_modules/node-notifier/notifiers/balloon.js
generated
vendored
Normal file
149
node_modules/node-notifier/notifiers/balloon.js
generated
vendored
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
/**
|
||||
* Wrapper for the notifu 1.6 (http://www.paralint.com/projects/notifu/)
|
||||
|
||||
Usage
|
||||
/t <value> The type of message to display values are:
|
||||
info The message is an informational message
|
||||
warn The message is an warning message
|
||||
error The message is an error message
|
||||
/d <value> The number of milliseconds to display (omit or 0 for infinit)
|
||||
/p <value> The title (or prompt) of the ballon
|
||||
/m <value> The message text
|
||||
/i <value> Specify an icon to use ("parent" uses the icon of the parent process)
|
||||
/e Enable ballon tips in the registry (for this user only)
|
||||
/q Do not play a sound when the tooltip is displayed
|
||||
/w Show the tooltip even if the user is in the quiet period that follows his very first login (Windows 7 and up)
|
||||
/xp Use IUserNotification interface event when IUserNotification2 is available
|
||||
|
||||
|
||||
// Kill codes:
|
||||
2 = Timeout
|
||||
3 = Clicked
|
||||
4 = Closed or faded out
|
||||
|
||||
*/
|
||||
var path = require('path'),
|
||||
notifier = path.resolve(__dirname, '../vendor/notifu/notifu'),
|
||||
utils = require('../lib/utils'),
|
||||
checkGrowl = require('../lib/checkGrowl'),
|
||||
Toaster = require('./toaster'),
|
||||
Growl = require('./growl'),
|
||||
os = require('os'),
|
||||
cloneDeep = require('lodash.clonedeep');
|
||||
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var util = require('util');
|
||||
|
||||
var hasGrowl = void 0;
|
||||
|
||||
module.exports = WindowsBalloon;
|
||||
|
||||
function WindowsBalloon (options) {
|
||||
options = cloneDeep(options || {});
|
||||
if (!(this instanceof WindowsBalloon)) {
|
||||
return new WindowsBalloon(options);
|
||||
}
|
||||
|
||||
this.options = options;
|
||||
|
||||
EventEmitter.call(this);
|
||||
}
|
||||
util.inherits(WindowsBalloon, EventEmitter);
|
||||
|
||||
WindowsBalloon.prototype.notify = function (options, callback) {
|
||||
var fallback, notifierOptions = this.options;
|
||||
options = cloneDeep(options || {});
|
||||
callback = callback || function () {};
|
||||
|
||||
if (typeof options === 'string') options = {
|
||||
title: 'node-notifier',
|
||||
message: options
|
||||
};
|
||||
|
||||
var actionJackedCallback = utils.actionJackerDecorator(this, options, callback, function (data) {
|
||||
if (data === 'activate') {
|
||||
return 'click';
|
||||
}
|
||||
if (data === 'timeout') {
|
||||
return 'timeout';
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
if (!!this.options.withFallback && utils.isWin8()) {
|
||||
fallback = fallback || new Toaster(notifierOptions);
|
||||
return fallback.notify(options, callback);
|
||||
}
|
||||
|
||||
if (!!this.options.withFallback && (!utils.isLessThanWin8() || hasGrowl === true)) {
|
||||
fallback = fallback || new Growl(notifierOptions);
|
||||
return fallback.notify(options, callback);
|
||||
}
|
||||
|
||||
if (!this.options.withFallback || hasGrowl === false) {
|
||||
doNotification(options, notifierOptions, actionJackedCallback);
|
||||
return this;
|
||||
}
|
||||
|
||||
checkGrowl(notifierOptions, function (hasGrowlResult) {
|
||||
hasGrowl = hasGrowlResult;
|
||||
|
||||
if (hasGrowl) {
|
||||
fallback = fallback || new Growl(notifierOptions);
|
||||
return fallback.notify(options, callback);
|
||||
}
|
||||
|
||||
doNotification(options, notifierOptions, actionJackedCallback);
|
||||
});
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
var allowedArguments = ["t", "d", "p", "m", "i", "e", "q", "w", "xp"];
|
||||
|
||||
function doNotification (options, notifierOptions, callback) {
|
||||
var is64Bit = os.arch() === 'x64';
|
||||
options = options || {};
|
||||
options = utils.mapToNotifu(options);
|
||||
options.p = options.p || 'Node Notification:';
|
||||
|
||||
var fullNotifierPath = notifier + (is64Bit ? '64' : '') + '.exe';
|
||||
var localNotifier = notifierOptions.customPath || fullNotifierPath;
|
||||
|
||||
if (!options.m) {
|
||||
callback(new Error('Message is required.'));
|
||||
return this;
|
||||
}
|
||||
|
||||
var argsList = utils.constructArgumentList(options, {
|
||||
wrapper: '',
|
||||
noEscape: true,
|
||||
explicitTrue: true,
|
||||
allowedArguments: allowedArguments
|
||||
});
|
||||
|
||||
if (!!options.wait) {
|
||||
return utils.fileCommand(localNotifier, argsList, function (error, data) {
|
||||
var action = fromErrorCodeToAction(error.code);
|
||||
if (action === 'error') return callback(error, data);
|
||||
|
||||
return callback(null, action);
|
||||
});
|
||||
}
|
||||
utils.immediateFileCommand(localNotifier, argsList, callback);
|
||||
}
|
||||
|
||||
function fromErrorCodeToAction (errorCode) {
|
||||
switch (errorCode) {
|
||||
case 2:
|
||||
return 'timeout';
|
||||
case 3:
|
||||
case 6:
|
||||
case 7:
|
||||
return 'activate';
|
||||
case 4:
|
||||
return 'close';
|
||||
default:
|
||||
return 'error';
|
||||
}
|
||||
}
|
||||
74
node_modules/node-notifier/notifiers/growl.js
generated
vendored
Normal file
74
node_modules/node-notifier/notifiers/growl.js
generated
vendored
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
/**
|
||||
* Wrapper for the growly module
|
||||
*/
|
||||
var utils = require('../lib/utils'),
|
||||
checkGrowl = require('../lib/checkGrowl'),
|
||||
growly = require('growly'),
|
||||
cloneDeep = require('lodash.clonedeep');
|
||||
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var util = require('util');
|
||||
|
||||
var errorMessageNotFound = 'Couldn\'t connect to growl (might be used as a fallback). Make sure it is running';
|
||||
|
||||
module.exports = Growl;
|
||||
|
||||
var hasGrowl = void 0;
|
||||
|
||||
function Growl (options) {
|
||||
options = cloneDeep(options || {});
|
||||
if (!(this instanceof Growl)) {
|
||||
return new Growl(options);
|
||||
}
|
||||
|
||||
growly.appname = options.name || 'Node';
|
||||
this.options = options;
|
||||
|
||||
EventEmitter.call(this);
|
||||
}
|
||||
util.inherits(Growl, EventEmitter);
|
||||
|
||||
|
||||
Growl.prototype.notify = function (options, callback) {
|
||||
growly.setHost(this.options.host, this.options.port);
|
||||
options = cloneDeep(options || {});
|
||||
|
||||
if (typeof options === 'string') options = {
|
||||
title: 'node-notifier',
|
||||
message: options
|
||||
};
|
||||
|
||||
callback = utils.actionJackerDecorator(this, options, callback, function (data) {
|
||||
if (data === 'click') {
|
||||
return 'click';
|
||||
}
|
||||
if (data === 'timedout') {
|
||||
return 'timeout';
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
options = utils.mapToGrowl(options);
|
||||
|
||||
if (!options.message) {
|
||||
callback(new Error('Message is required.'));
|
||||
return this;
|
||||
}
|
||||
|
||||
options.title = options.title || 'Node Notification:';
|
||||
|
||||
if (hasGrowl || !!options.wait) {
|
||||
var localCallback = !!options.wait ? callback : function () {};
|
||||
growly.notify(options.message, options, localCallback);
|
||||
if (!options.wait) callback();
|
||||
return this;
|
||||
}
|
||||
|
||||
checkGrowl(growly, function (didHaveGrowl) {
|
||||
hasGrowl = didHaveGrowl;
|
||||
if (!didHaveGrowl) return callback(new Error(errorMessageNotFound));
|
||||
growly.notify(options.message, options);
|
||||
callback();
|
||||
});
|
||||
return this;
|
||||
};
|
||||
81
node_modules/node-notifier/notifiers/notificationcenter.js
generated
vendored
Normal file
81
node_modules/node-notifier/notifiers/notificationcenter.js
generated
vendored
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
/**
|
||||
* A Node.js wrapper for terminal-notify (with fallback).
|
||||
*/
|
||||
var path = require('path'),
|
||||
notifier = path.join(__dirname, '../vendor/terminal-notifier.app/Contents/MacOS/terminal-notifier'),
|
||||
utils = require('../lib/utils'),
|
||||
Growl = require('./growl'),
|
||||
cloneDeep = require('lodash.clonedeep');
|
||||
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var util = require('util');
|
||||
|
||||
var errorMessageOsX = 'You need Mac OS X 10.8 or above to use NotificationCenter,' +
|
||||
' or use Growl fallback with constructor option {withFallback: true}.';
|
||||
|
||||
module.exports = NotificationCenter;
|
||||
|
||||
function NotificationCenter (options) {
|
||||
options = cloneDeep(options || {});
|
||||
if (!(this instanceof NotificationCenter)) {
|
||||
return new NotificationCenter(options);
|
||||
}
|
||||
this.options = options;
|
||||
|
||||
EventEmitter.call(this);
|
||||
}
|
||||
util.inherits(NotificationCenter, EventEmitter);
|
||||
var activeId = null;
|
||||
|
||||
NotificationCenter.prototype.notify = function (options, callback) {
|
||||
var fallbackNotifier = null, id = identificator();
|
||||
options = cloneDeep(options || {});
|
||||
activeId = id;
|
||||
|
||||
if (typeof options === 'string') options = {
|
||||
title: 'node-notifier',
|
||||
message: options
|
||||
};
|
||||
|
||||
callback = callback || function () {};
|
||||
var actionJackedCallback = utils.actionJackerDecorator(this, options, callback, function (data) {
|
||||
if (activeId !== id) return false;
|
||||
|
||||
if (data === 'activate') {
|
||||
return 'click';
|
||||
}
|
||||
if (data === 'timeout') {
|
||||
return 'timeout';
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
options = utils.mapToMac(options);
|
||||
if (!!options.wait) {
|
||||
options.wait = 'YES';
|
||||
}
|
||||
|
||||
if (!options.message && !options.group && !options.list && !options.remove) {
|
||||
callback(new Error('Message, group, remove or list property is required.'));
|
||||
return this;
|
||||
}
|
||||
|
||||
var argsList = utils.constructArgumentList(options);
|
||||
|
||||
if(utils.isMountainLion()) {
|
||||
utils.fileCommand(this.options.customPath || notifier, argsList, actionJackedCallback);
|
||||
return this;
|
||||
}
|
||||
|
||||
if (fallbackNotifier || !!this.options.withFallback) {
|
||||
fallbackNotifier = fallbackNotifier || new Growl(this.options);
|
||||
return fallbackNotifier.notify(options, callback);
|
||||
}
|
||||
|
||||
callback(new Error(errorMessageOsX));
|
||||
return this;
|
||||
};
|
||||
|
||||
function identificator () {
|
||||
return { _ref: 'val' };
|
||||
}
|
||||
93
node_modules/node-notifier/notifiers/notifysend.js
generated
vendored
Normal file
93
node_modules/node-notifier/notifiers/notifysend.js
generated
vendored
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
/**
|
||||
* Node.js wrapper for "notify-send".
|
||||
*/
|
||||
var os = require('os'),
|
||||
which = require('which'),
|
||||
utils = require('../lib/utils'),
|
||||
cloneDeep = require('lodash.clonedeep');
|
||||
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var util = require('util');
|
||||
|
||||
var notifier = 'notify-send', hasNotifier = void 0;
|
||||
|
||||
module.exports = NotifySend;
|
||||
|
||||
function NotifySend (options) {
|
||||
options = cloneDeep(options || {});
|
||||
if (!(this instanceof NotifySend)) {
|
||||
return new NotifySend(options);
|
||||
}
|
||||
|
||||
this.options = options;
|
||||
|
||||
EventEmitter.call(this);
|
||||
}
|
||||
util.inherits(NotifySend, EventEmitter);
|
||||
|
||||
NotifySend.prototype.notify = function (options, callback) {
|
||||
options = cloneDeep(options || {});
|
||||
callback = callback || function () {};
|
||||
|
||||
if (typeof options === 'string') options = {
|
||||
title: 'node-notifier',
|
||||
message: options
|
||||
};
|
||||
|
||||
if (!options.message) {
|
||||
callback(new Error('Message is required.'));
|
||||
return this;
|
||||
}
|
||||
|
||||
if (os.type() !== 'Linux') {
|
||||
callback(new Error('Only supported on Linux systems'));
|
||||
return this;
|
||||
}
|
||||
|
||||
if (hasNotifier === false) {
|
||||
callback(new Error('notify-send must be installed on the system.'));
|
||||
return this;
|
||||
}
|
||||
|
||||
if (hasNotifier || !!this.options.suppressOsdCheck) {
|
||||
doNotification(options, callback);
|
||||
return this;
|
||||
}
|
||||
|
||||
try {
|
||||
hasNotifier = !!which.sync(notifier);
|
||||
doNotification(options, callback);
|
||||
} catch (err) {
|
||||
hasNotifier = false;
|
||||
return callback(err);
|
||||
};
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
var allowedArguments = [
|
||||
"urgency",
|
||||
"expire-time",
|
||||
"icon",
|
||||
"category",
|
||||
"hint"
|
||||
];
|
||||
|
||||
function doNotification (options, callback) {
|
||||
var initial, argsList;
|
||||
|
||||
options = utils.mapToNotifySend(options);
|
||||
options.title = options.title || 'Node Notification:';
|
||||
|
||||
initial = [options.title, options.message];
|
||||
delete options.title;
|
||||
delete options.message;
|
||||
|
||||
argsList = utils.constructArgumentList(options, {
|
||||
initial: initial,
|
||||
keyExtra: '-',
|
||||
allowedArguments: allowedArguments
|
||||
});
|
||||
|
||||
utils.command(notifier, argsList, callback);
|
||||
}
|
||||
67
node_modules/node-notifier/notifiers/toaster.js
generated
vendored
Normal file
67
node_modules/node-notifier/notifiers/toaster.js
generated
vendored
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
/**
|
||||
* Wrapper for the toaster (https://github.com/nels-o/toaster)
|
||||
*/
|
||||
var path = require('path'),
|
||||
notifier = path.resolve(__dirname, '../vendor/toaster/toast.exe'),
|
||||
utils = require('../lib/utils'),
|
||||
Balloon = require('./balloon'),
|
||||
cloneDeep = require('lodash.clonedeep');
|
||||
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var util = require('util');
|
||||
|
||||
var fallback = void 0;
|
||||
|
||||
module.exports = WindowsToaster;
|
||||
|
||||
function WindowsToaster (options) {
|
||||
options = cloneDeep(options || {});
|
||||
if (!(this instanceof WindowsToaster)) {
|
||||
return new WindowsToaster(options);
|
||||
}
|
||||
|
||||
this.options = options;
|
||||
|
||||
EventEmitter.call(this);
|
||||
}
|
||||
util.inherits(WindowsToaster, EventEmitter);
|
||||
|
||||
WindowsToaster.prototype.notify = function (options, callback) {
|
||||
options = cloneDeep(options || {});
|
||||
callback = callback || function () {};
|
||||
|
||||
if (typeof options === 'string') options = {
|
||||
title: 'node-notifier',
|
||||
message: options
|
||||
};
|
||||
|
||||
var actionJackedCallback = utils.actionJackerDecorator(this, options, callback, function (data) {
|
||||
if (data === 'activate') {
|
||||
return 'click';
|
||||
}
|
||||
if (data === 'timeout') {
|
||||
return 'timeout';
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
options.title = options.title || 'Node Notification:';
|
||||
|
||||
if (!options.message) {
|
||||
callback(new Error('Message is required.'));
|
||||
return this;
|
||||
}
|
||||
|
||||
if (!utils.isWin8() && !!this.options.withFallback) {
|
||||
fallback = fallback || new Balloon(this.options);
|
||||
return fallback.notify(options, callback);
|
||||
}
|
||||
|
||||
options = utils.mapToWin8(options);
|
||||
var argsList = utils.constructArgumentList(options, {
|
||||
wrapper: '',
|
||||
noEscape: true
|
||||
});
|
||||
utils.fileCommand(this.options.customPath || notifier, argsList, actionJackedCallback);
|
||||
return this;
|
||||
};
|
||||
110
node_modules/node-notifier/package.json
generated
vendored
Normal file
110
node_modules/node-notifier/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "node-notifier@^4.1.0",
|
||||
"scope": null,
|
||||
"escapedName": "node-notifier",
|
||||
"name": "node-notifier",
|
||||
"rawSpec": "^4.1.0",
|
||||
"spec": ">=4.1.0 <5.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/Users/jose/Documents/GitHub/About/node_modules/gulp-notify"
|
||||
]
|
||||
],
|
||||
"_from": "node-notifier@>=4.1.0 <5.0.0",
|
||||
"_id": "node-notifier@4.6.1",
|
||||
"_inCache": true,
|
||||
"_location": "/node-notifier",
|
||||
"_nodeVersion": "6.3.1",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/node-notifier-4.6.1.tgz_1471811837812_0.47649690927937627"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "mikaelb",
|
||||
"email": "mikaelbre@gmail.com"
|
||||
},
|
||||
"_npmVersion": "3.10.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "node-notifier@^4.1.0",
|
||||
"scope": null,
|
||||
"escapedName": "node-notifier",
|
||||
"name": "node-notifier",
|
||||
"rawSpec": "^4.1.0",
|
||||
"spec": ">=4.1.0 <5.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/gulp-notify"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-4.6.1.tgz",
|
||||
"_shasum": "056d14244f3dcc1ceadfe68af9cff0c5473a33f3",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "node-notifier@^4.1.0",
|
||||
"_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-notify",
|
||||
"author": {
|
||||
"name": "Mikael Brevik"
|
||||
},
|
||||
"bin": {
|
||||
"notify": "./bin.js"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/mikaelbr/node-notifier/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"cli-usage": "^0.1.1",
|
||||
"growly": "^1.2.0",
|
||||
"lodash.clonedeep": "^3.0.0",
|
||||
"minimist": "^1.1.1",
|
||||
"semver": "^5.1.0",
|
||||
"shellwords": "^0.1.0",
|
||||
"which": "^1.0.5"
|
||||
},
|
||||
"description": "A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)",
|
||||
"devDependencies": {
|
||||
"mocha": "^3.0.0",
|
||||
"should": "^4.0.4"
|
||||
},
|
||||
"directories": {
|
||||
"example": "example"
|
||||
},
|
||||
"dist": {
|
||||
"shasum": "056d14244f3dcc1ceadfe68af9cff0c5473a33f3",
|
||||
"tarball": "https://registry.npmjs.org/node-notifier/-/node-notifier-4.6.1.tgz"
|
||||
},
|
||||
"gitHead": "0dc7ea4dd5bcb9584e9dfda3b69e6f3bf2379968",
|
||||
"homepage": "https://github.com/mikaelbr/node-notifier#readme",
|
||||
"keywords": [
|
||||
"notification center",
|
||||
"mac os x 10.8",
|
||||
"notify",
|
||||
"terminal-notifier",
|
||||
"notify-send",
|
||||
"growl",
|
||||
"windows 8 notification",
|
||||
"toaster",
|
||||
"notification"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "mikaelb",
|
||||
"email": "mikaelbre@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "node-notifier",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/mikaelbr/node-notifier.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha -R spec"
|
||||
},
|
||||
"version": "4.6.1"
|
||||
}
|
||||
BIN
node_modules/node-notifier/vendor/notifu/notifu.exe
generated
vendored
Executable file
BIN
node_modules/node-notifier/vendor/notifu/notifu.exe
generated
vendored
Executable file
Binary file not shown.
BIN
node_modules/node-notifier/vendor/notifu/notifu64.exe
generated
vendored
Executable file
BIN
node_modules/node-notifier/vendor/notifu/notifu64.exe
generated
vendored
Executable file
Binary file not shown.
56
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Info.plist
generated
vendored
Normal file
56
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Info.plist
generated
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>15A278b</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>terminal-notifier</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>Terminal</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>nl.superalloy.oss.terminal-notifier</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>terminal-notifier</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.6.3</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>14</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>7D1014</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>GM</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>15E60</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx10.11</string>
|
||||
<key>DTXcode</key>
|
||||
<string>0731</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>7D1014</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.8</string>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 2012-2015 Eloy Durán, Julien Blanchard. All rights reserved.</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainMenu</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/MacOS/terminal-notifier
generated
vendored
Executable file
BIN
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/MacOS/terminal-notifier
generated
vendored
Executable file
Binary file not shown.
1
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/PkgInfo
generated
vendored
Normal file
1
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/PkgInfo
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
APPL????
|
||||
BIN
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/Terminal.icns
generated
vendored
Normal file
BIN
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/Terminal.icns
generated
vendored
Normal file
Binary file not shown.
29
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf
generated
vendored
Normal file
29
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
\paperw9840\paperh8400
|
||||
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
|
||||
|
||||
\f0\b\fs24 \cf0 Engineering:
|
||||
\b0 \
|
||||
Some people\
|
||||
\
|
||||
|
||||
\b Human Interface Design:
|
||||
\b0 \
|
||||
Some other people\
|
||||
\
|
||||
|
||||
\b Testing:
|
||||
\b0 \
|
||||
Hopefully not nobody\
|
||||
\
|
||||
|
||||
\b Documentation:
|
||||
\b0 \
|
||||
Whoever\
|
||||
\
|
||||
|
||||
\b With special thanks to:
|
||||
\b0 \
|
||||
Mom\
|
||||
}
|
||||
BIN
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings
generated
vendored
Normal file
BIN
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib
generated
vendored
Normal file
BIN
node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.Shell.dll
generated
vendored
Executable file
BIN
node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.Shell.dll
generated
vendored
Executable file
Binary file not shown.
BIN
node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.dll
generated
vendored
Executable file
BIN
node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.dll
generated
vendored
Executable file
Binary file not shown.
BIN
node_modules/node-notifier/vendor/toaster/toast.exe
generated
vendored
Executable file
BIN
node_modules/node-notifier/vendor/toaster/toast.exe
generated
vendored
Executable file
Binary file not shown.
Loading…
Reference in a new issue