Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

supercharged-slider

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supercharged-slider - npm Package Compare versions

Comparing version 0.4.8 to 0.4.9

4

dist/index.js

@@ -349,5 +349,5 @@ var index = "";

const loadImages = (slider, onLoad) => {
const start = Math.min(slider.activeView, slider.activeView - 1);
const start = Math.min(slider.activeView - 1, 0);
let end = slider.activeView + slider.slidesPerView;
end = Math.min(end - 1, slider.slides.length);
end = Math.min(end + 1, slider.slides.length);
const slides = slider.slides.slice(start, end);

@@ -354,0 +354,0 @@ const images = slides.flatMap(

{
"name": "supercharged-slider",
"version": "0.4.8",
"version": "0.4.9",
"description": "A super modular tiny slider library.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -23,6 +23,6 @@ import { Middleware, Slider } from '~/types';

const loadImages = (slider: Slider, onLoad: OnLoad) => {
const start = Math.min(slider.activeView, slider.activeView - 1);
const start = Math.min(slider.activeView - 1, 0);
let end = slider.activeView + slider.slidesPerView;
end = Math.min(end - 1, slider.slides.length);
end = Math.min(end + 1, slider.slides.length);

@@ -29,0 +29,0 @@ const slides = slider.slides.slice(start, end);

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