bespoke-advanced
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "bespoke-advanced", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "./dist/bespoke-advanced.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
/*! | ||
* bespoke-advanced v1.0.0 | ||
* bespoke-advanced v1.0.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright 2014, Joel Purra |
@@ -1,2 +0,2 @@ | ||
/*! bespoke-advanced v1.0.0 © 2014 Joel Purra, MIT License */ | ||
/*! bespoke-advanced 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.advanced=e()}}(function(){return function e(n,t,i){function r(a,u){if(!t[a]){if(!n[a]){var f="function"==typeof require&&require;if(!u&&f)return f(a,!0);if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var d=t[a]={exports:{}};n[a][0].call(d.exports,function(e){var t=n[a][1][e];return r(t?t:e)},d,d.exports,e,n,t,i)}return t[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,n){"use strict";var t="advanced",i=function(e){return e("return this")()}(Function),r=i.bespoke&&i.bespoke.plugins&&i.bespoke.plugins.convenient||e("bespoke-convenient"),o=r.builder(t),a={A:65},u={interval:3e3,key:a.A},f={advance:function(){this.next()},isEnabled:function(){var e=o.getStorage(this),n=!!e.timer;return n},toggle:function(){this.advanced.isEnabled()?this.advanced.disable():this.advanced.enable()},enable:function(e){var n=o.getStorage(this),t=o.fire(this,"enable",null,void 0,e);return t!==!1&&(n.timer=setInterval(this.advanced.advance,n.options.interval)),t},disable:function(e){var n=o.getStorage(this),t=o.fire(this,"disable",null,void 0,e);return t!==!1&&(clearInterval(n.timer),n.timer=null),t}},d=function(e){var n=function(n){var t=o.activateDeck(n),i=["advance","isEnabled","toggle","enable","disable"],r={},a=function(){Object.keys(u).forEach(function(n){r[n]=e[n]||u[n]})},d=function(){var e=t.getStorage();e.options=r},c=function(){n.advanced={},i.forEach(function(e){n.advanced[e]=f[e].bind(n)})},s=function(e){var i=t.getStorage(),r=!1;return r=r||e.which===i.options.key&&t.fire("toggle",e)&&!n.advanced.toggle(),r&&e.preventDefault(),!r},l=function(){document.addEventListener("keydown",s,!1)},v=function(){a(),d(),c(),l()};v()};return n};n.exports=d},{}]},{},[1])(1)}); |
{ | ||
"name": "bespoke-advanced", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Auto advance slides on a timer in Bespoke.js", | ||
@@ -49,3 +49,4 @@ "homepage": "https://github.com/joelpurra/bespoke-advanced", | ||
"vinyl-map": "^1.0.1", | ||
"vinyl-source-stream": "^0.1.1" | ||
"vinyl-source-stream": "^0.1.1", | ||
"bespoke-convenient": "^1.0.0" | ||
}, | ||
@@ -52,0 +53,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
67516
0
26