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.2.0 to 1.3.0

dist/.module-cache/manifest/730be69964662517def66cb8b7e8ea0cf40805d4.json

9

dist/notification.js

@@ -126,2 +126,11 @@ 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 () {

@@ -128,0 +137,0 @@ return (

2

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

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

@@ -36,2 +36,3 @@ # react-notification [![npm version](https://badge.fury.io/js/react-notification.svg)](http://badge.fury.io/js/react-notification) [![Dependency Status](https://david-dm.org/pburtchaell/react-classes.svg)](https://david-dm.org/pburtchaell/react-notification)

| styles | object || bool | Styles to apply to the component* | |
| dismissAfter | integer | Time in milliseconds to dismiss the notification (eg. `2000` for 2 seconds) | |

@@ -38,0 +39,0 @@ *Setting this prop to `false` will disable all inline styles. This is useful if you aren't using React inline styles and would like to use CSS instead. See [styles](#styles) for more.

@@ -126,2 +126,11 @@ 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 () {

@@ -128,0 +137,0 @@ return (

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