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

react-crouton

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-crouton - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

20

index.js

@@ -123,13 +123,19 @@ var React = require('react');

var autoMiss = nextProps.autoMiss ? (buttons ? false : true) : nextProps.autoMiss;
this.setState({
hidden: nextProps.hidden,
buttons: buttons,
message: message,
type: nextProps.type
});
if (autoMiss && !nextProps.hidden) {
var ttd = setTimeout(this.dismiss, nextProps.timeout || this.props.timeout);
this.dismiss();
this.setState({
ttd: ttd
ttd: ttd,
hidden: nextProps.hidden,
buttons: buttons,
message: message,
type: nextProps.type
});
} else {
this.setState({
hidden: nextProps.hidden,
buttons: buttons,
message: message,
type: nextProps.type
});
}

@@ -136,0 +142,0 @@ },

{
"name": "react-crouton",
"version": "0.2.4",
"version": "0.2.5",
"description": "A message component for reactjs.",

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