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

rc-animate

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-animate - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

lib/Animate.js

@@ -160,3 +160,3 @@ 'use strict';

this.props.onEnd(key, true);
if (this.isMounted()) {
if (this.isMounted() && !(0, _ChildrenUtils.isSameChildren)(this.state.children, currentChildren)) {
this.setState({

@@ -191,3 +191,3 @@ children: currentChildren

this.props.onEnd(key, false);
if (this.isMounted()) {
if (this.isMounted() && !(0, _ChildrenUtils.isSameChildren)(this.state.children, currentChildren)) {
this.setState({

@@ -194,0 +194,0 @@ children: currentChildren

@@ -72,2 +72,14 @@ 'use strict';

isSameChildren: function isSameChildren(c1, c2) {
var same = c1.length === c2.length;
if (same) {
c1.forEach(function (c, i) {
if (c !== c2[i]) {
same = false;
}
});
}
return same;
},
mergeChildren: function mergeChildren(prev, next) {

@@ -74,0 +86,0 @@ var ret = [];

{
"name": "rc-animate",
"version": "1.0.1",
"version": "1.0.2",
"description": "css-transition ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

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