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

react-notification

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-notification - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

8

dist/notification.js

@@ -138,7 +138,11 @@ 'use strict';

Notification.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
if (nextProps.onDismiss && nextProps.isActive) {
setTimeout(nextProps.onDismiss, nextProps.dismissAfter);
if (nextProps.onDismiss && nextProps.isActive && !this.props.isActive) {
this.dismissTimeout = setTimeout(nextProps.onDismiss, nextProps.dismissAfter);
}
};
Notification.prototype.componentWillUnmount = function componentWillUnmount() {
clearTimeout(this.dismissTimeout);
};
/*

@@ -145,0 +149,0 @@ * @description Dynamically get the styles for the bar.

{
"name": "react-notification",
"version": "3.0.2",
"version": "3.0.3",
"description": "Snackbar style notification component for React.",

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

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