Socket
Socket
Sign inDemoInstall

react-basic-scroll

Package Overview
Dependencies
11
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

2

dist/index.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReactBasicScroll=t():e.ReactBasicScroll=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"ReactBasicScroll",{enumerable:!0,get:function(){return r.ReactBasicScroll}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactBasicScroll=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=l(n(2)),i=l(n(3)),u=function(e){return e&&e.__esModule?e:{default:e}}(n(4));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var a={from:u.default.oneOfType([u.default.string,u.default.number]).isRequired,to:u.default.oneOfType([u.default.string,u.default.number]).isRequired,direct:u.default.oneOfType([u.default.bool,u.default.instanceOf(Element)]),track:u.default.bool,inside:u.default.func,outside:u.default.func,props:u.default.object.isRequired},f=t.ReactBasicScroll=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.elementRef=c.createRef(),n.start=function(){n.basicScrollInstanceFn("start")},n.stop=function(){n.basicScrollInstanceFn("stop")},n.destroy=function(){n.basicScrollInstanceFn("destroy")},n.update=function(){return n.basicScrollInstanceFn("update")},n.calculate=function(){n.basicScrollInstanceFn("calculate")},n.isActive=function(){return n.basicScrollInstanceFn("isActive")},n.getData=function(){return n.basicScrollInstanceFn("getData")},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),o(t,[{key:"componentDidMount",value:function(){var e=this.props.config;this.basicScrollInstance=i.create(r({elem:this.elementRef.current},e)),this.basicScrollInstanceFn("start")}},{key:"render",value:function(){var e=this.props.children;return c.cloneElement(e,{ref:this.elementRef})}},{key:"componentWillUnmount",value:function(){this.basicScrollInstanceFn("destroy")}},{key:"basicScrollInstanceFn",value:function(e){if(this.basicScrollInstance&&"function"==typeof this.basicScrollInstance[e])return this.basicScrollInstance[e].call(null)}}]),t}();f.propTypes={config:u.default.shape(a).isRequired},f.defaultProps={config:{from:null,to:null,direct:!1,track:!0,inside:function(e,t,n){return null},outside:function(e,t,n){return null},props:{}}}},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("basicscroll")},function(e,t){e.exports=require("prop-types")}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.ReactBasicScroll=n(require("react")):t.ReactBasicScroll=n(t.React)}(this,function(t){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(n){return t[n]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=5)}([function(t,n,e){t.exports=e(3)()},function(n,e){n.exports=t},function(t,n,e){var o;t.exports=function t(n,e,r){function u(c,a){if(!e[c]){if(!n[c]){var f="function"==typeof o&&o;if(!a&&f)return o(c,!0);if(i)return i(c,!0);var s=new Error("Cannot find module '"+c+"'");throw s.code="MODULE_NOT_FOUND",s}var l=e[c]={exports:{}};n[c][0].call(l.exports,function(t){return u(n[c][1][t]||t)},l,l.exports,t,n,e,r)}return e[c].exports}for(var i="function"==typeof o&&o,c=0;c<r.length;c++)u(r[c]);return u}({1:[function(t,n,e){n.exports=function(t){var n=2.5949095;return(t*=2)<1?t*t*((n+1)*t-n)*.5:.5*((t-=2)*t*((n+1)*t+n)+2)}},{}],2:[function(t,n,e){n.exports=function(t){var n=1.70158;return t*t*((n+1)*t-n)}},{}],3:[function(t,n,e){n.exports=function(t){var n=1.70158;return--t*t*((n+1)*t+n)+1}},{}],4:[function(t,n,e){var o=t("./bounce-out");n.exports=function(t){return t<.5?.5*(1-o(1-2*t)):.5*o(2*t-1)+.5}},{"./bounce-out":6}],5:[function(t,n,e){var o=t("./bounce-out");n.exports=function(t){return 1-o(1-t)}},{"./bounce-out":6}],6:[function(t,n,e){n.exports=function(t){var n=t*t;return t<4/11?7.5625*n:t<8/11?9.075*n-9.9*t+3.4:t<.9?4356/361*n-35442/1805*t+16061/1805:10.8*t*t-20.52*t+10.72}},{}],7:[function(t,n,e){n.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},{}],8:[function(t,n,e){n.exports=function(t){return 1-Math.sqrt(1-t*t)}},{}],9:[function(t,n,e){n.exports=function(t){return Math.sqrt(1- --t*t)}},{}],10:[function(t,n,e){n.exports=function(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}},{}],11:[function(t,n,e){n.exports=function(t){return t*t*t}},{}],12:[function(t,n,e){n.exports=function(t){var n=t-1;return n*n*n+1}},{}],13:[function(t,n,e){n.exports=function(t){return t<.5?.5*Math.sin(13*Math.PI/2*2*t)*Math.pow(2,10*(2*t-1)):.5*Math.sin(-13*Math.PI/2*(2*t-1+1))*Math.pow(2,-10*(2*t-1))+1}},{}],14:[function(t,n,e){n.exports=function(t){return Math.sin(13*t*Math.PI/2)*Math.pow(2,10*(t-1))}},{}],15:[function(t,n,e){n.exports=function(t){return Math.sin(-13*(t+1)*Math.PI/2)*Math.pow(2,-10*t)+1}},{}],16:[function(t,n,e){n.exports=function(t){return 0===t||1===t?t:t<.5?.5*Math.pow(2,20*t-10):-.5*Math.pow(2,10-20*t)+1}},{}],17:[function(t,n,e){n.exports=function(t){return 0===t?t:Math.pow(2,10*(t-1))}},{}],18:[function(t,n,e){n.exports=function(t){return 1===t?t:1-Math.pow(2,-10*t)}},{}],19:[function(t,n,e){n.exports={backInOut:t("./back-in-out"),backIn:t("./back-in"),backOut:t("./back-out"),bounceInOut:t("./bounce-in-out"),bounceIn:t("./bounce-in"),bounceOut:t("./bounce-out"),circInOut:t("./circ-in-out"),circIn:t("./circ-in"),circOut:t("./circ-out"),cubicInOut:t("./cubic-in-out"),cubicIn:t("./cubic-in"),cubicOut:t("./cubic-out"),elasticInOut:t("./elastic-in-out"),elasticIn:t("./elastic-in"),elasticOut:t("./elastic-out"),expoInOut:t("./expo-in-out"),expoIn:t("./expo-in"),expoOut:t("./expo-out"),linear:t("./linear"),quadInOut:t("./quad-in-out"),quadIn:t("./quad-in"),quadOut:t("./quad-out"),quartInOut:t("./quart-in-out"),quartIn:t("./quart-in"),quartOut:t("./quart-out"),quintInOut:t("./quint-in-out"),quintIn:t("./quint-in"),quintOut:t("./quint-out"),sineInOut:t("./sine-in-out"),sineIn:t("./sine-in"),sineOut:t("./sine-out")}},{"./back-in":2,"./back-in-out":1,"./back-out":3,"./bounce-in":5,"./bounce-in-out":4,"./bounce-out":6,"./circ-in":8,"./circ-in-out":7,"./circ-out":9,"./cubic-in":11,"./cubic-in-out":10,"./cubic-out":12,"./elastic-in":14,"./elastic-in-out":13,"./elastic-out":15,"./expo-in":17,"./expo-in-out":16,"./expo-out":18,"./linear":20,"./quad-in":22,"./quad-in-out":21,"./quad-out":23,"./quart-in":25,"./quart-in-out":24,"./quart-out":26,"./quint-in":28,"./quint-in-out":27,"./quint-out":29,"./sine-in":31,"./sine-in-out":30,"./sine-out":32}],20:[function(t,n,e){n.exports=function(t){return t}},{}],21:[function(t,n,e){n.exports=function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)}},{}],22:[function(t,n,e){n.exports=function(t){return t*t}},{}],23:[function(t,n,e){n.exports=function(t){return-t*(t-2)}},{}],24:[function(t,n,e){n.exports=function(t){return t<.5?8*Math.pow(t,4):-8*Math.pow(t-1,4)+1}},{}],25:[function(t,n,e){n.exports=function(t){return Math.pow(t,4)}},{}],26:[function(t,n,e){n.exports=function(t){return Math.pow(t-1,3)*(1-t)+1}},{}],27:[function(t,n,e){n.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},{}],28:[function(t,n,e){n.exports=function(t){return t*t*t*t*t}},{}],29:[function(t,n,e){n.exports=function(t){return--t*t*t*t*t+1}},{}],30:[function(t,n,e){n.exports=function(t){return-.5*(Math.cos(Math.PI*t)-1)}},{}],31:[function(t,n,e){n.exports=function(t){var n=Math.cos(t*Math.PI*.5);return Math.abs(n)<1e-14?1:1-n}},{}],32:[function(t,n,e){n.exports=function(t){return Math.sin(t*Math.PI/2)}},{}],33:[function(t,n,e){n.exports=function(t,n){n||(n=[0,""]),t=String(t);var e=parseFloat(t,10);return n[0]=e,n[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}},{}],34:[function(t,n,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=void 0;var o=u(t("parse-unit")),r=u(t("eases"));function u(t){return t&&t.__esModule?t:{default:t}}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c,a,f=[],s="undefined"!=typeof window,l=function(){return(document.scrollingElement||document.documentElement).scrollTop},p=function(t){return!1===isNaN((0,o.default)(t)[0])},b=function(t){var n=(0,o.default)(t);return{value:n[0],unit:n[1]}},d=function(t){return null!==String(t).match(/^[a-z]+-[a-z]+$/)},m=function(t,n){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:l(),o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:window.innerHeight||window.outerHeight,r=n.getBoundingClientRect(),u=t.match(/^[a-z]+/)[0],i=t.match(/[a-z]+$/)[0],c=0;return"top"===i&&(c-=0),"middle"===i&&(c-=o/2),"bottom"===i&&(c-=o),"top"===u&&(c+=r.top+e),"middle"===u&&(c+=r.top+e+r.height/2),"bottom"===u&&(c+=r.top+e+r.height),"".concat(c,"px")},y=function(t){var n,e,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:l(),r=t.getData(),u=r.to.value-r.from.value,i=(o-r.from.value)/(u/100),c=Math.min(Math.max(i,0),100),a=(n=r.direct,e={global:document.documentElement,elem:r.elem,direct:r.direct},!0===n?e.elem:n instanceof HTMLElement==1?e.direct:e.global),f=Object.keys(r.props).reduce(function(t,n){var e=r.props[n],o=e.from.unit||e.to.unit,u=e.from.value-e.to.value,i=e.timing(c/100),a=e.from.value-u*i,f=Math.round(1e4*a)/1e4;return t[n]=f+o,t},{}),s=i<0||100<i;return 1==(0<=i&&i<=100)&&r.inside(t,i,f),!0===s&&r.outside(t,i,f),{elem:a,props:f}},h=function(t,n){Object.keys(n).forEach(function(e){return o=t,r={key:e,value:n[e]},void o.style.setProperty(r.key,r.value);var o,r})};e.create=function(t){var n=null,e=!1,o={isActive:function(){return e},getData:function(){return n},calculate:function(){n=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(null==(t=Object.assign({},t)).inside&&(t.inside=function(){}),null==t.outside&&(t.outside=function(){}),null==t.direct&&(t.direct=!1),null==t.track&&(t.track=!0),null==t.props&&(t.props={}),null==t.from)throw new Error("Missing property `from`");if(null==t.to)throw new Error("Missing property `to`");if("function"!=typeof t.inside)throw new Error("Property `inside` must be undefined or a function");if("function"!=typeof t.outside)throw new Error("Property `outside` must be undefined or a function");if("boolean"!=typeof t.direct&&t.direct instanceof HTMLElement==0)throw new Error("Property `direct` must be undefined, a boolean or a DOM element/node");if(!0===t.direct&&null==t.elem)throw new Error("Property `elem` is required when `direct` is true");if("boolean"!=typeof t.track)throw new Error("Property `track` must be undefined or a boolean");if("object"!==i(t.props))throw new Error("Property `props` must be undefined or an object");if(null==t.elem){if(!1===p(t.from))throw new Error("Property `from` must be a absolute value when no `elem` has been provided");if(!1===p(t.to))throw new Error("Property `to` must be a absolute value when no `elem` has been provided")}else!0===d(t.from)&&(t.from=m(t.from,t.elem)),!0===d(t.to)&&(t.to=m(t.to,t.elem));return t.from=b(t.from),t.to=b(t.to),t.props=Object.keys(t.props).reduce(function(n,e){var o=Object.assign({},t.props[e]);if(!1===p(o.from))throw new Error("Property `from` of prop must be a absolute value");if(!1===p(o.to))throw new Error("Property `from` of prop must be a absolute value");if(o.from=b(o.from),o.to=b(o.to),null==o.timing&&(o.timing=r.default.linear),"string"!=typeof o.timing&&"function"!=typeof o.timing)throw new Error("Property `timing` of prop must be undefined, a string or a function");if("string"==typeof o.timing&&null==r.default[o.timing])throw new Error("Unknown timing for property `timing` of prop");return"string"==typeof o.timing&&(o.timing=r.default[o.timing]),n[e]=o,n},{}),t}(t)},update:function(){var t=y(o),n=t.elem,e=t.props;return h(n,e),e},start:function(){e=!0},stop:function(){e=!1},destroy:function(){f[u]=void 0}},u=f.push(o)-1;return o.calculate(),o},!0===s?(function t(n,e){var o=function(){requestAnimationFrame(function(){return t(n,e)})},r=f.filter(function(t){return null!=t&&t.isActive()});if(0===r.length)return o();var u=l();if(e===u)return o();e=u,r.map(function(t){return y(t,u)}).forEach(function(t){var n=t.elem,e=t.props;return h(n,e)}),o()}(),window.addEventListener("resize",(c=function(){f.filter(function(t){return null!=t&&t.getData().track}).forEach(function(t){t.calculate(),t.update()})},a=null,function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];clearTimeout(a),a=setTimeout(function(){return c.apply(void 0,n)},50)}))):console.warn("basicScroll is not executing because you are using it in an environment without a `window` object")},{eases:19,"parse-unit":33}]},{},[34])(34)},function(t,n,e){"use strict";var o=e(4);function r(){}function u(){}u.resetWarningCache=r,t.exports=function(){function t(t,n,e,r,u,i){if(i!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:u,resetWarningCache:r};return e.PropTypes=e,e}},function(t,n,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n,e){"use strict";e.r(n);var o=e(1),r=e(2),u=e(0),i=e.n(u);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,o)}return e}function f(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,n){return(p=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function b(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var d={from:i.a.oneOfType([i.a.string,i.a.number]).isRequired,to:i.a.oneOfType([i.a.string,i.a.number]).isRequired,direct:i.a.any,track:i.a.bool,inside:i.a.func,outside:i.a.func,props:i.a.object.isRequired},m=function(t){function n(t){var e,r,u;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),r=this,u=s(n).call(this,t),e=!u||"object"!==c(u)&&"function"!=typeof u?l(r):u,b(l(e),"elementRef",o.createRef()),b(l(e),"start",function(){e.basicScrollInstanceFn("start")}),b(l(e),"stop",function(){e.basicScrollInstanceFn("stop")}),b(l(e),"destroy",function(){e.basicScrollInstanceFn("destroy")}),b(l(e),"update",function(){return e.basicScrollInstanceFn("update")}),b(l(e),"calculate",function(){e.basicScrollInstanceFn("calculate")}),b(l(e),"isActive",function(){return e.basicScrollInstanceFn("isActive")}),b(l(e),"getData",function(){return e.basicScrollInstanceFn("getData")}),e}var e,u,i;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&p(t,n)}(n,o["Component"]),e=n,(u=[{key:"componentDidMount",value:function(){var t=this.props.config;this.basicScrollInstance=r.create(function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(e,!0).forEach(function(n){b(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}({elem:this.elementRef.current},t)),this.basicScrollInstanceFn("start")}},{key:"render",value:function(){var t=this.props.children;return o.cloneElement(t,{ref:this.elementRef})}},{key:"componentWillUnmount",value:function(){this.basicScrollInstanceFn("destroy")}},{key:"basicScrollInstanceFn",value:function(t){if(this.basicScrollInstance&&"function"==typeof this.basicScrollInstance[t])return this.basicScrollInstance[t].call(null)}}])&&f(e.prototype,u),i&&f(e,i),n}();b(m,"propTypes",{config:i.a.shape(d).isRequired}),b(m,"defaultProps",{config:{from:null,to:null,direct:!1,track:!0,inside:function(t,n,e){return null},outside:function(t,n,e){return null},props:{}}}),e.d(n,"ReactBasicScroll",function(){return m})}])});
//# sourceMappingURL=index.js.map
{
"name": "react-basic-scroll",
"version": "1.0.0",
"version": "1.1.0",
"description": "React wrapper component for basicScroll",

@@ -29,16 +29,14 @@ "main": "dist/index.js",

"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.6.0",
"@babel/preset-react": "^7.0.0",
"@fortawesome/fontawesome-svg-core": "^1.2.0-14",
"@fortawesome/free-solid-svg-icons": "^5.1.0-11",
"@fortawesome/react-fontawesome": "^0.1.0-11",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.4.2",
"babel-loader": "^7.1.5",
"babel-plugin-prismjs": "^1.0.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"babel-plugin-prismjs": "^1.1.1",
"clean-webpack-plugin": "^1.0.0",

@@ -49,3 +47,3 @@ "copy-webpack-plugin": "^4.5.2",

"enzyme-adapter-react-16": "^1.3.0",
"eslint": "^5.10.0",
"eslint": "^6.0.1",
"eslint-config-airbnb": "^17.1.0",

@@ -60,4 +58,5 @@ "eslint-config-airbnb-base": "^13.1.0",

"html-webpack-plugin": "^3.2.0",
"jest": "^23.5.0",
"jest-enzyme": "^6.0.4",
"jest": "^24.9.0",
"jest-cli": "^24.8.0",
"jest-enzyme": "^7.0.2",
"prismjs": "^1.15.0",

@@ -70,4 +69,3 @@ "react-dat-gui": "^1.0.2",

"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5",
"webpack-node-externals": "^1.7.2"
"webpack-dev-server": "^3.7.2"
},

@@ -82,3 +80,9 @@ "jest": {

}
},
"resolutions": {
"lodash": "4.17.13"
},
"engines": {
"yarn": "YARN NO LONGER USED - use npm instead."
}
}

@@ -10,2 +10,5 @@ # React-Basic-Scroll

```
```
npm i react-basic-scroll
```

@@ -12,0 +15,0 @@ ## Basic Usage

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc