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

react-autocomplete-input

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-autocomplete-input - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

.nyc_output/ffafcb8e-a532-4528-a78c-f0747a149064.json

3

CHANGELOG.md

@@ -0,1 +1,4 @@

### 17th January 2019 - 1.0.9
- Deps update
### 25th February 2018 - 1.0.8

@@ -2,0 +5,0 @@ - Correctly matching uppercase strings

2

dist/bundle.js

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

module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function s(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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},u="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},f=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}}(),p=n(5),c=r(p),h=n(4),d=r(h),g=n(6),v=n(7),b=r(v),m=n(3),y=r(m);n(2);var O=38,C=40,S=13,w=14,x=27,k=10,L=100,R={Component:d.default.oneOfType([d.default.string,d.default.func]),defaultValue:d.default.string,disabled:d.default.bool,maxOptions:d.default.number,onBlur:d.default.func,onChange:d.default.func,onKeyDown:d.default.func,onRequestOptions:d.default.func,options:d.default.array,regex:d.default.string,matchAny:d.default.bool,minChars:d.default.number,requestOnlyIfNoOptions:d.default.bool,spaceRemovers:d.default.array,trigger:d.default.string,value:d.default.any,offsetX:d.default.number,offsetY:d.default.number},D={Component:"textarea",defaultValue:"",disabled:!1,maxOptions:6,onBlur:function(){},onChange:function(){},onKeyDown:function(){},onRequestOptions:function(){},options:[],regex:"^[A-Za-z0-9\\-_]+$",matchAny:!1,minChars:0,requestOnlyIfNoOptions:!0,spaceRemovers:[",",".","!","?"],trigger:"@",offsetX:0,offsetY:0},V=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.isTrigger=n.isTrigger.bind(n),n.getMatch=n.getMatch.bind(n),n.handleChange=n.handleChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleResize=n.handleResize.bind(n),n.handleSelection=n.handleSelection.bind(n),n.updateCaretPosition=n.updateCaretPosition.bind(n),n.updateHelper=n.updateHelper.bind(n),n.resetHelper=n.resetHelper.bind(n),n.renderAutocompleteList=n.renderAutocompleteList.bind(n),n.state={helperVisible:!1,left:0,matchLength:0,matchStart:0,options:[],selection:0,top:0,value:null},n.recentValue=e.defaultValue,n.enableSpaceRemovers=!1,n}return s(t,e),f(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleResize)}},{key:"componentWillReceiveProps",value:function(e){e.options.length!==this.props.options.length&&this.updateHelper(this.recentValue,this.state.caret,e.options)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize)}},{key:"getMatch",value:function(e,t,n){for(var r=this.props,o=r.trigger,i=r.matchAny,a=new RegExp(this.props.regex),s=o.length,l=o.match(a),f=t-1;f>=0;--f){var p=e.substring(f,t),c=p.match(a),h=-1;if(s>0){var d=l?f:f-s+1;if(d<0)return null;if(this.isTrigger(e,d)&&(h=d+s),!c&&h<0)return null}else{if(c&&f>0)continue;if(h=0===f&&c?0:f+1,t-h===0)return null}if(h>=0){var g=function(){var r=e.substring(h,t),o=n.filter(function(e){var t=e.toLowerCase().indexOf(r);return t!==-1&&(i||0===t)}),a=r.length;return{v:{matchStart:h,matchLength:a,options:o}}}();if("object"===("undefined"==typeof g?"undefined":u(g)))return g.v}}return null}},{key:"isTrigger",value:function(e,t){var n=this.props.trigger;return!n||!n.length||e.substr(t,n.length)===n}},{key:"handleChange",value:function(e){var t=this.props,n=t.onChange,r=t.options,o=t.spaceRemovers,i=this.recentValue,a=e.target.value,s=(0,y.default)(e.target).end;if(a.length||this.setState({helperVisible:!1}),this.recentValue=a,this.setState({caret:s,value:e.target.value}),!a.length||!s)return n(e.target.value);if(this.enableSpaceRemovers&&o.length&&a.length>2){for(var l=0;l<Math.max(i.length,a.length);++l)if(i[l]!==a[l]){if(l>=2&&" "===a[l-1]&&o.indexOf(a[l-2])===-1&&o.indexOf(a[l])!==-1&&this.getMatch(a.substring(0,l-2).toLowerCase(),s-3,r)){var u=""+a.slice(0,l-1)+a.slice(l,l+1)+a.slice(l-1,l)+a.slice(l+1);return this.updateCaretPosition(l+1),(0,g.findDOMNode)(this.refInput).value=u,this.props.value||this.setState({value:u}),n(u)}break}this.enableSpaceRemovers=!1}return this.updateHelper(a,s,r),this.props.value||this.setState({value:e.target.value}),n(e.target.value)}},{key:"handleKeyDown",value:function(e){if(this.state.helperVisible){var t=this.state,n=t.options,r=t.selection;switch(e.keyCode){case x:e.preventDefault(),this.resetHelper();break;case O:e.preventDefault(),this.setState({selection:(n.length+r-1)%n.length});break;case C:e.preventDefault(),this.setState({selection:(r+1)%n.length});break;case w:case S:e.preventDefault(),this.handleSelection(r);break;default:this.props.onKeyDown(e)}}else this.props.onKeyDown(e)}},{key:"handleResize",value:function(){this.setState({helperVisible:!1})}},{key:"handleSelection",value:function(e){var t=this.state,n=t.matchStart,r=t.matchLength,o=t.options,i=o[e],a=this.recentValue,s=a.substring(0,n),l=a.substring(n+r),u={target:(0,g.findDOMNode)(this.refInput)};u.target.value=""+s+i+" "+l,this.handleChange(u),this.resetHelper(),this.updateCaretPosition(s.length+i.length+1),this.enableSpaceRemovers=!0}},{key:"updateCaretPosition",value:function(e){var t=this;this.setState({caret:e},function(){return(0,m.setCaretPosition)((0,g.findDOMNode)(t.refInput),e)})}},{key:"updateHelper",value:function(e,t,n){var r=(0,g.findDOMNode)(this.refInput),o=this.getMatch(e.toLowerCase(),t,n);if(o){var i=(0,b.default)(r,t),a=r.getBoundingClientRect(),s=i.top+r.offsetTop,u=Math.min(i.left+r.offsetLeft-k,r.offsetLeft+a.width-L);o.matchLength>=this.props.minChars&&(o.options.length>1||1===o.options.length&&o.options[0].length!==o.matchLength)?this.setState(l({helperVisible:!0,top:s,left:u},o)):(this.props.requestOnlyIfNoOptions&&o.options.length||this.props.onRequestOptions(e.substr(o.matchStart,o.matchLength)),this.resetHelper())}else this.resetHelper()}},{key:"resetHelper",value:function(){this.setState({helperVisible:!1,selection:0})}},{key:"renderAutocompleteList",value:function(){var e=this;if(!this.state.helperVisible)return null;var t=this.props,n=t.maxOptions,r=t.offsetX,o=t.offsetY,i=this.state,a=i.value,s=i.left,l=i.matchStart,u=i.matchLength,f=i.options,p=i.selection,h=i.top;if(0===f.length)return null;if(p>=f.length)return this.setState({selection:0}),null;var d=0===this.props.maxOptions?f.length:n,g=f.slice(0,d).map(function(t,n){var r=t.toLowerCase().indexOf(a.substr(l,u).toLowerCase());return c.default.createElement("li",{className:n===p?"active":null,key:t,onClick:function(){e.handleSelection(n)},onMouseEnter:function(){e.setState({selection:n})}},t.slice(0,r),c.default.createElement("strong",null,t.substr(r,u)),t.slice(r+u))});return c.default.createElement("ul",{className:"react-autocomplete-input",style:{left:s+r,top:h+o}},g)}},{key:"render",value:function(){var e=this,t=this.props,n=t.Component,r=t.defaultValue,i=t.disabled,a=t.value,s=o(t,["Component","defaultValue","disabled","value"]),u=Object.assign({},s);Object.keys(this.constructor.propTypes).forEach(function(e){delete u[e]});var f="";return"undefined"!=typeof a&&null!==a?f=a:this.state.value?f=this.state.value:r&&(f=r),c.default.createElement("span",null,c.default.createElement(n,l({disabled:i,onBlur:this.props.onBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,ref:function(t){e.refInput=t},value:f},u)),this.renderAutocompleteList())}}]),t}(c.default.Component);V.propTypes=R,V.defaultProps=D,t.default=V},function(e,t){},function(e,t){e.exports=require("get-input-selection")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("react-dom")},function(e,t){e.exports=require("textarea-caret")}]);
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(){return 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},r.apply(this,arguments)}function o(e,t){if(null==e)return{};var n,r,o=i(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s(e,t,n[t])})}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l="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})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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)}}function f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function p(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0});var v=n(2),y=n.n(v),m=n(3),O=n.n(m),w=n(4),S=(n.n(w),n(5)),C=n.n(S),j=n(6),x=n.n(j),k=n(7),P=(n.n(k),{Component:O.a.oneOfType([O.a.string,O.a.func]),defaultValue:O.a.string,disabled:O.a.bool,maxOptions:O.a.number,onBlur:O.a.func,onChange:O.a.func,onKeyDown:O.a.func,onRequestOptions:O.a.func,options:O.a.arrayOf(O.a.string),regex:O.a.string,matchAny:O.a.bool,minChars:O.a.number,requestOnlyIfNoOptions:O.a.bool,spaceRemovers:O.a.arrayOf(O.a.string),trigger:O.a.string,value:O.a.string,offsetX:O.a.number,offsetY:O.a.number}),L={Component:"textarea",defaultValue:"",disabled:!1,maxOptions:6,onBlur:function(){},onChange:function(){},onKeyDown:function(){},onRequestOptions:function(){},options:[],regex:"^[A-Za-z0-9\\-_]+$",matchAny:!1,minChars:0,requestOnlyIfNoOptions:!0,spaceRemovers:[",",".","!","?"],trigger:"@",offsetX:0,offsetY:0,value:null},R=function(e){function t(e){var n;return u(this,t),n=p(this,h(t).call(this,e)),n.isTrigger=n.isTrigger.bind(d(d(n))),n.getMatch=n.getMatch.bind(d(d(n))),n.handleChange=n.handleChange.bind(d(d(n))),n.handleKeyDown=n.handleKeyDown.bind(d(d(n))),n.handleResize=n.handleResize.bind(d(d(n))),n.handleSelection=n.handleSelection.bind(d(d(n))),n.updateCaretPosition=n.updateCaretPosition.bind(d(d(n))),n.updateHelper=n.updateHelper.bind(d(d(n))),n.resetHelper=n.resetHelper.bind(d(d(n))),n.renderAutocompleteList=n.renderAutocompleteList.bind(d(d(n))),n.state={helperVisible:!1,left:0,matchLength:0,matchStart:0,options:[],selection:0,top:0,value:null},n.recentValue=e.defaultValue,n.enableSpaceRemovers=!1,n}return g(t,e),f(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleResize)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.options,n=this.state.caret;t.length!==e.options.length&&this.updateHelper(this.recentValue,n,e.options)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize)}},{key:"getMatch",value:function(e,t,n){for(var r=this.props,o=r.trigger,i=r.matchAny,a=r.regex,s=new RegExp(a),u=o.length,c=o.match(s),f=t-1;f>=0;--f){var p=e.substring(f,t),h=p.match(s),g=-1;if(u>0){var b=c?f:f-u+1;if(b<0)return null;if(this.isTrigger(e,b)&&(g=b+u),!h&&g<0)return null}else{if(h&&f>0)continue;if(g=0===f&&h?0:f+1,t-g==0)return null}if(g>=0){var d=function(){var r=e.substring(g,t),o=n.filter(function(e){var t=e.toLowerCase().indexOf(r);return-1!==t&&(i||0===t)}),a=r.length;return{v:{matchStart:g,matchLength:a,options:o}}}();if("object"===l(d))return d.v}}return null}},{key:"isTrigger",value:function(e,t){var n=this.props.trigger;return!n||!n.length||e.substr(t,n.length)===n}},{key:"handleChange",value:function(e){var t=this.props,n=t.onChange,r=t.options,o=t.spaceRemovers,i=t.value,a=this.recentValue,s=e.target.value,l=x()(e.target).end;if(s.length||this.setState({helperVisible:!1}),this.recentValue=s,this.setState({caret:l,value:e.target.value}),!s.length||!l)return n(e.target.value);if(this.enableSpaceRemovers&&o.length&&s.length>2){for(var u=0;u<Math.max(a.length,s.length);++u)if(a[u]!==s[u]){if(u>=2&&" "===s[u-1]&&-1===o.indexOf(s[u-2])&&-1!==o.indexOf(s[u])&&this.getMatch(s.substring(0,u-2).toLowerCase(),l-3,r)){var c="".concat(s.slice(0,u-1)).concat(s.slice(u,u+1)).concat(s.slice(u-1,u)).concat(s.slice(u+1));return this.updateCaretPosition(u+1),Object(w.findDOMNode)(this.refInput).value=c,i||this.setState({value:c}),n(c)}break}this.enableSpaceRemovers=!1}return this.updateHelper(s,l,r),i||this.setState({value:e.target.value}),n(e.target.value)}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.helperVisible,r=t.options,o=t.selection,i=this.props.onKeyDown;if(n)switch(e.keyCode){case 27:e.preventDefault(),this.resetHelper();break;case 38:e.preventDefault(),this.setState({selection:(r.length+o-1)%r.length});break;case 40:e.preventDefault(),this.setState({selection:(o+1)%r.length});break;case 14:case 13:e.preventDefault(),this.handleSelection(o);break;default:i(e)}else i(e)}},{key:"handleResize",value:function(){this.setState({helperVisible:!1})}},{key:"handleSelection",value:function(e){var t=this.state,n=t.matchStart,r=t.matchLength,o=t.options,i=o[e],a=this.recentValue,s=a.substring(0,n),l=a.substring(n+r),u={target:Object(w.findDOMNode)(this.refInput)};u.target.value="".concat(s).concat(i," ").concat(l),this.handleChange(u),this.resetHelper(),this.updateCaretPosition(s.length+i.length+1),this.enableSpaceRemovers=!0}},{key:"updateCaretPosition",value:function(e){var t=this;this.setState({caret:e},function(){return Object(j.setCaretPosition)(Object(w.findDOMNode)(t.refInput),e)})}},{key:"updateHelper",value:function(e,t,n){var r=Object(w.findDOMNode)(this.refInput),o=this.getMatch(e.toLowerCase(),t,n);if(o){var i=C()(r,t),s=r.getBoundingClientRect(),l=i.top+r.offsetTop,u=Math.min(i.left+r.offsetLeft-10,r.offsetLeft+s.width-100),c=this.props,f=c.minChars,p=c.onRequestOptions,h=c.requestOnlyIfNoOptions;o.matchLength>=f&&(o.options.length>1||1===o.options.length&&o.options[0].length!==o.matchLength)?this.setState(a({helperVisible:!0,top:l,left:u},o)):(h&&o.options.length||p(e.substr(o.matchStart,o.matchLength)),this.resetHelper())}else this.resetHelper()}},{key:"resetHelper",value:function(){this.setState({helperVisible:!1,selection:0})}},{key:"renderAutocompleteList",value:function(){var e=this,t=this.state,n=t.helperVisible,r=t.left,o=t.matchStart,i=t.matchLength,a=t.options,s=t.selection,l=t.top,u=t.value;if(!n)return null;var c=this.props,f=c.maxOptions,p=c.offsetX,h=c.offsetY;if(0===a.length)return null;if(s>=a.length)return this.setState({selection:0}),null;var g=0===f?a.length:f,b=a.slice(0,g).map(function(t,n){var r=t.toLowerCase().indexOf(u.substr(o,i).toLowerCase());return y.a.createElement("li",{className:n===s?"active":null,key:t,onClick:function(){e.handleSelection(n)},onMouseEnter:function(){e.setState({selection:n})}},t.slice(0,r),y.a.createElement("strong",null,t.substr(r,i)),t.slice(r+i))});return y.a.createElement("ul",{className:"react-autocomplete-input",style:{left:r+p,top:l+h}},b)}},{key:"render",value:function(){var e=this,t=this.props,n=t.Component,i=t.defaultValue,a=t.disabled,s=t.onBlur,l=t.value,u=o(t,["Component","defaultValue","disabled","onBlur","value"]),c=this.state.value,f=Object.assign({},u);Object.keys(this.constructor.propTypes).forEach(function(e){delete f[e]});var p="";return void 0!==l&&null!==l?p=l:c?p=c:i&&(p=i),y.a.createElement("span",null,y.a.createElement(n,r({disabled:a,onBlur:s,onChange:this.handleChange,onKeyDown:this.handleKeyDown,ref:function(t){e.refInput=t},value:p},f)),this.renderAutocompleteList())}}]),t}(y.a.Component);R.propTypes=P,R.defaultProps=L,t.default=R},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("react-dom")},function(e,t){e.exports=require("textarea-caret")},function(e,t){e.exports=require("get-input-selection")},function(e,t){}]);
{
"name": "react-autocomplete-input",
"version": "1.0.8",
"version": "1.0.9",
"description": "Autocomplete input field for React",

@@ -9,5 +9,5 @@ "main": "dist/bundle.js",

"clean": "rimraf dist coverage lib",
"lint": "eslint src --ext .js,.jsx",
"test": "mocha --compilers js:babel-core/register",
"coverage": "NODE_ENV=production webpack && istanbul cover _mocha -- --compilers js:babel-core/register && NODE_ENV=production webpack -p"
"lint": "eslint src --ext .js",
"test": "mocha --require @babel/register",
"coverage": "NODE_ENV=production webpack && nyc _mocha --require @babel/register && NODE_ENV=production webpack -p"
},

