Socket
Socket
Sign inDemoInstall

@splidejs/splide-extension-url-hash

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

8

dist/js/splide-extension-url-hash.cjs.js
/*!
* @splidejs/splide-extension-url-hash
* Version : 0.2.1
* Version : 0.2.2
* License : MIT
* Copyright: 2021 Naotoshi Fujita
* Copyright: 2022 Naotoshi Fujita
*/

@@ -129,7 +129,7 @@ 'use strict';

* Splide.js
* Version : 3.6.1
* Version : 3.6.10
* License : MIT
* Copyright: 2021 Naotoshi Fujita
* Copyright: 2022 Naotoshi Fujita
*/
exports.URLHash = URLHash;
/*!
* @splidejs/splide-extension-url-hash
* Version : 0.2.1
* Version : 0.2.2
* License : MIT
* Copyright: 2021 Naotoshi Fujita
* Copyright: 2022 Naotoshi Fujita
*/

@@ -125,7 +125,7 @@ // node_modules/@splidejs/splide/dist/js/splide.esm.js

* Splide.js
* Version : 3.6.1
* Version : 3.6.10
* License : MIT
* Copyright: 2021 Naotoshi Fujita
* Copyright: 2022 Naotoshi Fujita
*/
export { URLHash };
/*!
* @splidejs/splide-extension-url-hash
* Version : 0.2.1
* Version : 0.2.2
* License : MIT
* Copyright: 2021 Naotoshi Fujita
* Copyright: 2022 Naotoshi Fujita
*/

@@ -162,5 +162,5 @@ (function (factory) {

* Splide.js
* Version : 3.6.1
* Version : 3.6.10
* License : MIT
* Copyright: 2021 Naotoshi Fujita
* Copyright: 2022 Naotoshi Fujita
*/

@@ -167,0 +167,0 @@

/*!
* @splidejs/splide-extension-url-hash
* Version : 0.2.1
* Version : 0.2.2
* License : MIT
* Copyright: 2021 Naotoshi Fujita
* Copyright: 2022 Naotoshi Fujita
*/(function(d){typeof define=="function"&&define.amd?define(d):d()})(function(){"use strict";function d(i){return Array.isArray(i)}function x(i){return d(i)?i:[i]}function T(i,o){x(i).forEach(o)}var b="active",m="destroy";function I(i){var o=i.event,c={},s=[];function w(t,u,r){o.on(t,u,c,r)}function p(t){o.off(t,c)}function a(t,u,r,f){l(t,u,function(n,e){s.push([n,e,r,f]),n.addEventListener(e,r,f)})}function h(t,u,r){l(t,u,function(f,n){s=s.filter(function(e){return e[0]===f&&e[1]===n&&(!r||e[2]===r)?(f.removeEventListener(n,e[2],e[3]),!1):!0})})}function l(t,u,r){T(t,function(f){f&&u.split(" ").forEach(r.bind(null,f))})}function E(){s=s.filter(function(t){return h(t[0],t[1])}),o.offBy(c)}return o.on(m,E,c),{on:w,off:p,emit:o.emit,bind:a,unbind:h,destroy:E}}function y(i,o){return i.getAttribute(o)}var A="data-splide-hash";function H(i,o,c){var s=I(i),w=s.on,p=s.bind,a=o.Controller,h=a.setIndex,l=a.go;function E(){var n=f(location.hash);h(n>-1?n:c.start||0)}function t(){w(b,u),p(window,"hashchange",r)}function u(n){var e=y(n.slide,A);e?location.hash=e:history?history.replaceState(null,null," "):location.hash=""}function r(){var n=f(location.hash);n>-1&&l(n)}function f(n){if(n=n.replace("#",""),n){for(var e=o.Elements.slides,v=0;v<e.length;v++)if(y(e[v],A)===n)return v}return-1}return{setup:E,mount:t}}typeof window!="undefined"&&(window.splide=window.splide||{},window.splide.Extensions=window.splide.Extensions||{},window.splide.Extensions.URLHash=H);/*!
* Splide.js
* Version : 3.6.1
* Version : 3.6.10
* License : MIT
* Copyright: 2021 Naotoshi Fujita
* Copyright: 2022 Naotoshi Fujita
*/});
{
"name": "@splidejs/splide-extension-url-hash",
"version": "0.2.1",
"version": "0.2.2",
"description": "The extension of Splide for URL hash navigation.",

@@ -8,3 +8,4 @@ "author": "Naotoshi Fujita",

"main": "dist/js/splide-extension-url-hash.cjs.js",
"module": "dist/js/splide-extension-url-hash.esm.js",
"module": "dist/js/splide-extension-url-hash.esm.js",
"browser": "dist/js/splide-extension-url-hash.min.js",
"types": "dist/types/index.d.ts",

@@ -33,3 +34,3 @@ "keywords": [

"@rollup/plugin-node-resolve": "^13.0.6",
"@splidejs/splide": "^3.6.1",
"@splidejs/splide": "^3.6.10",
"@types/jest": "^27.0.3",

@@ -36,0 +37,0 @@ "@typescript-eslint/eslint-plugin": "^5.4.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc