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

kremling

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kremling - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

coverage/chrome/coverage.txt
{
"/Users/tonylefler/projects/kremling/src/classname-helpers.js":{"path":"/Users/tonylefler/projects/kremling/src/classname-helpers.js","statementMap":{"0":{"start":{"line":5,"column":2},"end":{"line":5,"column":40}},"1":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"2":{"start":{"line":10,"column":4},"end":{"line":10,"column":104}},"3":{"start":{"line":12,"column":2},"end":{"line":12,"column":50}},"4":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":106}},"6":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"7":{"start":{"line":23,"column":19},"end":{"line":23,"column":84}},"8":{"start":{"line":24,"column":14},"end":{"line":24,"column":64}},"9":{"start":{"line":25,"column":2},"end":{"line":25,"column":26}},"10":{"start":{"line":26,"column":2},"end":{"line":26,"column":18}},"11":{"start":{"line":27,"column":2},"end":{"line":27,"column":32}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":21}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":30}},"14":{"start":{"line":30,"column":2},"end":{"line":30,"column":20}},"15":{"start":{"line":31,"column":2},"end":{"line":31,"column":32}},"16":{"start":{"line":32,"column":2},"end":{"line":32,"column":21}},"17":{"start":{"line":33,"column":2},"end":{"line":33,"column":13}}},"fnMap":{"0":{"name":"css","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":19}},"loc":{"start":{"line":1,"column":29},"end":{"line":2,"column":1}},"line":1},"1":{"name":"always","decl":{"start":{"line":4,"column":16},"end":{"line":4,"column":22}},"loc":{"start":{"line":4,"column":32},"end":{"line":6,"column":1}},"line":4},"2":{"name":"maybe","decl":{"start":{"line":8,"column":16},"end":{"line":8,"column":21}},"loc":{"start":{"line":8,"column":42},"end":{"line":13,"column":1}},"line":8},"3":{"name":"toggle","decl":{"start":{"line":15,"column":16},"end":{"line":15,"column":22}},"loc":{"start":{"line":15,"column":56},"end":{"line":20,"column":1}},"line":15},"4":{"name":"chainify","decl":{"start":{"line":22,"column":9},"end":{"line":22,"column":17}},"loc":{"start":{"line":22,"column":45},"end":{"line":34,"column":1}},"line":22}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{"line":9,"column":2},"end":{"line":11,"column":3}}],"line":9},"1":{"loc":{"start":{"line":12,"column":24},"end":{"line":12,"column":48}},"type":"cond-expr","locations":[{"start":{"line":12,"column":34},"end":{"line":12,"column":43}},{"start":{"line":12,"column":46},"end":{"line":12,"column":48}}],"line":12},"2":{"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}}],"line":16},"3":{"loc":{"start":{"line":16,"column":6},"end":{"line":16,"column":70}},"type":"binary-expr","locations":[{"start":{"line":16,"column":6},"end":{"line":16,"column":36}},{"start":{"line":16,"column":40},"end":{"line":16,"column":70}}],"line":16},"4":{"loc":{"start":{"line":19,"column":24},"end":{"line":19,"column":57}},"type":"cond-expr","locations":[{"start":{"line":19,"column":34},"end":{"line":19,"column":44}},{"start":{"line":19,"column":47},"end":{"line":19,"column":57}}],"line":19},"5":{"loc":{"start":{"line":23,"column":19},"end":{"line":23,"column":84}},"type":"cond-expr","locations":[{"start":{"line":23,"column":54},"end":{"line":23,"column":79}},{"start":{"line":23,"column":82},"end":{"line":23,"column":84}}],"line":23}},"s":{"0":13,"1":16,"2":2,"3":14,"4":14,"5":2,"6":12,"7":39,"8":39,"9":39,"10":39,"11":39,"12":39,"13":39,"14":39,"15":39,"16":39,"17":39},"f":{"0":0,"1":13,"2":16,"3":14,"4":39},"b":{"0":[2,14],"1":[9,5],"2":[2,12],"3":[14,14],"4":[6,6],"5":[24,15]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"54c89cc627836d5ce6555ca56d94803157620c2c","l":{"5":13,"9":16,"10":2,"12":14,"16":14,"17":2,"19":12,"23":39,"24":39,"25":39,"26":39,"27":39,"28":39,"29":39,"30":39,"31":39,"32":39,"33":39}},
"/Users/tonylefler/projects/kremling/src/scoped.component.js":{"path":"/Users/tonylefler/projects/kremling/src/scoped.component.js","statementMap":{"0":{"start":{"line":5,"column":18},"end":{"line":5,"column":20}},"1":{"start":{"line":6,"column":14},"end":{"line":6,"column":15}},"2":{"start":{"line":8,"column":37},"end":{"line":8,"column":60}},"3":{"start":{"line":20,"column":4},"end":{"line":20,"column":17}},"4":{"start":{"line":21,"column":4},"end":{"line":21,"column":20}},"5":{"start":{"line":22,"column":4},"end":{"line":22,"column":131}},"6":{"start":{"line":22,"column":38},"end":{"line":22,"column":131}},"7":{"start":{"line":23,"column":4},"end":{"line":23,"column":146}},"8":{"start":{"line":23,"column":36},"end":{"line":23,"column":146}},"9":{"start":{"line":24,"column":4},"end":{"line":24,"column":224}},"10":{"start":{"line":24,"column":70},"end":{"line":24,"column":224}},"11":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"12":{"start":{"line":26,"column":6},"end":{"line":26,"column":43}},"13":{"start":{"line":28,"column":6},"end":{"line":28,"column":47}},"14":{"start":{"line":33,"column":29},"end":{"line":39,"column":6}},"15":{"start":{"line":34,"column":6},"end":{"line":38,"column":7}},"16":{"start":{"line":35,"column":8},"end":{"line":35,"column":104}},"17":{"start":{"line":37,"column":8},"end":{"line":37,"column":21}},"18":{"start":{"line":41,"column":4},"end":{"line":52,"column":5}},"19":{"start":{"line":42,"column":6},"end":{"line":42,"column":30}},"20":{"start":{"line":45,"column":6},"end":{"line":51,"column":7}},"21":{"start":{"line":46,"column":8},"end":{"line":46,"column":126}},"22":{"start":{"line":47,"column":13},"end":{"line":51,"column":7}},"23":{"start":{"line":48,"column":8},"end":{"line":48,"column":35}},"24":{"start":{"line":50,"column":8},"end":{"line":50,"column":20}},"25":{"start":{"line":56,"column":4},"end":{"line":68,"column":5}},"26":{"start":{"line":57,"column":6},"end":{"line":60,"column":7}},"27":{"start":{"line":58,"column":8},"end":{"line":58,"column":27}},"28":{"start":{"line":59,"column":8},"end":{"line":59,"column":51}},"29":{"start":{"line":62,"column":6},"end":{"line":67,"column":7}},"30":{"start":{"line":65,"column":8},"end":{"line":65,"column":31}},"31":{"start":{"line":66,"column":8},"end":{"line":66,"column":56}},"32":{"start":{"line":72,"column":4},"end":{"line":76,"column":5}},"33":{"start":{"line":73,"column":6},"end":{"line":73,"column":25}},"34":{"start":{"line":75,"column":6},"end":{"line":75,"column":29}},"35":{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},"36":{"start":{"line":81,"column":6},"end":{"line":81,"column":13}},"37":{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},"38":{"start":{"line":85,"column":6},"end":{"line":85,"column":122}},"39":{"start":{"line":89,"column":26},"end":{"line":89,"column":46}},"40":{"start":{"line":91,"column":4},"end":{"line":136,"column":5}},"41":{"start":{"line":92,"column":6},"end":{"line":92,"column":31}},"42":{"start":{"line":93,"column":6},"end":{"line":93,"column":32}},"43":{"start":{"line":94,"column":6},"end":{"line":94,"column":47}},"44":{"start":{"line":95,"column":6},"end":{"line":95,"column":49}},"45":{"start":{"line":98,"column":6},"end":{"line":98,"column":78}},"46":{"start":{"line":99,"column":6},"end":{"line":99,"column":36}},"47":{"start":{"line":102,"column":31},"end":{"line":102,"column":77}},"48":{"start":{"line":103,"column":29},"end":{"line":124,"column":8}},"49":{"start":{"line":104,"column":8},"end":{"line":123,"column":29}},"50":{"start":{"line":107,"column":12},"end":{"line":107,"column":39}},"51":{"start":{"line":110,"column":12},"end":{"line":110,"column":86}},"52":{"start":{"line":110,"column":46},"end":{"line":110,"column":86}},"53":{"start":{"line":112,"column":12},"end":{"line":112,"column":67}},"54":{"start":{"line":114,"column":26},"end":{"line":114,"column":31}},"55":{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},"56":{"start":{"line":116,"column":14},"end":{"line":116,"column":29}},"57":{"start":{"line":119,"column":12},"end":{"line":121,"column":82}},"58":{"start":{"line":127,"column":17},"end":{"line":127,"column":48}},"59":{"start":{"line":128,"column":6},"end":{"line":128,"column":42}},"60":{"start":{"line":129,"column":6},"end":{"line":129,"column":38}},"61":{"start":{"line":130,"column":6},"end":{"line":130,"column":23}},"62":{"start":{"line":131,"column":6},"end":{"line":131,"column":41}},"63":{"start":{"line":132,"column":6},"end":{"line":132,"column":43}},"64":{"start":{"line":133,"column":6},"end":{"line":133,"column":36}},"65":{"start":{"line":134,"column":6},"end":{"line":134,"column":32}},"66":{"start":{"line":135,"column":6},"end":{"line":135,"column":20}},"67":{"start":{"line":138,"column":4},"end":{"line":143,"column":6}},"68":{"start":{"line":147,"column":4},"end":{"line":150,"column":5}},"69":{"start":{"line":148,"column":6},"end":{"line":148,"column":70}},"70":{"start":{"line":149,"column":6},"end":{"line":149,"column":39}},"71":{"start":{"line":154,"column":4},"end":{"line":154,"column":37}},"72":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"73":{"start":{"line":156,"column":6},"end":{"line":156,"column":70}},"74":{"start":{"line":161,"column":29},"end":{"line":161,"column":71}},"75":{"start":{"line":162,"column":30},"end":{"line":162,"column":46}},"76":{"start":{"line":163,"column":19},"end":{"line":163,"column":117}},"77":{"start":{"line":164,"column":4},"end":{"line":170,"column":5}},"78":{"start":{"line":165,"column":6},"end":{"line":165,"column":49}},"79":{"start":{"line":166,"column":6},"end":{"line":166,"column":48}},"80":{"start":{"line":167,"column":6},"end":{"line":167,"column":27}},"81":{"start":{"line":169,"column":6},"end":{"line":169,"column":28}},"82":{"start":{"line":171,"column":4},"end":{"line":171,"column":63}},"83":{"start":{"line":172,"column":4},"end":{"line":172,"column":46}},"84":{"start":{"line":173,"column":4},"end":{"line":173,"column":40}},"85":{"start":{"line":174,"column":4},"end":{"line":178,"column":5}},"86":{"start":{"line":185,"column":2},"end":{"line":185,"column":14}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":19,"column":2},"end":{"line":19,"column":3}},"loc":{"start":{"line":19,"column":21},"end":{"line":30,"column":3}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":3}},"loc":{"start":{"line":32,"column":11},"end":{"line":53,"column":3}},"line":32},"2":{"name":"(anonymous_2)","decl":{"start":{"line":33,"column":69},"end":{"line":33,"column":70}},"loc":{"start":{"line":33,"column":78},"end":{"line":39,"column":5}},"line":33},"3":{"name":"(anonymous_3)","decl":{"start":{"line":55,"column":2},"end":{"line":55,"column":3}},"loc":{"start":{"line":55,"column":32},"end":{"line":69,"column":3}},"line":55},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":2},"end":{"line":71,"column":3}},"loc":{"start":{"line":71,"column":25},"end":{"line":77,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":2},"end":{"line":79,"column":3}},"loc":{"start":{"line":79,"column":21},"end":{"line":144,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":103,"column":63},"end":{"line":103,"column":64}},"loc":{"start":{"line":103,"column":83},"end":{"line":124,"column":7}},"line":103},"7":{"name":"(anonymous_7)","decl":{"start":{"line":106,"column":15},"end":{"line":106,"column":16}},"loc":{"start":{"line":106,"column":27},"end":{"line":122,"column":11}},"line":106},"8":{"name":"(anonymous_8)","decl":{"start":{"line":146,"column":16},"end":{"line":146,"column":17}},"loc":{"start":{"line":146,"column":22},"end":{"line":151,"column":3}},"line":146},"9":{"name":"(anonymous_9)","decl":{"start":{"line":153,"column":20},"end":{"line":153,"column":21}},"loc":{"start":{"line":153,"column":26},"end":{"line":158,"column":3}},"line":153},"10":{"name":"(anonymous_10)","decl":{"start":{"line":160,"column":20},"end":{"line":160,"column":21}},"loc":{"start":{"line":160,"column":31},"end":{"line":179,"column":3}},"line":160},"11":{"name":"resetCounter","decl":{"start":{"line":184,"column":16},"end":{"line":184,"column":28}},"loc":{"start":{"line":184,"column":31},"end":{"line":186,"column":1}},"line":184}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":4},"end":{"line":22,"column":131}},"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":131}},{"start":{"line":22,"column":4},"end":{"line":22,"column":131}}],"line":22},"1":{"loc":{"start":{"line":22,"column":8},"end":{"line":22,"column":36}},"type":"binary-expr","locations":[{"start":{"line":22,"column":8},"end":{"line":22,"column":18}},{"start":{"line":22,"column":22},"end":{"line":22,"column":36}}],"line":22},"2":{"loc":{"start":{"line":23,"column":4},"end":{"line":23,"column":146}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":146}},{"start":{"line":23,"column":4},"end":{"line":23,"column":146}}],"line":23},"3":{"loc":{"start":{"line":23,"column":8},"end":{"line":23,"column":34}},"type":"binary-expr","locations":[{"start":{"line":23,"column":8},"end":{"line":23,"column":17}},{"start":{"line":23,"column":21},"end":{"line":23,"column":34}}],"line":23},"4":{"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":224}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":224}},{"start":{"line":24,"column":4},"end":{"line":24,"column":224}}],"line":24},"5":{"loc":{"start":{"line":24,"column":8},"end":{"line":24,"column":68}},"type":"binary-expr","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":21}},{"start":{"line":24,"column":25},"end":{"line":24,"column":68}}],"line":24},"6":{"loc":{"start":{"line":24,"column":27},"end":{"line":24,"column":67}},"type":"binary-expr","locations":[{"start":{"line":24,"column":27},"end":{"line":24,"column":47}},{"start":{"line":24,"column":51},"end":{"line":24,"column":67}}],"line":24},"7":{"loc":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},{"start":{"line":25,"column":4},"end":{"line":29,"column":5}}],"line":25},"8":{"loc":{"start":{"line":34,"column":6},"end":{"line":38,"column":7}},"type":"if","locations":[{"start":{"line":34,"column":6},"end":{"line":38,"column":7}},{"start":{"line":34,"column":6},"end":{"line":38,"column":7}}],"line":34},"9":{"loc":{"start":{"line":41,"column":4},"end":{"line":52,"column":5}},"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":52,"column":5}},{"start":{"line":41,"column":4},"end":{"line":52,"column":5}}],"line":41},"10":{"loc":{"start":{"line":45,"column":6},"end":{"line":51,"column":7}},"type":"if","locations":[{"start":{"line":45,"column":6},"end":{"line":51,"column":7}},{"start":{"line":45,"column":6},"end":{"line":51,"column":7}}],"line":45},"11":{"loc":{"start":{"line":47,"column":13},"end":{"line":51,"column":7}},"type":"if","locations":[{"start":{"line":47,"column":13},"end":{"line":51,"column":7}},{"start":{"line":47,"column":13},"end":{"line":51,"column":7}}],"line":47},"12":{"loc":{"start":{"line":56,"column":4},"end":{"line":68,"column":5}},"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":68,"column":5}},{"start":{"line":56,"column":4},"end":{"line":68,"column":5}}],"line":56},"13":{"loc":{"start":{"line":57,"column":6},"end":{"line":60,"column":7}},"type":"if","locations":[{"start":{"line":57,"column":6},"end":{"line":60,"column":7}},{"start":{"line":57,"column":6},"end":{"line":60,"column":7}}],"line":57},"14":{"loc":{"start":{"line":62,"column":6},"end":{"line":67,"column":7}},"type":"if","locations":[{"start":{"line":62,"column":6},"end":{"line":67,"column":7}},{"start":{"line":62,"column":6},"end":{"line":67,"column":7}}],"line":62},"15":{"loc":{"start":{"line":62,"column":10},"end":{"line":64,"column":71}},"type":"binary-expr","locations":[{"start":{"line":62,"column":10},"end":{"line":62,"column":56}},{"start":{"line":63,"column":11},"end":{"line":63,"column":65}},{"start":{"line":64,"column":11},"end":{"line":64,"column":71}}],"line":62},"16":{"loc":{"start":{"line":72,"column":4},"end":{"line":76,"column":5}},"type":"if","locations":[{"start":{"line":72,"column":4},"end":{"line":76,"column":5}},{"start":{"line":72,"column":4},"end":{"line":76,"column":5}}],"line":72},"17":{"loc":{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},"type":"if","locations":[{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},{"start":{"line":80,"column":4},"end":{"line":82,"column":5}}],"line":80},"18":{"loc":{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},{"start":{"line":84,"column":4},"end":{"line":86,"column":5}}],"line":84},"19":{"loc":{"start":{"line":84,"column":8},"end":{"line":84,"column":65}},"type":"binary-expr","locations":[{"start":{"line":84,"column":8},"end":{"line":84,"column":34}},{"start":{"line":84,"column":38},"end":{"line":84,"column":65}}],"line":84},"20":{"loc":{"start":{"line":91,"column":4},"end":{"line":136,"column":5}},"type":"if","locations":[{"start":{"line":91,"column":4},"end":{"line":136,"column":5}},{"start":{"line":91,"column":4},"end":{"line":136,"column":5}}],"line":91},"21":{"loc":{"start":{"line":98,"column":33},"end":{"line":98,"column":75}},"type":"binary-expr","locations":[{"start":{"line":98,"column":33},"end":{"line":98,"column":48}},{"start":{"line":98,"column":52},"end":{"line":98,"column":75}}],"line":98},"22":{"loc":{"start":{"line":110,"column":12},"end":{"line":110,"column":86}},"type":"if","locations":[{"start":{"line":110,"column":12},"end":{"line":110,"column":86}},{"start":{"line":110,"column":12},"end":{"line":110,"column":86}}],"line":110},"23":{"loc":{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},"type":"if","locations":[{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},{"start":{"line":115,"column":12},"end":{"line":117,"column":13}}],"line":115},"24":{"loc":{"start":{"line":119,"column":19},"end":{"line":121,"column":81}},"type":"cond-expr","locations":[{"start":{"line":120,"column":16},"end":{"line":120,"column":81}},{"start":{"line":121,"column":16},"end":{"line":121,"column":81}}],"line":119},"25":{"loc":{"start":{"line":147,"column":4},"end":{"line":150,"column":5}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":150,"column":5}},{"start":{"line":147,"column":4},"end":{"line":150,"column":5}}],"line":147},"26":{"loc":{"start":{"line":147,"column":8},"end":{"line":147,"column":68}},"type":"binary-expr","locations":[{"start":{"line":147,"column":8},"end":{"line":147,"column":27}},{"start":{"line":147,"column":31},"end":{"line":147,"column":68}}],"line":147},"27":{"loc":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"type":"if","locations":[{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},{"start":{"line":155,"column":4},"end":{"line":157,"column":5}}],"line":155},"28":{"loc":{"start":{"line":161,"column":29},"end":{"line":161,"column":71}},"type":"binary-expr","locations":[{"start":{"line":161,"column":29},"end":{"line":161,"column":52}},{"start":{"line":161,"column":56},"end":{"line":161,"column":71}}],"line":161},"29":{"loc":{"start":{"line":163,"column":19},"end":{"line":163,"column":117}},"type":"binary-expr","locations":[{"start":{"line":163,"column":19},"end":{"line":163,"column":38}},{"start":{"line":163,"column":42},"end":{"line":163,"column":117}}],"line":163},"30":{"loc":{"start":{"line":164,"column":4},"end":{"line":170,"column":5}},"type":"if","locations":[{"start":{"line":164,"column":4},"end":{"line":170,"column":5}},{"start":{"line":164,"column":4},"end":{"line":170,"column":5}}],"line":164}},"s":{"0":2,"1":2,"2":2,"3":19,"4":19,"5":19,"6":0,"7":19,"8":0,"9":19,"10":0,"11":19,"12":13,"13":6,"14":23,"15":23,"16":22,"17":1,"18":23,"19":23,"20":0,"21":0,"22":0,"23":0,"24":0,"25":4,"26":0,"27":0,"28":0,"29":4,"30":2,"31":2,"32":16,"33":13,"34":3,"35":13,"36":0,"37":13,"38":1,"39":13,"40":13,"41":1,"42":1,"43":1,"44":1,"45":12,"46":12,"47":12,"48":12,"49":12,"50":17,"51":17,"52":1,"53":16,"54":16,"55":16,"56":1,"57":16,"58":12,"59":12,"60":12,"61":12,"62":12,"63":12,"64":12,"65":12,"66":12,"67":13,"68":13,"69":12,"70":12,"71":5,"72":5,"73":4,"74":8,"75":8,"76":8,"77":8,"78":5,"79":5,"80":5,"81":3,"82":8,"83":8,"84":8,"85":8,"86":12},"f":{"0":19,"1":23,"2":23,"3":4,"4":16,"5":13,"6":12,"7":17,"8":13,"9":5,"10":8,"11":12},"b":{"0":[0,19],"1":[19,6],"2":[0,19],"3":[19,13],"4":[0,19],"5":[19,6],"6":[6,6],"7":[13,6],"8":[22,1],"9":[23,0],"10":[0,0],"11":[0,0],"12":[0,4],"13":[0,0],"14":[2,2],"15":[4,2,2],"16":[13,3],"17":[0,13],"18":[1,12],"19":[13,1],"20":[1,12],"21":[12,10],"22":[1,16],"23":[1,15],"24":[15,1],"25":[12,1],"26":[13,13],"27":[4,1],"28":[8,8],"29":[8,6],"30":[5,3]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"f16d51bf93c1be614ed1131e3f6b231dd3efbbef","l":{"5":2,"6":2,"8":2,"20":19,"21":19,"22":19,"23":19,"24":19,"25":19,"26":13,"28":6,"33":23,"34":23,"35":22,"37":1,"41":23,"42":23,"45":0,"46":0,"47":0,"48":0,"50":0,"56":4,"57":0,"58":0,"59":0,"62":4,"65":2,"66":2,"72":16,"73":13,"75":3,"80":13,"81":0,"84":13,"85":1,"89":13,"91":13,"92":1,"93":1,"94":1,"95":1,"98":12,"99":12,"102":12,"103":12,"104":12,"107":17,"110":17,"112":16,"114":16,"115":16,"116":1,"119":16,"127":12,"128":12,"129":12,"130":12,"131":12,"132":12,"133":12,"134":12,"135":12,"138":13,"147":13,"148":12,"149":12,"154":5,"155":5,"156":4,"161":8,"162":8,"163":8,"164":8,"165":5,"166":5,"167":5,"169":3,"171":8,"172":8,"173":8,"174":8,"185":12}}}
"/Users/tonylefler/projects/kremling/src/scoped.component.js":{"path":"/Users/tonylefler/projects/kremling/src/scoped.component.js","statementMap":{"0":{"start":{"line":5,"column":18},"end":{"line":5,"column":20}},"1":{"start":{"line":6,"column":14},"end":{"line":6,"column":15}},"2":{"start":{"line":8,"column":37},"end":{"line":8,"column":60}},"3":{"start":{"line":20,"column":4},"end":{"line":20,"column":17}},"4":{"start":{"line":21,"column":4},"end":{"line":21,"column":20}},"5":{"start":{"line":22,"column":4},"end":{"line":22,"column":131}},"6":{"start":{"line":22,"column":38},"end":{"line":22,"column":131}},"7":{"start":{"line":23,"column":4},"end":{"line":23,"column":146}},"8":{"start":{"line":23,"column":36},"end":{"line":23,"column":146}},"9":{"start":{"line":24,"column":4},"end":{"line":24,"column":244}},"10":{"start":{"line":24,"column":90},"end":{"line":24,"column":244}},"11":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"12":{"start":{"line":26,"column":6},"end":{"line":26,"column":43}},"13":{"start":{"line":28,"column":6},"end":{"line":28,"column":47}},"14":{"start":{"line":33,"column":29},"end":{"line":39,"column":6}},"15":{"start":{"line":34,"column":6},"end":{"line":38,"column":7}},"16":{"start":{"line":35,"column":8},"end":{"line":35,"column":104}},"17":{"start":{"line":37,"column":8},"end":{"line":37,"column":21}},"18":{"start":{"line":41,"column":4},"end":{"line":52,"column":5}},"19":{"start":{"line":42,"column":6},"end":{"line":42,"column":30}},"20":{"start":{"line":45,"column":6},"end":{"line":51,"column":7}},"21":{"start":{"line":46,"column":8},"end":{"line":46,"column":126}},"22":{"start":{"line":47,"column":13},"end":{"line":51,"column":7}},"23":{"start":{"line":48,"column":8},"end":{"line":48,"column":35}},"24":{"start":{"line":50,"column":8},"end":{"line":50,"column":20}},"25":{"start":{"line":56,"column":4},"end":{"line":68,"column":5}},"26":{"start":{"line":57,"column":6},"end":{"line":60,"column":7}},"27":{"start":{"line":58,"column":8},"end":{"line":58,"column":27}},"28":{"start":{"line":59,"column":8},"end":{"line":59,"column":51}},"29":{"start":{"line":62,"column":6},"end":{"line":67,"column":7}},"30":{"start":{"line":65,"column":8},"end":{"line":65,"column":31}},"31":{"start":{"line":66,"column":8},"end":{"line":66,"column":56}},"32":{"start":{"line":72,"column":4},"end":{"line":76,"column":5}},"33":{"start":{"line":73,"column":6},"end":{"line":73,"column":25}},"34":{"start":{"line":75,"column":6},"end":{"line":75,"column":29}},"35":{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},"36":{"start":{"line":81,"column":6},"end":{"line":81,"column":13}},"37":{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},"38":{"start":{"line":85,"column":6},"end":{"line":85,"column":122}},"39":{"start":{"line":89,"column":26},"end":{"line":89,"column":46}},"40":{"start":{"line":91,"column":4},"end":{"line":136,"column":5}},"41":{"start":{"line":92,"column":6},"end":{"line":92,"column":31}},"42":{"start":{"line":93,"column":6},"end":{"line":93,"column":32}},"43":{"start":{"line":94,"column":6},"end":{"line":94,"column":47}},"44":{"start":{"line":95,"column":6},"end":{"line":95,"column":49}},"45":{"start":{"line":98,"column":6},"end":{"line":98,"column":78}},"46":{"start":{"line":99,"column":6},"end":{"line":99,"column":36}},"47":{"start":{"line":102,"column":31},"end":{"line":102,"column":77}},"48":{"start":{"line":103,"column":29},"end":{"line":124,"column":8}},"49":{"start":{"line":104,"column":8},"end":{"line":123,"column":29}},"50":{"start":{"line":107,"column":12},"end":{"line":107,"column":39}},"51":{"start":{"line":110,"column":12},"end":{"line":110,"column":86}},"52":{"start":{"line":110,"column":46},"end":{"line":110,"column":86}},"53":{"start":{"line":112,"column":12},"end":{"line":112,"column":67}},"54":{"start":{"line":114,"column":26},"end":{"line":114,"column":31}},"55":{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},"56":{"start":{"line":116,"column":14},"end":{"line":116,"column":29}},"57":{"start":{"line":119,"column":12},"end":{"line":121,"column":82}},"58":{"start":{"line":127,"column":17},"end":{"line":127,"column":48}},"59":{"start":{"line":128,"column":6},"end":{"line":128,"column":42}},"60":{"start":{"line":129,"column":6},"end":{"line":129,"column":38}},"61":{"start":{"line":130,"column":6},"end":{"line":130,"column":23}},"62":{"start":{"line":131,"column":6},"end":{"line":131,"column":41}},"63":{"start":{"line":132,"column":6},"end":{"line":132,"column":43}},"64":{"start":{"line":133,"column":6},"end":{"line":133,"column":36}},"65":{"start":{"line":134,"column":6},"end":{"line":134,"column":32}},"66":{"start":{"line":135,"column":6},"end":{"line":135,"column":20}},"67":{"start":{"line":138,"column":4},"end":{"line":143,"column":6}},"68":{"start":{"line":147,"column":4},"end":{"line":150,"column":5}},"69":{"start":{"line":148,"column":6},"end":{"line":148,"column":70}},"70":{"start":{"line":149,"column":6},"end":{"line":149,"column":39}},"71":{"start":{"line":154,"column":4},"end":{"line":154,"column":37}},"72":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"73":{"start":{"line":156,"column":6},"end":{"line":156,"column":70}},"74":{"start":{"line":161,"column":29},"end":{"line":161,"column":71}},"75":{"start":{"line":162,"column":30},"end":{"line":162,"column":46}},"76":{"start":{"line":163,"column":19},"end":{"line":163,"column":117}},"77":{"start":{"line":164,"column":4},"end":{"line":170,"column":5}},"78":{"start":{"line":165,"column":6},"end":{"line":165,"column":49}},"79":{"start":{"line":166,"column":6},"end":{"line":166,"column":48}},"80":{"start":{"line":167,"column":6},"end":{"line":167,"column":27}},"81":{"start":{"line":169,"column":6},"end":{"line":169,"column":28}},"82":{"start":{"line":171,"column":4},"end":{"line":171,"column":63}},"83":{"start":{"line":172,"column":4},"end":{"line":172,"column":46}},"84":{"start":{"line":173,"column":4},"end":{"line":173,"column":40}},"85":{"start":{"line":174,"column":4},"end":{"line":178,"column":5}},"86":{"start":{"line":185,"column":2},"end":{"line":185,"column":14}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":19,"column":2},"end":{"line":19,"column":3}},"loc":{"start":{"line":19,"column":21},"end":{"line":30,"column":3}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":3}},"loc":{"start":{"line":32,"column":11},"end":{"line":53,"column":3}},"line":32},"2":{"name":"(anonymous_2)","decl":{"start":{"line":33,"column":69},"end":{"line":33,"column":70}},"loc":{"start":{"line":33,"column":78},"end":{"line":39,"column":5}},"line":33},"3":{"name":"(anonymous_3)","decl":{"start":{"line":55,"column":2},"end":{"line":55,"column":3}},"loc":{"start":{"line":55,"column":32},"end":{"line":69,"column":3}},"line":55},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":2},"end":{"line":71,"column":3}},"loc":{"start":{"line":71,"column":25},"end":{"line":77,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":2},"end":{"line":79,"column":3}},"loc":{"start":{"line":79,"column":21},"end":{"line":144,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":103,"column":63},"end":{"line":103,"column":64}},"loc":{"start":{"line":103,"column":83},"end":{"line":124,"column":7}},"line":103},"7":{"name":"(anonymous_7)","decl":{"start":{"line":106,"column":15},"end":{"line":106,"column":16}},"loc":{"start":{"line":106,"column":27},"end":{"line":122,"column":11}},"line":106},"8":{"name":"(anonymous_8)","decl":{"start":{"line":146,"column":16},"end":{"line":146,"column":17}},"loc":{"start":{"line":146,"column":22},"end":{"line":151,"column":3}},"line":146},"9":{"name":"(anonymous_9)","decl":{"start":{"line":153,"column":20},"end":{"line":153,"column":21}},"loc":{"start":{"line":153,"column":26},"end":{"line":158,"column":3}},"line":153},"10":{"name":"(anonymous_10)","decl":{"start":{"line":160,"column":20},"end":{"line":160,"column":21}},"loc":{"start":{"line":160,"column":31},"end":{"line":179,"column":3}},"line":160},"11":{"name":"resetCounter","decl":{"start":{"line":184,"column":16},"end":{"line":184,"column":28}},"loc":{"start":{"line":184,"column":31},"end":{"line":186,"column":1}},"line":184}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":4},"end":{"line":22,"column":131}},"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":131}},{"start":{"line":22,"column":4},"end":{"line":22,"column":131}}],"line":22},"1":{"loc":{"start":{"line":22,"column":8},"end":{"line":22,"column":36}},"type":"binary-expr","locations":[{"start":{"line":22,"column":8},"end":{"line":22,"column":18}},{"start":{"line":22,"column":22},"end":{"line":22,"column":36}}],"line":22},"2":{"loc":{"start":{"line":23,"column":4},"end":{"line":23,"column":146}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":146}},{"start":{"line":23,"column":4},"end":{"line":23,"column":146}}],"line":23},"3":{"loc":{"start":{"line":23,"column":8},"end":{"line":23,"column":34}},"type":"binary-expr","locations":[{"start":{"line":23,"column":8},"end":{"line":23,"column":17}},{"start":{"line":23,"column":21},"end":{"line":23,"column":34}}],"line":23},"4":{"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":244}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":244}},{"start":{"line":24,"column":4},"end":{"line":24,"column":244}}],"line":24},"5":{"loc":{"start":{"line":24,"column":8},"end":{"line":24,"column":88}},"type":"binary-expr","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":21}},{"start":{"line":24,"column":25},"end":{"line":24,"column":88}}],"line":24},"6":{"loc":{"start":{"line":24,"column":27},"end":{"line":24,"column":87}},"type":"binary-expr","locations":[{"start":{"line":24,"column":27},"end":{"line":24,"column":67}},{"start":{"line":24,"column":71},"end":{"line":24,"column":87}}],"line":24},"7":{"loc":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},{"start":{"line":25,"column":4},"end":{"line":29,"column":5}}],"line":25},"8":{"loc":{"start":{"line":34,"column":6},"end":{"line":38,"column":7}},"type":"if","locations":[{"start":{"line":34,"column":6},"end":{"line":38,"column":7}},{"start":{"line":34,"column":6},"end":{"line":38,"column":7}}],"line":34},"9":{"loc":{"start":{"line":41,"column":4},"end":{"line":52,"column":5}},"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":52,"column":5}},{"start":{"line":41,"column":4},"end":{"line":52,"column":5}}],"line":41},"10":{"loc":{"start":{"line":45,"column":6},"end":{"line":51,"column":7}},"type":"if","locations":[{"start":{"line":45,"column":6},"end":{"line":51,"column":7}},{"start":{"line":45,"column":6},"end":{"line":51,"column":7}}],"line":45},"11":{"loc":{"start":{"line":47,"column":13},"end":{"line":51,"column":7}},"type":"if","locations":[{"start":{"line":47,"column":13},"end":{"line":51,"column":7}},{"start":{"line":47,"column":13},"end":{"line":51,"column":7}}],"line":47},"12":{"loc":{"start":{"line":56,"column":4},"end":{"line":68,"column":5}},"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":68,"column":5}},{"start":{"line":56,"column":4},"end":{"line":68,"column":5}}],"line":56},"13":{"loc":{"start":{"line":57,"column":6},"end":{"line":60,"column":7}},"type":"if","locations":[{"start":{"line":57,"column":6},"end":{"line":60,"column":7}},{"start":{"line":57,"column":6},"end":{"line":60,"column":7}}],"line":57},"14":{"loc":{"start":{"line":62,"column":6},"end":{"line":67,"column":7}},"type":"if","locations":[{"start":{"line":62,"column":6},"end":{"line":67,"column":7}},{"start":{"line":62,"column":6},"end":{"line":67,"column":7}}],"line":62},"15":{"loc":{"start":{"line":62,"column":10},"end":{"line":64,"column":71}},"type":"binary-expr","locations":[{"start":{"line":62,"column":10},"end":{"line":62,"column":56}},{"start":{"line":63,"column":11},"end":{"line":63,"column":65}},{"start":{"line":64,"column":11},"end":{"line":64,"column":71}}],"line":62},"16":{"loc":{"start":{"line":72,"column":4},"end":{"line":76,"column":5}},"type":"if","locations":[{"start":{"line":72,"column":4},"end":{"line":76,"column":5}},{"start":{"line":72,"column":4},"end":{"line":76,"column":5}}],"line":72},"17":{"loc":{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},"type":"if","locations":[{"start":{"line":80,"column":4},"end":{"line":82,"column":5}},{"start":{"line":80,"column":4},"end":{"line":82,"column":5}}],"line":80},"18":{"loc":{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},{"start":{"line":84,"column":4},"end":{"line":86,"column":5}}],"line":84},"19":{"loc":{"start":{"line":84,"column":8},"end":{"line":84,"column":65}},"type":"binary-expr","locations":[{"start":{"line":84,"column":8},"end":{"line":84,"column":34}},{"start":{"line":84,"column":38},"end":{"line":84,"column":65}}],"line":84},"20":{"loc":{"start":{"line":91,"column":4},"end":{"line":136,"column":5}},"type":"if","locations":[{"start":{"line":91,"column":4},"end":{"line":136,"column":5}},{"start":{"line":91,"column":4},"end":{"line":136,"column":5}}],"line":91},"21":{"loc":{"start":{"line":98,"column":33},"end":{"line":98,"column":75}},"type":"binary-expr","locations":[{"start":{"line":98,"column":33},"end":{"line":98,"column":48}},{"start":{"line":98,"column":52},"end":{"line":98,"column":75}}],"line":98},"22":{"loc":{"start":{"line":110,"column":12},"end":{"line":110,"column":86}},"type":"if","locations":[{"start":{"line":110,"column":12},"end":{"line":110,"column":86}},{"start":{"line":110,"column":12},"end":{"line":110,"column":86}}],"line":110},"23":{"loc":{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},"type":"if","locations":[{"start":{"line":115,"column":12},"end":{"line":117,"column":13}},{"start":{"line":115,"column":12},"end":{"line":117,"column":13}}],"line":115},"24":{"loc":{"start":{"line":119,"column":19},"end":{"line":121,"column":81}},"type":"cond-expr","locations":[{"start":{"line":120,"column":16},"end":{"line":120,"column":81}},{"start":{"line":121,"column":16},"end":{"line":121,"column":81}}],"line":119},"25":{"loc":{"start":{"line":147,"column":4},"end":{"line":150,"column":5}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":150,"column":5}},{"start":{"line":147,"column":4},"end":{"line":150,"column":5}}],"line":147},"26":{"loc":{"start":{"line":147,"column":8},"end":{"line":147,"column":68}},"type":"binary-expr","locations":[{"start":{"line":147,"column":8},"end":{"line":147,"column":27}},{"start":{"line":147,"column":31},"end":{"line":147,"column":68}}],"line":147},"27":{"loc":{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},"type":"if","locations":[{"start":{"line":155,"column":4},"end":{"line":157,"column":5}},{"start":{"line":155,"column":4},"end":{"line":157,"column":5}}],"line":155},"28":{"loc":{"start":{"line":161,"column":29},"end":{"line":161,"column":71}},"type":"binary-expr","locations":[{"start":{"line":161,"column":29},"end":{"line":161,"column":52}},{"start":{"line":161,"column":56},"end":{"line":161,"column":71}}],"line":161},"29":{"loc":{"start":{"line":163,"column":19},"end":{"line":163,"column":117}},"type":"binary-expr","locations":[{"start":{"line":163,"column":19},"end":{"line":163,"column":38}},{"start":{"line":163,"column":42},"end":{"line":163,"column":117}}],"line":163},"30":{"loc":{"start":{"line":164,"column":4},"end":{"line":170,"column":5}},"type":"if","locations":[{"start":{"line":164,"column":4},"end":{"line":170,"column":5}},{"start":{"line":164,"column":4},"end":{"line":170,"column":5}}],"line":164}},"s":{"0":2,"1":2,"2":2,"3":20,"4":20,"5":20,"6":0,"7":20,"8":0,"9":20,"10":0,"11":20,"12":13,"13":7,"14":24,"15":24,"16":23,"17":1,"18":24,"19":24,"20":0,"21":0,"22":0,"23":0,"24":0,"25":4,"26":0,"27":0,"28":0,"29":4,"30":2,"31":2,"32":16,"33":13,"34":3,"35":13,"36":0,"37":13,"38":1,"39":13,"40":13,"41":1,"42":1,"43":1,"44":1,"45":12,"46":12,"47":12,"48":12,"49":12,"50":17,"51":17,"52":1,"53":16,"54":16,"55":16,"56":1,"57":16,"58":12,"59":12,"60":12,"61":12,"62":12,"63":12,"64":12,"65":12,"66":12,"67":13,"68":13,"69":12,"70":12,"71":5,"72":5,"73":4,"74":9,"75":9,"76":9,"77":9,"78":6,"79":6,"80":6,"81":3,"82":9,"83":9,"84":9,"85":9,"86":12},"f":{"0":20,"1":24,"2":24,"3":4,"4":16,"5":13,"6":12,"7":17,"8":13,"9":5,"10":9,"11":12},"b":{"0":[0,20],"1":[20,7],"2":[0,20],"3":[20,13],"4":[0,20],"5":[20,7],"6":[7,7],"7":[13,7],"8":[23,1],"9":[24,0],"10":[0,0],"11":[0,0],"12":[0,4],"13":[0,0],"14":[2,2],"15":[4,2,2],"16":[13,3],"17":[0,13],"18":[1,12],"19":[13,1],"20":[1,12],"21":[12,10],"22":[1,16],"23":[1,15],"24":[15,1],"25":[12,1],"26":[13,13],"27":[4,1],"28":[9,9],"29":[9,7],"30":[6,3]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"f94b12d5644aaf33976f97aa2e1d1243e1c5bb94","l":{"5":2,"6":2,"8":2,"20":20,"21":20,"22":20,"23":20,"24":20,"25":20,"26":13,"28":7,"33":24,"34":24,"35":23,"37":1,"41":24,"42":24,"45":0,"46":0,"47":0,"48":0,"50":0,"56":4,"57":0,"58":0,"59":0,"62":4,"65":2,"66":2,"72":16,"73":13,"75":3,"80":13,"81":0,"84":13,"85":1,"89":13,"91":13,"92":1,"93":1,"94":1,"95":1,"98":12,"99":12,"102":12,"103":12,"104":12,"107":17,"110":17,"112":16,"114":16,"115":16,"116":1,"119":16,"127":12,"128":12,"129":12,"130":12,"131":12,"132":12,"133":12,"134":12,"135":12,"138":13,"147":13,"148":12,"149":12,"154":5,"155":5,"156":4,"161":9,"162":9,"163":9,"164":9,"165":6,"166":6,"167":6,"169":3,"171":9,"172":9,"173":9,"174":9,"185":12}}}

@@ -52,3 +52,3 @@ 'use strict';

if (props.css && props.postcss) throw Error('Kremling\'s <Scoped /> component requires either the \'css\' or \'postcss\' props. Cannot use both.');
if (props.postcss && !(props.postcss.styles && props.postcss.id)) throw Error('Kremlings\'s <Scoped /> component \'postcss\' prop requires an object containing \'styles\' and \'id\' properties. Try using the kremling-loader.');
if (props.postcss && !(typeof props.postcss.styles === 'string' && props.postcss.id)) throw Error('Kremlings\'s <Scoped /> component \'postcss\' prop requires an object containing \'styles\' and \'id\' properties. Try using the kremling-loader.');
if (props.css) {

@@ -55,0 +55,0 @@ _this.state = _this.newCssState(props);

{
"name": "kremling",
"version": "1.0.0",
"version": "1.0.1",
"description": "Embarrassingly simple css for React",

@@ -5,0 +5,0 @@ "main": "lib/kremling.js",

@@ -24,3 +24,3 @@ import React from 'react';

if (props.css && props.postcss) throw Error(`Kremling's <Scoped /> component requires either the 'css' or 'postcss' props. Cannot use both.`);
if (props.postcss && !(props.postcss.styles && props.postcss.id)) throw Error(`Kremlings's <Scoped /> component 'postcss' prop requires an object containing 'styles' and 'id' properties. Try using the kremling-loader.`);
if (props.postcss && !(typeof props.postcss.styles === 'string' && props.postcss.id)) throw Error(`Kremlings's <Scoped /> component 'postcss' prop requires an object containing 'styles' and 'id' properties. Try using the kremling-loader.`);
if (props.css) {

@@ -27,0 +27,0 @@ this.state = this.newCssState(props);

@@ -105,2 +105,10 @@ import React from "react";

});
it(`shouldn't throw errors when empty postcss.styles is passed in`, () => {
const css = { id: '1', styles: '' };
const component = (style) => <div><Scoped postcss={style}><div>Hello</div></Scoped></div>;
const el = document.createElement('div');
ReactDOM.render(component(css), el);
expect(document.head.querySelector('style').innerHTML).toEqual('');
})
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc