New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ui-notifier

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui-notifier - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "ui-notifier",
"version": "0.1.1",
"version": "0.1.2",
"author": {

@@ -5,0 +5,0 @@ "name": "mihnsen",

@@ -106,19 +106,3 @@ ui-notifier ([live demo](http://mihnsen.github.io/ui-notifier/)) [![Build Status](https://travis-ci.org/mihnsen/ui-notifier.svg?branch=master)](https://travis-ci.org/mihnsen/ui-notifier) [![Code Climate](https://codeclimate.com/github/mihnsen/ui-notifier/badges/gpa.svg)](https://codeclimate.com/github/mihnsen/ui-notifier)

This will give the user the option of closing the notification themselves. If you need to dismiss a notification manually, you can do so with the `dismiss` method like this:
```javascript
uiNotifier.dismiss();
```
If you'd prefer to dismiss the notification programmatically and prevent the user from doing so, you can add an option to remove the button:
```javascript
uiNotifier.set('This is sticky without a button.', {
sticky: true,
button: false
});
```
*Any time a notification is set to sticky, the duration attribute will be ignored since the notification will not be automatically fading out.*
### HTML Notifications

@@ -125,0 +109,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc