From 3e8f9c87b2888d7a86d88fa81572da515dbca55f Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Sat, 3 Sep 2022 22:52:39 -0600 Subject: [PATCH] feat: Add onResize option to run after frame rebuild (#6) --- README.md | 4 + dist/siema.min.js | 2 +- docs/assets/siema.min.js | 2 +- docs/index.md | 4 + src/siema.js | 3 + yarn.lock | 595 +-------------------------------------- 6 files changed, 17 insertions(+), 593 deletions(-) diff --git a/README.md b/README.md index 75877d2..5528e18 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ new Siema({ rtl: false, onInit: () => {}, onChange: () => {}, + onResize: () => {}, }); ``` @@ -96,6 +97,9 @@ Runs immediately after initialization [(example)](http://codepen.io/pawelgrzybek **`onChange`** (function) Runs after slide change [(example)](http://codepen.io/pawelgrzybek/pen/RVbrVe). +**`onResize`** (function) +Runs on window resize after the frame is rebuilt [(example)](https://codepen.io/eyl327/pen/OJZPVRy). + ## API As mentioned above, Siema doesn't come with many options - just a few useful methods. Combine it with some very basic JavaScript and voila! diff --git a/dist/siema.min.js b/dist/siema.min.js index adfee07..4f12535 100644 --- a/dist/siema.min.js +++ b/dist/siema.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Siema",[],t):"object"==typeof exports?exports.Siema=t():e.Siema=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,i){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var i=0;i=e&&(this.perPage=this.config.perPage[e])}}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();var r=this.currentSlide+this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var r=this.currentSlide-this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,r=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+r+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+r+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,r=e>0&&this.currentSlide-i<0,n=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(r||n)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var r=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=r?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var i=document.createDocumentFragment(),r=0;r=e&&(this.perPage=this.config.perPage[e])}}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();var n=this.currentSlide+this.innerElements.length,r=this.perPage,s=n+r,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=n-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var n=this.currentSlide-this.innerElements.length,r=this.perPage,s=n+r,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=n+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,n=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+n+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+n+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,n=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(n||r)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame(),this.config.onResize.call(this)}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var n=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=n?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var i=document.createDocumentFragment(),n=0;n=e&&(this.perPage=this.config.perPage[e])}}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();var r=this.currentSlide+this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var r=this.currentSlide-this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,r=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+r+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+r+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,r=e>0&&this.currentSlide-i<0,n=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(r||n)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var r=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=r?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var i=document.createDocumentFragment(),r=0;r=e&&(this.perPage=this.config.perPage[e])}}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();var n=this.currentSlide+this.innerElements.length,r=this.perPage,s=n+r,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=n-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var n=this.currentSlide-this.innerElements.length,r=this.perPage,s=n+r,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=n+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,n=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+n+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+n+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,n=e>0&&this.currentSlide-i<0,r=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(n||r)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame(),this.config.onResize.call(this)}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var i=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var n=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=n?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var i=document.createDocumentFragment(),n=0;n {}, onChange: () => {}, + onResize: () => {}, }); ``` @@ -112,6 +113,9 @@ Runs immediately after initialization [(example)](http://codepen.io/pawelgrzybek **`onChange`** (function) Runs after slide change [(example)](http://codepen.io/pawelgrzybek/pen/RVbrVe). +**`onResize`** (function) +Runs on window resize after the frame is rebuilt [(example)](https://codepen.io/eyl327/pen/OJZPVRy). + ## API As mentioned above, Siemano doesn't come with many options - just a few useful methods. Combine it with some very basic JavaScript and voila! diff --git a/src/siema.js b/src/siema.js index b1c79ab..9d798fb 100644 --- a/src/siema.js +++ b/src/siema.js @@ -58,6 +58,7 @@ export default class Siema { rtl: false, onInit: () => {}, onChange: () => {}, + onResize: () => {}, }; const userSttings = options; @@ -434,6 +435,8 @@ export default class Siema { this.selectorWidth = this.selector.offsetWidth; this.buildSliderFrame(); + + this.config.onResize.call(this); } diff --git a/yarn.lock b/yarn.lock index 60e3736..716f5a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,6 @@ # yarn lockfile v1 -"abbrev@1": - "integrity" "sha512-c92Vmq5hfBgXyoUaHqF8P5+7THGjvxAlB64tm3PiFSAcDww34ndmrlSOd3AUaBZoutDwX0dHz9nUUFoD1jEw0Q==" - "version" "1.1.0" - "acorn-dynamic-import@^2.0.0": "integrity" "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=" "resolved" "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz" @@ -40,14 +36,6 @@ "resolved" "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz" "version" "2.1.1" -"ajv@^4.9.1": - "integrity" "sha512-I/bSHSNEcFFqXLf91nchoNB9D1Kie3QKcWdchYUaoIg1+1bdWDkdfdlvdIOJbi9U8xR0y+MWc5D+won9v95WlQ==" - "resolved" "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz" - "version" "4.11.8" - dependencies: - "co" "^4.6.0" - "json-stable-stringify" "^1.0.1" - "ajv@^5.0.0", "ajv@^5.1.5", "ajv@^5.2.3", "ajv@^5.3.0": "integrity" "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=" "resolved" "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz" @@ -102,18 +90,6 @@ "micromatch" "^2.1.5" "normalize-path" "^2.0.0" -"aproba@^1.0.3": - "integrity" "sha512-wddRlyVZ7n0ZClzsf0Aqf5vGke7/X8QT0GElKYr8qAuE80tlqbvKf4hlrDE0/zqI8Z6j4HjIIaB9gZ484kjjsw==" - "version" "1.1.1" - -"are-we-there-yet@~1.1.2": - "integrity" "sha512-QbMPI8teYlZBIBqDgmIWfDKO149dGtQV2ium8WniCaARFFRd1e+IES1LA4sSGcVTFdVL628+163WUbxev7R/aQ==" - "resolved" "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz" - "version" "1.1.4" - dependencies: - "delegates" "^1.0.0" - "readable-stream" "^2.0.6" - "argparse@^1.0.7": "integrity" "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=" "resolved" "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz" @@ -164,26 +140,6 @@ "inherits" "^2.0.1" "minimalistic-assert" "^1.0.0" -"asn1@~0.2.3": - "integrity" "sha512-6i37w/+EhlWlGUJff3T/Q8u1RGmP5wgbiwYnOnbOqvtrPxT63/sYFyP9RcpxtxGymtfA075IvmOnL7ycNOWl3w==" - "resolved" "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz" - "version" "0.2.3" - -"assert-plus@^0.2.0": - "integrity" "sha512-u1L0ZLywRziOVjUhRxI0Qg9G+4RnFB9H/Rq40YWn0dieDgO7vAYeJz6jKAO6t/aruzlDFLAPkQTT87e+f8Imaw==" - "resolved" "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz" - "version" "0.2.0" - -"assert-plus@^1.0.0": - "integrity" "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==" - "resolved" "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" - "version" "1.0.0" - -"assert-plus@1.0.0": - "integrity" "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==" - "resolved" "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" - "version" "1.0.0" - "assert@^1.1.1": "integrity" "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=" "resolved" "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz" @@ -203,21 +159,6 @@ dependencies: "lodash" "^4.14.0" -"asynckit@^0.4.0": - "integrity" "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - "resolved" "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" - "version" "0.4.0" - -"aws-sign2@~0.6.0": - "integrity" "sha512-JnJpAS0p9RmixkOvW2XwDxxzs1bd4/VAGIl6Q0EC5YOo+p+hqIhtDhn/nmFnB/xUNXbLkpE2mOjgVIBRKD4xYw==" - "resolved" "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz" - "version" "0.6.0" - -"aws4@^1.2.1": - "integrity" "sha512-tkleq4Df8UWu/7xf/tfbo7t2vDa07bcONGnKhl0QXKQsh3fJ0yJ1M5wzpy8BtBSENQw/9VTsthMhLG+yXHfStQ==" - "resolved" "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz" - "version" "1.6.0" - "babel-code-frame@^6.22.0", "babel-code-frame@^6.26.0": "integrity" "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=" "resolved" "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz" @@ -680,10 +621,6 @@ "resolved" "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz" "version" "6.18.0" -"balanced-match@^0.4.1": - "integrity" "sha512-STw03mQKnGUYtoNjmowo4F2cRmIIxYEGiMsjjwla/u5P1lxadj/05WkNaFjNiKTgJkj8KiXbgAiRTmcQRwQNtg==" - "version" "0.4.2" - "balanced-match@^1.0.0": "integrity" "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" "resolved" "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" @@ -694,13 +631,6 @@ "resolved" "https://registry.npmjs.org/base64-js/-/base64-js-1.2.1.tgz" "version" "1.2.1" -"bcrypt-pbkdf@^1.0.0": - "integrity" "sha512-vY4sOrSlpwNZXsinfJ0HpbSkFft4nhSVLeUrQ4j2ydGmBOiVY83aMJStJATBy0C3+XdaYa990kIA1qkC2mUq6g==" - "resolved" "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "tweetnacl" "^0.14.3" - "big.js@^3.1.3": "integrity" "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==" "resolved" "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz" @@ -711,25 +641,11 @@ "resolved" "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz" "version" "1.11.0" -"block-stream@*": - "integrity" "sha512-OorbnJVPII4DuUKbjARAe8u8EfqOmkEEaSFIyoQ7OjTHn6kafxWl0wLgoZ2rXaYd7MyLcDaU4TmhfxtwgcccMQ==" - "resolved" "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz" - "version" "0.0.9" - dependencies: - "inherits" "~2.0.0" - "bn.js@^4.0.0", "bn.js@^4.1.0", "bn.js@^4.1.1", "bn.js@^4.4.0": "integrity" "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" "resolved" "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz" "version" "4.11.8" -"boom@2.x.x": - "integrity" "sha512-KbiZEa9/vofNcVJXGwdWWn25reQ3V3dHBWbS07FTF3/TOehLnm9GEhJV4T6ZvGPkShRpmUqYwnaCrkj0mRnP6Q==" - "resolved" "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz" - "version" "2.10.1" - dependencies: - "hoek" "2.x.x" - "brace-expansion@^1.1.7": "integrity" "sha1-wHshHHyVLsH479Uad+8NHTmQopI=" "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz" @@ -810,10 +726,6 @@ dependencies: "pako" "~1.0.5" -"buffer-shims@~1.0.0": - "integrity" "sha512-Zy8ZXMyxIT6RMTeY7OP/bDndfj6bwCan7SS98CEndS6deHwWPpseeHlwarNcBim+etXnF9HBc1non5JgDaJU1g==" - "version" "1.0.0" - "buffer-xor@^1.0.3": "integrity" "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" "resolved" "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz" @@ -860,11 +772,6 @@ "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz" "version" "4.1.0" -"caseless@~0.12.0": - "integrity" "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" - "resolved" "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz" - "version" "0.12.0" - "center-align@^0.1.1": "integrity" "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=" "resolved" "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz" @@ -988,13 +895,6 @@ "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" "version" "1.1.3" -"combined-stream@^1.0.5", "combined-stream@~1.0.5": - "integrity" "sha512-JgSRe4l4UzPwpJuxfcPWEK1SCrL4dxNjp1uqrQLMop3QZUVo+hDU8w9BJKA4JPbulTWI+UzrI2UA3tK12yQ6bg==" - "resolved" "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz" - "version" "1.0.5" - dependencies: - "delayed-stream" "~1.0.0" - "commondir@^1.0.1": "integrity" "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=" "resolved" "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz" @@ -1021,11 +921,6 @@ dependencies: "date-now" "^0.1.4" -"console-control-strings@^1.0.0", "console-control-strings@~1.1.0": - "integrity" "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" - "resolved" "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz" - "version" "1.1.0" - "constants-browserify@^1.0.0": "integrity" "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=" "resolved" "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz" @@ -1085,13 +980,6 @@ "shebang-command" "^1.2.0" "which" "^1.2.9" -"cryptiles@2.x.x": - "integrity" "sha512-FFN5KwpvvQTTS5hWPxrU8/QE4kQUc6uwZcrnlMBN82t1MgAtq8mnoDwINBly9Tdr02seeIIhtdF+UH1feBYGog==" - "resolved" "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz" - "version" "2.0.5" - dependencies: - "boom" "2.x.x" - "crypto-browserify@^3.11.0": "integrity" "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==" "resolved" "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz" @@ -1116,24 +1004,11 @@ dependencies: "es5-ext" "^0.10.9" -"dashdash@^1.12.0": - "integrity" "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==" - "resolved" "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz" - "version" "1.14.1" - dependencies: - "assert-plus" "^1.0.0" - "date-now@^0.1.4": "integrity" "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=" "resolved" "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz" "version" "0.1.4" -"debug@^2.2.0": - "integrity" "sha512-E22fsyWPt/lr4/UgQLt/pXqerGMDsanhbnmqIS3VAXuDi1v3IpiwXe2oncEIondHSBuPDWRoK/pMjlvi8FuOXQ==" - "version" "2.6.8" - dependencies: - "ms" "2.0.0" - "debug@^2.6.8": "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" @@ -1153,11 +1028,6 @@ "resolved" "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" "version" "1.2.0" -"deep-extend@~0.4.0": - "integrity" "sha512-cQ0iXSEKi3JRNhjUsLWvQ+MVPxLVqpwCd0cFsWbJxlCim2TlCo1JvN5WaPdPvSpUdEnkJ/X+mPGcq5RJ68EK8g==" - "resolved" "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz" - "version" "0.4.2" - "deep-is@~0.1.3": "integrity" "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=" "resolved" "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz" @@ -1176,16 +1046,6 @@ "pinkie-promise" "^2.0.0" "rimraf" "^2.2.8" -"delayed-stream@~1.0.0": - "integrity" "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - "resolved" "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" - "version" "1.0.0" - -"delegates@^1.0.0": - "integrity" "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" - "resolved" "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz" - "version" "1.0.0" - "des.js@^1.0.0": "integrity" "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=" "resolved" "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz" @@ -1201,10 +1061,6 @@ dependencies: "repeating" "^2.0.0" -"detect-libc@^1.0.2": - "integrity" "sha512-YexetqP2dQZlFZoGoE/Ab7ZWxIhExaRwEhluPEqegGJzKIVvVtVinvILxAh/WrzDoNIZ19XU3E+J0tEXPE5MAw==" - "version" "1.0.2" - "diffie-hellman@^5.0.0": "integrity" "sha1-tYNXOScM/ias9jIJn97SoH8gnl4=" "resolved" "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.2.tgz" @@ -1226,13 +1082,6 @@ "resolved" "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz" "version" "1.2.0" -"ecc-jsbn@~0.1.1": - "integrity" "sha512-8Pvg9QY16SYajEL9W1Lk+9yM7XCK/MOq2wibslLZYAAEEkbAIO6mLkW+GFYbvvw8qTuDFzFMg40rS9IxkNCWPg==" - "resolved" "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz" - "version" "0.1.1" - dependencies: - "jsbn" "~0.1.0" - "elliptic@^6.0.0": "integrity" "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=" "resolved" "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz" @@ -1501,11 +1350,6 @@ dependencies: "fill-range" "^2.1.0" -"extend@~3.0.0": - "integrity" "sha512-u1aUSYGdAQxyguoP919qsgj24krDCtaO/DJFNPwFmojMmKp14gtCTVsc8lQSqRDFrwAch+mxMWC8/6ZJPz5Hpw==" - "resolved" "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz" - "version" "3.0.1" - "external-editor@^2.0.4": "integrity" "sha512-E44iT5QVOUJBKij4IIV3uvxuNlbKS38Tw1HiupxEIHPv9qtC2PrDYohbXV5U+1jnfIXttny8gUhj+oZvflFlzA==" "resolved" "https://registry.npmjs.org/external-editor/-/external-editor-2.1.0.tgz" @@ -1522,10 +1366,6 @@ dependencies: "is-extglob" "^1.0.0" -"extsprintf@1.0.2": - "integrity" "sha512-g21Br4ELmVaKCVSUSSTXecKG+MiLcHFoby5RPPUmfZdhQTontXUOPf0QK/TvreRjgItRiyO928zxR4TCrnuwmA==" - "version" "1.0.2" - "fast-deep-equal@^1.0.0": "integrity" "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=" "resolved" "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz" @@ -1627,71 +1467,16 @@ dependencies: "for-in" "^1.0.1" -"forever-agent@~0.6.1": - "integrity" "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==" - "resolved" "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz" - "version" "0.6.1" - -"form-data@~2.1.1": - "integrity" "sha512-8HWGSLAPr+AG0hBpsqi5Ob8HrLStN/LWeqhpFl14d7FJgHK48TmgLoALPz69XSUR65YJzDfLUX/BM8+MLJLghQ==" - "resolved" "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz" - "version" "2.1.4" - dependencies: - "asynckit" "^0.4.0" - "combined-stream" "^1.0.5" - "mime-types" "^2.1.12" - "fs.realpath@^1.0.0": "integrity" "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" "version" "1.0.0" -"fsevents@^1.0.0": - "integrity" "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==" - "resolved" "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz" - "version" "1.1.3" - dependencies: - "nan" "^2.3.0" - "node-pre-gyp" "^0.6.39" - -"fstream-ignore@^1.0.5": - "integrity" "sha512-VVRuOs41VUqptEGiR0N5ZoWEcfGvbGRqLINyZAhHRnF3DH5wrqjNkYr3VbRoZnI41BZgO7zIVdiobc13TVI1ow==" - "resolved" "https://registry.npmjs.org/fstream-ignore/-/fstream-ignore-1.0.5.tgz" - "version" "1.0.5" - dependencies: - "fstream" "^1.0.0" - "inherits" "2" - "minimatch" "^3.0.0" - -"fstream@^1.0.0", "fstream@^1.0.10", "fstream@^1.0.2": - "integrity" "sha512-2Xg8XA70uvyriqd1J6T/6V74WeQWHCn65hTSAWcZgKCOCo7nN6hoqgFrYPLJ9Yzbryrp/VIruHXsDyZIqZ1SvQ==" - "resolved" "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz" - "version" "1.0.11" - dependencies: - "graceful-fs" "^4.1.2" - "inherits" "~2.0.0" - "mkdirp" ">=0.5 0" - "rimraf" "2" - "functional-red-black-tree@^1.0.1": "integrity" "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" "resolved" "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" "version" "1.0.1" -"gauge@~2.7.3": - "integrity" "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==" - "resolved" "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz" - "version" "2.7.4" - dependencies: - "aproba" "^1.0.3" - "console-control-strings" "^1.0.0" - "has-unicode" "^2.0.0" - "object-assign" "^4.1.0" - "signal-exit" "^3.0.0" - "string-width" "^1.0.1" - "strip-ansi" "^3.0.1" - "wide-align" "^1.1.0" - "get-caller-file@^1.0.1": "integrity" "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=" "resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz" @@ -1702,13 +1487,6 @@ "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz" "version" "3.0.0" -"getpass@^0.1.1": - "integrity" "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==" - "resolved" "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz" - "version" "0.1.7" - dependencies: - "assert-plus" "^1.0.0" - "glob-base@^0.3.0": "integrity" "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=" "resolved" "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz" @@ -1763,19 +1541,6 @@ "resolved" "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz" "version" "4.1.11" -"har-schema@^1.0.5": - "integrity" "sha512-f8xf2GOR6Rgwc9FPTLNzgwB+JQ2/zMauYXSWmX5YV5acex6VomT0ocSuwR7BfXo5MpHi+jL+saaux2fwsGJDKQ==" - "resolved" "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz" - "version" "1.0.5" - -"har-validator@~4.2.1": - "integrity" "sha512-5Gbp6RAftMYYV3UEI4c4Vv3+a4dQ7taVyvHt+/L6kRt+f4HX1GweAk5UDWN0SvdVnRBzGQ6OG89pGaD9uSFnVw==" - "resolved" "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz" - "version" "4.2.1" - dependencies: - "ajv" "^4.9.1" - "har-schema" "^1.0.5" - "has-ansi@^2.0.0": "integrity" "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=" "resolved" "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz" @@ -1788,11 +1553,6 @@ "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz" "version" "2.0.0" -"has-unicode@^2.0.0": - "integrity" "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" - "resolved" "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz" - "version" "2.0.1" - "hash-base@^2.0.0": "integrity" "sha1-ZuodhW206KVHDK32/OI65SRO8uE=" "resolved" "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz" @@ -1816,16 +1576,6 @@ "inherits" "^2.0.3" "minimalistic-assert" "^1.0.0" -"hawk@~3.1.3", "hawk@3.1.3": - "integrity" "sha512-X8xbmTc1cbPXcQV4WkLcRMALuyoxhfpFATmyuCxJPOAvrDS4DNnsTAOmKUxMTOWU6TzrTOkxPKwIx5ZOpJVSrg==" - "resolved" "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz" - "version" "3.1.3" - dependencies: - "boom" "2.x.x" - "cryptiles" "2.x.x" - "hoek" "2.x.x" - "sntp" "1.x.x" - "hmac-drbg@^1.0.0": "integrity" "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=" "resolved" "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz" @@ -1835,11 +1585,6 @@ "minimalistic-assert" "^1.0.0" "minimalistic-crypto-utils" "^1.0.1" -"hoek@2.x.x": - "integrity" "sha512-V6Yw1rIcYV/4JsnggjBU0l4Kr+EXhpwqXRusENU1Xx6ro00IHPHYNynCuBTOZAPlr3AAmLvchH9I7N/VUdvOwQ==" - "resolved" "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz" - "version" "2.16.3" - "home-or-tmp@^2.0.0": "integrity" "sha1-42w/LSyufXRqhX440Y1fMqeILbg=" "resolved" "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz" @@ -1853,15 +1598,6 @@ "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz" "version" "2.5.0" -"http-signature@~1.1.0": - "integrity" "sha512-iUn0NcRULlDGtqNLN1Jxmzayk8ogm7NToldASyZBpM2qggbphjXzNOiw3piN8tgz+e/DRs6X5gAzFwTI6BCRcg==" - "resolved" "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz" - "version" "1.1.1" - dependencies: - "assert-plus" "^0.2.0" - "jsprim" "^1.2.2" - "sshpk" "^1.7.0" - "https-browserify@^1.0.0": "integrity" "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" "resolved" "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz" @@ -1905,21 +1641,11 @@ "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz" "version" "2.0.3" -"inherits@~2.0.0": - "integrity" "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz" - "version" "2.0.3" - "inherits@2.0.1": "integrity" "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz" "version" "2.0.1" -"ini@~1.3.0": - "integrity" "sha512-VUA7WAWNCWfm6/8f9kAb8Y6iGBWnmCfgFS5dTrv2C38LLm1KUmpY388mCVCJCsMKQomvOQ1oW8/edXdChd9ZXQ==" - "resolved" "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz" - "version" "1.3.4" - "inquirer@^3.0.6": "integrity" "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==" "resolved" "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz" @@ -2011,7 +1737,7 @@ "number-is-nan" "^1.0.0" "is-fullwidth-code-point@^1.0.0": - "integrity" "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==" + "integrity" "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=" "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz" "version" "1.0.0" dependencies: @@ -2087,11 +1813,6 @@ "resolved" "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" "version" "1.1.0" -"is-typedarray@~1.0.0": - "integrity" "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - "resolved" "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" - "version" "1.0.0" - "isarray@^1.0.0", "isarray@~1.0.0", "isarray@1.0.0": "integrity" "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" "resolved" "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" @@ -2109,17 +1830,6 @@ dependencies: "isarray" "1.0.0" -"isstream@~0.1.2": - "integrity" "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" - "resolved" "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" - "version" "0.1.2" - -"jodid25519@^1.0.0": - "integrity" "sha512-b2Zna/wGIyTzi0Gemg27JYUaRyTyBETw5GnqyVQMr71uojOYMrgkD2+Px3bG2ZFi7/zTUXJSDoGoBOhMixq7tg==" - "version" "1.0.2" - dependencies: - "jsbn" "~0.1.0" - "js-tokens@^3.0.0", "js-tokens@^3.0.2": "integrity" "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" "resolved" "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz" @@ -2133,11 +1843,6 @@ "argparse" "^1.0.7" "esprima" "^4.0.0" -"jsbn@~0.1.0": - "integrity" "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" - "resolved" "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz" - "version" "0.1.1" - "jsesc@^1.3.0": "integrity" "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=" "resolved" "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz" @@ -2158,47 +1863,16 @@ "resolved" "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz" "version" "0.3.1" -"json-schema@0.2.3": - "integrity" "sha512-a3xHnILGMtk+hDOqNwHzF6e2fNbiMrXZvxKQiEv2MlgQP+pjIOzqAmKYD2mDpXYE/44M7g+n9p2bKkYWDUcXCQ==" - "resolved" "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz" - "version" "0.2.3" - "json-stable-stringify-without-jsonify@^1.0.1": "integrity" "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=" "resolved" "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" "version" "1.0.1" -"json-stable-stringify@^1.0.1": - "integrity" "sha512-i/J297TW6xyj7sDFa7AmBPkQvLIxWr2kKPWI26tXydnZrzVAocNqn5DMNT1Mzk0vit1V5UkRM7C1KdVNp7Lmcg==" - "resolved" "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "jsonify" "~0.0.0" - -"json-stringify-safe@~5.0.1": - "integrity" "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - "resolved" "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" - "version" "5.0.1" - "json5@^0.5.0", "json5@^0.5.1": "integrity" "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=" "resolved" "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz" "version" "0.5.1" -"jsonify@~0.0.0": - "integrity" "sha512-trvBk1ki43VZptdBI5rIlG4YOzyeH/WefQt5rj1grasPn4iiZWKet8nkgc4GlsAylaztn0qZfUYOiTsASJFdNA==" - "resolved" "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz" - "version" "0.0.0" - -"jsprim@^1.2.2": - "integrity" "sha512-OyKQuabgqUi2RUPauBrfZNoCb0KNoulf1DqQ07rUW2vzauzXAq/uUe7oDstV/2RavaxGn7NfcI/F2hrBk38Fbg==" - "version" "1.4.0" - dependencies: - "assert-plus" "1.0.0" - "extsprintf" "1.0.2" - "json-schema" "0.2.3" - "verror" "1.3.6" - "kind-of@^3.0.2": "integrity" "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=" "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz" @@ -2355,16 +2029,6 @@ "bn.js" "^4.0.0" "brorand" "^1.0.1" -"mime-db@~1.27.0": - "integrity" "sha512-DNhC90PjVkQJpLVP+ct0lmKPQWAHFy+67X8IBOx+mda/I9vsrdJO/zoyEJdQdLsofi/l8GAG+IsfB0XCPLyLHg==" - "version" "1.27.0" - -"mime-types@^2.1.12", "mime-types@~2.1.7": - "integrity" "sha512-PjleM8evsL+OvsuE6EXom+8QAcSYALjmw+vYFqH8I+/+wNlewVgbM7/O1wcdCVL/ta8SC6l6BEK7A0/mZywpfg==" - "version" "2.1.15" - dependencies: - "mime-db" "~1.27.0" - "mimic-fn@^1.0.0": "integrity" "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==" "resolved" "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz" @@ -2380,18 +2044,13 @@ "resolved" "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz" "version" "1.0.1" -"minimatch@^3.0.0", "minimatch@^3.0.2", "minimatch@^3.0.4": +"minimatch@^3.0.2", "minimatch@^3.0.4": "integrity" "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==" "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" "version" "3.0.4" dependencies: "brace-expansion" "^1.1.7" -"minimist@^1.2.0": - "integrity" "sha512-7Wl+Jz+IGWuSdgsQEJ4JunV0si/iMhg42MnQQG6h1R6TNeVenp4U9x5CC5v/gYqz/fENLQITAWXidNtVL0NNbw==" - "resolved" "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz" - "version" "1.2.0" - "minimist@0.0.8": "integrity" "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" "resolved" "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz" @@ -2404,13 +2063,6 @@ dependencies: "minimist" "0.0.8" -"mkdirp@>=0.5 0": - "integrity" "sha512-SknJC52obPfGQPnjIkXbmA6+5H15E+fR+E4iR2oQ3zzCLbd7/ONua69R/Gw7AgkTLsRG+r5fzksYwWe1AgTyWA==" - "resolved" "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz" - "version" "0.5.1" - dependencies: - "minimist" "0.0.8" - "ms@2.0.0": "integrity" "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" "resolved" "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" @@ -2421,11 +2073,6 @@ "resolved" "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz" "version" "0.0.7" -"nan@^2.3.0": - "integrity" "sha1-7XFfP+neArV6XmJS2QqWZ14fCFo=" - "resolved" "https://registry.npmjs.org/nan/-/nan-2.8.0.tgz" - "version" "2.8.0" - "natural-compare@^1.4.0": "integrity" "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=" "resolved" "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" @@ -2460,30 +2107,6 @@ "util" "^0.10.3" "vm-browserify" "0.0.4" -"node-pre-gyp@^0.6.39": - "integrity" "sha512-OsJV74qxnvz/AMGgcfZoDaeDXKD3oY3QVIbBmwszTFkRisTSXbMQyn4UWzUMOtA5SVhrBZOTp0wcoSBgfMfMmQ==" - "version" "0.6.39" - dependencies: - "detect-libc" "^1.0.2" - "hawk" "3.1.3" - "mkdirp" "^0.5.1" - "nopt" "^4.0.1" - "npmlog" "^4.0.2" - "rc" "^1.1.7" - "request" "2.81.0" - "rimraf" "^2.6.1" - "semver" "^5.3.0" - "tar" "^2.2.1" - "tar-pack" "^3.4.0" - -"nopt@^4.0.1": - "integrity" "sha512-+5XZFpQZEY0cg5JaxLwGxDlKNKYxuXwGt8/Oi3UXm5/4ymrJve9d2CURituxv3rSrVCGZj4m1U1JlHTdcKt2Ng==" - "resolved" "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz" - "version" "4.0.1" - dependencies: - "abbrev" "1" - "osenv" "^0.1.4" - "normalize-package-data@^2.3.2": "integrity" "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==" "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz" @@ -2508,35 +2131,16 @@ dependencies: "path-key" "^2.0.0" -"npmlog@^4.0.2": - "integrity" "sha512-ocolIkZYZt8UveuiDS0yAkkIjid1o7lPG8cYm05yNYzBn8ykQtaiPMEGp8fY9tKdDgm8okpdKzkvu1y9hUYugA==" - "version" "4.1.0" - dependencies: - "are-we-there-yet" "~1.1.2" - "console-control-strings" "~1.1.0" - "gauge" "~2.7.3" - "set-blocking" "~2.0.0" - "number-is-nan@^1.0.0": "integrity" "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" "resolved" "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz" "version" "1.0.1" -"oauth-sign@~0.8.1": - "integrity" "sha512-VlF07iu3VV3+BTXj43Nmp6Irt/G7j/NgEctUS6IweH1RGhURjjCc2NWtzXFPXXWWfc7hgbXQdtiQu2LGp6MxUg==" - "resolved" "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz" - "version" "0.8.2" - "object-assign@^4.0.1": "integrity" "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" "resolved" "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" "version" "4.1.1" -"object-assign@^4.1.0": - "integrity" "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" - "resolved" "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" - "version" "4.1.1" - "object-hash@^1.1.4": "integrity" "sha512-smRWXzkvxw72VquyZ0wggySl7PFUtoDhvhpdwgESXxUrH7vVhhp9asfup1+rVLrhsl7L45Ee1Q/l5R2Ul4MwUg==" "resolved" "https://registry.npmjs.org/object-hash/-/object-hash-1.2.0.tgz" @@ -2557,13 +2161,6 @@ dependencies: "wrappy" "1" -"once@^1.3.3": - "integrity" "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==" - "resolved" "https://registry.npmjs.org/once/-/once-1.4.0.tgz" - "version" "1.4.0" - dependencies: - "wrappy" "1" - "onetime@^2.0.0": "integrity" "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=" "resolved" "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz" @@ -2602,24 +2199,11 @@ "lcid" "^1.0.0" "mem" "^1.1.0" -"os-tmpdir@^1.0.0": - "integrity" "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" - "resolved" "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" - "version" "1.0.2" - "os-tmpdir@^1.0.1", "os-tmpdir@~1.0.2": "integrity" "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" "resolved" "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" "version" "1.0.2" -"osenv@^0.1.4": - "integrity" "sha512-W6FhbLxEWdiyX2/fCl2YBZUJOYWaCHJa+jJwUVMX0iFYJmwyd0uzKx4NxFdj3xo9C0pumQ6G/fvd1MbNhsqQbQ==" - "resolved" "https://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz" - "version" "0.1.4" - dependencies: - "os-homedir" "^1.0.0" - "os-tmpdir" "^1.0.0" - "p-finally@^1.0.0": "integrity" "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" "resolved" "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" @@ -2720,11 +2304,6 @@ "safe-buffer" "^5.0.1" "sha.js" "^2.4.8" -"performance-now@^0.2.0": - "integrity" "sha512-YHk5ez1hmMR5LOkb9iJkLKqoBlL7WD5M8ljC75ZfzXriuBIVNuecaXuU7e+hOwyqf24Wxhh7Vxgt7Hnw9288Tg==" - "resolved" "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz" - "version" "0.2.0" - "pify@^2.0.0", "pify@^2.3.0": "integrity" "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" "resolved" "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" @@ -2817,21 +2396,11 @@ "resolved" "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz" "version" "1.4.1" -"punycode@^1.4.1": - "integrity" "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" - "resolved" "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz" - "version" "1.4.1" - "punycode@1.3.2": "integrity" "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" "resolved" "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz" "version" "1.3.2" -"qs@~6.4.0": - "integrity" "sha512-Qs6dfgR5OksK/PSxl1kGxiZgEQe8RqJMB9wZqVlKQfU+zzV+HY77pWJnoJENACKDQByWdpr8ZPIh1TBi4lpiSQ==" - "resolved" "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz" - "version" "6.4.0" - "querystring-es3@^0.2.0": "integrity" "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=" "resolved" "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz" @@ -2865,15 +2434,6 @@ "randombytes" "^2.0.5" "safe-buffer" "^5.1.0" -"rc@^1.1.7": - "integrity" "sha512-5kLVpOvFh6zdjGL2+UmCXd/nonPuxsRjM0LktPM6CtpFYOrZSd9rF4tveeMtql3HU6AsAovgqR8k9HQOSfXLMQ==" - "version" "1.2.1" - dependencies: - "deep-extend" "~0.4.0" - "ini" "~1.3.0" - "minimist" "^1.2.0" - "strip-json-comments" "~2.0.1" - "read-pkg-up@^2.0.0": "integrity" "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=" "resolved" "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz" @@ -2904,18 +2464,6 @@ "string_decoder" "~1.0.3" "util-deprecate" "~1.0.1" -"readable-stream@^2.0.6", "readable-stream@^2.1.4": - "integrity" "sha512-iuxqX7b7FYt08AriYECxUsK9KTXE3A/FenxIa3IPmvANHxaTP/wGIwwf+IidvvIDk/MsCp/oEV6A8CXo4SDcCg==" - "version" "2.2.9" - dependencies: - "buffer-shims" "~1.0.0" - "core-util-is" "~1.0.0" - "inherits" "~2.0.1" - "isarray" "~1.0.0" - "process-nextick-args" "~1.0.6" - "string_decoder" "~1.0.0" - "util-deprecate" "~1.0.1" - "readdirp@^2.0.0": "integrity" "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=" "resolved" "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz" @@ -2995,34 +2543,6 @@ dependencies: "is-finite" "^1.0.0" -"request@2.81.0": - "integrity" "sha512-IZnsR7voF0miGSu29EXPRgPTuEsI/+aibNSBbN1pplrfartF5wDYGADz3iD9vmBVf2r00rckWZf8BtS5kk7Niw==" - "resolved" "https://registry.npmjs.org/request/-/request-2.81.0.tgz" - "version" "2.81.0" - dependencies: - "aws-sign2" "~0.6.0" - "aws4" "^1.2.1" - "caseless" "~0.12.0" - "combined-stream" "~1.0.5" - "extend" "~3.0.0" - "forever-agent" "~0.6.1" - "form-data" "~2.1.1" - "har-validator" "~4.2.1" - "hawk" "~3.1.3" - "http-signature" "~1.1.0" - "is-typedarray" "~1.0.0" - "isstream" "~0.1.2" - "json-stringify-safe" "~5.0.1" - "mime-types" "~2.1.7" - "oauth-sign" "~0.8.1" - "performance-now" "^0.2.0" - "qs" "~6.4.0" - "safe-buffer" "^5.0.1" - "stringstream" "~0.0.4" - "tough-cookie" "~2.3.0" - "tunnel-agent" "^0.6.0" - "uuid" "^3.0.0" - "require-directory@^2.1.1": "integrity" "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" "resolved" "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" @@ -3068,12 +2588,6 @@ dependencies: "glob" "^7.0.5" -"rimraf@^2.5.1", "rimraf@2": - "integrity" "sha512-5QIcndZ8am2WyseL6lln/utl51SwRBQs/at+zi1UnhsnPyZcAID+g0PZrKdb+kJn2fo/CwgyJweR8sP36Jer5g==" - "version" "2.6.1" - dependencies: - "glob" "^7.0.5" - "ripemd160@^2.0.0", "ripemd160@^2.0.1": "integrity" "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=" "resolved" "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz" @@ -3116,11 +2630,6 @@ "resolved" "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" "version" "2.0.0" -"set-blocking@~2.0.0": - "integrity" "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" - "resolved" "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" - "version" "2.0.0" - "set-immediate-shim@^1.0.1": "integrity" "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=" "resolved" "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz" @@ -3168,13 +2677,6 @@ dependencies: "is-fullwidth-code-point" "^2.0.0" -"sntp@1.x.x": - "integrity" "sha512-7bgVOAnPj3XjrKY577S+puCKGCRlUrcrEdsMeRXlg9Ghf5df/xNi6sONUa43WrHUd3TjJBF7O04jYoiY0FVa0A==" - "resolved" "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz" - "version" "1.0.9" - dependencies: - "hoek" "2.x.x" - "source-list-map@^2.0.0": "integrity" "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==" "resolved" "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz" @@ -3219,21 +2721,6 @@ "resolved" "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" "version" "1.0.3" -"sshpk@^1.7.0": - "integrity" "sha512-4pjoCmB+Vta6odJ3nrT2zf223+xW6mOJfYtHGX7n5CZUAVm6GhuHLbKeai3c0XoWCu6ZNyPo3Nf71CaUbgck2g==" - "version" "1.13.0" - dependencies: - "asn1" "~0.2.3" - "assert-plus" "^1.0.0" - "dashdash" "^1.12.0" - "getpass" "^0.1.1" - optionalDependencies: - "bcrypt-pbkdf" "^1.0.0" - "ecc-jsbn" "~0.1.1" - "jodid25519" "^1.0.0" - "jsbn" "~0.1.0" - "tweetnacl" "~0.14.0" - "stream-browserify@^2.0.1": "integrity" "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=" "resolved" "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz" @@ -3260,14 +2747,8 @@ dependencies: "safe-buffer" "~5.1.0" -"string_decoder@~1.0.0": - "integrity" "sha512-Ma/XSGC8lfDvw75eLjgg/a1nWDButtedmpbbNxH5Ruyr0IhqNXOKbG468VtPosrjhRgNOvgonmY54ZnGMdgJjw==" - "version" "1.0.1" - dependencies: - "safe-buffer" "^5.0.1" - -"string-width@^1.0.1", "string-width@^1.0.2": - "integrity" "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==" +"string-width@^1.0.1": + "integrity" "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=" "resolved" "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz" "version" "1.0.2" dependencies: @@ -3283,11 +2764,6 @@ "is-fullwidth-code-point" "^2.0.0" "strip-ansi" "^4.0.0" -"stringstream@~0.0.4": - "integrity" "sha512-QUQ1kThMjLRt4jA8lsn9lyIkE9bKafE7LDOL/nBBUY9Tfv2i3x1NAsVHG0uMCusFOWeeI6COhY/F20+avxRWSw==" - "resolved" "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz" - "version" "0.0.5" - "strip-ansi@^3.0.0", "strip-ansi@^3.0.1": "integrity" "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=" "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz" @@ -3353,29 +2829,6 @@ "resolved" "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz" "version" "0.2.8" -"tar-pack@^3.4.0": - "integrity" "sha512-mggElLHZCDZK1J8rHZqdqJ09zY9F8aW7CgbhHjXZKCfgVU6TqUPhM6okl3z8bRWfOoJBBRKoIOrwPbahCHV64w==" - "resolved" "https://registry.npmjs.org/tar-pack/-/tar-pack-3.4.0.tgz" - "version" "3.4.0" - dependencies: - "debug" "^2.2.0" - "fstream" "^1.0.10" - "fstream-ignore" "^1.0.5" - "once" "^1.3.3" - "readable-stream" "^2.1.4" - "rimraf" "^2.5.1" - "tar" "^2.2.1" - "uid-number" "^0.0.6" - -"tar@^2.2.1": - "integrity" "sha512-2Tw2uNtZqQTSHTIMbKHKFeAPmKcljrNKqKiIN7pu3V/CxYqRgS8DLXvMkFRrbtXlg6mTOQcuTX7DMj18Xi0dtg==" - "resolved" "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz" - "version" "2.2.1" - dependencies: - "block-stream" "*" - "fstream" "^1.0.2" - "inherits" "2" - "text-table@~0.2.0": "integrity" "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=" "resolved" "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" @@ -3410,12 +2863,6 @@ "resolved" "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz" "version" "1.0.3" -"tough-cookie@~2.3.0": - "integrity" "sha512-42UXjmzk88F7URyg9wDV/dlQ7hXtl/SDV6xIMVdDq82cnDGQDyg8mI8xGBPOwpEfbhvrja6cJ8H1wr0xxykBKA==" - "version" "2.3.2" - dependencies: - "punycode" "^1.4.1" - "trim-right@^1.0.1": "integrity" "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" "resolved" "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz" @@ -3426,18 +2873,6 @@ "resolved" "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz" "version" "0.0.0" -"tunnel-agent@^0.6.0": - "integrity" "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==" - "resolved" "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz" - "version" "0.6.0" - dependencies: - "safe-buffer" "^5.0.1" - -"tweetnacl@^0.14.3", "tweetnacl@~0.14.0": - "integrity" "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - "resolved" "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz" - "version" "0.14.5" - "type-check@~0.3.2": "integrity" "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=" "resolved" "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz" @@ -3474,11 +2909,6 @@ "uglify-js" "^2.8.29" "webpack-sources" "^1.0.1" -"uid-number@^0.0.6": - "integrity" "sha512-c461FXIljswCuscZn67xq9PpszkPT6RjheWFQTgCyabJrTUozElanb0YEqv2UGgk247YpcJkFBuSGNvBlpXM9w==" - "resolved" "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz" - "version" "0.0.6" - "url@^0.11.0": "integrity" "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=" "resolved" "https://registry.npmjs.org/url/-/url-0.11.0.tgz" @@ -3499,10 +2929,6 @@ dependencies: "inherits" "2.0.1" -"uuid@^3.0.0": - "integrity" "sha512-tyhM7iisckwwmyHVFcjTzISz/R1ss/bRudNgHFYsgeu7j4JbhRvjE+Hbcpr9y5xh+b+HxeFjuToDT4i9kQNrtA==" - "version" "3.0.1" - "validate-npm-package-license@^3.0.1": "integrity" "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=" "resolved" "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz" @@ -3511,12 +2937,6 @@ "spdx-correct" "~1.0.0" "spdx-expression-parse" "~1.0.0" -"verror@1.3.6": - "integrity" "sha512-i8GFYwImt5D5B8CPpi2jrDTy/faq4OEW+NkOTLSKcIdPfdYJvWv3VZddDKl0ByvBe6cJ2s5Mm2XDtv5c2pj/Eg==" - "version" "1.3.6" - dependencies: - "extsprintf" "1.0.2" - "vm-browserify@0.0.4": "integrity" "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=" "resolved" "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz" @@ -3581,13 +3001,6 @@ dependencies: "isexe" "^2.0.0" -"wide-align@^1.1.0": - "integrity" "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==" - "resolved" "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz" - "version" "1.1.2" - dependencies: - "string-width" "^1.0.2" - "window-size@0.1.0": "integrity" "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=" "resolved" "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz"