Socket
Socket
Sign inDemoInstall

embla-carousel-autoplay

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embla-carousel-autoplay - npm Package Compare versions

Comparing version 6.0.2 to 6.1.0

4

embla-carousel-autoplay.esm.js

@@ -23,3 +23,2 @@ var defaultOptions = {

var root = userNode && userNode(emblaRoot) || emblaRoot;
carousel.on('init', play);
carousel.on('pointerDown', stop);

@@ -38,6 +37,7 @@ carousel.on('pointerUp', reset);

}
play();
}
function destroy() {
carousel.off('init', play);
carousel.off('pointerDown', stop);

@@ -44,0 +44,0 @@ carousel.off('pointerUp', reset);

@@ -25,3 +25,2 @@ 'use strict';

var root = userNode && userNode(emblaRoot) || emblaRoot;
carousel.on('init', play);
carousel.on('pointerDown', stop);

@@ -40,6 +39,7 @@ carousel.on('pointerUp', reset);

}
play();
}
function destroy() {
carousel.off('init', play);
carousel.off('pointerDown', stop);

@@ -46,0 +46,0 @@ carousel.off('pointerUp', reset);

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

!function(n,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(n="undefined"!=typeof globalThis?globalThis:n||self).EmblaCarouselAutoplay=o()}(this,(function(){"use strict";var n={delay:4e3,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1};return function(o,e){var t,i=Object.assign({},n,o),r=i.stopOnInteraction,a=i.stopOnMouseEnter,s=i.stopOnLastSnap,u=i.delay,f=!1,p=0;function l(){c(),requestAnimationFrame((function(){p=window.setTimeout(m,u)}))}function c(){p&&(window.clearTimeout(p),p=0)}function d(){c(),a&&f||r||l()}function m(){var n=t.internalEngine().index;(n.get()!==n.max||!s)&&(t.canScrollNext()?t.scrollNext():t.scrollTo(0),l())}return{name:"Autoplay",options:i,init:function(n){var o=(t=n).internalEngine().eventStore,i=t.rootNode(),r=e&&e(i)||i;t.on("init",l),t.on("pointerDown",c),t.on("pointerUp",d),a&&(o.add(r,"mouseenter",(function(){f=!0,c()})),o.add(r,"mouseleave",(function(){f=!1,d()})))},destroy:function(){t.off("init",l),t.off("pointerDown",c),t.off("pointerUp",d),f=!1,c()},play:l,stop:c,reset:d}}}));
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n="undefined"!=typeof globalThis?globalThis:n||self).EmblaCarouselAutoplay=e()}(this,(function(){"use strict";var n={delay:4e3,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1};return function(e,o){var t,i=Object.assign({},n,e),r=i.stopOnInteraction,a=i.stopOnMouseEnter,s=i.stopOnLastSnap,u=i.delay,f=!1,p=0;function l(){c(),requestAnimationFrame((function(){p=window.setTimeout(m,u)}))}function c(){p&&(window.clearTimeout(p),p=0)}function d(){c(),a&&f||r||l()}function m(){var n=t.internalEngine().index;(n.get()!==n.max||!s)&&(t.canScrollNext()?t.scrollNext():t.scrollTo(0),l())}return{name:"Autoplay",options:i,init:function(n){var e=(t=n).internalEngine().eventStore,i=t.rootNode(),r=o&&o(i)||i;t.on("pointerDown",c),t.on("pointerUp",d),a&&(e.add(r,"mouseenter",(function(){f=!0,c()})),e.add(r,"mouseleave",(function(){f=!1,d()}))),l()},destroy:function(){t.off("pointerDown",c),t.off("pointerUp",d),f=!1,c()},play:l,stop:c,reset:d}}}));
{
"name": "embla-carousel-autoplay",
"version": "6.0.2",
"version": "6.1.0",
"author": "David Cetinkaya",

@@ -44,7 +44,2 @@ "description": "An autoplay plugin for Embla Carousel",

"devDependencies": {
"@babel/core": "^7.13.15",
"@babel/preset-env": "^7.13.15",
"@babel/preset-typescript": "^7.13.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@types/jest": "^26.0.22",

@@ -59,4 +54,2 @@ "@typescript-eslint/eslint-plugin": "^4.22.0",

"rollup": "^2.45.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^26.5.5",

@@ -66,4 +59,4 @@ "typescript": "^4.2.4"

"peerDependencies": {
"embla-carousel": "6.0.2"
"embla-carousel": "6.1.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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