Socket
Socket
Sign inDemoInstall

react-touch-carousel

Package Overview
Dependencies
10
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.1 to 0.10.2

19

lib/TouchCarousel.js

@@ -394,4 +394,5 @@ "use strict";

this.Component = (0, _web.animated)(props.component);
this.Card = (0, _web.animated)(function (_ref) {
this.AnimatedComponent = (0, _web.animated)(props.component);
var wrappedCard = function wrappedCard(_ref) {
var index = _ref.index,

@@ -401,4 +402,7 @@ modIndex = _ref.modIndex,

state = _ref.state;
_this2.usedCursor = cursor;
return _this2.props.renderCard(index, modIndex, cursor, state);
});
};
this.AnimatedCard = (0, _web.animated)(wrappedCard);
}

@@ -444,4 +448,4 @@ }, {

var Component = this.Component,
Card = this.Card;
var AnimatedComponent = this.AnimatedComponent,
AnimatedCard = this.AnimatedCard;

@@ -478,4 +482,3 @@ var _this$props7 = this.props,

var cursor = _ref2.cursor;
_this3.usedCursor = cursor.get();
return /*#__PURE__*/_react["default"].createElement(Component, _extends({}, (0, _utils.omit)(rest, propsKeys), {
return /*#__PURE__*/_react["default"].createElement(AnimatedComponent, _extends({}, (0, _utils.omit)(rest, propsKeys), {
cursor: cursor,

@@ -494,3 +497,3 @@ carouselState: _this3.state,

return /*#__PURE__*/_react["default"].createElement(Card, {
return /*#__PURE__*/_react["default"].createElement(AnimatedCard, {
key: index,

@@ -497,0 +500,0 @@ index: index,

{
"name": "react-touch-carousel",
"version": "0.10.1",
"version": "0.10.2",
"description": "Micro carousel framework for React.JS",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc