@webgap/notifier
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -26,4 +26,3 @@ /** | ||
logger = new Logger(), | ||
ObjectUtils = require('@webgap/object-utils'), | ||
objectUtils = new ObjectUtils(), | ||
underscore = require('underscore'), | ||
async = require('async'); | ||
@@ -76,3 +75,3 @@ | ||
// ensure the message is not delivered through the same system multiple times | ||
options.notificationSystems = objectUtils.Array.removeDuplicates(options.notificationSystems); | ||
options.notificationSystems = underscore.uniq(options.notificationSystems); | ||
// validate message type | ||
@@ -79,0 +78,0 @@ if (!(options.notification instanceof Notification)) { |
@@ -39,3 +39,2 @@ /** | ||
function Notification(options) { | ||
var self = this; | ||
options = options || {}; | ||
@@ -42,0 +41,0 @@ // always initialize all instance properties |
@@ -5,8 +5,8 @@ { | ||
"author": "Manuel Martins <manuelmachadomartins@gmail.com>", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license": "Apache-2.0", | ||
"engine": "node >= 0.11.0", | ||
"engine": "node >= 0.12.0", | ||
"main": "./index", | ||
"scripts": { | ||
"test": "export NODE_APP_HOME='./test'; export NODE_APP='conf'; export NODE_ENV='test'; mocha test/" | ||
"test": "export NODE_APP_HOME=`pwd`./test; export NODE_APP='conf'; export NODE_ENV='test'; mocha test/" | ||
}, | ||
@@ -29,7 +29,7 @@ "repository": { | ||
"@webgap/logger": ">=0.1.0", | ||
"@webgap/object-utils": ">=0.0.3", | ||
"@webgap/format-utils": ">=0.1.1", | ||
"node-uuid": ">=1.4.3", | ||
"string": ">=3.3.1", | ||
"async": ">=1.4.0" | ||
"underscore": ">=1.8.3", | ||
"async": ">=1.4.2" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
@@ -19,3 +19,3 @@ # WebGAP Notifier | ||
Handles logging using [**@webgap/logger**](https://github.com/webgap/logger).<br/> | ||
Handles objects using [**@webgap/object-utils**](https://github.com/webgap/object-utils).<br/> | ||
Handles most common object utilities with [**underscore.js**](https://github.com/jashkenas/underscore).<br/> | ||
Handles date format using [**@webgap/format-utils**](https://github.com/webgap/format-utils).<br/> | ||
@@ -41,3 +41,3 @@ Loads default configuration using [**@webgap/configuration**](https://github.com/webgap/configuration).<br/> | ||
```javascript | ||
var Notifier = require('@webgap/notifier').Notifier, | ||
var Notifier = require('@webgap/notifier'), | ||
Notification = Notifier.Notification, | ||
@@ -44,0 +44,0 @@ Message = Notification.Message, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
19
36209
361
+ Addedunderscore@>=1.8.3
+ Addedunderscore@1.13.7(transitive)
- Removed@webgap/object-utils@>=0.0.3
Updatedasync@>=1.4.2