New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rsuite-autocomplete

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsuite-autocomplete - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

coverage/lcov-report/block-navigation.js

2

coverage/coverage-final.json
{"/Users/godfery/GitRepo/rsuite-autocomplete/src/KEY_CODE.js": {"path":"/Users/godfery/GitRepo/rsuite-autocomplete/src/KEY_CODE.js","statementMap":{"0":{"start":{"line":4,"column":17},"end":{"line":10,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"70a86615457ae978f1e58003400862d888fd7dd7"}
,"/Users/godfery/GitRepo/rsuite-autocomplete/src/component/AutoComplete.js": {"path":"/Users/godfery/GitRepo/rsuite-autocomplete/src/component/AutoComplete.js","statementMap":{"0":{"start":{"line":15,"column":18},"end":{"line":22,"column":1}},"1":{"start":{"line":24,"column":21},"end":{"line":26,"column":1}},"2":{"start":{"line":30,"column":4},"end":{"line":30,"column":17}},"3":{"start":{"line":31,"column":4},"end":{"line":35,"column":6}},"4":{"start":{"line":39,"column":25},"end":{"line":39,"column":35}},"5":{"start":{"line":40,"column":4},"end":{"line":44,"column":5}},"6":{"start":{"line":41,"column":6},"end":{"line":43,"column":9}},"7":{"start":{"line":48,"column":25},"end":{"line":48,"column":34}},"8":{"start":{"line":49,"column":4},"end":{"line":53,"column":5}},"9":{"start":{"line":50,"column":6},"end":{"line":52,"column":9}},"10":{"start":{"line":57,"column":17},"end":{"line":57,"column":34}},"11":{"start":{"line":58,"column":4},"end":{"line":58,"column":68}},"12":{"start":{"line":62,"column":4},"end":{"line":65,"column":6}},"13":{"start":{"line":69,"column":31},"end":{"line":69,"column":41}},"14":{"start":{"line":70,"column":4},"end":{"line":78,"column":7}},"15":{"start":{"line":71,"column":21},"end":{"line":71,"column":34}},"16":{"start":{"line":72,"column":20},"end":{"line":76,"column":30}},"17":{"start":{"line":77,"column":6},"end":{"line":77,"column":45}},"18":{"start":{"line":82,"column":4},"end":{"line":82,"column":105}},"19":{"start":{"line":82,"column":59},"end":{"line":82,"column":103}},"20":{"start":{"line":85,"column":41},"end":{"line":88,"column":3}},"21":{"start":{"line":86,"column":4},"end":{"line":86,"column":35}},"22":{"start":{"line":87,"column":4},"end":{"line":87,"column":76}},"23":{"start":{"line":91,"column":4},"end":{"line":91,"column":57}},"24":{"start":{"line":95,"column":4},"end":{"line":95,"column":58}},"25":{"start":{"line":100,"column":27},"end":{"line":100,"column":37}},"26":{"start":{"line":101,"column":23},"end":{"line":101,"column":49}},"27":{"start":{"line":102,"column":21},"end":{"line":105,"column":11}},"28":{"start":{"line":103,"column":19},"end":{"line":103,"column":37}},"29":{"start":{"line":104,"column":6},"end":{"line":104,"column":43}},"30":{"start":{"line":106,"column":4},"end":{"line":109,"column":7}},"31":{"start":{"line":113,"column":25},"end":{"line":113,"column":35}},"32":{"start":{"line":114,"column":4},"end":{"line":114,"column":33}},"33":{"start":{"line":115,"column":4},"end":{"line":115,"column":41}},"34":{"start":{"line":119,"column":4},"end":{"line":121,"column":7}},"35":{"start":{"line":122,"column":4},"end":{"line":122,"column":42}},"36":{"start":{"line":123,"column":4},"end":{"line":123,"column":43}},"37":{"start":{"line":127,"column":25},"end":{"line":127,"column":35}},"38":{"start":{"line":128,"column":4},"end":{"line":132,"column":7}},"39":{"start":{"line":133,"column":4},"end":{"line":133,"column":40}},"40":{"start":{"line":137,"column":4},"end":{"line":148,"column":5}},"41":{"start":{"line":139,"column":8},"end":{"line":139,"column":31}},"42":{"start":{"line":140,"column":8},"end":{"line":140,"column":72}},"43":{"start":{"line":141,"column":8},"end":{"line":141,"column":14}},"44":{"start":{"line":144,"column":8},"end":{"line":144,"column":32}},"45":{"start":{"line":145,"column":8},"end":{"line":145,"column":49}},"46":{"start":{"line":146,"column":8},"end":{"line":146,"column":14}},"47":{"start":{"line":152,"column":4},"end":{"line":155,"column":7}},"48":{"start":{"line":159,"column":17},"end":{"line":159,"column":34}},"49":{"start":{"line":160,"column":18},"end":{"line":160,"column":41}},"50":{"start":{"line":161,"column":4},"end":{"line":163,"column":5}},"51":{"start":{"line":162,"column":6},"end":{"line":162,"column":25}},"52":{"start":{"line":164,"column":4},"end":{"line":166,"column":5}},"53":{"start":{"line":165,"column":6},"end":{"line":165,"column":47}},"54":{"start":{"line":170,"column":4},"end":{"line":170,"column":21}},"55":{"start":{"line":174,"column":59},"end":{"line":174,"column":69}},"56":{"start":{"line":175,"column":18},"end":{"line":175,"column":76}},"57":{"start":{"line":176,"column":27},"end":{"line":176,"column":37}},"58":{"start":{"line":177,"column":25},"end":{"line":177,"column":85}},"59":{"start":{"line":178,"column":30},"end":{"line":178,"column":108}},"60":{"start":{"line":179,"column":4},"end":{"line":198,"column":6}},"61":{"start":{"line":202,"column":0},"end":{"line":202,"column":35}},"62":{"start":{"line":203,"column":0},"end":{"line":203,"column":41}},"63":{"start":{"line":204,"column":0},"end":{"line":204,"column":37}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":29,"column":2},"end":{"line":29,"column":3}},"loc":{"start":{"line":29,"column":21},"end":{"line":36,"column":3}},"line":29},"1":{"name":"(anonymous_1)","decl":{"start":{"line":38,"column":2},"end":{"line":38,"column":3}},"loc":{"start":{"line":38,"column":23},"end":{"line":45,"column":3}},"line":38},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":2},"end":{"line":47,"column":3}},"loc":{"start":{"line":47,"column":39},"end":{"line":54,"column":3}},"line":47},"3":{"name":"(anonymous_3)","decl":{"start":{"line":56,"column":2},"end":{"line":56,"column":3}},"loc":{"start":{"line":56,"column":22},"end":{"line":59,"column":3}},"line":56},"4":{"name":"(anonymous_4)","decl":{"start":{"line":61,"column":2},"end":{"line":61,"column":3}},"loc":{"start":{"line":61,"column":22},"end":{"line":66,"column":3}},"line":61},"5":{"name":"(anonymous_5)","decl":{"start":{"line":68,"column":2},"end":{"line":68,"column":3}},"loc":{"start":{"line":68,"column":19},"end":{"line":79,"column":3}},"line":68},"6":{"name":"(anonymous_6)","decl":{"start":{"line":70,"column":24},"end":{"line":70,"column":25}},"loc":{"start":{"line":70,"column":39},"end":{"line":78,"column":5}},"line":70},"7":{"name":"(anonymous_7)","decl":{"start":{"line":81,"column":2},"end":{"line":81,"column":3}},"loc":{"start":{"line":81,"column":23},"end":{"line":83,"column":3}},"line":81},"8":{"name":"(anonymous_8)","decl":{"start":{"line":82,"column":51},"end":{"line":82,"column":52}},"loc":{"start":{"line":82,"column":59},"end":{"line":82,"column":103}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":85,"column":33},"end":{"line":85,"column":34}},"loc":{"start":{"line":85,"column":41},"end":{"line":88,"column":3}},"line":85},"10":{"name":"(anonymous_10)","decl":{"start":{"line":85,"column":41},"end":{"line":85,"column":42}},"loc":{"start":{"line":85,"column":54},"end":{"line":88,"column":3}},"line":85},"11":{"name":"(anonymous_11)","decl":{"start":{"line":90,"column":2},"end":{"line":90,"column":3}},"loc":{"start":{"line":90,"column":36},"end":{"line":92,"column":3}},"line":90},"12":{"name":"(anonymous_12)","decl":{"start":{"line":94,"column":2},"end":{"line":94,"column":3}},"loc":{"start":{"line":94,"column":38},"end":{"line":96,"column":3}},"line":94},"13":{"name":"(anonymous_13)","decl":{"start":{"line":99,"column":21},"end":{"line":99,"column":22}},"loc":{"start":{"line":99,"column":32},"end":{"line":110,"column":3}},"line":99},"14":{"name":"(anonymous_14)","decl":{"start":{"line":102,"column":63},"end":{"line":102,"column":64}},"loc":{"start":{"line":102,"column":73},"end":{"line":105,"column":5}},"line":102},"15":{"name":"(anonymous_15)","decl":{"start":{"line":112,"column":17},"end":{"line":112,"column":18}},"loc":{"start":{"line":112,"column":37},"end":{"line":116,"column":3}},"line":112},"16":{"name":"(anonymous_16)","decl":{"start":{"line":118,"column":21},"end":{"line":118,"column":22}},"loc":{"start":{"line":118,"column":28},"end":{"line":124,"column":3}},"line":118},"17":{"name":"(anonymous_17)","decl":{"start":{"line":126,"column":21},"end":{"line":126,"column":22}},"loc":{"start":{"line":126,"column":40},"end":{"line":134,"column":3}},"line":126},"18":{"name":"(anonymous_18)","decl":{"start":{"line":136,"column":18},"end":{"line":136,"column":19}},"loc":{"start":{"line":136,"column":29},"end":{"line":149,"column":3}},"line":136},"19":{"name":"(anonymous_19)","decl":{"start":{"line":151,"column":16},"end":{"line":151,"column":17}},"loc":{"start":{"line":151,"column":22},"end":{"line":156,"column":3}},"line":151},"20":{"name":"(anonymous_20)","decl":{"start":{"line":158,"column":24},"end":{"line":158,"column":25}},"loc":{"start":{"line":158,"column":31},"end":{"line":167,"column":3}},"line":158},"21":{"name":"(anonymous_21)","decl":{"start":{"line":169,"column":14},"end":{"line":169,"column":15}},"loc":{"start":{"line":169,"column":23},"end":{"line":171,"column":3}},"line":169},"22":{"name":"(anonymous_22)","decl":{"start":{"line":173,"column":2},"end":{"line":173,"column":3}},"loc":{"start":{"line":173,"column":11},"end":{"line":199,"column":3}},"line":173}},"branchMap":{"0":{"loc":{"start":{"line":34,"column":12},"end":{"line":34,"column":34}},"type":"binary-expr","locations":[{"start":{"line":34,"column":12},"end":{"line":34,"column":28}},{"start":{"line":34,"column":32},"end":{"line":34,"column":34}}],"line":34},"1":{"loc":{"start":{"line":40,"column":4},"end":{"line":44,"column":5}},"type":"if","locations":[{"start":{"line":40,"column":4},"end":{"line":44,"column":5}},{"start":{"line":40,"column":4},"end":{"line":44,"column":5}}],"line":40},"2":{"loc":{"start":{"line":49,"column":4},"end":{"line":53,"column":5}},"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":53,"column":5}},{"start":{"line":49,"column":4},"end":{"line":53,"column":5}}],"line":49},"3":{"loc":{"start":{"line":49,"column":8},"end":{"line":49,"column":52}},"type":"binary-expr","locations":[{"start":{"line":49,"column":8},"end":{"line":49,"column":16}},{"start":{"line":49,"column":20},"end":{"line":49,"column":52}}],"line":49},"4":{"loc":{"start":{"line":87,"column":4},"end":{"line":87,"column":75}},"type":"binary-expr","locations":[{"start":{"line":87,"column":4},"end":{"line":87,"column":8}},{"start":{"line":87,"column":12},"end":{"line":87,"column":22}},{"start":{"line":87,"column":26},"end":{"line":87,"column":44}},{"start":{"line":87,"column":48},"end":{"line":87,"column":75}}],"line":87},"5":{"loc":{"start":{"line":102,"column":21},"end":{"line":105,"column":11}},"type":"cond-expr","locations":[{"start":{"line":102,"column":45},"end":{"line":105,"column":6}},{"start":{"line":105,"column":9},"end":{"line":105,"column":11}}],"line":102},"6":{"loc":{"start":{"line":115,"column":4},"end":{"line":115,"column":40}},"type":"binary-expr","locations":[{"start":{"line":115,"column":4},"end":{"line":115,"column":12}},{"start":{"line":115,"column":16},"end":{"line":115,"column":40}}],"line":115},"7":{"loc":{"start":{"line":133,"column":4},"end":{"line":133,"column":39}},"type":"binary-expr","locations":[{"start":{"line":133,"column":4},"end":{"line":133,"column":12}},{"start":{"line":133,"column":16},"end":{"line":133,"column":39}}],"line":133},"8":{"loc":{"start":{"line":137,"column":4},"end":{"line":148,"column":5}},"type":"switch","locations":[{"start":{"line":138,"column":6},"end":{"line":141,"column":14}},{"start":{"line":142,"column":6},"end":{"line":142,"column":24}},{"start":{"line":143,"column":6},"end":{"line":146,"column":14}},{"start":{"line":147,"column":6},"end":{"line":147,"column":14}}],"line":137},"9":{"loc":{"start":{"line":161,"column":4},"end":{"line":163,"column":5}},"type":"if","locations":[{"start":{"line":161,"column":4},"end":{"line":163,"column":5}},{"start":{"line":161,"column":4},"end":{"line":163,"column":5}}],"line":161},"10":{"loc":{"start":{"line":161,"column":8},"end":{"line":161,"column":54}},"type":"binary-expr","locations":[{"start":{"line":161,"column":8},"end":{"line":161,"column":25}},{"start":{"line":161,"column":29},"end":{"line":161,"column":54}}],"line":161},"11":{"loc":{"start":{"line":164,"column":4},"end":{"line":166,"column":5}},"type":"if","locations":[{"start":{"line":164,"column":4},"end":{"line":166,"column":5}},{"start":{"line":164,"column":4},"end":{"line":166,"column":5}}],"line":164},"12":{"loc":{"start":{"line":177,"column":25},"end":{"line":177,"column":85}},"type":"cond-expr","locations":[{"start":{"line":177,"column":36},"end":{"line":177,"column":61}},{"start":{"line":177,"column":64},"end":{"line":177,"column":85}}],"line":177},"13":{"loc":{"start":{"line":178,"column":74},"end":{"line":178,"column":105}},"type":"binary-expr","locations":[{"start":{"line":178,"column":74},"end":{"line":178,"column":78}},{"start":{"line":178,"column":82},"end":{"line":178,"column":105}}],"line":178},"14":{"loc":{"start":{"line":180,"column":25},"end":{"line":180,"column":40}},"type":"binary-expr","locations":[{"start":{"line":180,"column":25},"end":{"line":180,"column":34}},{"start":{"line":180,"column":38},"end":{"line":180,"column":40}}],"line":180}},"s":{"0":1,"1":1,"2":9,"3":9,"4":9,"5":9,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":4,"13":19,"14":19,"15":4,"16":4,"17":4,"18":0,"19":0,"20":4,"21":1,"22":1,"23":3,"24":1,"25":8,"26":8,"27":8,"28":24,"29":24,"30":8,"31":5,"32":5,"33":5,"34":3,"35":3,"36":3,"37":1,"38":1,"39":1,"40":2,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":5,"55":19,"56":19,"57":19,"58":19,"59":19,"60":19,"61":1,"62":1,"63":1},"f":{"0":9,"1":9,"2":0,"3":1,"4":4,"5":19,"6":4,"7":0,"8":0,"9":4,"10":1,"11":3,"12":1,"13":8,"14":24,"15":5,"16":3,"17":1,"18":2,"19":1,"20":0,"21":5,"22":19},"b":{"0":[9,9],"1":[0,9],"2":[0,0],"3":[0,0],"4":[1,0,0,0],"5":[4,4],"6":[5,1],"7":[1,1],"8":[1,1,1,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,19],"13":[19,17],"14":[19,14]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"0d1cfd0b361b369dbac220fc028730a16680c341"}
,"/Users/godfery/GitRepo/rsuite-autocomplete/src/component/AutoCompleteItem.js": {"path":"/Users/godfery/GitRepo/rsuite-autocomplete/src/component/AutoCompleteItem.js","statementMap":{"0":{"start":{"line":11,"column":18},"end":{"line":18,"column":1}},"1":{"start":{"line":22,"column":17},"end":{"line":22,"column":34}},"2":{"start":{"line":23,"column":4},"end":{"line":25,"column":5}},"3":{"start":{"line":24,"column":6},"end":{"line":24,"column":16}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":79}},"5":{"start":{"line":30,"column":30},"end":{"line":30,"column":40}},"6":{"start":{"line":31,"column":4},"end":{"line":31,"column":36}},"7":{"start":{"line":35,"column":24},"end":{"line":35,"column":34}},"8":{"start":{"line":36,"column":4},"end":{"line":36,"column":25}},"9":{"start":{"line":40,"column":26},"end":{"line":40,"column":36}},"10":{"start":{"line":41,"column":4},"end":{"line":58,"column":5}},"11":{"start":{"line":43,"column":8},"end":{"line":43,"column":72}},"12":{"start":{"line":44,"column":8},"end":{"line":44,"column":31}},"13":{"start":{"line":45,"column":8},"end":{"line":45,"column":14}},"14":{"start":{"line":47,"column":8},"end":{"line":47,"column":76}},"15":{"start":{"line":48,"column":8},"end":{"line":48,"column":31}},"16":{"start":{"line":49,"column":8},"end":{"line":49,"column":14}},"17":{"start":{"line":51,"column":8},"end":{"line":51,"column":27}},"18":{"start":{"line":52,"column":8},"end":{"line":52,"column":14}},"19":{"start":{"line":55,"column":8},"end":{"line":55,"column":27}},"20":{"start":{"line":56,"column":8},"end":{"line":56,"column":14}},"21":{"start":{"line":59,"column":4},"end":{"line":59,"column":34}},"22":{"start":{"line":63,"column":29},"end":{"line":63,"column":39}},"23":{"start":{"line":64,"column":18},"end":{"line":64,"column":58}},"24":{"start":{"line":65,"column":22},"end":{"line":67,"column":6}},"25":{"start":{"line":68,"column":21},"end":{"line":68,"column":69}},"26":{"start":{"line":69,"column":18},"end":{"line":69,"column":61}},"27":{"start":{"line":70,"column":4},"end":{"line":81,"column":6}},"28":{"start":{"line":85,"column":0},"end":{"line":85,"column":39}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":21,"column":2},"end":{"line":21,"column":3}},"loc":{"start":{"line":21,"column":22},"end":{"line":27,"column":3}},"line":21},"1":{"name":"(anonymous_1)","decl":{"start":{"line":29,"column":16},"end":{"line":29,"column":17}},"loc":{"start":{"line":29,"column":27},"end":{"line":32,"column":3}},"line":29},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":16},"end":{"line":34,"column":17}},"loc":{"start":{"line":34,"column":22},"end":{"line":37,"column":3}},"line":34},"3":{"name":"(anonymous_3)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":29},"end":{"line":60,"column":3}},"line":39},"4":{"name":"(anonymous_4)","decl":{"start":{"line":62,"column":2},"end":{"line":62,"column":3}},"loc":{"start":{"line":62,"column":11},"end":{"line":82,"column":3}},"line":62}},"branchMap":{"0":{"loc":{"start":{"line":23,"column":4},"end":{"line":25,"column":5}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":25,"column":5}},{"start":{"line":23,"column":4},"end":{"line":25,"column":5}}],"line":23},"1":{"loc":{"start":{"line":31,"column":4},"end":{"line":31,"column":35}},"type":"binary-expr","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":11}},{"start":{"line":31,"column":15},"end":{"line":31,"column":35}}],"line":31},"2":{"loc":{"start":{"line":36,"column":4},"end":{"line":36,"column":24}},"type":"binary-expr","locations":[{"start":{"line":36,"column":4},"end":{"line":36,"column":11}},{"start":{"line":36,"column":15},"end":{"line":36,"column":24}}],"line":36},"3":{"loc":{"start":{"line":41,"column":4},"end":{"line":58,"column":5}},"type":"switch","locations":[{"start":{"line":42,"column":6},"end":{"line":45,"column":14}},{"start":{"line":46,"column":6},"end":{"line":49,"column":14}},{"start":{"line":50,"column":6},"end":{"line":52,"column":14}},{"start":{"line":53,"column":6},"end":{"line":53,"column":24}},{"start":{"line":54,"column":6},"end":{"line":56,"column":14}},{"start":{"line":57,"column":6},"end":{"line":57,"column":14}}],"line":41},"4":{"loc":{"start":{"line":59,"column":4},"end":{"line":59,"column":33}},"type":"binary-expr","locations":[{"start":{"line":59,"column":4},"end":{"line":59,"column":13}},{"start":{"line":59,"column":17},"end":{"line":59,"column":33}}],"line":59},"5":{"loc":{"start":{"line":68,"column":21},"end":{"line":68,"column":69}},"type":"cond-expr","locations":[{"start":{"line":68,"column":43},"end":{"line":68,"column":62}},{"start":{"line":68,"column":65},"end":{"line":68,"column":69}}],"line":68},"6":{"loc":{"start":{"line":69,"column":18},"end":{"line":69,"column":61}},"type":"cond-expr","locations":[{"start":{"line":69,"column":31},"end":{"line":69,"column":55}},{"start":{"line":69,"column":59},"end":{"line":69,"column":61}}],"line":69},"7":{"loc":{"start":{"line":69,"column":31},"end":{"line":69,"column":55}},"type":"binary-expr","locations":[{"start":{"line":69,"column":31},"end":{"line":69,"column":47}},{"start":{"line":69,"column":51},"end":{"line":69,"column":55}}],"line":69}},"s":{"0":2,"1":2,"2":2,"3":0,"4":2,"5":3,"6":3,"7":2,"8":2,"9":5,"10":5,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":2,"20":2,"21":5,"22":10,"23":10,"24":10,"25":10,"26":10,"27":10,"28":2},"f":{"0":2,"1":3,"2":2,"3":5,"4":10},"b":{"0":[0,2],"1":[3,3],"2":[2,2],"3":[1,1,1,1,2,0],"4":[5,5],"5":[0,10],"6":[0,10],"7":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"3aac9dcbb23ac03895d4b4c7515374fc0dc3452c"}
,"/Users/godfery/GitRepo/rsuite-autocomplete/src/component/AutoCompleteItem.js": {"path":"/Users/godfery/GitRepo/rsuite-autocomplete/src/component/AutoCompleteItem.js","statementMap":{"0":{"start":{"line":11,"column":18},"end":{"line":18,"column":1}},"1":{"start":{"line":22,"column":17},"end":{"line":22,"column":34}},"2":{"start":{"line":23,"column":4},"end":{"line":25,"column":5}},"3":{"start":{"line":24,"column":6},"end":{"line":24,"column":16}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":79}},"5":{"start":{"line":30,"column":30},"end":{"line":30,"column":40}},"6":{"start":{"line":31,"column":4},"end":{"line":31,"column":36}},"7":{"start":{"line":35,"column":24},"end":{"line":35,"column":34}},"8":{"start":{"line":36,"column":4},"end":{"line":36,"column":30}},"9":{"start":{"line":40,"column":26},"end":{"line":40,"column":36}},"10":{"start":{"line":41,"column":4},"end":{"line":58,"column":5}},"11":{"start":{"line":43,"column":8},"end":{"line":43,"column":72}},"12":{"start":{"line":44,"column":8},"end":{"line":44,"column":31}},"13":{"start":{"line":45,"column":8},"end":{"line":45,"column":14}},"14":{"start":{"line":47,"column":8},"end":{"line":47,"column":76}},"15":{"start":{"line":48,"column":8},"end":{"line":48,"column":31}},"16":{"start":{"line":49,"column":8},"end":{"line":49,"column":14}},"17":{"start":{"line":51,"column":8},"end":{"line":51,"column":32}},"18":{"start":{"line":52,"column":8},"end":{"line":52,"column":14}},"19":{"start":{"line":55,"column":8},"end":{"line":55,"column":32}},"20":{"start":{"line":56,"column":8},"end":{"line":56,"column":14}},"21":{"start":{"line":59,"column":4},"end":{"line":59,"column":34}},"22":{"start":{"line":63,"column":29},"end":{"line":63,"column":39}},"23":{"start":{"line":64,"column":18},"end":{"line":64,"column":58}},"24":{"start":{"line":65,"column":22},"end":{"line":67,"column":6}},"25":{"start":{"line":68,"column":21},"end":{"line":68,"column":69}},"26":{"start":{"line":69,"column":18},"end":{"line":69,"column":61}},"27":{"start":{"line":70,"column":4},"end":{"line":81,"column":6}},"28":{"start":{"line":85,"column":0},"end":{"line":85,"column":39}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":21,"column":2},"end":{"line":21,"column":3}},"loc":{"start":{"line":21,"column":22},"end":{"line":27,"column":3}},"line":21},"1":{"name":"(anonymous_1)","decl":{"start":{"line":29,"column":16},"end":{"line":29,"column":17}},"loc":{"start":{"line":29,"column":27},"end":{"line":32,"column":3}},"line":29},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":16},"end":{"line":34,"column":17}},"loc":{"start":{"line":34,"column":27},"end":{"line":37,"column":3}},"line":34},"3":{"name":"(anonymous_3)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":29},"end":{"line":60,"column":3}},"line":39},"4":{"name":"(anonymous_4)","decl":{"start":{"line":62,"column":2},"end":{"line":62,"column":3}},"loc":{"start":{"line":62,"column":11},"end":{"line":82,"column":3}},"line":62}},"branchMap":{"0":{"loc":{"start":{"line":23,"column":4},"end":{"line":25,"column":5}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":25,"column":5}},{"start":{"line":23,"column":4},"end":{"line":25,"column":5}}],"line":23},"1":{"loc":{"start":{"line":31,"column":4},"end":{"line":31,"column":35}},"type":"binary-expr","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":11}},{"start":{"line":31,"column":15},"end":{"line":31,"column":35}}],"line":31},"2":{"loc":{"start":{"line":36,"column":4},"end":{"line":36,"column":29}},"type":"binary-expr","locations":[{"start":{"line":36,"column":4},"end":{"line":36,"column":11}},{"start":{"line":36,"column":15},"end":{"line":36,"column":29}}],"line":36},"3":{"loc":{"start":{"line":41,"column":4},"end":{"line":58,"column":5}},"type":"switch","locations":[{"start":{"line":42,"column":6},"end":{"line":45,"column":14}},{"start":{"line":46,"column":6},"end":{"line":49,"column":14}},{"start":{"line":50,"column":6},"end":{"line":52,"column":14}},{"start":{"line":53,"column":6},"end":{"line":53,"column":24}},{"start":{"line":54,"column":6},"end":{"line":56,"column":14}},{"start":{"line":57,"column":6},"end":{"line":57,"column":14}}],"line":41},"4":{"loc":{"start":{"line":59,"column":4},"end":{"line":59,"column":33}},"type":"binary-expr","locations":[{"start":{"line":59,"column":4},"end":{"line":59,"column":13}},{"start":{"line":59,"column":17},"end":{"line":59,"column":33}}],"line":59},"5":{"loc":{"start":{"line":68,"column":21},"end":{"line":68,"column":69}},"type":"cond-expr","locations":[{"start":{"line":68,"column":43},"end":{"line":68,"column":62}},{"start":{"line":68,"column":65},"end":{"line":68,"column":69}}],"line":68},"6":{"loc":{"start":{"line":69,"column":18},"end":{"line":69,"column":61}},"type":"cond-expr","locations":[{"start":{"line":69,"column":31},"end":{"line":69,"column":55}},{"start":{"line":69,"column":59},"end":{"line":69,"column":61}}],"line":69},"7":{"loc":{"start":{"line":69,"column":31},"end":{"line":69,"column":55}},"type":"binary-expr","locations":[{"start":{"line":69,"column":31},"end":{"line":69,"column":47}},{"start":{"line":69,"column":51},"end":{"line":69,"column":55}}],"line":69}},"s":{"0":2,"1":2,"2":2,"3":0,"4":2,"5":3,"6":3,"7":2,"8":2,"9":5,"10":5,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":2,"20":2,"21":5,"22":10,"23":10,"24":10,"25":10,"26":10,"27":10,"28":2},"f":{"0":2,"1":3,"2":2,"3":5,"4":10},"b":{"0":[0,2],"1":[3,3],"2":[2,2],"3":[1,1,1,1,2,0],"4":[5,5],"5":[0,10],"6":[0,10],"7":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"589de843d4cf209ac2be8e4b1562fcf98f4581c9"}
,"/Users/godfery/GitRepo/rsuite-autocomplete/src/utils/getItemsAndActiveIndex.js": {"path":"/Users/godfery/GitRepo/rsuite-autocomplete/src/utils/getItemsAndActiveIndex.js","statementMap":{"0":{"start":{"line":1,"column":31},"end":{"line":7,"column":1}},"1":{"start":{"line":2,"column":22},"end":{"line":2,"column":68}},"2":{"start":{"line":3,"column":2},"end":{"line":6,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":31},"end":{"line":1,"column":32}},"loc":{"start":{"line":1,"column":51},"end":{"line":7,"column":1}},"line":1}},"branchMap":{},"s":{"0":2,"1":3,"2":3},"f":{"0":3},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"cd9b58a64a4bcf2a401dc3ed4b2dd6dff61701e2"}
,"/Users/godfery/GitRepo/rsuite-autocomplete/src/utils/moveFocus.js": {"path":"/Users/godfery/GitRepo/rsuite-autocomplete/src/utils/moveFocus.js","statementMap":{"0":{"start":{"line":1,"column":29},"end":{"line":8,"column":1}},"1":{"start":{"line":1,"column":42},"end":{"line":8,"column":1}},"2":{"start":{"line":2,"column":36},"end":{"line":2,"column":55}},"3":{"start":{"line":3,"column":2},"end":{"line":5,"column":3}},"4":{"start":{"line":4,"column":4},"end":{"line":4,"column":11}},"5":{"start":{"line":6,"column":16},"end":{"line":6,"column":48}},"6":{"start":{"line":7,"column":2},"end":{"line":7,"column":45}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":108}},"8":{"start":{"line":10,"column":50},"end":{"line":10,"column":107}},"9":{"start":{"line":11,"column":26},"end":{"line":11,"column":112}},"10":{"start":{"line":11,"column":54},"end":{"line":11,"column":111}},"11":{"start":{"line":13,"column":22},"end":{"line":13,"column":57}},"12":{"start":{"line":14,"column":26},"end":{"line":14,"column":65}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":29},"end":{"line":1,"column":30}},"loc":{"start":{"line":1,"column":42},"end":{"line":8,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":1,"column":42},"end":{"line":1,"column":43}},"loc":{"start":{"line":1,"column":72},"end":{"line":8,"column":1}},"line":1},"2":{"name":"(anonymous_2)","decl":{"start":{"line":10,"column":22},"end":{"line":10,"column":23}},"loc":{"start":{"line":10,"column":50},"end":{"line":10,"column":107}},"line":10},"3":{"name":"(anonymous_3)","decl":{"start":{"line":11,"column":26},"end":{"line":11,"column":27}},"loc":{"start":{"line":11,"column":54},"end":{"line":11,"column":111}},"line":11}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":67}},"type":"default-arg","locations":[{"start":{"line":1,"column":65},"end":{"line":1,"column":67}}],"line":1},"1":{"loc":{"start":{"line":3,"column":2},"end":{"line":5,"column":3}},"type":"if","locations":[{"start":{"line":3,"column":2},"end":{"line":5,"column":3}},{"start":{"line":3,"column":2},"end":{"line":5,"column":3}}],"line":3},"2":{"loc":{"start":{"line":7,"column":2},"end":{"line":7,"column":44}},"type":"binary-expr","locations":[{"start":{"line":7,"column":2},"end":{"line":7,"column":17}},{"start":{"line":7,"column":21},"end":{"line":7,"column":44}}],"line":7},"3":{"loc":{"start":{"line":10,"column":50},"end":{"line":10,"column":107}},"type":"cond-expr","locations":[{"start":{"line":10,"column":88},"end":{"line":10,"column":89}},{"start":{"line":10,"column":92},"end":{"line":10,"column":107}}],"line":10},"4":{"loc":{"start":{"line":11,"column":54},"end":{"line":11,"column":111}},"type":"cond-expr","locations":[{"start":{"line":11,"column":74},"end":{"line":11,"column":93}},{"start":{"line":11,"column":96},"end":{"line":11,"column":111}}],"line":11}},"s":{"0":2,"1":4,"2":3,"3":3,"4":0,"5":3,"6":3,"7":2,"8":2,"9":2,"10":1,"11":2,"12":2},"f":{"0":4,"1":3,"2":2,"3":1},"b":{"0":[0],"1":[0,3],"2":[3,2],"3":[0,2],"4":[0,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"f5d4974f7fade1b6ad46b19a486d9026a93b13ca"}
}

@@ -8,2 +8,4 @@ ## API

|placeholder|`String`|--|输入框的占位符|
|value|`String`|--|设置值`受控`|
|defaultValue|`String`|--|设置默认值|
|dataSource|[AutoComplete.Item][AutoCompleteItemTypeLink][]|--| `Autocomplete`的数据源 |

@@ -10,0 +12,0 @@ |disabled|`Bool`|--|是否禁用选择|

@@ -91,3 +91,4 @@ 'use strict';

onChange: _propTypes2.default.func,
value: _propTypes2.default.string
value: _propTypes2.default.string,
defaultValue: _propTypes2.default.string
}; /* eslint-disable react/no-find-dom-node */

@@ -205,3 +206,3 @@

show: true,
text: _this.props.value || ''
text: _this.props.value || _this.props.defaultValue || ''
};

@@ -225,3 +226,4 @@ return _this;

value: function componentWillReceiveProps(nextProps) {
var children = nextProps.children;
var children = nextProps.children,
value = nextProps.value;

@@ -233,2 +235,8 @@ if (children && this.state.children !== children) {

}
if (this.props.value !== value) {
this.setState({
value: value
});
}
}

@@ -235,0 +243,0 @@ }, {

{
"name": "rsuite-autocomplete",
"version": "2.0.2",
"version": "2.1.0",
"description": "",

@@ -90,3 +90,8 @@ "main": "./lib/main.js",

"includes-loader": "^0.1.0",
"istanbul": "^0.4.5",
"istanbul-api": "1.2.2",
"istanbul-lib-report": "^1.1.3",
"istanbul-reports": "1.1.4",
"jest": "^21.2.1",
"jest-cli": "^21.2.1",
"json-loader": "^0.5.4",

@@ -93,0 +98,0 @@ "less": "^2.7.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc