Updating NPM dependencies
This commit is contained in:
11
node_modules/node-notifier/notifiers/notificationcenter.js
generated
vendored
11
node_modules/node-notifier/notifiers/notificationcenter.js
generated
vendored
@@ -31,7 +31,7 @@ util.inherits(NotificationCenter, EventEmitter);
|
||||
var activeId = null;
|
||||
|
||||
function noop() {}
|
||||
NotificationCenter.prototype.notify = function(options, callback) {
|
||||
function notifyRaw(options, callback) {
|
||||
var fallbackNotifier;
|
||||
var id = identificator();
|
||||
options = utils.clone(options || {});
|
||||
@@ -93,7 +93,14 @@ NotificationCenter.prototype.notify = function(options, callback) {
|
||||
|
||||
callback(new Error(errorMessageOsX));
|
||||
return this;
|
||||
};
|
||||
}
|
||||
|
||||
Object.defineProperty(NotificationCenter.prototype, 'notify', {
|
||||
get: function() {
|
||||
if (!this._notify) this._notify = notifyRaw.bind(this);
|
||||
return this._notify;
|
||||
}
|
||||
});
|
||||
|
||||
function identificator() {
|
||||
return { _ref: 'val' };
|
||||
|
||||
Reference in New Issue
Block a user