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

awesome-notifications

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-notifications - npm Package Compare versions

Comparing version

to
2.2.5

2

package.json
{
"name": "awesome-notifications",
"version": "2.2.4",
"version": "2.2.5",
"description": "Lightweight library for beautifull and smooth notifications",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -14,3 +14,3 @@ [![npm version](https://badge.fury.io/js/awesome-notifications.svg)](https://badge.fury.io/js/awesome-notifications)

> **Attention!** This library uses FontAwesome icons, so you either need to make sure that [FontAwesome](http://fontawesome.io/get-started/) is connected to your project or disable icons, passing the `icons: {enabled: false}` property to options. Also you can preserve icons setting up a custom template for them via editing `options.icons.prefix` and `options.icons.suffix`
> **Attention!** This library uses FontAwesome 4 icons, so you either need to make sure that [FontAwesome](https://fontawesome.com/v4.7.0/get-started/) is connected to your project or disable icons, passing the `icons: {enabled: false}` property to options. Also you can preserve icons setting up a custom template for them via editing `options.icons.prefix` and `options.icons.suffix`

@@ -70,3 +70,3 @@ **Via NPM**

| `asyncBlock(promise, onResolve, onReject, html)` | _promise_ - `Promise`, required; <br/> _onResolve_ - `Function`, `String`, optional, either callback or message; <br/> _onReject_ - `Function`, `String`, optional, either callback or message; <br/> _html_ - `String`, optional, html for async toast | shows loader and blocks the screen untill `promise` will be completed, then run a callback or show new toast | `asyncBlock(somePromise, resolveCallback, 'custom message for alert toast' , 'Custom async msg')` |
| `confirm(html, okFunc, cancelFunc)` | _html_ - `String`, required <br/> _okFunc_ - `Function`, optional <br/> _cancelFunc_ - `Function`, optional | shows a modal dialog, which is waiting for users confirmation | `confirm('Are you sure?', runIfOkClicked, runIfCancelClicked)` |
| `confirm(html, onOk, onCancel)` | _html_ - `String`, required <br/> _onOk_ - `Function`, optional <br/> _onCancel_ - `Function`, optional | shows a modal dialog, which is waiting for users confirmation | `confirm('Are you sure?', runIfOkClicked, runIfCancelClicked)` |
| `modal(html, className)` | _html_ - `String`, required <br/> _className_ - `String`, required | shows a custom modal dialog with which contains **only** value of `html` | `modal('<h2>Your custom title</h2><p>Your custom text</p>', 'custom-class-name')` |

@@ -73,0 +73,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet