Socket
Socket
Sign inDemoInstall

react-responsive-carousel

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-responsive-carousel - npm Package Compare versions

Comparing version 3.1.23 to 3.1.24

22

CHANGELOG.md
# React Responsive Carousel
## 3.1.23 - Tue Jul 04 2017
* Types author header added.
## 3.1.22 - Mon Jul 03 2017
* `children` prop added.
* TypeScript types definitions file added.
## 3.1.21 - Sun Jun 25 2017
* #134: Using move to on componentWillReceiveProps so the carousel respects its boundaries when changed through external controls
## 3.1.20 - Sat Jun 24 2017
* #140: Revert to initial position when movement is less than tolerance
* Adding license

@@ -49,9 +60,16 @@ * Update README.md

* #98: Fixing bug where the Thumbs component would throw an error if a custom component was rendered inside it
* #112: Converting source to es6
* #112: Setup for es6
* Changing publish task
* Creating changelog
## 3.1.11 - Wed Apr 26 2017
* #98: Delay rendering of thumbs when children is not provided
* #98: Adding snapshot tests
* #98: Testing only component source, not storybook
## 3.1.10 - Tue Apr 25 2017
* #109: Move create-react-class to dependencies instead of devDependencies

@@ -64,2 +82,3 @@

## 3.1.8 - Mon Apr 24 2017
* Simplify demos
* Updating versions and setup for tests

@@ -74,8 +93,5 @@ * Updating storybook + filling in stories

* Fix issue when selected image is other than zero index
* Fix #102
## 3.1.6 - Wed Apr 19 2017
* #99: Removing node 4 for incompatibility problems with yarn
* #99: Fixing bug with infinite loop and showArrows=false

@@ -82,0 +98,0 @@

12

generate-changelog.js

@@ -20,9 +20,11 @@ var changelog = require('changelog');

var notAllowedMessages = [
'Merge pull request',
'Merge branch',
'Updating changelog'
/^[0-9.]+$/,
/Merge pull request/,
/Merge branch/,
/Updating changelog/,
/Prepare for publishing/
];
function any(list, message) {
return list.filter((item) => message.indexOf(item) !== -1).length > 0;
return list.filter(regexp => regexp.test(message)).length > 0;
};

@@ -56,3 +58,3 @@

version.changes.forEach(function(change) {
if (any(allowedMessages, change.message) && !any(notAllowedMessages, change.message)) {
if (!any(notAllowedMessages, change.message)) {
agreggate(' * ' + change.message);

@@ -59,0 +61,0 @@ }

@@ -91,5 +91,11 @@ 'use strict';

_this.stopOnHover = function () {
_this.setState({ isMouseEntered: true });
_this.clearAutoPlay();
};
_this.startOnLeave = function () {
_this.setState({ isMouseEntered: false });
_this.autoPlay();
};
_this.navigateWithKeyboard = function (e) {

@@ -248,3 +254,5 @@ var axis = _this.props.axis;

if (_this.props.autoPlay) {
// don't reset auto play when stop on hover is enabled, doing so will trigger a call to auto play more than once
// and will result in the interval function not being cleared correctly.
if (_this.props.autoPlay && _this.state.isMouseEntered === false) {
_this.resetAutoPlay();

@@ -300,3 +308,4 @@ }

selectedItem: props.selectedItem,
hasMount: false
hasMount: false,
isMouseEntered: false
};

@@ -380,3 +389,3 @@ return _this;

carouselWrapper.addEventListener('mouseenter', this.stopOnHover);
carouselWrapper.addEventListener('mouseleave', this.autoPlay);
carouselWrapper.addEventListener('mouseleave', this.startOnLeave);
}

@@ -392,3 +401,3 @@ }

carouselWrapper.removeEventListener('mouseenter', this.stopOnHover);
carouselWrapper.removeEventListener('mouseleave', this.autoPlay);
carouselWrapper.removeEventListener('mouseleave', this.startOnLeave);
}

@@ -395,0 +404,0 @@ }

{
"name": "react-responsive-carousel",
"version": "3.1.23",
"version": "3.1.24",
"description": "React Responsive Carousel",

@@ -5,0 +5,0 @@ "author": {

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