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 1.3.0 to 1.4.0

dist/.module-cache/manifest/d1408a8650fd82008065c1d8d055d5840ef589d3.json

13

dist/notification.js

@@ -126,12 +126,7 @@ var React = require('react');

componentWillReceiveProps: function (nextProps) {
if (!nextProps.dismissAfter) return;
if (this.state.timeoutId) clearTimeout( this.state.timeoutId );
this.state.timeoutId = setTimeout( this.hide(), nextProps.dismissAfter );
this.setState(this.state);
},
render: function () {
if(this.props.dismissAfter && this.state.active) {
if (this.timeoutId) clearTimeout( this.timeoutId );
this.timeoutId = setTimeout( this.hide, this.props.dismissAfter );
}
return (

@@ -138,0 +133,0 @@ React.createElement("div", {className: "notification-bar", style: this.getBarStyles()},

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

@@ -22,2 +22,3 @@ "main": "dist/notification.js",

"component",
"react-component",
"components",

@@ -24,0 +25,0 @@ "ui",

@@ -126,12 +126,7 @@ var React = require('react');

componentWillReceiveProps: function (nextProps) {
if (!nextProps.dismissAfter) return;
if (this.state.timeoutId) clearTimeout( this.state.timeoutId );
this.state.timeoutId = setTimeout( this.hide(), nextProps.dismissAfter );
this.setState(this.state);
},
render: function () {
if(this.props.dismissAfter && this.state.active) {
if (this.timeoutId) clearTimeout( this.timeoutId );
this.timeoutId = setTimeout( this.hide, this.props.dismissAfter );
}
return (

@@ -138,0 +133,0 @@ <div className="notification-bar" style={this.getBarStyles()}>

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