Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vanillatoasts

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanillatoasts - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

2

package.json
{
"name": "vanillatoasts",
"version": "1.4.0",
"version": "1.5.0",
"description": "Agnostic Javascript Library for Website Notifications",

@@ -5,0 +5,0 @@ "main": "vanillatoasts.js",

@@ -80,2 +80,8 @@ (function (root, factory) {

}
if (options.onHide) {
// do something
}
}

@@ -117,3 +123,15 @@ // position

toast.addEventListener('animationend', removeToast, false);
};
if (options.onHide) {
options.onHide();
}
}
// single
if (options.single === true) {
var elements = document.getElementsByClassName('vanillatoasts-toast');
while (elements.length > 0) {
elements[0].parentNode.removeChild(elements[0]);
}
}

@@ -120,0 +138,0 @@ // autohide

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