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

rc-motion

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-motion - npm Package Compare versions

Comparing version 2.9.3 to 2.9.4

5

es/CSSMotion.js

@@ -8,3 +8,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

import findDOMNode from "rc-util/es/Dom/findDOMNode";
import { fillRef, supportRef } from "rc-util/es/ref";
import { fillRef, getNodeRef, supportRef } from "rc-util/es/ref";
import * as React from 'react';

@@ -124,4 +124,3 @@ import { useRef } from 'react';

if ( /*#__PURE__*/React.isValidElement(motionChildren) && supportRef(motionChildren)) {
var _ref = motionChildren,
originNodeRef = _ref.ref;
var originNodeRef = getNodeRef(motionChildren);
if (!originNodeRef) {

@@ -128,0 +127,0 @@ motionChildren = /*#__PURE__*/React.cloneElement(motionChildren, {

9

lib/CSSMotion.js

@@ -16,3 +16,3 @@ "use strict";

var _findDOMNode = _interopRequireDefault(require("rc-util/lib/Dom/findDOMNode"));
var _ref2 = require("rc-util/lib/ref");
var _ref = require("rc-util/lib/ref");
var _react = _interopRequireWildcard(require("react"));

@@ -89,3 +89,3 @@ var React = _react;

nodeRef.current = node;
(0, _ref2.fillRef)(ref, node);
(0, _ref.fillRef)(ref, node);
}, [ref]);

@@ -136,5 +136,4 @@

// Auto inject ref if child node not have `ref` props
if ( /*#__PURE__*/React.isValidElement(motionChildren) && (0, _ref2.supportRef)(motionChildren)) {
var _ref = motionChildren,
originNodeRef = _ref.ref;
if ( /*#__PURE__*/React.isValidElement(motionChildren) && (0, _ref.supportRef)(motionChildren)) {
var originNodeRef = (0, _ref.getNodeRef)(motionChildren);
if (!originNodeRef) {

@@ -141,0 +140,0 @@ motionChildren = /*#__PURE__*/React.cloneElement(motionChildren, {

{
"name": "rc-motion",
"version": "2.9.3",
"version": "2.9.4",
"description": "React lifecycle controlled motion library",

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

"prepare": "husky install",
"prepublishOnly": "npm run compile",
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",

@@ -52,3 +52,3 @@ "postpublish": "npm run docs:build && npm run docs:deploy",

"classnames": "^2.2.1",
"rc-util": "^5.43.0"
"rc-util": "^5.44.0"
},

@@ -55,0 +55,0 @@ "devDependencies": {

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