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.2.8 to 0.2.9

7

dist/index.js

@@ -113,6 +113,3 @@ var index = "";

updateSlideStyles: () => slides.forEach(
(slide) => Object.assign(slide.style, {
width: `${instance.slideWidth}px`,
...instance.slideStyles
})
(slide) => Object.assign(slide.style, instance.slideStyles)
),

@@ -166,2 +163,3 @@ scrollWrapperTo: (x) => {

slider.slideWidth = slideWidth;
slider.slideStyles.width = `${slideWidth}px`;
}

@@ -178,2 +176,3 @@ });

slider.slideWidth = (slider.element.clientWidth - marginPerView) / slider.slidesPerView;
slider.slideStyles.width = `${slider.slideWidth}px`;
}

@@ -180,0 +179,0 @@ });

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

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

@@ -11,2 +11,3 @@ import { Middleware } from '~/types';

slider.slideWidth = slideWidth;
slider.slideStyles.width = `${slideWidth}px`;
},

@@ -13,0 +14,0 @@ });

@@ -14,2 +14,3 @@ import { Middleware } from '~/types';

slider.slideWidth = (slider.element.clientWidth - marginPerView) / slider.slidesPerView;
slider.slideStyles.width = `${slider.slideWidth}px`;
},

@@ -16,0 +17,0 @@ });

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

updateSlideStyles: () => slides.forEach(
(slide) => Object.assign(slide.style, {
width: `${instance.slideWidth}px`,
...instance.slideStyles,
}),
(slide) => Object.assign(slide.style, instance.slideStyles),
),

@@ -96,2 +93,3 @@ scrollWrapperTo: (x) => {

runMiddlewares(middlewares, instance);
instance.updateSlideStyles();

@@ -98,0 +96,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