react-inlinesvg
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -1,3 +0,3 @@ | ||
{"/Users/gilbarbara/Sites/react-inlinesvg/src/index.js": {"path":"/Users/gilbarbara/Sites/react-inlinesvg/src/index.js","statementMap":{"0":{"start":{"line":13,"column":13},"end":{"line":13,"column":38}},"1":{"start":{"line":15,"column":15},"end":{"line":21,"column":1}},"2":{"start":{"line":23,"column":25},"end":{"line":23,"column":27}},"3":{"start":{"line":24,"column":20},"end":{"line":24,"column":22}},"4":{"start":{"line":28,"column":4},"end":{"line":28,"column":17}},"5":{"start":{"line":30,"column":4},"end":{"line":32,"column":6}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":26}},"7":{"start":{"line":62,"column":4},"end":{"line":62,"column":25}},"8":{"start":{"line":67,"column":4},"end":{"line":79,"column":5}},"9":{"start":{"line":68,"column":6},"end":{"line":78,"column":7}},"10":{"start":{"line":69,"column":8},"end":{"line":74,"column":9}},"11":{"start":{"line":70,"column":10},"end":{"line":70,"column":27}},"12":{"start":{"line":73,"column":10},"end":{"line":73,"column":58}},"13":{"start":{"line":77,"column":8},"end":{"line":77,"column":45}},"14":{"start":{"line":83,"column":4},"end":{"line":90,"column":5}},"15":{"start":{"line":84,"column":6},"end":{"line":89,"column":7}},"16":{"start":{"line":85,"column":8},"end":{"line":85,"column":25}},"17":{"start":{"line":88,"column":8},"end":{"line":88,"column":56}},"18":{"start":{"line":94,"column":4},"end":{"line":94,"column":26}},"19":{"start":{"line":98,"column":38},"end":{"line":98,"column":48}},"20":{"start":{"line":100,"column":4},"end":{"line":122,"column":5}},"21":{"start":{"line":101,"column":6},"end":{"line":105,"column":7}},"22":{"start":{"line":102,"column":27},"end":{"line":102,"column":43}},"23":{"start":{"line":104,"column":8},"end":{"line":104,"column":54}},"24":{"start":{"line":104,"column":25},"end":{"line":104,"column":49}},"25":{"start":{"line":107,"column":6},"end":{"line":116,"column":7}},"26":{"start":{"line":108,"column":8},"end":{"line":108,"column":43}},"27":{"start":{"line":110,"column":8},"end":{"line":115,"column":11}},"28":{"start":{"line":111,"column":10},"end":{"line":114,"column":13}},"29":{"start":{"line":112,"column":12},"end":{"line":112,"column":42}},"30":{"start":{"line":113,"column":12},"end":{"line":113,"column":25}},"31":{"start":{"line":119,"column":6},"end":{"line":121,"column":9}},"32":{"start":{"line":120,"column":8},"end":{"line":120,"column":27}},"33":{"start":{"line":126,"column":19},"end":{"line":126,"column":87}},"34":{"start":{"line":129,"column":4},"end":{"line":135,"column":5}},"35":{"start":{"line":130,"column":6},"end":{"line":134,"column":9}},"36":{"start":{"line":131,"column":8},"end":{"line":133,"column":9}},"37":{"start":{"line":132,"column":10},"end":{"line":132,"column":36}},"38":{"start":{"line":140,"column":4},"end":{"line":144,"column":5}},"39":{"start":{"line":141,"column":6},"end":{"line":143,"column":20}},"40":{"start":{"line":148,"column":18},"end":{"line":148,"column":78}},"41":{"start":{"line":150,"column":4},"end":{"line":154,"column":5}},"42":{"start":{"line":151,"column":6},"end":{"line":153,"column":9}},"43":{"start":{"line":156,"column":4},"end":{"line":156,"column":41}},"44":{"start":{"line":160,"column":4},"end":{"line":163,"column":5}},"45":{"start":{"line":161,"column":6},"end":{"line":161,"column":21}},"46":{"start":{"line":162,"column":6},"end":{"line":162,"column":13}},"47":{"start":{"line":165,"column":4},"end":{"line":172,"column":5}},"48":{"start":{"line":166,"column":6},"end":{"line":171,"column":9}},"49":{"start":{"line":170,"column":8},"end":{"line":170,"column":52}},"50":{"start":{"line":176,"column":20},"end":{"line":176,"column":47}},"51":{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},"52":{"start":{"line":179,"column":6},"end":{"line":179,"column":46}},"53":{"start":{"line":182,"column":4},"end":{"line":182,"column":21}},"54":{"start":{"line":186,"column":40},"end":{"line":186,"column":50}},"55":{"start":{"line":188,"column":4},"end":{"line":190,"column":5}},"56":{"start":{"line":189,"column":6},"end":{"line":189,"column":49}},"57":{"start":{"line":192,"column":4},"end":{"line":192,"column":19}},"58":{"start":{"line":196,"column":4},"end":{"line":202,"column":5}},"59":{"start":{"line":199,"column":8},"end":{"line":199,"column":35}},"60":{"start":{"line":201,"column":8},"end":{"line":201,"column":36}},"61":{"start":{"line":209,"column":4},"end":{"line":216,"column":5}},"62":{"start":{"line":210,"column":6},"end":{"line":212,"column":8}},"63":{"start":{"line":215,"column":6},"end":{"line":215,"column":38}},"64":{"start":{"line":218,"column":4},"end":{"line":222,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":27,"column":2},"end":{"line":27,"column":3}},"loc":{"start":{"line":27,"column":21},"end":{"line":35,"column":3}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":54,"column":12},"end":{"line":54,"column":13}},"loc":{"start":{"line":54,"column":18},"end":{"line":54,"column":20}},"line":54},"2":{"name":"(anonymous_2)","decl":{"start":{"line":61,"column":2},"end":{"line":61,"column":3}},"loc":{"start":{"line":61,"column":23},"end":{"line":63,"column":3}},"line":61},"3":{"name":"(anonymous_3)","decl":{"start":{"line":65,"column":2},"end":{"line":65,"column":3}},"loc":{"start":{"line":65,"column":22},"end":{"line":80,"column":3}},"line":65},"4":{"name":"(anonymous_4)","decl":{"start":{"line":82,"column":2},"end":{"line":82,"column":3}},"loc":{"start":{"line":82,"column":32},"end":{"line":91,"column":3}},"line":82},"5":{"name":"(anonymous_5)","decl":{"start":{"line":93,"column":2},"end":{"line":93,"column":3}},"loc":{"start":{"line":93,"column":25},"end":{"line":95,"column":3}},"line":93},"6":{"name":"(anonymous_6)","decl":{"start":{"line":97,"column":2},"end":{"line":97,"column":3}},"loc":{"start":{"line":97,"column":20},"end":{"line":123,"column":3}},"line":97},"7":{"name":"(anonymous_7)","decl":{"start":{"line":104,"column":19},"end":{"line":104,"column":20}},"loc":{"start":{"line":104,"column":25},"end":{"line":104,"column":49}},"line":104},"8":{"name":"(anonymous_8)","decl":{"start":{"line":110,"column":22},"end":{"line":110,"column":23}},"loc":{"start":{"line":110,"column":36},"end":{"line":115,"column":9}},"line":110},"9":{"name":"(anonymous_9)","decl":{"start":{"line":111,"column":40},"end":{"line":111,"column":41}},"loc":{"start":{"line":111,"column":46},"end":{"line":114,"column":11}},"line":111},"10":{"name":"(anonymous_10)","decl":{"start":{"line":119,"column":20},"end":{"line":119,"column":21}},"loc":{"start":{"line":119,"column":34},"end":{"line":121,"column":7}},"line":119},"11":{"name":"(anonymous_11)","decl":{"start":{"line":125,"column":2},"end":{"line":125,"column":3}},"loc":{"start":{"line":125,"column":14},"end":{"line":136,"column":3}},"line":125},"12":{"name":"(anonymous_12)","decl":{"start":{"line":130,"column":32},"end":{"line":130,"column":33}},"loc":{"start":{"line":130,"column":38},"end":{"line":134,"column":7}},"line":130},"13":{"name":"(anonymous_13)","decl":{"start":{"line":138,"column":2},"end":{"line":138,"column":3}},"loc":{"start":{"line":138,"column":14},"end":{"line":145,"column":3}},"line":138},"14":{"name":"(anonymous_14)","decl":{"start":{"line":147,"column":2},"end":{"line":147,"column":3}},"loc":{"start":{"line":147,"column":9},"end":{"line":157,"column":3}},"line":147},"15":{"name":"(anonymous_15)","decl":{"start":{"line":159,"column":15},"end":{"line":159,"column":16}},"loc":{"start":{"line":159,"column":47},"end":{"line":173,"column":3}},"line":159},"16":{"name":"(anonymous_16)","decl":{"start":{"line":169,"column":9},"end":{"line":169,"column":10}},"loc":{"start":{"line":169,"column":15},"end":{"line":171,"column":7}},"line":169},"17":{"name":"(anonymous_17)","decl":{"start":{"line":175,"column":2},"end":{"line":175,"column":3}},"loc":{"start":{"line":175,"column":17},"end":{"line":183,"column":3}},"line":175},"18":{"name":"(anonymous_18)","decl":{"start":{"line":185,"column":2},"end":{"line":185,"column":3}},"loc":{"start":{"line":185,"column":22},"end":{"line":193,"column":3}},"line":185},"19":{"name":"(anonymous_19)","decl":{"start":{"line":195,"column":2},"end":{"line":195,"column":3}},"loc":{"start":{"line":195,"column":19},"end":{"line":203,"column":3}},"line":195},"20":{"name":"(anonymous_20)","decl":{"start":{"line":205,"column":2},"end":{"line":205,"column":3}},"loc":{"start":{"line":205,"column":11},"end":{"line":223,"column":3}},"line":205}},"branchMap":{"0":{"loc":{"start":{"line":67,"column":4},"end":{"line":79,"column":5}},"type":"if","locations":[{"start":{"line":67,"column":4},"end":{"line":79,"column":5}}],"line":67},"1":{"loc":{"start":{"line":68,"column":6},"end":{"line":78,"column":7}},"type":"if","locations":[{"start":{"line":68,"column":6},"end":{"line":78,"column":7}},{"start":{"line":68,"column":6},"end":{"line":78,"column":7}}],"line":68},"2":{"loc":{"start":{"line":69,"column":8},"end":{"line":74,"column":9}},"type":"if","locations":[{"start":{"line":69,"column":8},"end":{"line":74,"column":9}},{"start":{"line":69,"column":8},"end":{"line":74,"column":9}}],"line":69},"3":{"loc":{"start":{"line":83,"column":4},"end":{"line":90,"column":5}},"type":"if","locations":[{"start":{"line":83,"column":4},"end":{"line":90,"column":5}},{"start":{"line":83,"column":4},"end":{"line":90,"column":5}}],"line":83},"4":{"loc":{"start":{"line":84,"column":6},"end":{"line":89,"column":7}},"type":"if","locations":[{"start":{"line":84,"column":6},"end":{"line":89,"column":7}},{"start":{"line":84,"column":6},"end":{"line":89,"column":7}}],"line":84},"5":{"loc":{"start":{"line":100,"column":4},"end":{"line":122,"column":5}},"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":122,"column":5}},{"start":{"line":100,"column":4},"end":{"line":122,"column":5}}],"line":100},"6":{"loc":{"start":{"line":101,"column":6},"end":{"line":105,"column":7}},"type":"if","locations":[{"start":{"line":101,"column":6},"end":{"line":105,"column":7}},{"start":{"line":101,"column":6},"end":{"line":105,"column":7}}],"line":101},"7":{"loc":{"start":{"line":107,"column":6},"end":{"line":116,"column":7}},"type":"if","locations":[{"start":{"line":107,"column":6},"end":{"line":116,"column":7}},{"start":{"line":107,"column":6},"end":{"line":116,"column":7}}],"line":107},"8":{"loc":{"start":{"line":126,"column":19},"end":{"line":126,"column":87}},"type":"cond-expr","locations":[{"start":{"line":126,"column":53},"end":{"line":126,"column":71}},{"start":{"line":126,"column":74},"end":{"line":126,"column":87}}],"line":126},"9":{"loc":{"start":{"line":129,"column":4},"end":{"line":135,"column":5}},"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":135,"column":5}}],"line":129},"10":{"loc":{"start":{"line":131,"column":8},"end":{"line":133,"column":9}},"type":"if","locations":[{"start":{"line":131,"column":8},"end":{"line":133,"column":9}},{"start":{"line":131,"column":8},"end":{"line":133,"column":9}}],"line":131},"11":{"loc":{"start":{"line":140,"column":4},"end":{"line":144,"column":5}},"type":"if","locations":[{"start":{"line":140,"column":4},"end":{"line":144,"column":5}}],"line":140},"12":{"loc":{"start":{"line":150,"column":4},"end":{"line":154,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":154,"column":5}},{"start":{"line":150,"column":4},"end":{"line":154,"column":5}}],"line":150},"13":{"loc":{"start":{"line":152,"column":14},"end":{"line":152,"column":70}},"type":"cond-expr","locations":[{"start":{"line":152,"column":25},"end":{"line":152,"column":39}},{"start":{"line":152,"column":42},"end":{"line":152,"column":70}}],"line":152},"14":{"loc":{"start":{"line":159,"column":26},"end":{"line":159,"column":42}},"type":"default-arg","locations":[{"start":{"line":159,"column":37},"end":{"line":159,"column":42}}],"line":159},"15":{"loc":{"start":{"line":160,"column":4},"end":{"line":163,"column":5}},"type":"if","locations":[{"start":{"line":160,"column":4},"end":{"line":163,"column":5}},{"start":{"line":160,"column":4},"end":{"line":163,"column":5}}],"line":160},"16":{"loc":{"start":{"line":165,"column":4},"end":{"line":172,"column":5}},"type":"if","locations":[{"start":{"line":165,"column":4},"end":{"line":172,"column":5}},{"start":{"line":165,"column":4},"end":{"line":172,"column":5}}],"line":165},"17":{"loc":{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},"type":"if","locations":[{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},{"start":{"line":178,"column":4},"end":{"line":180,"column":5}}],"line":178},"18":{"loc":{"start":{"line":188,"column":4},"end":{"line":190,"column":5}},"type":"if","locations":[{"start":{"line":188,"column":4},"end":{"line":190,"column":5}},{"start":{"line":188,"column":4},"end":{"line":190,"column":5}}],"line":188},"19":{"loc":{"start":{"line":196,"column":4},"end":{"line":202,"column":5}},"type":"switch","locations":[{"start":{"line":197,"column":6},"end":{"line":197,"column":30}},{"start":{"line":198,"column":6},"end":{"line":199,"column":35}},{"start":{"line":200,"column":6},"end":{"line":201,"column":36}}],"line":196},"20":{"loc":{"start":{"line":209,"column":4},"end":{"line":216,"column":5}},"type":"if","locations":[{"start":{"line":209,"column":4},"end":{"line":216,"column":5}},{"start":{"line":209,"column":4},"end":{"line":216,"column":5}}],"line":209}},"s":{"0":1,"1":1,"2":1,"3":1,"4":22,"5":22,"6":22,"7":22,"8":22,"9":22,"10":20,"11":19,"12":1,"13":2,"14":45,"15":2,"16":1,"17":1,"18":1,"19":16,"20":16,"21":4,"22":3,"23":3,"24":3,"25":4,"26":1,"27":1,"28":1,"29":1,"30":1,"31":12,"32":12,"33":7,"34":7,"35":7,"36":7,"37":4,"38":20,"39":20,"40":20,"41":20,"42":4,"43":16,"44":20,"45":3,"46":3,"47":17,"48":16,"49":16,"50":67,"51":67,"52":2,"53":67,"54":20,"55":20,"56":19,"57":1,"58":47,"59":6,"60":41,"61":67,"62":20,"63":47,"64":67},"f":{"0":22,"1":5,"2":22,"3":22,"4":45,"5":1,"6":16,"7":3,"8":1,"9":1,"10":12,"11":7,"12":7,"13":20,"14":20,"15":20,"16":16,"17":67,"18":20,"19":47,"20":67},"b":{"0":[22],"1":[20,2],"2":[19,1],"3":[2,43],"4":[1,1],"5":[4,12],"6":[3,1],"7":[1,3],"8":[2,5],"9":[7],"10":[4,3],"11":[20],"12":[4,16],"13":[1,3],"14":[17],"15":[3,17],"16":[16,1],"17":[2,65],"18":[19,1],"19":[2,6,41],"20":[20,47]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"d36eb532395c0fa3af3374515e1848f100e32f5f"} | ||
{"/Users/gilbarbara/Sites/react-inlinesvg/src/index.js": {"path":"/Users/gilbarbara/Sites/react-inlinesvg/src/index.js","statementMap":{"0":{"start":{"line":13,"column":13},"end":{"line":13,"column":38}},"1":{"start":{"line":15,"column":15},"end":{"line":21,"column":1}},"2":{"start":{"line":23,"column":25},"end":{"line":23,"column":27}},"3":{"start":{"line":24,"column":20},"end":{"line":24,"column":22}},"4":{"start":{"line":28,"column":4},"end":{"line":28,"column":17}},"5":{"start":{"line":30,"column":4},"end":{"line":32,"column":6}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":26}},"7":{"start":{"line":62,"column":4},"end":{"line":62,"column":25}},"8":{"start":{"line":67,"column":4},"end":{"line":79,"column":5}},"9":{"start":{"line":68,"column":6},"end":{"line":78,"column":7}},"10":{"start":{"line":69,"column":8},"end":{"line":74,"column":9}},"11":{"start":{"line":70,"column":10},"end":{"line":70,"column":27}},"12":{"start":{"line":73,"column":10},"end":{"line":73,"column":58}},"13":{"start":{"line":77,"column":8},"end":{"line":77,"column":45}},"14":{"start":{"line":83,"column":4},"end":{"line":90,"column":5}},"15":{"start":{"line":84,"column":6},"end":{"line":89,"column":7}},"16":{"start":{"line":85,"column":8},"end":{"line":85,"column":25}},"17":{"start":{"line":88,"column":8},"end":{"line":88,"column":56}},"18":{"start":{"line":94,"column":4},"end":{"line":94,"column":26}},"19":{"start":{"line":98,"column":38},"end":{"line":98,"column":48}},"20":{"start":{"line":100,"column":4},"end":{"line":124,"column":5}},"21":{"start":{"line":101,"column":6},"end":{"line":105,"column":7}},"22":{"start":{"line":102,"column":27},"end":{"line":102,"column":43}},"23":{"start":{"line":104,"column":8},"end":{"line":104,"column":54}},"24":{"start":{"line":104,"column":25},"end":{"line":104,"column":49}},"25":{"start":{"line":107,"column":6},"end":{"line":116,"column":7}},"26":{"start":{"line":108,"column":8},"end":{"line":108,"column":35}},"27":{"start":{"line":110,"column":8},"end":{"line":115,"column":11}},"28":{"start":{"line":111,"column":10},"end":{"line":114,"column":13}},"29":{"start":{"line":112,"column":12},"end":{"line":112,"column":42}},"30":{"start":{"line":113,"column":12},"end":{"line":113,"column":25}},"31":{"start":{"line":118,"column":6},"end":{"line":118,"column":43}},"32":{"start":{"line":121,"column":6},"end":{"line":123,"column":9}},"33":{"start":{"line":122,"column":8},"end":{"line":122,"column":27}},"34":{"start":{"line":128,"column":19},"end":{"line":128,"column":87}},"35":{"start":{"line":131,"column":4},"end":{"line":137,"column":5}},"36":{"start":{"line":132,"column":6},"end":{"line":136,"column":9}},"37":{"start":{"line":133,"column":8},"end":{"line":135,"column":9}},"38":{"start":{"line":134,"column":10},"end":{"line":134,"column":36}},"39":{"start":{"line":142,"column":4},"end":{"line":146,"column":5}},"40":{"start":{"line":143,"column":6},"end":{"line":145,"column":20}},"41":{"start":{"line":150,"column":18},"end":{"line":150,"column":78}},"42":{"start":{"line":152,"column":4},"end":{"line":156,"column":5}},"43":{"start":{"line":153,"column":6},"end":{"line":155,"column":9}},"44":{"start":{"line":158,"column":4},"end":{"line":158,"column":41}},"45":{"start":{"line":162,"column":4},"end":{"line":165,"column":5}},"46":{"start":{"line":163,"column":6},"end":{"line":163,"column":21}},"47":{"start":{"line":164,"column":6},"end":{"line":164,"column":13}},"48":{"start":{"line":167,"column":4},"end":{"line":174,"column":5}},"49":{"start":{"line":168,"column":6},"end":{"line":173,"column":9}},"50":{"start":{"line":172,"column":8},"end":{"line":172,"column":52}},"51":{"start":{"line":178,"column":20},"end":{"line":178,"column":47}},"52":{"start":{"line":180,"column":4},"end":{"line":182,"column":5}},"53":{"start":{"line":181,"column":6},"end":{"line":181,"column":46}},"54":{"start":{"line":184,"column":4},"end":{"line":184,"column":21}},"55":{"start":{"line":188,"column":40},"end":{"line":188,"column":50}},"56":{"start":{"line":190,"column":4},"end":{"line":192,"column":5}},"57":{"start":{"line":191,"column":6},"end":{"line":191,"column":49}},"58":{"start":{"line":194,"column":4},"end":{"line":194,"column":19}},"59":{"start":{"line":198,"column":4},"end":{"line":204,"column":5}},"60":{"start":{"line":201,"column":8},"end":{"line":201,"column":35}},"61":{"start":{"line":203,"column":8},"end":{"line":203,"column":36}},"62":{"start":{"line":211,"column":4},"end":{"line":218,"column":5}},"63":{"start":{"line":212,"column":6},"end":{"line":214,"column":8}},"64":{"start":{"line":217,"column":6},"end":{"line":217,"column":38}},"65":{"start":{"line":220,"column":4},"end":{"line":224,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":27,"column":2},"end":{"line":27,"column":3}},"loc":{"start":{"line":27,"column":21},"end":{"line":35,"column":3}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":54,"column":12},"end":{"line":54,"column":13}},"loc":{"start":{"line":54,"column":18},"end":{"line":54,"column":20}},"line":54},"2":{"name":"(anonymous_2)","decl":{"start":{"line":61,"column":2},"end":{"line":61,"column":3}},"loc":{"start":{"line":61,"column":23},"end":{"line":63,"column":3}},"line":61},"3":{"name":"(anonymous_3)","decl":{"start":{"line":65,"column":2},"end":{"line":65,"column":3}},"loc":{"start":{"line":65,"column":22},"end":{"line":80,"column":3}},"line":65},"4":{"name":"(anonymous_4)","decl":{"start":{"line":82,"column":2},"end":{"line":82,"column":3}},"loc":{"start":{"line":82,"column":32},"end":{"line":91,"column":3}},"line":82},"5":{"name":"(anonymous_5)","decl":{"start":{"line":93,"column":2},"end":{"line":93,"column":3}},"loc":{"start":{"line":93,"column":25},"end":{"line":95,"column":3}},"line":93},"6":{"name":"(anonymous_6)","decl":{"start":{"line":97,"column":2},"end":{"line":97,"column":3}},"loc":{"start":{"line":97,"column":20},"end":{"line":125,"column":3}},"line":97},"7":{"name":"(anonymous_7)","decl":{"start":{"line":104,"column":19},"end":{"line":104,"column":20}},"loc":{"start":{"line":104,"column":25},"end":{"line":104,"column":49}},"line":104},"8":{"name":"(anonymous_8)","decl":{"start":{"line":110,"column":22},"end":{"line":110,"column":23}},"loc":{"start":{"line":110,"column":36},"end":{"line":115,"column":9}},"line":110},"9":{"name":"(anonymous_9)","decl":{"start":{"line":111,"column":40},"end":{"line":111,"column":41}},"loc":{"start":{"line":111,"column":46},"end":{"line":114,"column":11}},"line":111},"10":{"name":"(anonymous_10)","decl":{"start":{"line":121,"column":20},"end":{"line":121,"column":21}},"loc":{"start":{"line":121,"column":34},"end":{"line":123,"column":7}},"line":121},"11":{"name":"(anonymous_11)","decl":{"start":{"line":127,"column":2},"end":{"line":127,"column":3}},"loc":{"start":{"line":127,"column":14},"end":{"line":138,"column":3}},"line":127},"12":{"name":"(anonymous_12)","decl":{"start":{"line":132,"column":32},"end":{"line":132,"column":33}},"loc":{"start":{"line":132,"column":38},"end":{"line":136,"column":7}},"line":132},"13":{"name":"(anonymous_13)","decl":{"start":{"line":140,"column":2},"end":{"line":140,"column":3}},"loc":{"start":{"line":140,"column":14},"end":{"line":147,"column":3}},"line":140},"14":{"name":"(anonymous_14)","decl":{"start":{"line":149,"column":2},"end":{"line":149,"column":3}},"loc":{"start":{"line":149,"column":9},"end":{"line":159,"column":3}},"line":149},"15":{"name":"(anonymous_15)","decl":{"start":{"line":161,"column":15},"end":{"line":161,"column":16}},"loc":{"start":{"line":161,"column":47},"end":{"line":175,"column":3}},"line":161},"16":{"name":"(anonymous_16)","decl":{"start":{"line":171,"column":9},"end":{"line":171,"column":10}},"loc":{"start":{"line":171,"column":15},"end":{"line":173,"column":7}},"line":171},"17":{"name":"(anonymous_17)","decl":{"start":{"line":177,"column":2},"end":{"line":177,"column":3}},"loc":{"start":{"line":177,"column":17},"end":{"line":185,"column":3}},"line":177},"18":{"name":"(anonymous_18)","decl":{"start":{"line":187,"column":2},"end":{"line":187,"column":3}},"loc":{"start":{"line":187,"column":22},"end":{"line":195,"column":3}},"line":187},"19":{"name":"(anonymous_19)","decl":{"start":{"line":197,"column":2},"end":{"line":197,"column":3}},"loc":{"start":{"line":197,"column":19},"end":{"line":205,"column":3}},"line":197},"20":{"name":"(anonymous_20)","decl":{"start":{"line":207,"column":2},"end":{"line":207,"column":3}},"loc":{"start":{"line":207,"column":11},"end":{"line":225,"column":3}},"line":207}},"branchMap":{"0":{"loc":{"start":{"line":67,"column":4},"end":{"line":79,"column":5}},"type":"if","locations":[{"start":{"line":67,"column":4},"end":{"line":79,"column":5}}],"line":67},"1":{"loc":{"start":{"line":68,"column":6},"end":{"line":78,"column":7}},"type":"if","locations":[{"start":{"line":68,"column":6},"end":{"line":78,"column":7}},{"start":{"line":68,"column":6},"end":{"line":78,"column":7}}],"line":68},"2":{"loc":{"start":{"line":69,"column":8},"end":{"line":74,"column":9}},"type":"if","locations":[{"start":{"line":69,"column":8},"end":{"line":74,"column":9}},{"start":{"line":69,"column":8},"end":{"line":74,"column":9}}],"line":69},"3":{"loc":{"start":{"line":83,"column":4},"end":{"line":90,"column":5}},"type":"if","locations":[{"start":{"line":83,"column":4},"end":{"line":90,"column":5}},{"start":{"line":83,"column":4},"end":{"line":90,"column":5}}],"line":83},"4":{"loc":{"start":{"line":84,"column":6},"end":{"line":89,"column":7}},"type":"if","locations":[{"start":{"line":84,"column":6},"end":{"line":89,"column":7}},{"start":{"line":84,"column":6},"end":{"line":89,"column":7}}],"line":84},"5":{"loc":{"start":{"line":100,"column":4},"end":{"line":124,"column":5}},"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":124,"column":5}},{"start":{"line":100,"column":4},"end":{"line":124,"column":5}}],"line":100},"6":{"loc":{"start":{"line":101,"column":6},"end":{"line":105,"column":7}},"type":"if","locations":[{"start":{"line":101,"column":6},"end":{"line":105,"column":7}},{"start":{"line":101,"column":6},"end":{"line":105,"column":7}}],"line":101},"7":{"loc":{"start":{"line":107,"column":6},"end":{"line":116,"column":7}},"type":"if","locations":[{"start":{"line":107,"column":6},"end":{"line":116,"column":7}},{"start":{"line":107,"column":6},"end":{"line":116,"column":7}}],"line":107},"8":{"loc":{"start":{"line":128,"column":19},"end":{"line":128,"column":87}},"type":"cond-expr","locations":[{"start":{"line":128,"column":53},"end":{"line":128,"column":71}},{"start":{"line":128,"column":74},"end":{"line":128,"column":87}}],"line":128},"9":{"loc":{"start":{"line":131,"column":4},"end":{"line":137,"column":5}},"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":137,"column":5}}],"line":131},"10":{"loc":{"start":{"line":133,"column":8},"end":{"line":135,"column":9}},"type":"if","locations":[{"start":{"line":133,"column":8},"end":{"line":135,"column":9}},{"start":{"line":133,"column":8},"end":{"line":135,"column":9}}],"line":133},"11":{"loc":{"start":{"line":142,"column":4},"end":{"line":146,"column":5}},"type":"if","locations":[{"start":{"line":142,"column":4},"end":{"line":146,"column":5}}],"line":142},"12":{"loc":{"start":{"line":152,"column":4},"end":{"line":156,"column":5}},"type":"if","locations":[{"start":{"line":152,"column":4},"end":{"line":156,"column":5}},{"start":{"line":152,"column":4},"end":{"line":156,"column":5}}],"line":152},"13":{"loc":{"start":{"line":154,"column":14},"end":{"line":154,"column":70}},"type":"cond-expr","locations":[{"start":{"line":154,"column":25},"end":{"line":154,"column":39}},{"start":{"line":154,"column":42},"end":{"line":154,"column":70}}],"line":154},"14":{"loc":{"start":{"line":161,"column":26},"end":{"line":161,"column":42}},"type":"default-arg","locations":[{"start":{"line":161,"column":37},"end":{"line":161,"column":42}}],"line":161},"15":{"loc":{"start":{"line":162,"column":4},"end":{"line":165,"column":5}},"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":165,"column":5}},{"start":{"line":162,"column":4},"end":{"line":165,"column":5}}],"line":162},"16":{"loc":{"start":{"line":167,"column":4},"end":{"line":174,"column":5}},"type":"if","locations":[{"start":{"line":167,"column":4},"end":{"line":174,"column":5}},{"start":{"line":167,"column":4},"end":{"line":174,"column":5}}],"line":167},"17":{"loc":{"start":{"line":180,"column":4},"end":{"line":182,"column":5}},"type":"if","locations":[{"start":{"line":180,"column":4},"end":{"line":182,"column":5}},{"start":{"line":180,"column":4},"end":{"line":182,"column":5}}],"line":180},"18":{"loc":{"start":{"line":190,"column":4},"end":{"line":192,"column":5}},"type":"if","locations":[{"start":{"line":190,"column":4},"end":{"line":192,"column":5}},{"start":{"line":190,"column":4},"end":{"line":192,"column":5}}],"line":190},"19":{"loc":{"start":{"line":198,"column":4},"end":{"line":204,"column":5}},"type":"switch","locations":[{"start":{"line":199,"column":6},"end":{"line":199,"column":30}},{"start":{"line":200,"column":6},"end":{"line":201,"column":35}},{"start":{"line":202,"column":6},"end":{"line":203,"column":36}}],"line":198},"20":{"loc":{"start":{"line":211,"column":4},"end":{"line":218,"column":5}},"type":"if","locations":[{"start":{"line":211,"column":4},"end":{"line":218,"column":5}},{"start":{"line":211,"column":4},"end":{"line":218,"column":5}}],"line":211}},"s":{"0":1,"1":1,"2":1,"3":1,"4":22,"5":22,"6":22,"7":22,"8":22,"9":22,"10":20,"11":19,"12":1,"13":2,"14":45,"15":2,"16":1,"17":1,"18":1,"19":16,"20":16,"21":4,"22":3,"23":3,"24":3,"25":4,"26":1,"27":1,"28":1,"29":1,"30":1,"31":4,"32":12,"33":12,"34":7,"35":7,"36":7,"37":7,"38":4,"39":20,"40":20,"41":20,"42":20,"43":4,"44":16,"45":20,"46":3,"47":3,"48":17,"49":16,"50":16,"51":67,"52":67,"53":2,"54":67,"55":20,"56":20,"57":19,"58":1,"59":47,"60":6,"61":41,"62":67,"63":20,"64":47,"65":67},"f":{"0":22,"1":5,"2":22,"3":22,"4":45,"5":1,"6":16,"7":3,"8":1,"9":1,"10":12,"11":7,"12":7,"13":20,"14":20,"15":20,"16":16,"17":67,"18":20,"19":47,"20":67},"b":{"0":[22],"1":[20,2],"2":[19,1],"3":[2,43],"4":[1,1],"5":[4,12],"6":[3,1],"7":[1,3],"8":[2,5],"9":[7],"10":[4,3],"11":[20],"12":[4,16],"13":[1,3],"14":[17],"15":[3,17],"16":[16,1],"17":[2,65],"18":[19,1],"19":[2,6,41],"20":[20,47]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"18ce8e0d65511cc720de39a3234d1f7e8a81b92a"} | ||
,"/Users/gilbarbara/Sites/react-inlinesvg/src/utils.js": {"path":"/Users/gilbarbara/Sites/react-inlinesvg/src/utils.js","statementMap":{"0":{"start":{"line":3,"column":33},"end":{"line":12,"column":2}},"1":{"start":{"line":9,"column":14},"end":{"line":9,"column":43}},"2":{"start":{"line":10,"column":2},"end":{"line":10,"column":28}},"3":{"start":{"line":11,"column":2},"end":{"line":11,"column":88}},"4":{"start":{"line":14,"column":38},"end":{"line":20,"column":1}},"5":{"start":{"line":15,"column":2},"end":{"line":19,"column":24}},"6":{"start":{"line":22,"column":28},"end":{"line":34,"column":1}},"7":{"start":{"line":23,"column":18},"end":{"line":23,"column":46}},"8":{"start":{"line":24,"column":18},"end":{"line":24,"column":30}},"9":{"start":{"line":25,"column":18},"end":{"line":25,"column":59}},"10":{"start":{"line":27,"column":26},"end":{"line":27,"column":82}},"11":{"start":{"line":27,"column":35},"end":{"line":27,"column":82}},"12":{"start":{"line":29,"column":10},"end":{"line":29,"column":12}},"13":{"start":{"line":30,"column":2},"end":{"line":32,"column":3}},"14":{"start":{"line":31,"column":4},"end":{"line":31,"column":34}},"15":{"start":{"line":33,"column":2},"end":{"line":33,"column":11}},"16":{"start":{"line":36,"column":30},"end":{"line":57,"column":4}},"17":{"start":{"line":37,"column":29},"end":{"line":37,"column":61}},"18":{"start":{"line":37,"column":37},"end":{"line":37,"column":61}},"19":{"start":{"line":39,"column":20},"end":{"line":39,"column":231}},"20":{"start":{"line":41,"column":2},"end":{"line":56,"column":4}},"21":{"start":{"line":42,"column":23},"end":{"line":42,"column":47}},"22":{"start":{"line":42,"column":29},"end":{"line":42,"column":47}},"23":{"start":{"line":44,"column":4},"end":{"line":55,"column":7}},"24":{"start":{"line":46,"column":6},"end":{"line":54,"column":7}},"25":{"start":{"line":47,"column":8},"end":{"line":47,"column":45}},"26":{"start":{"line":61,"column":4},"end":{"line":61,"column":12}},"27":{"start":{"line":63,"column":4},"end":{"line":63,"column":33}},"28":{"start":{"line":64,"column":4},"end":{"line":64,"column":35}},"29":{"start":{"line":65,"column":4},"end":{"line":65,"column":38}},"30":{"start":{"line":66,"column":4},"end":{"line":66,"column":43}},"31":{"start":{"line":67,"column":4},"end":{"line":67,"column":27}},"32":{"start":{"line":69,"column":4},"end":{"line":69,"column":16}},"33":{"start":{"line":73,"column":20},"end":{"line":80,"column":1}},"34":{"start":{"line":74,"column":14},"end":{"line":74,"column":41}},"35":{"start":{"line":76,"column":2},"end":{"line":79,"column":4}},"36":{"start":{"line":82,"column":39},"end":{"line":94,"column":1}},"37":{"start":{"line":83,"column":19},"end":{"line":83,"column":26}},"38":{"start":{"line":86,"column":2},"end":{"line":88,"column":3}},"39":{"start":{"line":87,"column":4},"end":{"line":87,"column":39}},"40":{"start":{"line":90,"column":2},"end":{"line":93,"column":5}},"41":{"start":{"line":96,"column":34},"end":{"line":98,"column":2}},"42":{"start":{"line":96,"column":45},"end":{"line":98,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":38},"end":{"line":3,"column":39}},"loc":{"start":{"line":3,"column":44},"end":{"line":12,"column":1}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":14,"column":43},"end":{"line":14,"column":44}},"loc":{"start":{"line":15,"column":2},"end":{"line":19,"column":24}},"line":15},"2":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":28},"end":{"line":22,"column":29}},"loc":{"start":{"line":22,"column":44},"end":{"line":34,"column":1}},"line":22},"3":{"name":"(anonymous_3)","decl":{"start":{"line":27,"column":26},"end":{"line":27,"column":27}},"loc":{"start":{"line":27,"column":35},"end":{"line":27,"column":82}},"line":27},"4":{"name":"(anonymous_4)","decl":{"start":{"line":36,"column":31},"end":{"line":36,"column":32}},"loc":{"start":{"line":36,"column":37},"end":{"line":57,"column":1}},"line":36},"5":{"name":"(anonymous_5)","decl":{"start":{"line":37,"column":29},"end":{"line":37,"column":30}},"loc":{"start":{"line":37,"column":37},"end":{"line":37,"column":61}},"line":37},"6":{"name":"(anonymous_6)","decl":{"start":{"line":41,"column":9},"end":{"line":41,"column":10}},"loc":{"start":{"line":41,"column":29},"end":{"line":56,"column":3}},"line":41},"7":{"name":"(anonymous_7)","decl":{"start":{"line":42,"column":23},"end":{"line":42,"column":24}},"loc":{"start":{"line":42,"column":29},"end":{"line":42,"column":47}},"line":42},"8":{"name":"(anonymous_8)","decl":{"start":{"line":44,"column":38},"end":{"line":44,"column":39}},"loc":{"start":{"line":44,"column":65},"end":{"line":55,"column":5}},"line":44},"9":{"name":"(anonymous_9)","decl":{"start":{"line":60,"column":2},"end":{"line":60,"column":3}},"loc":{"start":{"line":60,"column":23},"end":{"line":70,"column":3}},"line":60},"10":{"name":"(anonymous_10)","decl":{"start":{"line":73,"column":20},"end":{"line":73,"column":21}},"loc":{"start":{"line":73,"column":40},"end":{"line":80,"column":1}},"line":73},"11":{"name":"(anonymous_11)","decl":{"start":{"line":82,"column":39},"end":{"line":82,"column":40}},"loc":{"start":{"line":82,"column":50},"end":{"line":94,"column":1}},"line":82},"12":{"name":"(anonymous_12)","decl":{"start":{"line":96,"column":34},"end":{"line":96,"column":35}},"loc":{"start":{"line":96,"column":45},"end":{"line":98,"column":2}},"line":96}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":9},"end":{"line":11,"column":87}},"type":"binary-expr","locations":[{"start":{"line":11,"column":9},"end":{"line":11,"column":23}},{"start":{"line":11,"column":27},"end":{"line":11,"column":87}}],"line":11},"1":{"loc":{"start":{"line":15,"column":2},"end":{"line":19,"column":24}},"type":"binary-expr","locations":[{"start":{"line":16,"column":5},"end":{"line":16,"column":85}},{"start":{"line":17,"column":5},"end":{"line":17,"column":85}},{"start":{"line":19,"column":5},"end":{"line":19,"column":24}}],"line":15},"2":{"loc":{"start":{"line":16,"column":5},"end":{"line":16,"column":85}},"type":"cond-expr","locations":[{"start":{"line":16,"column":56},"end":{"line":16,"column":77}},{"start":{"line":16,"column":80},"end":{"line":16,"column":85}}],"line":16},"3":{"loc":{"start":{"line":16,"column":5},"end":{"line":16,"column":53}},"type":"binary-expr","locations":[{"start":{"line":16,"column":5},"end":{"line":16,"column":34}},{"start":{"line":16,"column":38},"end":{"line":16,"column":53}}],"line":16},"4":{"loc":{"start":{"line":17,"column":5},"end":{"line":17,"column":85}},"type":"cond-expr","locations":[{"start":{"line":17,"column":56},"end":{"line":17,"column":77}},{"start":{"line":17,"column":80},"end":{"line":17,"column":85}}],"line":17},"5":{"loc":{"start":{"line":17,"column":5},"end":{"line":17,"column":53}},"type":"binary-expr","locations":[{"start":{"line":17,"column":5},"end":{"line":17,"column":34}},{"start":{"line":17,"column":38},"end":{"line":17,"column":53}}],"line":17},"6":{"loc":{"start":{"line":22,"column":29},"end":{"line":22,"column":39}},"type":"default-arg","locations":[{"start":{"line":22,"column":38},"end":{"line":22,"column":39}}],"line":22},"7":{"loc":{"start":{"line":46,"column":6},"end":{"line":54,"column":7}},"type":"if","locations":[{"start":{"line":46,"column":6},"end":{"line":54,"column":7}}],"line":46},"8":{"loc":{"start":{"line":86,"column":2},"end":{"line":88,"column":3}},"type":"if","locations":[{"start":{"line":86,"column":2},"end":{"line":88,"column":3}}],"line":86}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":8,"12":1,"13":1,"14":8,"15":1,"16":1,"17":1,"18":4,"19":1,"20":1,"21":19,"22":976,"23":19,"24":976,"25":970,"26":4,"27":4,"28":4,"29":4,"30":4,"31":4,"32":4,"33":1,"34":4,"35":4,"36":1,"37":2,"38":2,"39":2,"40":2,"41":1,"42":2},"f":{"0":1,"1":1,"2":1,"3":8,"4":1,"5":4,"6":19,"7":976,"8":976,"9":4,"10":4,"11":2,"12":2},"b":{"0":[1,1],"1":[1,0,1],"2":[1,0],"3":[1,1],"4":[0,0],"5":[0,0],"6":[1],"7":[970],"8":[2]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"0dc447a774f0d18bc092e4da2319376f4ab4ce38"} | ||
} |
@@ -141,3 +141,3 @@ 'use strict'; | ||
if (!getRequestsByUrl[src]) { | ||
getRequestsByUrl[src] = [callback]; | ||
getRequestsByUrl[src] = []; | ||
@@ -151,2 +151,4 @@ http.get(src, function (err, res) { | ||
} | ||
getRequestsByUrl[src].push(callback); | ||
} else { | ||
@@ -153,0 +155,0 @@ http.get(src, function (err, res) { |
{ | ||
"name": "react-inlinesvg", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "An SVG loader for React", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/matthewwithanm/react-inlinesvg.git" | ||
"url": "git://github.com/gilbarbara/react-inlinesvg.git" | ||
}, | ||
@@ -15,7 +15,7 @@ "keywords": [ | ||
], | ||
"author": "Matthew Dapena-Tretter <m@tthewwithanm.com>", | ||
"author": "Gil Barbara <gilbarbara@gmail.com>", | ||
"contributors": [ | ||
{ | ||
"name": "Gil Barbara", | ||
"email": "gilbarbara@gmail.com" | ||
"name": "Matthew Dapena-Tretter", | ||
"email": "m@tthewwithanm.com" | ||
} | ||
@@ -25,3 +25,3 @@ ], | ||
"bugs": { | ||
"url": "https://github.com/matthewwithanm/react-inlinesvg/issues" | ||
"url": "https://github.com/gilbarbara/react-inlinesvg/issues" | ||
}, | ||
@@ -40,6 +40,5 @@ "main": "./lib/index.js", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.0.1", | ||
"babel-eslint": "^8.0.2", | ||
"babel-jest": "^21.2.0", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-rewire": "1.1.0", | ||
"babel-preset-env": "^1.6.1", | ||
@@ -53,4 +52,4 @@ "babel-preset-react": "^6.24.1", | ||
"cors": "^2.8.4", | ||
"enzyme": "^3.1.0", | ||
"enzyme-adapter-react-16": "^1.0.2", | ||
"enzyme": "^3.1.1", | ||
"enzyme-adapter-react-16": "^1.0.4", | ||
"eslint": "^4.10.0", | ||
@@ -69,9 +68,10 @@ "eslint-config-airbnb": "^16.1.0", | ||
"gulp-util": "^3.0.8", | ||
"husky": "^0.14.3", | ||
"jest-cli": "^21.2.1", | ||
"jest-enzyme": "^4.0.1", | ||
"jsdom": "^11.3.0", | ||
"react": "^16.0.0", | ||
"react": "^16.1.0", | ||
"react-addons-test-utils": "^15.6.2", | ||
"react-dom": "^16.0.0", | ||
"react-test-renderer": "^16.0.0", | ||
"react-dom": "^16.1.0", | ||
"react-test-renderer": "^16.1.0", | ||
"vinyl-source-stream": "^1.1.0" | ||
@@ -82,3 +82,3 @@ }, | ||
"serve": "gulp test-server", | ||
"test": "npm run serve & jest --config config/jest.config.js --bail --coverage; kill %1", | ||
"test": "npm run serve & SERVE_PID=$! && jest --config config/jest.config.js --bail --coverage && kill $SERVE_PID", | ||
"test:watch": "jest --config config/jest.config.js --watch", | ||
@@ -85,0 +85,0 @@ "lint": "eslint -c ./.eslintrc $(find src -name '*.js')", |
# react-inlinesvg | ||
<a href="https://www.npmjs.com/package/react-inlinesvg" target="_blank">![](https://badge.fury.io/js/react-inlinesvg.svg)</a> | ||
[![NPM version](https://badge.fury.io/js/react-inlinesvg.svg)](https://badge.fury.io/js/react-inlinesvg.svg) | ||
[![build status](https://travis-ci.org/gilbarbara/react-inlinesvg.svg)](https://travis-ci.org/gilbarbara/react-inlinesvg) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/c7e42fe511b80cc25760/maintainability)](https://codeclimate.com/github/gilbarbara/react-inlinesvg/maintainability) | ||
[![Test Coverage](https://api.codeclimate.com/v1/badges/c7e42fe511b80cc25760/test_coverage)](https://codeclimate.com/github/gilbarbara/react-inlinesvg/test_coverage) | ||
@@ -59,26 +62,26 @@ One of the reasons SVGs are awesome is because you can style them with CSS. | ||
**src** `string` | ||
**src** `string` | ||
The SVG file you want to load. It can be an `url` or a string (base64 or encoded) | ||
**wrapper** `function` | ||
**wrapper** `function` | ||
A React class or a function that returns a component instance to be used as the wrapper component. Defaults to `React.createFactory('span')` | ||
**preloader** `node` | ||
**preloader** `node` | ||
A component to be shown while the SVG is loading. | ||
**cacheGetRequests** `boolean` | ||
A boolean to only request SVGs once. Default is `false`. | ||
**cacheGetRequests** `boolean` | ||
A boolean to only request SVGs once. Default is `false`. | ||
**uniquifyIDs** `boolean` | ||
A boolean that create unique IDs for each icon by hashing it. Default is `true`. | ||
**uniquifyIDs** `boolean` | ||
A boolean that create unique IDs for each icon by hashing it. Default is `true`. | ||
**uniqueHash** `string` | ||
**uniqueHash** `string` | ||
A string to use with `uniquifyIDs`. Default to a random 8 characters string `[A-Za-z0-9]` | ||
**onLoad** `function` | ||
A callback to be invoked upon successful load. | ||
This will receive 2 arguments: the `src` prop and a `isCached` boolean | ||
**onLoad** `function` | ||
A callback to be invoked upon successful load. | ||
This will receive 2 arguments: the `src` prop and a `isCached` boolean | ||
**onError** `function` | ||
A callback to be invoked if loading the SVG fails. | ||
**onError** `function` | ||
A callback to be invoked if loading the SVG fails. | ||
This will receive a single argument: | ||
@@ -94,3 +97,3 @@ | ||
} | ||
``` | ||
``` | ||
@@ -114,3 +117,3 @@ - or an `InlineSVGError`, which has the following properties: | ||
Any browsers that support inlining SVGs and XHR will work. The component goes out of its way to handle IE9's weird XHR support so, IE9 and up get your SVG; | ||
lesser browsers get the fallback. | ||
lesser browsers get the fallback. | ||
We use [httpplease](https://github.com/matthewwithanm/httpplease.js) for XHR requests. | ||
@@ -136,1 +139,7 @@ | ||
[use-support]: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use#Browser_compatibility | ||
Credits | ||
---- | ||
Thanks to [@matthewwithanm](https://github.com/matthewwithanm) for creating this component and so kindly transfer it to me. | ||
I'll definitely keep the good work! ❤️ |
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
32
873
142
2
171658