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.41 to 3.1.42

7

CHANGELOG.md
# React Responsive Carousel
## 3.1.41 - Wed Jun 20 2018
* Removing package-lock.json
## 3.1.40 - Sat Jun 16 2018

@@ -9,2 +13,4 @@ * add autoPlay to state and update upon props change

to work with up-to-date values in setup/destroy autoplay
* add built files
* fix: remove resetPosition() on swipe end

@@ -99,3 +105,2 @@

## 3.1.27 - Tue Sep 26 2017
* #151: Autoplay keeps trying to transition after the component has been unmounted

@@ -102,0 +107,0 @@

@@ -265,2 +265,7 @@ 'use strict';

_this.resetPosition = function () {
var currentPosition = _this.getPosition(_this.state.selectedItem) + '%';
_this.setPosition(currentPosition);
};
_this.decrement = function (positions) {

@@ -383,6 +388,10 @@ _this.moveTo(_this.state.selectedItem - (typeof positions === 'Number' ? positions : 1));

key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
value: function componentDidUpdate(prevProps, prevState) {
if (!prevProps.children && this.props.children && !this.state.initialized) {
this.setupCarousel();
}
if (prevState.swiping && !this.state.swiping) {
// We stopped swiping, ensure we are heading to the new/current slide and not stuck
this.resetPosition();
}
}

@@ -389,0 +398,0 @@ }, {

2

package.json
{
"name": "react-responsive-carousel",
"version": "3.1.41",
"version": "3.1.42",
"description": "React Responsive Carousel",

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

# React Responsive Carousel
#### Help wanted - please read: https://github.com/leandrowd/react-responsive-carousel/issues/160
# Help wanted
Things here are running very slowly as I have a lot of other stuff to take care at the moment so please don't be upset if I don't answer your question or if a PR sits unreviewed for a few days or weeks. Anyone interested in helping it move faster can help by submitting or reviewing PR's and answering each other's questions. (https://github.com/leandrowd/react-responsive-carousel/issues/160)
[![npm version](https://badge.fury.io/js/react-responsive-carousel.svg)](https://badge.fury.io/js/react-responsive-carousel)

@@ -52,2 +54,3 @@ [![Build Status](https://travis-ci.org/leandrowd/react-responsive-carousel.svg?branch=master)](https://travis-ci.org/leandrowd/react-responsive-carousel)

import ReactDOM from 'react-dom';
import "react-responsive-carousel/lib/styles/carousel.min.css";
import { Carousel } from 'react-responsive-carousel';

@@ -54,0 +57,0 @@

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