infinite-react-carousel
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -108,4 +108,4 @@ "use strict"; | ||
type: _propTypes["default"].oneOf(['prev', 'next']), | ||
prevArrow: _propTypes["default"].oneOf([_propTypes["default"].array, _propTypes["default"].element, _propTypes["default"].instanceOf(Element), _propTypes["default"].oneOf([null])]), | ||
nextArrow: _propTypes["default"].oneOf([_propTypes["default"].array, _propTypes["default"].element, _propTypes["default"].instanceOf(Element), _propTypes["default"].oneOf([null])]), | ||
prevArrow: _propTypes["default"].oneOfType([_propTypes["default"].array, _propTypes["default"].element, _propTypes["default"].instanceOf(Element), _propTypes["default"].oneOf([null])]), | ||
nextArrow: _propTypes["default"].oneOfType([_propTypes["default"].array, _propTypes["default"].element, _propTypes["default"].instanceOf(Element), _propTypes["default"].oneOf([null])]), | ||
arrowsBlock: _propTypes["default"].bool | ||
@@ -112,0 +112,0 @@ }; |
@@ -78,4 +78,4 @@ "use strict"; | ||
/*#__PURE__*/ | ||
function (_PureComponent) { | ||
_inherits(Slider, _PureComponent); | ||
function (_Component) { | ||
_inherits(Slider, _Component); | ||
@@ -822,4 +822,11 @@ function Slider(props) { | ||
window.addEventListener('resize', this.handleResize); | ||
this.init(); | ||
} | ||
}, { | ||
key: "shouldComponentUpdate", | ||
value: function shouldComponentUpdate(nextProps, nextState) { | ||
this.init(); | ||
return (0, _isEqual["default"])(nextProps, this.props) || (0, _isEqual["default"])(nextState, this.state); | ||
} | ||
}, { | ||
key: "componentDidUpdate", | ||
@@ -845,3 +852,2 @@ value: function componentDidUpdate(prevProps) { | ||
this.init(); | ||
var _this$state5 = this.state, | ||
@@ -935,3 +941,3 @@ height = _this$state5.height, | ||
return Slider; | ||
}(_react.PureComponent); | ||
}(_react.Component); | ||
@@ -938,0 +944,0 @@ Slider.propTypes = _types.propTypes; |
{ | ||
"name": "infinite-react-carousel", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Infinite carousel for react", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
305544
1880