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 5.0.1 to 5.0.2

3

dist/notification.js

@@ -43,3 +43,4 @@ 'use strict';

value: function componentWillReceiveProps(nextProps) {
if (nextProps.onDismiss && nextProps.isActive && !this.props.isActive) {
if (nextProps.onDismiss && this.props.onDismiss === nextProps.onDismiss && nextProps.isActive && !this.props.isActive) {
clearTimeout(this.dismissTimeout);
this.dismissTimeout = setTimeout(nextProps.onDismiss, nextProps.dismissAfter);

@@ -46,0 +47,0 @@ }

@@ -27,8 +27,2 @@ 'use strict';

/**
* The notification list does not have any state, so use a
* pure function here. It just needs to return the stacked array
* of notification components.
*/
var StackedNotification = function (_Component) {

@@ -35,0 +29,0 @@ _inherits(StackedNotification, _Component);

@@ -35,2 +35,3 @@ import React, { Component } from 'react';

onDismiss={this.toggleNotification.bind(this)}
onClick={() => this.setState({ isActive: false })}
/>

@@ -37,0 +38,0 @@ </div>

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

@@ -5,0 +5,0 @@ "main": "dist/index.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