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

bespoke-jumpy

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bespoke-jumpy - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

bower.json
{
"name": "bespoke-jumpy",
"version": "1.0.0",
"version": "1.0.1",
"main": "./dist/bespoke-jumpy.js",

@@ -5,0 +5,0 @@ "ignore": [

/*!
* bespoke-jumpy v1.0.0
* bespoke-jumpy v1.0.1
*

@@ -4,0 +4,0 @@ * Copyright 2014, Joel Purra

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

/*! bespoke-jumpy v1.0.0 © 2014 Joel Purra, MIT License */
/*! bespoke-jumpy v1.0.1 © 2014 Joel Purra, MIT License */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self);var t=n;t=t.bespoke||(t.bespoke={}),t=t.plugins||(t.plugins={}),t.jumpy=e()}}(function(){return function e(n,t,r){function i(o,u){if(!t[o]){if(!n[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(f)return f(o,!0);throw new Error("Cannot find module '"+o+"'")}var l=t[o]={exports:{}};n[o][0].call(l.exports,function(e){var t=n[o][1][e];return i(t?t:e)},l,l.exports,e,n,t,r)}return t[o].exports}for(var f="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,n){"use strict";var t="jumpy",r=function(e){return e("return this")()}(Function),i=r.bespoke&&r.bespoke.plugins&&r.bespoke.plugins.convenient||e("bespoke-convenient"),f=i.builder(t),o={END:35,HOME:36},u=function(e){for(var n=e;n>9;)n-=48;return n},s=function(e){var n=e>=48&&57>=e||e>=96&&105>=e;return n},l={firstIndex:function(){var e=0;return e},lastIndex:function(){var e=Math.max(0,this.slides.length-1);return e},first:function(e){var n=this.firstIndex(),t=f.fire(this,"first",null,n,e)&&this.slide(n,e);return t},last:function(e){var n=this.lastIndex(),t=f.fire(this,"last",null,n,e)&&this.slide(n,e);return t}},c=function(){var e=function(e){var n=["firstIndex","lastIndex","first","last"],t={},r=function(){n.forEach(function(n){t[n]=e[n],e[n]=l[n].bind(e)})},i=function(n){var t,r,i=!1;return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey?!1:(i=i||n.which===o.END&&f.fire(e,"end",n)&&!e.last(),i=i||n.which===o.HOME&&f.fire(e,"home",n)&&!e.first(),s(n.which)&&(t=u(n.which),r=(t-1+10)%10,i=i||f.fire(e,"jump",n,r)&&!e.slide(r)),i&&n.preventDefault(),!i)},c=function(){document.addEventListener("keydown",i,!1)},a=function(){r(),c()};a()};return e};n.exports=c},{}]},{},[1])(1)});
{
"name": "bespoke-jumpy",
"version": "1.0.0",
"version": "1.0.1",
"description": "Keyboard shortcuts to jump straight to a specific slide in Bespoke.js",

@@ -50,3 +50,4 @@ "homepage": "https://github.com/joelpurra/bespoke-jumpy",

"vinyl-map": "^1.0.1",
"vinyl-source-stream": "^0.1.1"
"vinyl-source-stream": "^0.1.1",
"bespoke-convenient": "^1.0.0"
},

@@ -53,0 +54,0 @@ "engines": {

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