Socket
Socket
Sign inDemoInstall

rc-animate

Package Overview
Dependencies
15
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.5.2 to 2.5.3

10

es/CSSMotion.js

@@ -25,2 +25,6 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty';

export function genCSSMotion(transitionSupport) {
function isSupportTransition(props) {
return !!(props.motionName && transitionSupport);
}
var CSSMotion = function (_React$Component) {

@@ -50,3 +54,3 @@ _inherits(CSSMotion, _React$Component);

if (!transitionSupport) {
if (!isSupportTransition(_this.props)) {
return;

@@ -199,3 +203,3 @@ }

if (status === STATUS_NONE || !transitionSupport) {
if (status === STATUS_NONE || !isSupportTransition(this.props)) {
return visible || !removeOnLeave ? children({}) : null;

@@ -214,3 +218,3 @@ }

if (!transitionSupport) return {};
if (!isSupportTransition(props)) return {};

@@ -217,0 +221,0 @@ var visible = props.visible,

@@ -69,2 +69,6 @@ 'use strict';

function genCSSMotion(transitionSupport) {
function isSupportTransition(props) {
return !!(props.motionName && transitionSupport);
}
var CSSMotion = function (_React$Component) {

@@ -94,3 +98,3 @@ (0, _inherits3['default'])(CSSMotion, _React$Component);

if (!transitionSupport) {
if (!isSupportTransition(_this.props)) {
return;

@@ -243,3 +247,3 @@ }

if (status === STATUS_NONE || !transitionSupport) {
if (status === STATUS_NONE || !isSupportTransition(this.props)) {
return visible || !removeOnLeave ? children({}) : null;

@@ -258,3 +262,3 @@ }

if (!transitionSupport) return {};
if (!isSupportTransition(props)) return {};

@@ -261,0 +265,0 @@ var visible = props.visible,

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

@@ -28,3 +28,3 @@ "keywords": [

"config": {
"port": 8200
"port": 8201
},

@@ -31,0 +31,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc