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
232
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 0.0.7 to 0.0.8

1

lib/components/vectorBounds.d.ts

@@ -10,2 +10,3 @@ import { Animation } from './animation';

animation: Animation;
tolerance: number;
}

@@ -12,0 +13,0 @@ export interface VectorBounds {

61

lib/index.js

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

function arrayFromCollection(nodeList) {
var array = [];
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = nodeList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var node = _step.value;
array.push(node);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return != null) {
_iterator.return();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
return array;
return Array.prototype.slice.call(nodeList);
}

@@ -369,11 +344,11 @@

high = params.high;
var constrainLimit = [0, low, high];
var loopLimit = [0, high, low];
var loopLimits = {
high: low,
low: high
};
var constrainLimits = {
low: low,
high: high
};
function reachedWhich(n) {
var lowIndex = reachedLow(n) && 1;
var highIndex = reachedHigh(n) && 2;
return lowIndex || highIndex || 0;
}
function reachedLow(n) {

@@ -391,5 +366,11 @@ return n < low;

function reachedWhich(n) {
var isLow = reachedLow(n) && 'low';
var isHigh = reachedHigh(n) && 'high';
return isLow || isHigh || '';
}
function loop(n) {
var which = reachedWhich(n);
return which ? loopLimit[which] : n;
return which ? loopLimits[which] : n;
}

@@ -399,3 +380,3 @@

var which = reachedWhich(n);
return which ? constrainLimit[which] : n;
return which ? constrainLimits[which] : n;
}

@@ -761,3 +742,4 @@

location: location,
mover: mover
mover: mover,
tolerance: 50
}),

@@ -1707,3 +1689,4 @@ index: index,

mover = params.mover,
animation = params.animation;
animation = params.animation,
tolerance = params.tolerance;
var state = {

@@ -1728,3 +1711,3 @@ timeout: 0

state.timeout = 0;
}, 50);
}, tolerance);
}

@@ -1731,0 +1714,0 @@

{
"name": "embla-carousel",
"version": "0.0.7",
"version": "0.0.8",
"author": "David Cetinkaya",

@@ -31,3 +31,3 @@ "private": false,

"lib:watch-js": "webpack-dev-server --config ./webpack/webpack.config.development",
"lib:build-js": "webpack -p --config ./webpack/webpack.config.production",
"lib:build": "webpack -p --config ./webpack/webpack.config.production",
"docs:autoprefixer": "postcss -u autoprefixer -r docs/assets/style.css --nomap",

@@ -38,3 +38,3 @@ "docs:watch-css": "node-sass --watch --recursive docs/scss/style.scss -o docs/assets/",

"docs:build": "npm-run-all docs:build-js docs:build-css",
"build": "npm-run-all lib:build-js docs:build",
"build": "npm-run-all lib:build docs:build",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",

@@ -41,0 +41,0 @@ "lint": "tslint -p tsconfig.json",

# Embla Carousel &middot; ![GitHub](https://img.shields.io/github/license/davidcetinkaya/embla-carousel.svg?color=blue) ![npm](https://img.shields.io/npm/v/embla-carousel.svg)
Check out the demo [here](https://davidcetinkaya.github.io/embla-carousel).
Embla is a lightweight and simple carousel plugin for the web. Its purpose is to provide simple and extensible carousels that feels natural to interact with. It's 100% open source and free to use on both personal and commercial projects. Use it with the module bundler of your choice or by manually injecting the script.
- [Examples](#examples)
- [Demo](#demo)
- [Installation](#installation)

@@ -12,5 +14,5 @@ - [Usage](#usage)

## Examples
## Demo
Examples are on the way...
See the demo page [here](https://davidcetinkaya.github.io/embla-carousel).

@@ -30,3 +32,3 @@ ## Installation

...or inject the minified script [here](https://raw.githubusercontent.com/davidcetinkaya/embla-carousel/master/sandbox/index.js) into your website.
...or inject the minified script [here](https://raw.githubusercontent.com/davidcetinkaya/embla-carousel/master/docs/assets/index.js) into your website.

@@ -33,0 +35,0 @@ ```html

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