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

embla-carousel-svelte

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embla-carousel-svelte - npm Package Compare versions

Comparing version 8.0.0-rc08 to 8.0.0-rc09

28

embla-carousel-svelte.umd.js

@@ -1223,3 +1223,3 @@ (function (global, factory) {

slides: null,
containScroll: null,
containScroll: 'trimSnaps',
direction: 'ltr',

@@ -1319,2 +1319,12 @@ slidesToScroll: 1,

}
function createEngine(options, animations) {
const engine = Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler, animations);
if (options.loop && !engine.slideLooper.canLoop()) {
const optionsWithoutLoop = Object.assign({}, options, {
loop: false
});
return createEngine(optionsWithoutLoop, animations);
}
return engine;
}
function activate(withOptions, withPlugins) {

@@ -1329,3 +1339,3 @@ if (destroyed) return;

storeElements();
engine = Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler, animations);
engine = createEngine(options, animations);
optionsMediaQueries([optionsBase, ...pluginList.map(({

@@ -1342,15 +1352,3 @@ options

});
if (options.loop) {
if (!engine.slideLooper.canLoop()) {
deActivate();
activate({
loop: false
}, withPlugins);
optionsBase = mergeOptions(optionsBase, {
loop: true
});
return;
}
engine.slideLooper.loop();
}
if (engine.options.loop) engine.slideLooper.loop();
if (container.offsetParent && slides.length) {

@@ -1357,0 +1355,0 @@ engine.dragHandler.init(self, options.watchDrag);

{
"name": "embla-carousel-svelte",
"version": "8.0.0-rc08",
"version": "8.0.0-rc09",
"author": "David Jerleke",

@@ -59,4 +59,4 @@ "description": "A lightweight carousel library with fluid motion and great swipe precision",

"dependencies": {
"embla-carousel": "8.0.0-rc08",
"embla-carousel-reactive-utils": "8.0.0-rc08"
"embla-carousel": "8.0.0-rc09",
"embla-carousel-reactive-utils": "8.0.0-rc09"
},

@@ -63,0 +63,0 @@ "peerDependencies": {

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