angular-notifications
Advanced tools
Comparing version
@@ -8,39 +8,44 @@ "use strict"; | ||
var Notifier = (function () { | ||
function Notifier(scope) { | ||
_classCallCheck(this, Notifier); | ||
function Notifier(scope) { | ||
_classCallCheck(this, Notifier); | ||
this.scope = scope; | ||
this.scope = scope; | ||
} | ||
_createClass(Notifier, { | ||
notify: { | ||
value: function notify(type, message) { | ||
this.scope.$broadcast("ngNotifications:notify", type, message); | ||
} | ||
}, | ||
closeAll: { | ||
value: function closeAll() { | ||
this.notify("ngNotifications:closeAll"); | ||
} | ||
}, | ||
error: { | ||
value: function error(message) { | ||
this.notify("error", message); | ||
} | ||
}, | ||
warning: { | ||
value: function warning(message) { | ||
this.notify("warning", message); | ||
} | ||
}, | ||
info: { | ||
value: function info(message) { | ||
this.notify("info", message); | ||
} | ||
}, | ||
success: { | ||
value: function success(message) { | ||
this.notify("success", message); | ||
} | ||
} | ||
}); | ||
_createClass(Notifier, { | ||
notify: { | ||
value: function notify(type, message) { | ||
this.scope.$broadcast("ngNotifications:notify", type, message); | ||
} | ||
}, | ||
closeAll: { | ||
value: function closeAll() { | ||
this.notify("ngNotifications:closeAll"); | ||
} | ||
}, | ||
error: { | ||
value: function error(message) { | ||
this.notify("error", message); | ||
} | ||
}, | ||
warning: { | ||
value: function warning(message) { | ||
this.notify("warning", message); | ||
} | ||
}, | ||
info: { | ||
value: function info(message) { | ||
this.notify("info", message); | ||
} | ||
} | ||
}); | ||
return Notifier; | ||
return Notifier; | ||
})(); | ||
module.exports = Notifier; |
{ | ||
"name": "angular-notifications", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Sweet notifications for your angular app", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
class Notifier { | ||
constructor(scope) { | ||
this.scope = scope; | ||
} | ||
constructor(scope) { | ||
this.scope = scope; | ||
} | ||
notify(type, message) { | ||
this.scope.$broadcast('ngNotifications:notify', type, message); | ||
} | ||
notify(type, message) { | ||
this.scope.$broadcast('ngNotifications:notify', type, message); | ||
} | ||
closeAll() { | ||
this.notify('ngNotifications:closeAll'); | ||
} | ||
closeAll() { | ||
this.notify('ngNotifications:closeAll'); | ||
} | ||
error(message) { | ||
this.notify('error', message); | ||
} | ||
error(message) { | ||
this.notify('error', message); | ||
} | ||
warning(message) { | ||
this.notify('warning', message); | ||
} | ||
warning(message) { | ||
this.notify('warning', message); | ||
} | ||
info(message) { | ||
this.notify('info', message); | ||
} | ||
info(message) { | ||
this.notify('info', message); | ||
} | ||
success(message) { | ||
this.notify('success', message); | ||
} | ||
} | ||
module.exports = Notifier; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
35177
0.72%230
5.5%1
Infinity%