Socket
Socket
Sign inDemoInstall

nuka-carousel

Package Overview
Dependencies
Maintainers
30
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuka-carousel - npm Package Compare versions

Comparing version 4.7.7 to 4.7.8

7

CHANGELOG.md
# Nuka Changelog
## 4.7.6 (2021-03-15)
- [#765](https://github.com/FormidableLabs/nuka-carousel/pull/765) Fixes #732 - remove preventDefault from touch handler
- [#764](https://github.com/FormidableLabs/nuka-carousel/pull/764) Set up GH Actions
- [#763](https://github.com/FormidableLabs/nuka-carousel/pull/763) Dep bumps
- [#760](https://github.com/FormidableLabs/nuka-carousel/pull/760) Fixes: #754 - Center cellAlign bug
## 4.7.5 (2020-12-30)

@@ -4,0 +11,0 @@

22

es/index.js

@@ -714,3 +714,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

offset -= touchOffset || 0;
if (!isNaN(touchOffset)) {
offset -= touchOffset;
} else {
offset -= 0;
}
return (left - offset) * -1;

@@ -1200,11 +1205,10 @@ }

}
},
children: function children(_ref2) {
var tx = _ref2.tx,
ty = _ref2.ty;
return /*#__PURE__*/React.createElement(TransitionControl, _extends({}, getTransitionProps(_this10.props, _this10.state), {
deltaX: tx,
deltaY: ty
}), addAccessibility(validChildren, slidesToShow, currentSlide));
}
}, function (_ref2) {
var tx = _ref2.tx,
ty = _ref2.ty;
return /*#__PURE__*/React.createElement(TransitionControl, _extends({}, getTransitionProps(_this10.props, _this10.state), {
deltaX: tx,
deltaY: ty
}), addAccessibility(validChildren, slidesToShow, currentSlide));
})), this.renderControls(), this.props.autoGenerateStyleTag && /*#__PURE__*/React.createElement("style", {

@@ -1211,0 +1215,0 @@ type: "text/css",

@@ -756,3 +756,8 @@ "use strict";

offset -= touchOffset || 0;
if (!isNaN(touchOffset)) {
offset -= touchOffset;
} else {
offset -= 0;
}
return (left - offset) * -1;

@@ -1242,11 +1247,10 @@ }

}
},
children: function children(_ref2) {
var tx = _ref2.tx,
ty = _ref2.ty;
return /*#__PURE__*/_react["default"].createElement(TransitionControl, _extends({}, (0, _styleUtilities.getTransitionProps)(_this10.props, _this10.state), {
deltaX: tx,
deltaY: ty
}), (0, _utilities.addAccessibility)(validChildren, slidesToShow, currentSlide));
}
}, function (_ref2) {
var tx = _ref2.tx,
ty = _ref2.ty;
return /*#__PURE__*/_react["default"].createElement(TransitionControl, _extends({}, (0, _styleUtilities.getTransitionProps)(_this10.props, _this10.state), {
deltaX: tx,
deltaY: ty
}), (0, _utilities.addAccessibility)(validChildren, slidesToShow, currentSlide));
})), this.renderControls(), this.props.autoGenerateStyleTag && /*#__PURE__*/_react["default"].createElement("style", {

@@ -1253,0 +1257,0 @@ type: "text/css",

{
"name": "nuka-carousel",
"version": "4.7.7",
"version": "4.7.8",
"description": "Pure React Carousel",

@@ -45,3 +45,3 @@ "main": "index.js",

"react": "^16.9.0",
"react-dom": "^16.0.0",
"react-dom": "^16.9.0",
"tslint": "^5.12.0",

@@ -55,4 +55,4 @@ "typescript": "^3.6.2",

"peerDependencies": {
"react": "^0.14.9 || ^15.3.0 || ^16.0.0",
"react-dom": "^0.14.9 || ^15.3.0 || ^16.0.0"
"react": "^0.14.9 || ^15.3.0 || ^16.0.0 || ^17.0.1",
"react-dom": "^0.14.9 || ^15.3.0 || ^16.0.0 || ^17.0.1"
},

@@ -59,0 +59,0 @@ "resolutions": {

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