New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dotslider

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotslider - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

15

lib/slider.js

@@ -100,2 +100,6 @@ 'use strict';

if (this.props.children.length === 1) {
return;
}
var props = {

@@ -126,2 +130,5 @@ onClick: function onClick(number) {

value: function renderControls() {
if (this.props.children.length === 1) {
return;
}
var _props = this.props;

@@ -298,3 +305,3 @@ var nextIcon = _props.nextIcon;

value: function startAnimationLoop() {
if (!this.props.autoplay) {
if (!this.props.autoplay || this.props.children.length === 1) {
return;

@@ -339,2 +346,5 @@ }

}
if (this.props.children.length === 1) {
return;
}

@@ -382,2 +392,5 @@ this.stopAnimationLoop();

value: function handleTouchMove(e) {
if (this.props.children.length === 1) {
return;
}
if (e.touches.length > 1) {

@@ -384,0 +397,0 @@ e.preventDefault();this.setState({ dragged: false });return;

2

package.json
{
"name": "dotslider",
"version": "0.1.2",
"version": "0.1.3",
"description": "Zero effort slider / carousel component in pure react with zero dependencies",

@@ -5,0 +5,0 @@ "main": "./lib/entry.dist.js",

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