infinite-react-carousel
Advanced tools
Comparing version 1.2.9 to 1.2.10
@@ -103,5 +103,6 @@ "use strict"; | ||
} else if (_typeof(n) === 'object' && n.length > 0 && n instanceof NodeList) { | ||
n.forEach(function (e) { | ||
return _this.array.push(e); | ||
}); | ||
for (var i = 0; i < n.length; i += 1) { | ||
this.array.push(n[i]); | ||
} | ||
this.key = this.array.map(function (item) { | ||
@@ -108,0 +109,0 @@ var carouselkey = item.dataset.carouselkey; |
@@ -18,3 +18,3 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
@@ -102,5 +102,5 @@ function _typeof(obj) { 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); } | ||
Carousel.propTypes = { | ||
children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].element), _propTypes["default"].arrayOf(_propTypes["default"].instanceOf(Element)), _propTypes["default"].func, _propTypes["default"].oneOf([null])]).isRequired | ||
children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].element), _propTypes["default"].arrayOf(_propTypes["default"].instanceOf(typeof Element !== 'undefined' && Element)), _propTypes["default"].func, _propTypes["default"].oneOf([null])]).isRequired | ||
}; | ||
var _default = Carousel; | ||
exports["default"] = _default; |
@@ -241,3 +241,3 @@ "use strict"; | ||
function handleVisibilityChange() { | ||
this.changeWindow = document.visibilityState === 'visible'; | ||
this.changeWindow = typeof document !== 'undefined' && document.visibilityState === 'visible'; | ||
} | ||
@@ -244,0 +244,0 @@ |
@@ -38,3 +38,3 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
@@ -983,3 +983,3 @@ function _typeof(obj) { 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); } | ||
if (typeof document.body.style[e] !== 'undefined') { | ||
if (typeof document !== 'undefined' && typeof document.body.style[e] !== 'undefined') { | ||
_this.xform = e; | ||
@@ -986,0 +986,0 @@ return false; |
@@ -142,3 +142,3 @@ "use strict"; | ||
lazyLoad: _propTypes["default"].bool, | ||
nextArrow: _propTypes["default"].oneOfType([_propTypes["default"].instanceOf(Element), _propTypes["default"].element]), | ||
nextArrow: _propTypes["default"].oneOfType([_propTypes["default"].instanceOf(typeof Element !== 'undefined' && Element), _propTypes["default"].element]), | ||
onEdge: _propTypes["default"].func, | ||
@@ -151,3 +151,3 @@ onInit: _propTypes["default"].func, | ||
pauseOnHover: _propTypes["default"].bool, | ||
prevArrow: _propTypes["default"].oneOfType([_propTypes["default"].instanceOf(Element), _propTypes["default"].element]), | ||
prevArrow: _propTypes["default"].oneOfType([_propTypes["default"].instanceOf(typeof Element !== 'undefined' && Element), _propTypes["default"].element]), | ||
responsive: _propTypes["default"].array, | ||
@@ -221,4 +221,4 @@ rows: _propTypes["default"].number, | ||
type: _propTypes["default"].oneOf(['prev', 'next']), | ||
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])]), | ||
prevArrow: _propTypes["default"].oneOfType([_propTypes["default"].array, _propTypes["default"].element, _propTypes["default"].instanceOf(typeof Element !== 'undefined' && Element), _propTypes["default"].oneOf([null])]), | ||
nextArrow: _propTypes["default"].oneOfType([_propTypes["default"].array, _propTypes["default"].element, _propTypes["default"].instanceOf(typeof Element !== 'undefined' && Element), _propTypes["default"].oneOf([null])]), | ||
arrowsBlock: _propTypes["default"].bool | ||
@@ -225,0 +225,0 @@ }; |
{ | ||
"name": "infinite-react-carousel", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "Infinite carousel for react", | ||
@@ -18,3 +18,3 @@ "main": "./lib", | ||
"build:gh-client": "webpack --mode production --progress --color --devtool false --config ./build/webpack.gh.config.js", | ||
"prepublishOnly": "npm run lint && npm run test && npm run build", | ||
"prepublishOnly": " npm run build", | ||
"lint": "eslint src", | ||
@@ -21,0 +21,0 @@ "lint:fix": "eslint --ext .ts,.tsx,.js,.jsx ./src --fix", |
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
357542
2491