@@ -31,35 +31,36 @@ "repository": {

"devDependencies": {
"babel-core": "^6.14.0",
"babel-eslint": "^6.1.2",
"babel-loader": "^6.2.5",
"babel-preset-es2015": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-0": "^6.5.0",
"chai": "^3.5.0",
"chai-enzyme": "^0.5.1",
"cheerio": "^0.20.0",
"css-loader": "^0.25.0",
"enzyme": "^2.4.1",
"eslint": "^3.5.0",
"eslint-config-airbnb": "^11.1.0",
"eslint-loader": "^1.5.0",
"eslint-plugin-import": "^1.15.0",
"eslint-plugin-jsx-a11y": "^2.2.2",
"eslint-plugin-react": "^6.3.0",
"extract-text-webpack-plugin": "^1.0.1",
"istanbul": "^1.1.0-alpha.1",
"jsdom": "^9.5.0",
"mocha": "^3.0.2",
"react": "^15.3.2",
"react-addons-test-utils": "^15.3.2",
"react-dom": "^15.3.2",
"rimraf": "^2.5.4",
"sinon": "^1.17.6",
"style-loader": "^0.13.1",
"webpack": "^1.13.2",
"webpack-node-externals": "^1.4.3"
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.0",
"chai": "^4.2.0",
"chai-enzyme": "^1.0.0-beta.1",
"cheerio": "^0.22.0",
"css-loader": "^2.1.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"eslint": "^5.12.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"extract-text-webpack-plugin": "^3.0.2",
"jsdom": "^13.1.0",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"react": "^16.7.0",
"react-addons-test-utils": "^15.6.2",
"react-dom": "^16.7.0",
"rimraf": "^2.6.3",
"sinon": "^7.2.2",
"style-loader": "^0.23.1",
"webpack": "^3.12.0",
"webpack-node-externals": "^1.7.2"
},
"dependencies": {
"get-input-selection": "^1.1.4",
"prop-types": "^15.5.10",
"prop-types": "^15.6.2",
"textarea-caret": "^3.0.2"

@@ -66,0 +67,0 @@ },

Sorry, the diff of this file is not supported yet

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