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

embla-carousel

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embla-carousel - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

1

lib/components/translate.d.ts

@@ -10,4 +10,5 @@ import { Axis } from './axis';

to: (vector: Vector1D) => void;
toggleActive: (active: boolean) => void;
};
export declare function Translate(params: Params): Translate;
export {};

24

lib/index.js

@@ -1436,3 +1436,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

};
return self;
return Object.freeze(self);
}

@@ -1900,4 +1900,3 @@

var targetSnap = findTargetSnap(target);
var targetIndex = findTargetIndex(target, targetSnap.index);
var index = snap && !distance ? params.index.get() : targetIndex;
var index = findTargetIndex(target, targetSnap.index);
var reachedBound = !loop && reachedAny(target);

@@ -2208,2 +2207,3 @@ if (!snap || reachedBound) return {

var containerStyle = container.style;
var disabled = false;
var location = 0;

@@ -2220,9 +2220,16 @@

function to(v) {
if (disabled) return;
var target = roundToTwoDecimals(v.get());
if (location === target) return;
getComputedStyle(container).transform;
containerStyle.transform = translateAxis(target);
location = target;
if (location !== target) {
getComputedStyle(container).transform;
containerStyle.transform = translateAxis(target);
location = target;
}
}
function toggleActive(active) {
disabled = !active;
}
function clear() {

@@ -2235,3 +2242,4 @@ containerStyle.transform = '';

clear: clear,
to: to
to: to,
toggleActive: toggleActive
};

@@ -2238,0 +2246,0 @@ return self;

{
"name": "embla-carousel",
"version": "3.0.0",
"version": "3.0.1",
"author": "David Cetinkaya",

@@ -5,0 +5,0 @@ "private": false,

@@ -0,1 +1,3 @@

### Version 3 is here! Please read the [migration guide here](https://github.com/davidcetinkaya/embla-carousel/releases/tag/v3.0.0). It may take some time to update the documentation so bare with me. Cheers!
<br />

@@ -2,0 +4,0 @@ <div align="center">

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