react-dropzone
Advanced tools
Comparing version 3.7.4 to 3.8.0
{"/home/travis/build/okonet/react-dropzone/testSetup.js": {"path":"/home/travis/build/okonet/react-dropzone/testSetup.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":7,"column":2}},"1":{"start":{"line":5,"column":4},"end":{"line":5,"column":32}}},"fnMap":{"0":{"name":"createObjectURL","decl":{"start":{"line":4,"column":28},"end":{"line":4,"column":43}},"loc":{"start":{"line":4,"column":49},"end":{"line":6,"column":3}}}},"branchMap":{},"s":{"0":2,"1":27},"f":{"0":27},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"661c05d8c942d2cf57f883e0eb2d89121472daf8"} | ||
,"/home/travis/build/okonet/react-dropzone/src/getDataTransferItems.js": {"path":"/home/travis/build/okonet/react-dropzone/src/getDataTransferItems.js","statementMap":{"0":{"start":{"line":2,"column":30},"end":{"line":2,"column":32}},"1":{"start":{"line":3,"column":2},"end":{"line":14,"column":3}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":33}},"3":{"start":{"line":5,"column":4},"end":{"line":11,"column":5}},"4":{"start":{"line":6,"column":6},"end":{"line":6,"column":39}},"5":{"start":{"line":7,"column":11},"end":{"line":11,"column":5}},"6":{"start":{"line":10,"column":6},"end":{"line":10,"column":39}},"7":{"start":{"line":12,"column":9},"end":{"line":14,"column":3}},"8":{"start":{"line":13,"column":4},"end":{"line":13,"column":47}},"9":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"10":{"start":{"line":17,"column":4},"end":{"line":17,"column":99}},"11":{"start":{"line":21,"column":2},"end":{"line":21,"column":59}}},"fnMap":{"0":{"name":"getDataTransferFiles","decl":{"start":{"line":1,"column":24},"end":{"line":1,"column":44}},"loc":{"start":{"line":1,"column":78},"end":{"line":22,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":76}},"type":"default-arg","locations":[{"start":{"line":1,"column":72},"end":{"line":1,"column":76}}]},"1":{"loc":{"start":{"line":3,"column":2},"end":{"line":14,"column":3}},"type":"if","locations":[{"start":{"line":3,"column":2},"end":{"line":14,"column":3}},{"start":{"line":3,"column":2},"end":{"line":14,"column":3}}]},"2":{"loc":{"start":{"line":5,"column":4},"end":{"line":11,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":11,"column":5}},{"start":{"line":5,"column":4},"end":{"line":11,"column":5}}]},"3":{"loc":{"start":{"line":7,"column":11},"end":{"line":11,"column":5}},"type":"if","locations":[{"start":{"line":7,"column":11},"end":{"line":11,"column":5}},{"start":{"line":7,"column":11},"end":{"line":11,"column":5}}]},"4":{"loc":{"start":{"line":12,"column":9},"end":{"line":14,"column":3}},"type":"if","locations":[{"start":{"line":12,"column":9},"end":{"line":14,"column":3}},{"start":{"line":12,"column":9},"end":{"line":14,"column":3}}]},"5":{"loc":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},{"start":{"line":16,"column":2},"end":{"line":18,"column":3}}]},"6":{"loc":{"start":{"line":17,"column":28},"end":{"line":17,"column":98}},"type":"cond-expr","locations":[{"start":{"line":17,"column":48},"end":{"line":17,"column":69}},{"start":{"line":17,"column":72},"end":{"line":17,"column":98}}]}},"s":{"0":39,"1":39,"2":37,"3":37,"4":34,"5":3,"6":3,"7":2,"8":1,"9":39,"10":37,"11":39},"f":{"0":39},"b":{"0":[5],"1":[37,2],"2":[34,3],"3":[3,0],"4":[1,1],"5":[37,2],"6":[33,4]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"14bf354c84667746a523a6541d209ff2ba484a32"} | ||
,"/home/travis/build/okonet/react-dropzone/src/index.js": {"path":"/home/travis/build/okonet/react-dropzone/src/index.js","statementMap":{"0":{"start":{"line":6,"column":24},"end":{"line":8,"column":6}},"1":{"start":{"line":12,"column":4},"end":{"line":12,"column":26}},"2":{"start":{"line":13,"column":4},"end":{"line":13,"column":43}},"3":{"start":{"line":14,"column":4},"end":{"line":14,"column":51}},"4":{"start":{"line":15,"column":4},"end":{"line":15,"column":51}},"5":{"start":{"line":16,"column":4},"end":{"line":16,"column":51}},"6":{"start":{"line":17,"column":4},"end":{"line":17,"column":49}},"7":{"start":{"line":18,"column":4},"end":{"line":18,"column":41}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":65}},"9":{"start":{"line":20,"column":4},"end":{"line":20,"column":53}},"10":{"start":{"line":21,"column":4},"end":{"line":21,"column":36}},"11":{"start":{"line":22,"column":4},"end":{"line":24,"column":6}},"12":{"start":{"line":28,"column":4},"end":{"line":28,"column":26}},"13":{"start":{"line":30,"column":4},"end":{"line":30,"column":52}},"14":{"start":{"line":35,"column":4},"end":{"line":35,"column":33}},"15":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"16":{"start":{"line":40,"column":6},"end":{"line":40,"column":43}},"17":{"start":{"line":45,"column":4},"end":{"line":45,"column":23}},"18":{"start":{"line":48,"column":4},"end":{"line":48,"column":24}},"19":{"start":{"line":50,"column":29},"end":{"line":50,"column":96}},"20":{"start":{"line":52,"column":4},"end":{"line":55,"column":7}},"21":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"22":{"start":{"line":58,"column":6},"end":{"line":58,"column":43}},"23":{"start":{"line":63,"column":4},"end":{"line":63,"column":23}},"24":{"start":{"line":64,"column":4},"end":{"line":64,"column":24}},"25":{"start":{"line":65,"column":4},"end":{"line":69,"column":5}},"26":{"start":{"line":66,"column":6},"end":{"line":66,"column":41}},"27":{"start":{"line":70,"column":4},"end":{"line":70,"column":17}},"28":{"start":{"line":74,"column":4},"end":{"line":74,"column":23}},"29":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"30":{"start":{"line":78,"column":6},"end":{"line":78,"column":13}},"31":{"start":{"line":81,"column":4},"end":{"line":84,"column":7}},"32":{"start":{"line":86,"column":4},"end":{"line":88,"column":5}},"33":{"start":{"line":87,"column":6},"end":{"line":87,"column":43}},"34":{"start":{"line":92,"column":81},"end":{"line":92,"column":91}},"35":{"start":{"line":93,"column":21},"end":{"line":93,"column":54}},"36":{"start":{"line":94,"column":26},"end":{"line":94,"column":28}},"37":{"start":{"line":95,"column":26},"end":{"line":95,"column":28}},"38":{"start":{"line":98,"column":4},"end":{"line":98,"column":23}},"39":{"start":{"line":101,"column":4},"end":{"line":101,"column":26}},"40":{"start":{"line":102,"column":4},"end":{"line":102,"column":36}},"41":{"start":{"line":104,"column":4},"end":{"line":114,"column":7}},"42":{"start":{"line":105,"column":6},"end":{"line":107,"column":7}},"43":{"start":{"line":106,"column":8},"end":{"line":106,"column":56}},"44":{"start":{"line":109,"column":6},"end":{"line":113,"column":7}},"45":{"start":{"line":110,"column":8},"end":{"line":110,"column":33}},"46":{"start":{"line":112,"column":8},"end":{"line":112,"column":33}},"47":{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},"48":{"start":{"line":117,"column":6},"end":{"line":117,"column":57}},"49":{"start":{"line":120,"column":4},"end":{"line":122,"column":5}},"50":{"start":{"line":121,"column":6},"end":{"line":121,"column":50}},"51":{"start":{"line":124,"column":4},"end":{"line":126,"column":5}},"52":{"start":{"line":125,"column":6},"end":{"line":125,"column":50}},"53":{"start":{"line":129,"column":4},"end":{"line":132,"column":7}},"54":{"start":{"line":136,"column":4},"end":{"line":138,"column":5}},"55":{"start":{"line":137,"column":6},"end":{"line":137,"column":18}},"56":{"start":{"line":143,"column":35},"end":{"line":143,"column":45}},"57":{"start":{"line":144,"column":28},"end":{"line":144,"column":32}},"58":{"start":{"line":145,"column":33},"end":{"line":145,"column":37}},"59":{"start":{"line":148,"column":4},"end":{"line":157,"column":5}},"60":{"start":{"line":149,"column":6},"end":{"line":156,"column":14}},"61":{"start":{"line":151,"column":25},"end":{"line":151,"column":42}},"62":{"start":{"line":152,"column":8},"end":{"line":155,"column":9}},"63":{"start":{"line":153,"column":10},"end":{"line":153,"column":37}},"64":{"start":{"line":154,"column":10},"end":{"line":154,"column":31}},"65":{"start":{"line":161,"column":4},"end":{"line":161,"column":44}},"66":{"start":{"line":165,"column":4},"end":{"line":165,"column":78}},"67":{"start":{"line":169,"column":4},"end":{"line":169,"column":42}},"68":{"start":{"line":173,"column":4},"end":{"line":173,"column":35}},"69":{"start":{"line":174,"column":4},"end":{"line":174,"column":34}},"70":{"start":{"line":175,"column":4},"end":{"line":175,"column":29}},"71":{"start":{"line":187,"column":8},"end":{"line":187,"column":18}},"72":{"start":{"line":195,"column":8},"end":{"line":195,"column":12}},"73":{"start":{"line":197,"column":43},"end":{"line":197,"column":53}},"74":{"start":{"line":199,"column":4},"end":{"line":199,"column":32}},"75":{"start":{"line":201,"column":4},"end":{"line":203,"column":5}},"76":{"start":{"line":202,"column":6},"end":{"line":202,"column":41}},"77":{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},"78":{"start":{"line":205,"column":6},"end":{"line":205,"column":41}},"79":{"start":{"line":208,"column":4},"end":{"line":225,"column":5}},"80":{"start":{"line":209,"column":6},"end":{"line":216,"column":8}},"81":{"start":{"line":217,"column":6},"end":{"line":220,"column":8}},"82":{"start":{"line":221,"column":6},"end":{"line":224,"column":8}},"83":{"start":{"line":228,"column":4},"end":{"line":242,"column":5}},"84":{"start":{"line":229,"column":6},"end":{"line":232,"column":8}},"85":{"start":{"line":233,"column":11},"end":{"line":242,"column":5}},"86":{"start":{"line":234,"column":6},"end":{"line":237,"column":8}},"87":{"start":{"line":239,"column":6},"end":{"line":241,"column":8}},"88":{"start":{"line":244,"column":28},"end":{"line":251,"column":5}},"89":{"start":{"line":249,"column":17},"end":{"line":249,"column":38}},"90":{"start":{"line":253,"column":4},"end":{"line":255,"column":5}},"91":{"start":{"line":254,"column":6},"end":{"line":254,"column":34}},"92":{"start":{"line":258,"column":24},"end":{"line":267,"column":5}},"93":{"start":{"line":268,"column":21},"end":{"line":268,"column":33}},"94":{"start":{"line":269,"column":4},"end":{"line":269,"column":55}},"95":{"start":{"line":269,"column":32},"end":{"line":269,"column":53}},"96":{"start":{"line":271,"column":4},"end":{"line":289,"column":6}},"97":{"start":{"line":293,"column":0},"end":{"line":299,"column":2}},"98":{"start":{"line":301,"column":0},"end":{"line":330,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":2},"end":{"line":11,"column":3}},"loc":{"start":{"line":11,"column":30},"end":{"line":25,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":27,"column":2},"end":{"line":27,"column":3}},"loc":{"start":{"line":27,"column":22},"end":{"line":31,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":33,"column":2},"end":{"line":33,"column":3}},"loc":{"start":{"line":33,"column":25},"end":{"line":36,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":38,"column":2},"end":{"line":38,"column":3}},"loc":{"start":{"line":38,"column":17},"end":{"line":42,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":44,"column":2},"end":{"line":44,"column":3}},"loc":{"start":{"line":44,"column":17},"end":{"line":60,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":62,"column":2},"end":{"line":62,"column":3}},"loc":{"start":{"line":62,"column":16},"end":{"line":71,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":73,"column":2},"end":{"line":73,"column":3}},"loc":{"start":{"line":73,"column":17},"end":{"line":89,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":91,"column":2},"end":{"line":91,"column":3}},"loc":{"start":{"line":91,"column":12},"end":{"line":133,"column":3}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":104,"column":21},"end":{"line":104,"column":22}},"loc":{"start":{"line":104,"column":31},"end":{"line":114,"column":5}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":135,"column":2},"end":{"line":135,"column":3}},"loc":{"start":{"line":135,"column":12},"end":{"line":139,"column":3}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":141,"column":2},"end":{"line":141,"column":3}},"loc":{"start":{"line":141,"column":23},"end":{"line":158,"column":3}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":149,"column":17},"end":{"line":149,"column":18}},"loc":{"start":{"line":149,"column":23},"end":{"line":156,"column":7}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":160,"column":2},"end":{"line":160,"column":3}},"loc":{"start":{"line":160,"column":21},"end":{"line":162,"column":3}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":164,"column":2},"end":{"line":164,"column":3}},"loc":{"start":{"line":164,"column":22},"end":{"line":166,"column":3}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":168,"column":2},"end":{"line":168,"column":3}},"loc":{"start":{"line":168,"column":26},"end":{"line":170,"column":3}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":172,"column":2},"end":{"line":172,"column":3}},"loc":{"start":{"line":172,"column":9},"end":{"line":176,"column":3}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":178,"column":2},"end":{"line":178,"column":3}},"loc":{"start":{"line":178,"column":11},"end":{"line":290,"column":3}}},"17":{"name":"(anonymous_17)","decl":{"start":{"line":249,"column":11},"end":{"line":249,"column":12}},"loc":{"start":{"line":249,"column":17},"end":{"line":249,"column":38}}},"18":{"name":"(anonymous_18)","decl":{"start":{"line":269,"column":24},"end":{"line":269,"column":25}},"loc":{"start":{"line":269,"column":32},"end":{"line":269,"column":53}}}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":24},"end":{"line":8,"column":6}},"type":"cond-expr","locations":[{"start":{"line":7,"column":2},"end":{"line":7,"column":47}},{"start":{"line":8,"column":2},"end":{"line":8,"column":6}}]},"1":{"loc":{"start":{"line":6,"column":25},"end":{"line":6,"column":94}},"type":"binary-expr","locations":[{"start":{"line":6,"column":25},"end":{"line":6,"column":56}},{"start":{"line":6,"column":60},"end":{"line":6,"column":68}},{"start":{"line":6,"column":72},"end":{"line":6,"column":94}}]},"2":{"loc":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},{"start":{"line":39,"column":4},"end":{"line":41,"column":5}}]},"3":{"loc":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},{"start":{"line":57,"column":4},"end":{"line":59,"column":5}}]},"4":{"loc":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"type":"if","locations":[{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},{"start":{"line":77,"column":4},"end":{"line":79,"column":5}}]},"5":{"loc":{"start":{"line":86,"column":4},"end":{"line":88,"column":5}},"type":"if","locations":[{"start":{"line":86,"column":4},"end":{"line":88,"column":5}},{"start":{"line":86,"column":4},"end":{"line":88,"column":5}}]},"6":{"loc":{"start":{"line":105,"column":6},"end":{"line":107,"column":7}},"type":"if","locations":[{"start":{"line":105,"column":6},"end":{"line":107,"column":7}},{"start":{"line":105,"column":6},"end":{"line":107,"column":7}}]},"7":{"loc":{"start":{"line":105,"column":10},"end":{"line":105,"column":53}},"type":"binary-expr","locations":[{"start":{"line":105,"column":10},"end":{"line":105,"column":25}},{"start":{"line":105,"column":29},"end":{"line":105,"column":53}}]},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":113,"column":7}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":113,"column":7}},{"start":{"line":109,"column":6},"end":{"line":113,"column":7}}]},"9":{"loc":{"start":{"line":109,"column":10},"end":{"line":109,"column":61}},"type":"binary-expr","locations":[{"start":{"line":109,"column":10},"end":{"line":109,"column":33}},{"start":{"line":109,"column":37},"end":{"line":109,"column":61}}]},"10":{"loc":{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},"type":"if","locations":[{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},{"start":{"line":116,"column":4},"end":{"line":118,"column":5}}]},"11":{"loc":{"start":{"line":120,"column":4},"end":{"line":122,"column":5}},"type":"if","locations":[{"start":{"line":120,"column":4},"end":{"line":122,"column":5}},{"start":{"line":120,"column":4},"end":{"line":122,"column":5}}]},"12":{"loc":{"start":{"line":120,"column":8},"end":{"line":120,"column":50}},"type":"binary-expr","locations":[{"start":{"line":120,"column":8},"end":{"line":120,"column":32}},{"start":{"line":120,"column":36},"end":{"line":120,"column":50}}]},"13":{"loc":{"start":{"line":124,"column":4},"end":{"line":126,"column":5}},"type":"if","locations":[{"start":{"line":124,"column":4},"end":{"line":126,"column":5}},{"start":{"line":124,"column":4},"end":{"line":126,"column":5}}]},"14":{"loc":{"start":{"line":124,"column":8},"end":{"line":124,"column":50}},"type":"binary-expr","locations":[{"start":{"line":124,"column":8},"end":{"line":124,"column":32}},{"start":{"line":124,"column":36},"end":{"line":124,"column":50}}]},"15":{"loc":{"start":{"line":136,"column":4},"end":{"line":138,"column":5}},"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":138,"column":5}},{"start":{"line":136,"column":4},"end":{"line":138,"column":5}}]},"16":{"loc":{"start":{"line":148,"column":4},"end":{"line":157,"column":5}},"type":"if","locations":[{"start":{"line":148,"column":4},"end":{"line":157,"column":5}},{"start":{"line":148,"column":4},"end":{"line":157,"column":5}}]},"17":{"loc":{"start":{"line":148,"column":8},"end":{"line":148,"column":48}},"type":"binary-expr","locations":[{"start":{"line":148,"column":8},"end":{"line":148,"column":26}},{"start":{"line":148,"column":30},"end":{"line":148,"column":48}}]},"18":{"loc":{"start":{"line":152,"column":8},"end":{"line":155,"column":9}},"type":"if","locations":[{"start":{"line":152,"column":8},"end":{"line":155,"column":9}},{"start":{"line":152,"column":8},"end":{"line":155,"column":9}}]},"19":{"loc":{"start":{"line":165,"column":11},"end":{"line":165,"column":77}},"type":"binary-expr","locations":[{"start":{"line":165,"column":11},"end":{"line":165,"column":42}},{"start":{"line":165,"column":46},"end":{"line":165,"column":77}}]},"20":{"loc":{"start":{"line":199,"column":16},"end":{"line":199,"column":31}},"type":"binary-expr","locations":[{"start":{"line":199,"column":16},"end":{"line":199,"column":25}},{"start":{"line":199,"column":29},"end":{"line":199,"column":31}}]},"21":{"loc":{"start":{"line":201,"column":4},"end":{"line":203,"column":5}},"type":"if","locations":[{"start":{"line":201,"column":4},"end":{"line":203,"column":5}},{"start":{"line":201,"column":4},"end":{"line":203,"column":5}}]},"22":{"loc":{"start":{"line":201,"column":8},"end":{"line":201,"column":39}},"type":"binary-expr","locations":[{"start":{"line":201,"column":8},"end":{"line":201,"column":20}},{"start":{"line":201,"column":24},"end":{"line":201,"column":39}}]},"23":{"loc":{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},{"start":{"line":204,"column":4},"end":{"line":206,"column":5}}]},"24":{"loc":{"start":{"line":204,"column":8},"end":{"line":204,"column":39}},"type":"binary-expr","locations":[{"start":{"line":204,"column":8},"end":{"line":204,"column":20}},{"start":{"line":204,"column":24},"end":{"line":204,"column":39}}]},"25":{"loc":{"start":{"line":208,"column":4},"end":{"line":225,"column":5}},"type":"if","locations":[{"start":{"line":208,"column":4},"end":{"line":225,"column":5}},{"start":{"line":208,"column":4},"end":{"line":225,"column":5}}]},"26":{"loc":{"start":{"line":208,"column":8},"end":{"line":208,"column":60}},"type":"binary-expr","locations":[{"start":{"line":208,"column":8},"end":{"line":208,"column":18}},{"start":{"line":208,"column":22},"end":{"line":208,"column":28}},{"start":{"line":208,"column":32},"end":{"line":208,"column":44}},{"start":{"line":208,"column":48},"end":{"line":208,"column":60}}]},"27":{"loc":{"start":{"line":228,"column":4},"end":{"line":242,"column":5}},"type":"if","locations":[{"start":{"line":228,"column":4},"end":{"line":242,"column":5}},{"start":{"line":228,"column":4},"end":{"line":242,"column":5}}]},"28":{"loc":{"start":{"line":228,"column":8},"end":{"line":228,"column":35}},"type":"binary-expr","locations":[{"start":{"line":228,"column":8},"end":{"line":228,"column":19}},{"start":{"line":228,"column":23},"end":{"line":228,"column":35}}]},"29":{"loc":{"start":{"line":233,"column":11},"end":{"line":242,"column":5}},"type":"if","locations":[{"start":{"line":233,"column":11},"end":{"line":242,"column":5}},{"start":{"line":233,"column":11},"end":{"line":242,"column":5}}]},"30":{"loc":{"start":{"line":233,"column":15},"end":{"line":233,"column":42}},"type":"binary-expr","locations":[{"start":{"line":233,"column":15},"end":{"line":233,"column":26}},{"start":{"line":233,"column":30},"end":{"line":233,"column":42}}]},"31":{"loc":{"start":{"line":248,"column":16},"end":{"line":248,"column":43}},"type":"binary-expr","locations":[{"start":{"line":248,"column":16},"end":{"line":248,"column":31}},{"start":{"line":248,"column":35},"end":{"line":248,"column":43}}]},"32":{"loc":{"start":{"line":253,"column":4},"end":{"line":255,"column":5}},"type":"if","locations":[{"start":{"line":253,"column":4},"end":{"line":255,"column":5}},{"start":{"line":253,"column":4},"end":{"line":255,"column":5}}]},"33":{"loc":{"start":{"line":253,"column":8},"end":{"line":253,"column":27}},"type":"binary-expr","locations":[{"start":{"line":253,"column":8},"end":{"line":253,"column":12}},{"start":{"line":253,"column":16},"end":{"line":253,"column":27}}]}},"s":{"0":1,"1":37,"2":37,"3":37,"4":37,"5":37,"6":37,"7":37,"8":37,"9":37,"10":37,"11":37,"12":35,"13":35,"14":0,"15":2,"16":2,"17":7,"18":7,"19":7,"20":7,"21":7,"22":2,"23":1,"24":1,"25":1,"26":1,"27":1,"28":2,"29":2,"30":0,"31":2,"32":2,"33":2,"34":25,"35":25,"36":25,"37":25,"38":25,"39":25,"40":25,"41":25,"42":43,"43":27,"44":43,"45":33,"46":10,"47":25,"48":23,"49":25,"50":9,"51":25,"52":12,"53":25,"54":6,"55":5,"56":2,"57":2,"58":2,"59":2,"60":1,"61":1,"62":1,"63":1,"64":1,"65":50,"66":36,"67":7,"68":5,"69":5,"70":5,"71":71,"72":71,"73":71,"74":71,"75":71,"76":0,"77":71,"78":0,"79":71,"80":68,"81":68,"82":68,"83":71,"84":5,"85":66,"86":2,"87":64,"88":71,"89":103,"90":71,"91":1,"92":71,"93":71,"94":71,"95":568,"96":71,"97":1,"98":1},"f":{"0":37,"1":35,"2":0,"3":2,"4":7,"5":1,"6":2,"7":25,"8":43,"9":6,"10":2,"11":1,"12":50,"13":36,"14":7,"15":5,"16":71,"17":103,"18":568},"b":{"0":[1,0],"1":[1,1,1],"2":[2,0],"3":[2,5],"4":[0,2],"5":[2,0],"6":[27,16],"7":[43,40],"8":[33,10],"9":[43,36],"10":[23,2],"11":[9,16],"12":[25,9],"13":[12,13],"14":[25,18],"15":[5,1],"16":[1,1],"17":[2,2],"18":[1,0],"19":[36,34],"20":[71,68],"21":[0,71],"22":[71,5],"23":[0,71],"24":[71,2],"25":[68,3],"26":[71,68,68,68],"27":[5,66],"28":[71,68],"29":[2,64],"30":[66,63],"31":[71,71],"32":[1,70],"33":[71,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"3b8622d5f0cf4446a04014ce24941ba91383a894"} | ||
,"/home/travis/build/okonet/react-dropzone/src/getDataTransferItems.js": {"path":"/home/travis/build/okonet/react-dropzone/src/getDataTransferItems.js","statementMap":{"0":{"start":{"line":2,"column":30},"end":{"line":2,"column":32}},"1":{"start":{"line":3,"column":2},"end":{"line":14,"column":3}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":33}},"3":{"start":{"line":5,"column":4},"end":{"line":11,"column":5}},"4":{"start":{"line":6,"column":6},"end":{"line":6,"column":39}},"5":{"start":{"line":7,"column":11},"end":{"line":11,"column":5}},"6":{"start":{"line":10,"column":6},"end":{"line":10,"column":39}},"7":{"start":{"line":12,"column":9},"end":{"line":14,"column":3}},"8":{"start":{"line":13,"column":4},"end":{"line":13,"column":47}},"9":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"10":{"start":{"line":17,"column":4},"end":{"line":17,"column":99}},"11":{"start":{"line":21,"column":2},"end":{"line":21,"column":59}}},"fnMap":{"0":{"name":"getDataTransferFiles","decl":{"start":{"line":1,"column":24},"end":{"line":1,"column":44}},"loc":{"start":{"line":1,"column":78},"end":{"line":22,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":76}},"type":"default-arg","locations":[{"start":{"line":1,"column":72},"end":{"line":1,"column":76}}]},"1":{"loc":{"start":{"line":3,"column":2},"end":{"line":14,"column":3}},"type":"if","locations":[{"start":{"line":3,"column":2},"end":{"line":14,"column":3}},{"start":{"line":3,"column":2},"end":{"line":14,"column":3}}]},"2":{"loc":{"start":{"line":5,"column":4},"end":{"line":11,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":11,"column":5}},{"start":{"line":5,"column":4},"end":{"line":11,"column":5}}]},"3":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":35}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":16}},{"start":{"line":5,"column":20},"end":{"line":5,"column":35}}]},"4":{"loc":{"start":{"line":7,"column":11},"end":{"line":11,"column":5}},"type":"if","locations":[{"start":{"line":7,"column":11},"end":{"line":11,"column":5}},{"start":{"line":7,"column":11},"end":{"line":11,"column":5}}]},"5":{"loc":{"start":{"line":7,"column":15},"end":{"line":7,"column":42}},"type":"binary-expr","locations":[{"start":{"line":7,"column":15},"end":{"line":7,"column":23}},{"start":{"line":7,"column":27},"end":{"line":7,"column":42}}]},"6":{"loc":{"start":{"line":12,"column":9},"end":{"line":14,"column":3}},"type":"if","locations":[{"start":{"line":12,"column":9},"end":{"line":14,"column":3}},{"start":{"line":12,"column":9},"end":{"line":14,"column":3}}]},"7":{"loc":{"start":{"line":12,"column":13},"end":{"line":12,"column":47}},"type":"binary-expr","locations":[{"start":{"line":12,"column":13},"end":{"line":12,"column":25}},{"start":{"line":12,"column":29},"end":{"line":12,"column":47}}]},"8":{"loc":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},{"start":{"line":16,"column":2},"end":{"line":18,"column":3}}]},"9":{"loc":{"start":{"line":17,"column":28},"end":{"line":17,"column":98}},"type":"cond-expr","locations":[{"start":{"line":17,"column":48},"end":{"line":17,"column":69}},{"start":{"line":17,"column":72},"end":{"line":17,"column":98}}]}},"s":{"0":39,"1":39,"2":37,"3":37,"4":33,"5":4,"6":3,"7":2,"8":1,"9":39,"10":37,"11":39},"f":{"0":39},"b":{"0":[5],"1":[37,2],"2":[33,4],"3":[37,34],"4":[3,1],"5":[4,3],"6":[1,1],"7":[2,1],"8":[37,2],"9":[33,4]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"5b0f951714c0120330287dfa66cefefab8f112af"} | ||
,"/home/travis/build/okonet/react-dropzone/src/index.js": {"path":"/home/travis/build/okonet/react-dropzone/src/index.js","statementMap":{"0":{"start":{"line":6,"column":24},"end":{"line":8,"column":6}},"1":{"start":{"line":12,"column":4},"end":{"line":12,"column":26}},"2":{"start":{"line":13,"column":4},"end":{"line":13,"column":43}},"3":{"start":{"line":14,"column":4},"end":{"line":14,"column":51}},"4":{"start":{"line":15,"column":4},"end":{"line":15,"column":51}},"5":{"start":{"line":16,"column":4},"end":{"line":16,"column":51}},"6":{"start":{"line":17,"column":4},"end":{"line":17,"column":49}},"7":{"start":{"line":18,"column":4},"end":{"line":18,"column":41}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":65}},"9":{"start":{"line":20,"column":4},"end":{"line":20,"column":53}},"10":{"start":{"line":21,"column":4},"end":{"line":21,"column":36}},"11":{"start":{"line":22,"column":4},"end":{"line":24,"column":6}},"12":{"start":{"line":28,"column":4},"end":{"line":28,"column":26}},"13":{"start":{"line":30,"column":4},"end":{"line":30,"column":52}},"14":{"start":{"line":35,"column":4},"end":{"line":35,"column":33}},"15":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"16":{"start":{"line":40,"column":6},"end":{"line":40,"column":43}},"17":{"start":{"line":45,"column":4},"end":{"line":45,"column":23}},"18":{"start":{"line":48,"column":4},"end":{"line":48,"column":24}},"19":{"start":{"line":50,"column":29},"end":{"line":50,"column":96}},"20":{"start":{"line":52,"column":4},"end":{"line":55,"column":7}},"21":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"22":{"start":{"line":58,"column":6},"end":{"line":58,"column":43}},"23":{"start":{"line":63,"column":4},"end":{"line":63,"column":23}},"24":{"start":{"line":64,"column":4},"end":{"line":64,"column":24}},"25":{"start":{"line":65,"column":4},"end":{"line":69,"column":5}},"26":{"start":{"line":66,"column":6},"end":{"line":66,"column":41}},"27":{"start":{"line":70,"column":4},"end":{"line":70,"column":17}},"28":{"start":{"line":74,"column":4},"end":{"line":74,"column":23}},"29":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"30":{"start":{"line":78,"column":6},"end":{"line":78,"column":13}},"31":{"start":{"line":81,"column":4},"end":{"line":84,"column":7}},"32":{"start":{"line":86,"column":4},"end":{"line":88,"column":5}},"33":{"start":{"line":87,"column":6},"end":{"line":87,"column":43}},"34":{"start":{"line":92,"column":81},"end":{"line":92,"column":91}},"35":{"start":{"line":93,"column":21},"end":{"line":93,"column":54}},"36":{"start":{"line":94,"column":26},"end":{"line":94,"column":28}},"37":{"start":{"line":95,"column":26},"end":{"line":95,"column":28}},"38":{"start":{"line":98,"column":4},"end":{"line":98,"column":23}},"39":{"start":{"line":101,"column":4},"end":{"line":101,"column":26}},"40":{"start":{"line":102,"column":4},"end":{"line":102,"column":36}},"41":{"start":{"line":104,"column":4},"end":{"line":114,"column":7}},"42":{"start":{"line":105,"column":6},"end":{"line":107,"column":7}},"43":{"start":{"line":106,"column":8},"end":{"line":106,"column":56}},"44":{"start":{"line":109,"column":6},"end":{"line":113,"column":7}},"45":{"start":{"line":110,"column":8},"end":{"line":110,"column":33}},"46":{"start":{"line":112,"column":8},"end":{"line":112,"column":33}},"47":{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},"48":{"start":{"line":117,"column":6},"end":{"line":117,"column":57}},"49":{"start":{"line":120,"column":4},"end":{"line":122,"column":5}},"50":{"start":{"line":121,"column":6},"end":{"line":121,"column":50}},"51":{"start":{"line":124,"column":4},"end":{"line":126,"column":5}},"52":{"start":{"line":125,"column":6},"end":{"line":125,"column":50}},"53":{"start":{"line":129,"column":4},"end":{"line":132,"column":7}},"54":{"start":{"line":136,"column":4},"end":{"line":136,"column":24}},"55":{"start":{"line":137,"column":38},"end":{"line":137,"column":48}},"56":{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},"57":{"start":{"line":139,"column":6},"end":{"line":139,"column":18}},"58":{"start":{"line":140,"column":6},"end":{"line":142,"column":7}},"59":{"start":{"line":141,"column":8},"end":{"line":141,"column":30}},"60":{"start":{"line":148,"column":35},"end":{"line":148,"column":45}},"61":{"start":{"line":149,"column":28},"end":{"line":149,"column":32}},"62":{"start":{"line":150,"column":33},"end":{"line":150,"column":37}},"63":{"start":{"line":153,"column":4},"end":{"line":162,"column":5}},"64":{"start":{"line":154,"column":6},"end":{"line":161,"column":14}},"65":{"start":{"line":156,"column":25},"end":{"line":156,"column":42}},"66":{"start":{"line":157,"column":8},"end":{"line":160,"column":9}},"67":{"start":{"line":158,"column":10},"end":{"line":158,"column":37}},"68":{"start":{"line":159,"column":10},"end":{"line":159,"column":31}},"69":{"start":{"line":166,"column":4},"end":{"line":166,"column":44}},"70":{"start":{"line":170,"column":4},"end":{"line":170,"column":78}},"71":{"start":{"line":174,"column":4},"end":{"line":174,"column":42}},"72":{"start":{"line":178,"column":4},"end":{"line":178,"column":35}},"73":{"start":{"line":179,"column":4},"end":{"line":179,"column":34}},"74":{"start":{"line":180,"column":4},"end":{"line":180,"column":29}},"75":{"start":{"line":192,"column":8},"end":{"line":192,"column":18}},"76":{"start":{"line":200,"column":8},"end":{"line":200,"column":12}},"77":{"start":{"line":202,"column":43},"end":{"line":202,"column":53}},"78":{"start":{"line":204,"column":4},"end":{"line":204,"column":32}},"79":{"start":{"line":206,"column":4},"end":{"line":208,"column":5}},"80":{"start":{"line":207,"column":6},"end":{"line":207,"column":41}},"81":{"start":{"line":209,"column":4},"end":{"line":211,"column":5}},"82":{"start":{"line":210,"column":6},"end":{"line":210,"column":41}},"83":{"start":{"line":213,"column":4},"end":{"line":230,"column":5}},"84":{"start":{"line":214,"column":6},"end":{"line":221,"column":8}},"85":{"start":{"line":222,"column":6},"end":{"line":225,"column":8}},"86":{"start":{"line":226,"column":6},"end":{"line":229,"column":8}},"87":{"start":{"line":233,"column":4},"end":{"line":247,"column":5}},"88":{"start":{"line":234,"column":6},"end":{"line":237,"column":8}},"89":{"start":{"line":238,"column":11},"end":{"line":247,"column":5}},"90":{"start":{"line":239,"column":6},"end":{"line":242,"column":8}},"91":{"start":{"line":244,"column":6},"end":{"line":246,"column":8}},"92":{"start":{"line":249,"column":28},"end":{"line":256,"column":5}},"93":{"start":{"line":254,"column":17},"end":{"line":254,"column":38}},"94":{"start":{"line":258,"column":4},"end":{"line":260,"column":5}},"95":{"start":{"line":259,"column":6},"end":{"line":259,"column":34}},"96":{"start":{"line":263,"column":24},"end":{"line":272,"column":5}},"97":{"start":{"line":273,"column":21},"end":{"line":273,"column":33}},"98":{"start":{"line":274,"column":4},"end":{"line":274,"column":55}},"99":{"start":{"line":274,"column":32},"end":{"line":274,"column":53}},"100":{"start":{"line":276,"column":4},"end":{"line":294,"column":6}},"101":{"start":{"line":298,"column":0},"end":{"line":304,"column":2}},"102":{"start":{"line":306,"column":0},"end":{"line":333,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":2},"end":{"line":11,"column":3}},"loc":{"start":{"line":11,"column":30},"end":{"line":25,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":27,"column":2},"end":{"line":27,"column":3}},"loc":{"start":{"line":27,"column":22},"end":{"line":31,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":33,"column":2},"end":{"line":33,"column":3}},"loc":{"start":{"line":33,"column":25},"end":{"line":36,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":38,"column":2},"end":{"line":38,"column":3}},"loc":{"start":{"line":38,"column":17},"end":{"line":42,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":44,"column":2},"end":{"line":44,"column":3}},"loc":{"start":{"line":44,"column":17},"end":{"line":60,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":62,"column":2},"end":{"line":62,"column":3}},"loc":{"start":{"line":62,"column":16},"end":{"line":71,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":73,"column":2},"end":{"line":73,"column":3}},"loc":{"start":{"line":73,"column":17},"end":{"line":89,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":91,"column":2},"end":{"line":91,"column":3}},"loc":{"start":{"line":91,"column":12},"end":{"line":133,"column":3}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":104,"column":21},"end":{"line":104,"column":22}},"loc":{"start":{"line":104,"column":31},"end":{"line":114,"column":5}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":135,"column":2},"end":{"line":135,"column":3}},"loc":{"start":{"line":135,"column":13},"end":{"line":144,"column":3}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":146,"column":2},"end":{"line":146,"column":3}},"loc":{"start":{"line":146,"column":23},"end":{"line":163,"column":3}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":154,"column":17},"end":{"line":154,"column":18}},"loc":{"start":{"line":154,"column":23},"end":{"line":161,"column":7}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":165,"column":2},"end":{"line":165,"column":3}},"loc":{"start":{"line":165,"column":21},"end":{"line":167,"column":3}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":169,"column":2},"end":{"line":169,"column":3}},"loc":{"start":{"line":169,"column":22},"end":{"line":171,"column":3}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":173,"column":2},"end":{"line":173,"column":3}},"loc":{"start":{"line":173,"column":26},"end":{"line":175,"column":3}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":177,"column":2},"end":{"line":177,"column":3}},"loc":{"start":{"line":177,"column":9},"end":{"line":181,"column":3}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":183,"column":2},"end":{"line":183,"column":3}},"loc":{"start":{"line":183,"column":11},"end":{"line":295,"column":3}}},"17":{"name":"(anonymous_17)","decl":{"start":{"line":254,"column":11},"end":{"line":254,"column":12}},"loc":{"start":{"line":254,"column":17},"end":{"line":254,"column":38}}},"18":{"name":"(anonymous_18)","decl":{"start":{"line":274,"column":24},"end":{"line":274,"column":25}},"loc":{"start":{"line":274,"column":32},"end":{"line":274,"column":53}}}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":24},"end":{"line":8,"column":6}},"type":"cond-expr","locations":[{"start":{"line":7,"column":2},"end":{"line":7,"column":47}},{"start":{"line":8,"column":2},"end":{"line":8,"column":6}}]},"1":{"loc":{"start":{"line":6,"column":25},"end":{"line":6,"column":94}},"type":"binary-expr","locations":[{"start":{"line":6,"column":25},"end":{"line":6,"column":56}},{"start":{"line":6,"column":60},"end":{"line":6,"column":68}},{"start":{"line":6,"column":72},"end":{"line":6,"column":94}}]},"2":{"loc":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},{"start":{"line":39,"column":4},"end":{"line":41,"column":5}}]},"3":{"loc":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},{"start":{"line":57,"column":4},"end":{"line":59,"column":5}}]},"4":{"loc":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"type":"if","locations":[{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},{"start":{"line":77,"column":4},"end":{"line":79,"column":5}}]},"5":{"loc":{"start":{"line":86,"column":4},"end":{"line":88,"column":5}},"type":"if","locations":[{"start":{"line":86,"column":4},"end":{"line":88,"column":5}},{"start":{"line":86,"column":4},"end":{"line":88,"column":5}}]},"6":{"loc":{"start":{"line":105,"column":6},"end":{"line":107,"column":7}},"type":"if","locations":[{"start":{"line":105,"column":6},"end":{"line":107,"column":7}},{"start":{"line":105,"column":6},"end":{"line":107,"column":7}}]},"7":{"loc":{"start":{"line":105,"column":10},"end":{"line":105,"column":53}},"type":"binary-expr","locations":[{"start":{"line":105,"column":10},"end":{"line":105,"column":25}},{"start":{"line":105,"column":29},"end":{"line":105,"column":53}}]},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":113,"column":7}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":113,"column":7}},{"start":{"line":109,"column":6},"end":{"line":113,"column":7}}]},"9":{"loc":{"start":{"line":109,"column":10},"end":{"line":109,"column":61}},"type":"binary-expr","locations":[{"start":{"line":109,"column":10},"end":{"line":109,"column":33}},{"start":{"line":109,"column":37},"end":{"line":109,"column":61}}]},"10":{"loc":{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},"type":"if","locations":[{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},{"start":{"line":116,"column":4},"end":{"line":118,"column":5}}]},"11":{"loc":{"start":{"line":120,"column":4},"end":{"line":122,"column":5}},"type":"if","locations":[{"start":{"line":120,"column":4},"end":{"line":122,"column":5}},{"start":{"line":120,"column":4},"end":{"line":122,"column":5}}]},"12":{"loc":{"start":{"line":120,"column":8},"end":{"line":120,"column":50}},"type":"binary-expr","locations":[{"start":{"line":120,"column":8},"end":{"line":120,"column":32}},{"start":{"line":120,"column":36},"end":{"line":120,"column":50}}]},"13":{"loc":{"start":{"line":124,"column":4},"end":{"line":126,"column":5}},"type":"if","locations":[{"start":{"line":124,"column":4},"end":{"line":126,"column":5}},{"start":{"line":124,"column":4},"end":{"line":126,"column":5}}]},"14":{"loc":{"start":{"line":124,"column":8},"end":{"line":124,"column":50}},"type":"binary-expr","locations":[{"start":{"line":124,"column":8},"end":{"line":124,"column":32}},{"start":{"line":124,"column":36},"end":{"line":124,"column":50}}]},"15":{"loc":{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},"type":"if","locations":[{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},{"start":{"line":138,"column":4},"end":{"line":143,"column":5}}]},"16":{"loc":{"start":{"line":140,"column":6},"end":{"line":142,"column":7}},"type":"if","locations":[{"start":{"line":140,"column":6},"end":{"line":142,"column":7}},{"start":{"line":140,"column":6},"end":{"line":142,"column":7}}]},"17":{"loc":{"start":{"line":153,"column":4},"end":{"line":162,"column":5}},"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":162,"column":5}},{"start":{"line":153,"column":4},"end":{"line":162,"column":5}}]},"18":{"loc":{"start":{"line":153,"column":8},"end":{"line":153,"column":48}},"type":"binary-expr","locations":[{"start":{"line":153,"column":8},"end":{"line":153,"column":26}},{"start":{"line":153,"column":30},"end":{"line":153,"column":48}}]},"19":{"loc":{"start":{"line":157,"column":8},"end":{"line":160,"column":9}},"type":"if","locations":[{"start":{"line":157,"column":8},"end":{"line":160,"column":9}},{"start":{"line":157,"column":8},"end":{"line":160,"column":9}}]},"20":{"loc":{"start":{"line":170,"column":11},"end":{"line":170,"column":77}},"type":"binary-expr","locations":[{"start":{"line":170,"column":11},"end":{"line":170,"column":42}},{"start":{"line":170,"column":46},"end":{"line":170,"column":77}}]},"21":{"loc":{"start":{"line":204,"column":16},"end":{"line":204,"column":31}},"type":"binary-expr","locations":[{"start":{"line":204,"column":16},"end":{"line":204,"column":25}},{"start":{"line":204,"column":29},"end":{"line":204,"column":31}}]},"22":{"loc":{"start":{"line":206,"column":4},"end":{"line":208,"column":5}},"type":"if","locations":[{"start":{"line":206,"column":4},"end":{"line":208,"column":5}},{"start":{"line":206,"column":4},"end":{"line":208,"column":5}}]},"23":{"loc":{"start":{"line":206,"column":8},"end":{"line":206,"column":39}},"type":"binary-expr","locations":[{"start":{"line":206,"column":8},"end":{"line":206,"column":20}},{"start":{"line":206,"column":24},"end":{"line":206,"column":39}}]},"24":{"loc":{"start":{"line":209,"column":4},"end":{"line":211,"column":5}},"type":"if","locations":[{"start":{"line":209,"column":4},"end":{"line":211,"column":5}},{"start":{"line":209,"column":4},"end":{"line":211,"column":5}}]},"25":{"loc":{"start":{"line":209,"column":8},"end":{"line":209,"column":39}},"type":"binary-expr","locations":[{"start":{"line":209,"column":8},"end":{"line":209,"column":20}},{"start":{"line":209,"column":24},"end":{"line":209,"column":39}}]},"26":{"loc":{"start":{"line":213,"column":4},"end":{"line":230,"column":5}},"type":"if","locations":[{"start":{"line":213,"column":4},"end":{"line":230,"column":5}},{"start":{"line":213,"column":4},"end":{"line":230,"column":5}}]},"27":{"loc":{"start":{"line":213,"column":8},"end":{"line":213,"column":60}},"type":"binary-expr","locations":[{"start":{"line":213,"column":8},"end":{"line":213,"column":18}},{"start":{"line":213,"column":22},"end":{"line":213,"column":28}},{"start":{"line":213,"column":32},"end":{"line":213,"column":44}},{"start":{"line":213,"column":48},"end":{"line":213,"column":60}}]},"28":{"loc":{"start":{"line":233,"column":4},"end":{"line":247,"column":5}},"type":"if","locations":[{"start":{"line":233,"column":4},"end":{"line":247,"column":5}},{"start":{"line":233,"column":4},"end":{"line":247,"column":5}}]},"29":{"loc":{"start":{"line":233,"column":8},"end":{"line":233,"column":35}},"type":"binary-expr","locations":[{"start":{"line":233,"column":8},"end":{"line":233,"column":19}},{"start":{"line":233,"column":23},"end":{"line":233,"column":35}}]},"30":{"loc":{"start":{"line":238,"column":11},"end":{"line":247,"column":5}},"type":"if","locations":[{"start":{"line":238,"column":11},"end":{"line":247,"column":5}},{"start":{"line":238,"column":11},"end":{"line":247,"column":5}}]},"31":{"loc":{"start":{"line":238,"column":15},"end":{"line":238,"column":42}},"type":"binary-expr","locations":[{"start":{"line":238,"column":15},"end":{"line":238,"column":26}},{"start":{"line":238,"column":30},"end":{"line":238,"column":42}}]},"32":{"loc":{"start":{"line":253,"column":16},"end":{"line":253,"column":43}},"type":"binary-expr","locations":[{"start":{"line":253,"column":16},"end":{"line":253,"column":31}},{"start":{"line":253,"column":35},"end":{"line":253,"column":43}}]},"33":{"loc":{"start":{"line":258,"column":4},"end":{"line":260,"column":5}},"type":"if","locations":[{"start":{"line":258,"column":4},"end":{"line":260,"column":5}},{"start":{"line":258,"column":4},"end":{"line":260,"column":5}}]},"34":{"loc":{"start":{"line":258,"column":8},"end":{"line":258,"column":27}},"type":"binary-expr","locations":[{"start":{"line":258,"column":8},"end":{"line":258,"column":12}},{"start":{"line":258,"column":16},"end":{"line":258,"column":27}}]}},"s":{"0":1,"1":39,"2":39,"3":39,"4":39,"5":39,"6":39,"7":39,"8":39,"9":39,"10":39,"11":39,"12":37,"13":37,"14":0,"15":2,"16":2,"17":7,"18":7,"19":7,"20":7,"21":7,"22":2,"23":1,"24":1,"25":1,"26":1,"27":1,"28":2,"29":2,"30":0,"31":2,"32":2,"33":2,"34":25,"35":25,"36":25,"37":25,"38":25,"39":25,"40":25,"41":25,"42":43,"43":27,"44":43,"45":33,"46":10,"47":25,"48":23,"49":25,"50":9,"51":25,"52":12,"53":25,"54":8,"55":8,"56":8,"57":7,"58":7,"59":2,"60":2,"61":2,"62":2,"63":2,"64":1,"65":1,"66":1,"67":1,"68":1,"69":50,"70":36,"71":7,"72":7,"73":7,"74":7,"75":73,"76":73,"77":73,"78":73,"79":73,"80":0,"81":73,"82":0,"83":73,"84":70,"85":70,"86":70,"87":73,"88":5,"89":68,"90":2,"91":66,"92":73,"93":105,"94":73,"95":1,"96":73,"97":73,"98":73,"99":584,"100":73,"101":1,"102":1},"f":{"0":39,"1":37,"2":0,"3":2,"4":7,"5":1,"6":2,"7":25,"8":43,"9":8,"10":2,"11":1,"12":50,"13":36,"14":7,"15":7,"16":73,"17":105,"18":584},"b":{"0":[1,0],"1":[1,1,1],"2":[2,0],"3":[2,5],"4":[0,2],"5":[2,0],"6":[27,16],"7":[43,40],"8":[33,10],"9":[43,36],"10":[23,2],"11":[9,16],"12":[25,9],"13":[12,13],"14":[25,18],"15":[7,1],"16":[2,5],"17":[1,1],"18":[2,2],"19":[1,0],"20":[36,34],"21":[73,70],"22":[0,73],"23":[73,5],"24":[0,73],"25":[73,2],"26":[70,3],"27":[73,70,70,70],"28":[5,68],"29":[73,70],"30":[2,66],"31":[68,65],"32":[73,73],"33":[1,72],"34":[73,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"b48aa97da76982711e8e15ae2a9618b76698efcc"} | ||
} |
@@ -241,5 +241,13 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
key: 'onClick', | ||
value: function onClick() { | ||
if (!this.props.disableClick) { | ||
value: function onClick(e) { | ||
e.stopPropagation(); | ||
var _props2 = this.props, | ||
onClick = _props2.onClick, | ||
disableClick = _props2.disableClick; | ||
if (!disableClick) { | ||
this.open(); | ||
if (onClick) { | ||
onClick.call(this, e); | ||
} | ||
} | ||
@@ -295,10 +303,10 @@ } | ||
var _props2 = this.props, | ||
accept = _props2.accept, | ||
activeClassName = _props2.activeClassName, | ||
inputProps = _props2.inputProps, | ||
multiple = _props2.multiple, | ||
name = _props2.name, | ||
rejectClassName = _props2.rejectClassName, | ||
rest = _objectWithoutProperties(_props2, ['accept', 'activeClassName', 'inputProps', 'multiple', 'name', 'rejectClassName']); | ||
var _props3 = this.props, | ||
accept = _props3.accept, | ||
activeClassName = _props3.activeClassName, | ||
inputProps = _props3.inputProps, | ||
multiple = _props3.multiple, | ||
name = _props3.name, | ||
rejectClassName = _props3.rejectClassName, | ||
rest = _objectWithoutProperties(_props3, ['accept', 'activeClassName', 'inputProps', 'multiple', 'name', 'rejectClassName']); | ||
@@ -406,8 +414,6 @@ var activeStyle = rest.activeStyle, | ||
Dropzone.propTypes = { | ||
// Overriding drop behavior | ||
onClick: _react2.default.PropTypes.func, | ||
onDrop: _react2.default.PropTypes.func, | ||
onDropAccepted: _react2.default.PropTypes.func, | ||
onDropRejected: _react2.default.PropTypes.func, | ||
// Overriding drag behavior | ||
onDragStart: _react2.default.PropTypes.func, | ||
@@ -456,3 +462,3 @@ onDragEnter: _react2.default.PropTypes.func, | ||
'use strict'; | ||
"use strict"; | ||
@@ -467,7 +473,7 @@ Object.defineProperty(exports, "__esModule", { | ||
var dataTransferItemsList = []; | ||
if (event.hasOwnProperty('dataTransfer')) { | ||
if (event.dataTransfer) { | ||
var dt = event.dataTransfer; | ||
if (dt.hasOwnProperty('files')) { | ||
if (dt.files && dt.files.length) { | ||
dataTransferItemsList = dt.files; | ||
} else if (dt.hasOwnProperty('items')) { | ||
} else if (dt.items && dt.items.length) { | ||
// During the drag even the dataTransfer.files is null | ||
@@ -477,3 +483,3 @@ // but Chrome implements some drag store, which is accesible via dataTransfer.items | ||
} | ||
} else if (event.hasOwnProperty('target')) { | ||
} else if (event.target && event.target.files) { | ||
dataTransferItemsList = event.target.files; | ||
@@ -489,3 +495,3 @@ } | ||
} | ||
module.exports = exports['default']; | ||
module.exports = exports["default"]; | ||
@@ -492,0 +498,0 @@ /***/ } |
@@ -7,7 +7,5 @@ { | ||
"clean": "rimraf ./dist", | ||
"test": "npm run eslint:src && jest --coverage", | ||
"build": "npm run clean && webpack", | ||
"prepublish": "NODE_ENV=production npm run build && jest", | ||
"release": "sr-changelog && sr-changelog commit", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post", | ||
"test": "npm run eslint:src && jest --coverage", | ||
"eslint:src": "eslint ./src ./*.js", | ||
@@ -18,9 +16,5 @@ "eslint:fix": "eslint --fix", | ||
"deps": "npm-check -s", | ||
"deps:update": "npm-check -u" | ||
"deps:update": "npm-check -u", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post" | ||
}, | ||
"release": { | ||
"analyzeCommits": "semantic-release-tamia/analyzeCommits", | ||
"generateNotes": "semantic-release-tamia/generateNotes", | ||
"verifyRelease": "semantic-release-tamia/verifyRelease" | ||
}, | ||
"lint-staged": { | ||
@@ -77,2 +71,3 @@ "*.js": [ | ||
"enzyme": "^2.6.0", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"eslint": "^3.11.0", | ||
@@ -92,7 +87,11 @@ "eslint-config-airbnb": "^13.0.0", | ||
"semantic-release": "^6.3.2", | ||
"semantic-release-tamia": "github:okonet/semantic-release-tamia", | ||
"sinon": "^1.17.4", | ||
"webpack": "^1.13.1" | ||
}, | ||
"version": "3.7.4" | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"version": "3.8.0" | ||
} |
export default function getDataTransferFiles(event, isMultipleAllowed = true) { | ||
let dataTransferItemsList = []; | ||
if (event.hasOwnProperty('dataTransfer')) { | ||
if (event.dataTransfer) { | ||
const dt = event.dataTransfer; | ||
if (dt.hasOwnProperty('files')) { | ||
if (dt.files && dt.files.length) { | ||
dataTransferItemsList = dt.files; | ||
} else if (dt.hasOwnProperty('items')) { | ||
} else if (dt.items && dt.items.length) { | ||
// During the drag even the dataTransfer.files is null | ||
@@ -12,3 +12,3 @@ // but Chrome implements some drag store, which is accesible via dataTransfer.items | ||
} | ||
} else if (event.hasOwnProperty('target')) { | ||
} else if (event.target && event.target.files) { | ||
dataTransferItemsList = event.target.files; | ||
@@ -15,0 +15,0 @@ } |
@@ -135,5 +135,10 @@ /* eslint prefer-template: 0 */ | ||
onClick() { | ||
if (!this.props.disableClick) { | ||
onClick(e) { | ||
e.stopPropagation(); | ||
const { onClick, disableClick } = this.props; | ||
if (!disableClick) { | ||
this.open(); | ||
if (onClick) { | ||
onClick.call(this, e); | ||
} | ||
} | ||
@@ -303,8 +308,6 @@ } | ||
Dropzone.propTypes = { | ||
// Overriding drop behavior | ||
onClick: React.PropTypes.func, | ||
onDrop: React.PropTypes.func, | ||
onDropAccepted: React.PropTypes.func, | ||
onDropRejected: React.PropTypes.func, | ||
// Overriding drag behavior | ||
onDragStart: React.PropTypes.func, | ||
@@ -311,0 +314,0 @@ onDragEnter: React.PropTypes.func, |
@@ -102,19 +102,20 @@ import React from 'react'; | ||
it.skip('should call `onClick` callback if provided', () => { | ||
const clickSpy = spy(); | ||
it('should not call `open` if disableClick prop is true', () => { | ||
const dropzone = mount( | ||
<Dropzone onClick={clickSpy} /> | ||
<Dropzone disableClick /> | ||
); | ||
spy(dropzone.instance(), 'open'); | ||
dropzone.simulate('click'); | ||
expect(dropzone.instance().open.callCount).toEqual(1); | ||
expect(clickSpy.callCount).toEqual(1); | ||
expect(dropzone.instance().open.callCount).toEqual(0); | ||
}); | ||
it('should not call `open` if disableClick prop is true', () => { | ||
it('should call `onClick` callback if provided', () => { | ||
const clickSpy = spy(); | ||
const dropzone = mount( | ||
<Dropzone disableClick /> | ||
<Dropzone onClick={clickSpy} /> | ||
); | ||
spy(dropzone.instance(), 'open'); | ||
dropzone.simulate('click'); | ||
expect(dropzone.instance().open.callCount).toEqual(0); | ||
expect(dropzone.instance().open.callCount).toEqual(1); | ||
expect(clickSpy.callCount).toEqual(1); | ||
}); | ||
@@ -141,2 +142,23 @@ | ||
}); | ||
it('should not invoke onClick on the wrapper', () => { | ||
const onClickOuterSpy = spy(); | ||
const onClickInnerSpy = spy(); | ||
const component = mount( | ||
<div onClick={onClickOuterSpy}> | ||
<Dropzone onClick={onClickInnerSpy} /> | ||
</div> | ||
); | ||
component.simulate('click'); | ||
expect(onClickOuterSpy.callCount).toEqual(1); | ||
expect(onClickInnerSpy.callCount).toEqual(0); | ||
onClickOuterSpy.reset(); | ||
onClickInnerSpy.reset(); | ||
component.find('Dropzone').simulate('click'); | ||
expect(onClickOuterSpy.callCount).toEqual(0); | ||
expect(onClickInnerSpy.callCount).toEqual(1); | ||
}); | ||
}); | ||
@@ -143,0 +165,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
212039
1990
1