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

posthtml-render

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthtml-render - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

coverage/coverage.json

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

{"/Users/voischev/projects/posthtml-render/lib/posthtml-render.js":{"path":"/Users/voischev/projects/posthtml-render/lib/posthtml-render.js","s":{"1":1,"2":1,"3":22,"4":22,"5":22,"6":22,"7":22,"8":374,"9":22,"10":1,"11":1,"12":22,"13":1,"14":30,"15":30,"16":33,"17":1,"18":32,"19":11,"20":11,"21":21,"22":4,"23":4,"24":17,"25":17,"26":5,"27":5,"28":1,"29":1,"30":1,"31":1,"32":3,"33":12,"34":30,"35":1,"36":8,"37":8,"38":5,"39":8,"40":1,"41":63,"42":32,"43":33,"44":31,"45":0,"46":63,"47":1,"48":1,"49":1,"50":1,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":1},"b":{"1":[22,18],"2":[1,21],"3":[1,32],"4":[11,21],"5":[32,25],"6":[4,17],"7":[21,4],"8":[4,2],"9":[17,12],"10":[5,12],"11":[1,1,3],"12":[3,9],"13":[8,4],"14":[4,1],"15":[5,5],"16":[32,31],"17":[0,31],"18":[31,0],"19":[1,0],"20":[1,1],"21":[0,1],"22":[1,0],"23":[0,1],"24":[1,0],"25":[0,1]},"f":{"1":1,"2":22,"3":30,"4":33,"5":8,"6":63,"7":0,"8":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":18}}},"2":{"name":"postHTMLRender","line":3,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":39}}},"3":{"name":"html","line":36,"loc":{"start":{"line":36,"column":4},"end":{"line":36,"column":24}}},"4":{"name":"(anonymous_4)","line":40,"loc":{"start":{"line":40,"column":34},"end":{"line":40,"column":49}}},"5":{"name":"attrs","line":72,"loc":{"start":{"line":72,"column":8},"end":{"line":72,"column":28}}},"6":{"name":"traverse","line":82,"loc":{"start":{"line":82,"column":0},"end":{"line":82,"column":28}}},"7":{"name":"(anonymous_7)","line":101,"loc":{"start":{"line":101,"column":37},"end":{"line":101,"column":55}},"skip":true},"8":{"name":"(anonymous_8)","line":109,"loc":{"start":{"line":109,"column":11},"end":{"line":109,"column":46}},"skip":true}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":118,"column":50}},"2":{"start":{"line":3,"column":0},"end":{"line":80,"column":1}},"3":{"start":{"line":4,"column":4},"end":{"line":4,"column":28}},"4":{"start":{"line":17,"column":4},"end":{"line":18,"column":52}},"5":{"start":{"line":20,"column":4},"end":{"line":21,"column":87}},"6":{"start":{"line":22,"column":4},"end":{"line":22,"column":24}},"7":{"start":{"line":24,"column":4},"end":{"line":26,"column":5}},"8":{"start":{"line":25,"column":8},"end":{"line":25,"column":39}},"9":{"start":{"line":28,"column":4},"end":{"line":32,"column":5}},"10":{"start":{"line":29,"column":8},"end":{"line":31,"column":9}},"11":{"start":{"line":30,"column":12},"end":{"line":30,"column":45}},"12":{"start":{"line":34,"column":4},"end":{"line":34,"column":22}},"13":{"start":{"line":36,"column":4},"end":{"line":79,"column":5}},"14":{"start":{"line":38,"column":8},"end":{"line":38,"column":21}},"15":{"start":{"line":40,"column":8},"end":{"line":68,"column":11}},"16":{"start":{"line":41,"column":12},"end":{"line":41,"column":30}},"17":{"start":{"line":41,"column":23},"end":{"line":41,"column":30}},"18":{"start":{"line":42,"column":12},"end":{"line":45,"column":13}},"19":{"start":{"line":43,"column":16},"end":{"line":43,"column":28}},"20":{"start":{"line":44,"column":16},"end":{"line":44,"column":23}},"21":{"start":{"line":46,"column":12},"end":{"line":49,"column":13}},"22":{"start":{"line":47,"column":16},"end":{"line":47,"column":75}},"23":{"start":{"line":48,"column":16},"end":{"line":48,"column":36}},"24":{"start":{"line":50,"column":12},"end":{"line":50,"column":40}},"25":{"start":{"line":51,"column":12},"end":{"line":67,"column":13}},"26":{"start":{"line":52,"column":16},"end":{"line":52,"column":52}},"27":{"start":{"line":53,"column":16},"end":{"line":62,"column":17}},"28":{"start":{"line":55,"column":24},"end":{"line":55,"column":37}},"29":{"start":{"line":56,"column":24},"end":{"line":56,"column":30}},"30":{"start":{"line":58,"column":24},"end":{"line":58,"column":49}},"31":{"start":{"line":59,"column":24},"end":{"line":59,"column":30}},"32":{"start":{"line":61,"column":24},"end":{"line":61,"column":35}},"33":{"start":{"line":64,"column":16},"end":{"line":66,"column":37}},"34":{"start":{"line":70,"column":8},"end":{"line":70,"column":19}},"35":{"start":{"line":72,"column":8},"end":{"line":78,"column":9}},"36":{"start":{"line":73,"column":12},"end":{"line":73,"column":26}},"37":{"start":{"line":74,"column":12},"end":{"line":76,"column":13}},"38":{"start":{"line":75,"column":16},"end":{"line":75,"column":109}},"39":{"start":{"line":77,"column":12},"end":{"line":77,"column":24}},"40":{"start":{"line":82,"column":0},"end":{"line":89,"column":1}},"41":{"start":{"line":83,"column":4},"end":{"line":87,"column":102}},"42":{"start":{"line":84,"column":8},"end":{"line":86,"column":9}},"43":{"start":{"line":85,"column":12},"end":{"line":85,"column":48}},"44":{"start":{"line":87,"column":11},"end":{"line":87,"column":102}},"45":{"start":{"line":87,"column":75},"end":{"line":87,"column":102}},"46":{"start":{"line":88,"column":4},"end":{"line":88,"column":16}},"47":{"start":{"line":91,"column":0},"end":{"line":91,"column":26}},"48":{"start":{"line":94,"column":0},"end":{"line":97,"column":1},"skip":true},"49":{"start":{"line":95,"column":4},"end":{"line":95,"column":36},"skip":true},"50":{"start":{"line":96,"column":4},"end":{"line":96,"column":27},"skip":true},"51":{"start":{"line":100,"column":0},"end":{"line":105,"column":1},"skip":true},"52":{"start":{"line":101,"column":4},"end":{"line":103,"column":7},"skip":true},"53":{"start":{"line":102,"column":8},"end":{"line":102,"column":32},"skip":true},"54":{"start":{"line":104,"column":4},"end":{"line":104,"column":27},"skip":true},"55":{"start":{"line":108,"column":0},"end":{"line":113,"column":1},"skip":true},"56":{"start":{"line":109,"column":4},"end":{"line":111,"column":7},"skip":true},"57":{"start":{"line":110,"column":8},"end":{"line":110,"column":40},"skip":true},"58":{"start":{"line":112,"column":4},"end":{"line":112,"column":27},"skip":true},"59":{"start":{"line":115,"column":0},"end":{"line":115,"column":59},"skip":true}},"branchMap":{"1":{"line":4,"type":"binary-expr","locations":[{"start":{"line":4,"column":14},"end":{"line":4,"column":21}},{"start":{"line":4,"column":25},"end":{"line":4,"column":27}}]},"2":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":4},"end":{"line":28,"column":4}},{"start":{"line":28,"column":4},"end":{"line":28,"column":4}}]},"3":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":12},"end":{"line":41,"column":12}},{"start":{"line":41,"column":12},"end":{"line":41,"column":12}}]},"4":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":12},"end":{"line":42,"column":12}},{"start":{"line":42,"column":12},"end":{"line":42,"column":12}}]},"5":{"line":42,"type":"binary-expr","locations":[{"start":{"line":42,"column":16},"end":{"line":42,"column":40}},{"start":{"line":42,"column":44},"end":{"line":42,"column":68}}]},"6":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":12},"end":{"line":46,"column":12}},{"start":{"line":46,"column":12},"end":{"line":46,"column":12}}]},"7":{"line":46,"type":"binary-expr","locations":[{"start":{"line":46,"column":16},"end":{"line":46,"column":45}},{"start":{"line":46,"column":49},"end":{"line":46,"column":58}}]},"8":{"line":47,"type":"binary-expr","locations":[{"start":{"line":47,"column":16},"end":{"line":47,"column":48}},{"start":{"line":47,"column":54},"end":{"line":47,"column":73}}]},"9":{"line":50,"type":"binary-expr","locations":[{"start":{"line":50,"column":22},"end":{"line":50,"column":30}},{"start":{"line":50,"column":34},"end":{"line":50,"column":39}}]},"10":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":12},"end":{"line":51,"column":12}},{"start":{"line":51,"column":12},"end":{"line":51,"column":12}}]},"11":{"line":53,"type":"switch","locations":[{"start":{"line":54,"column":20},"end":{"line":56,"column":30}},{"start":{"line":57,"column":20},"end":{"line":59,"column":30}},{"start":{"line":60,"column":20},"end":{"line":61,"column":35}}]},"12":{"line":64,"type":"cond-expr","locations":[{"start":{"line":64,"column":48},"end":{"line":64,"column":65}},{"start":{"line":64,"column":67},"end":{"line":64,"column":69}}]},"13":{"line":65,"type":"cond-expr","locations":[{"start":{"line":65,"column":35},"end":{"line":65,"column":53}},{"start":{"line":65,"column":55},"end":{"line":65,"column":57}}]},"14":{"line":75,"type":"cond-expr","locations":[{"start":{"line":75,"column":82},"end":{"line":75,"column":103}},{"start":{"line":75,"column":105},"end":{"line":75,"column":107}}]},"15":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":38},"end":{"line":75,"column":46}},{"start":{"line":75,"column":50},"end":{"line":75,"column":79}}]},"16":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":4},"end":{"line":83,"column":4}},{"start":{"line":83,"column":4},"end":{"line":83,"column":4}}]},"17":{"line":87,"type":"if","locations":[{"start":{"line":87,"column":11},"end":{"line":87,"column":11}},{"start":{"line":87,"column":11},"end":{"line":87,"column":11}}]},"18":{"line":87,"type":"binary-expr","locations":[{"start":{"line":87,"column":15},"end":{"line":87,"column":39}},{"start":{"line":87,"column":43},"end":{"line":87,"column":73}}]},"19":{"line":94,"type":"if","locations":[{"start":{"line":94,"column":0},"end":{"line":94,"column":0},"skip":true},{"start":{"line":94,"column":0},"end":{"line":94,"column":0},"skip":true}]},"20":{"line":94,"type":"binary-expr","locations":[{"start":{"line":94,"column":4},"end":{"line":94,"column":30},"skip":true},{"start":{"line":94,"column":34},"end":{"line":94,"column":68},"skip":true}]},"21":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":0},"end":{"line":100,"column":0},"skip":true},{"start":{"line":100,"column":0},"end":{"line":100,"column":0},"skip":true}]},"22":{"line":100,"type":"binary-expr","locations":[{"start":{"line":100,"column":4},"end":{"line":100,"column":31},"skip":true},{"start":{"line":100,"column":35},"end":{"line":100,"column":71},"skip":true}]},"23":{"line":108,"type":"if","locations":[{"start":{"line":108,"column":0},"end":{"line":108,"column":0},"skip":true},{"start":{"line":108,"column":0},"end":{"line":108,"column":0},"skip":true}]},"24":{"line":115,"type":"binary-expr","locations":[{"start":{"line":115,"column":0},"end":{"line":115,"column":14},"skip":true},{"start":{"line":115,"column":19},"end":{"line":115,"column":57},"skip":true}]},"25":{"line":118,"type":"cond-expr","locations":[{"start":{"line":118,"column":34},"end":{"line":118,"column":40}},{"start":{"line":118,"column":42},"end":{"line":118,"column":48}}]}}}}
{"/Users/voischev/projects/posthtml-render/lib/posthtml-render.js":{"path":"/Users/voischev/projects/posthtml-render/lib/posthtml-render.js","s":{"1":1,"2":1,"3":26,"4":26,"5":26,"6":26,"7":26,"8":442,"9":26,"10":2,"11":2,"12":26,"13":1,"14":47,"15":47,"16":116,"17":1,"18":115,"19":51,"20":51,"21":64,"22":4,"23":4,"24":60,"25":60,"26":31,"27":31,"28":1,"29":1,"30":1,"31":1,"32":29,"33":29,"34":47,"35":1,"36":46,"37":46,"38":46,"39":46,"40":1,"41":163,"42":49,"43":116,"44":114,"45":0,"46":163,"47":1,"48":1,"49":1,"50":1,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":1},"b":{"1":[26,21],"2":[2,24],"3":[1,115],"4":[51,64],"5":[115,68],"6":[4,60],"7":[64,4],"8":[4,2],"9":[60,14],"10":[31,29],"11":[1,1,29],"12":[15,14],"13":[21,8],"14":[46,44],"15":[43,1],"16":[49,114],"17":[0,114],"18":[114,0],"19":[1,0],"20":[1,1],"21":[0,1],"22":[1,0],"23":[0,1],"24":[1,0],"25":[0,1]},"f":{"1":1,"2":26,"3":47,"4":116,"5":46,"6":163,"7":0,"8":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":18}}},"2":{"name":"postHTMLRender","line":8,"loc":{"start":{"line":8,"column":0},"end":{"line":8,"column":39}}},"3":{"name":"html","line":41,"loc":{"start":{"line":41,"column":4},"end":{"line":41,"column":24}}},"4":{"name":"(anonymous_4)","line":45,"loc":{"start":{"line":45,"column":34},"end":{"line":45,"column":49}}},"5":{"name":"attrs","line":77,"loc":{"start":{"line":77,"column":8},"end":{"line":77,"column":28}}},"6":{"name":"traverse","line":87,"loc":{"start":{"line":87,"column":0},"end":{"line":87,"column":28}}},"7":{"name":"(anonymous_7)","line":106,"loc":{"start":{"line":106,"column":37},"end":{"line":106,"column":55}},"skip":true},"8":{"name":"(anonymous_8)","line":114,"loc":{"start":{"line":114,"column":11},"end":{"line":114,"column":46}},"skip":true}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":123,"column":50}},"2":{"start":{"line":8,"column":0},"end":{"line":85,"column":1}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":28}},"4":{"start":{"line":22,"column":4},"end":{"line":23,"column":52}},"5":{"start":{"line":25,"column":4},"end":{"line":26,"column":87}},"6":{"start":{"line":27,"column":4},"end":{"line":27,"column":24}},"7":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"8":{"start":{"line":30,"column":8},"end":{"line":30,"column":39}},"9":{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},"10":{"start":{"line":34,"column":8},"end":{"line":36,"column":9}},"11":{"start":{"line":35,"column":12},"end":{"line":35,"column":45}},"12":{"start":{"line":39,"column":4},"end":{"line":39,"column":22}},"13":{"start":{"line":41,"column":4},"end":{"line":84,"column":5}},"14":{"start":{"line":43,"column":8},"end":{"line":43,"column":21}},"15":{"start":{"line":45,"column":8},"end":{"line":73,"column":11}},"16":{"start":{"line":46,"column":12},"end":{"line":46,"column":30}},"17":{"start":{"line":46,"column":23},"end":{"line":46,"column":30}},"18":{"start":{"line":47,"column":12},"end":{"line":50,"column":13}},"19":{"start":{"line":48,"column":16},"end":{"line":48,"column":28}},"20":{"start":{"line":49,"column":16},"end":{"line":49,"column":23}},"21":{"start":{"line":51,"column":12},"end":{"line":54,"column":13}},"22":{"start":{"line":52,"column":16},"end":{"line":52,"column":75}},"23":{"start":{"line":53,"column":16},"end":{"line":53,"column":36}},"24":{"start":{"line":55,"column":12},"end":{"line":55,"column":40}},"25":{"start":{"line":56,"column":12},"end":{"line":72,"column":13}},"26":{"start":{"line":57,"column":16},"end":{"line":57,"column":52}},"27":{"start":{"line":58,"column":16},"end":{"line":67,"column":17}},"28":{"start":{"line":60,"column":24},"end":{"line":60,"column":37}},"29":{"start":{"line":61,"column":24},"end":{"line":61,"column":30}},"30":{"start":{"line":63,"column":24},"end":{"line":63,"column":49}},"31":{"start":{"line":64,"column":24},"end":{"line":64,"column":30}},"32":{"start":{"line":66,"column":24},"end":{"line":66,"column":35}},"33":{"start":{"line":69,"column":16},"end":{"line":71,"column":37}},"34":{"start":{"line":75,"column":8},"end":{"line":75,"column":19}},"35":{"start":{"line":77,"column":8},"end":{"line":83,"column":9}},"36":{"start":{"line":78,"column":12},"end":{"line":78,"column":26}},"37":{"start":{"line":79,"column":12},"end":{"line":81,"column":13}},"38":{"start":{"line":80,"column":16},"end":{"line":80,"column":109}},"39":{"start":{"line":82,"column":12},"end":{"line":82,"column":24}},"40":{"start":{"line":87,"column":0},"end":{"line":94,"column":1}},"41":{"start":{"line":88,"column":4},"end":{"line":92,"column":102}},"42":{"start":{"line":89,"column":8},"end":{"line":91,"column":9}},"43":{"start":{"line":90,"column":12},"end":{"line":90,"column":48}},"44":{"start":{"line":92,"column":11},"end":{"line":92,"column":102}},"45":{"start":{"line":92,"column":75},"end":{"line":92,"column":102}},"46":{"start":{"line":93,"column":4},"end":{"line":93,"column":16}},"47":{"start":{"line":96,"column":0},"end":{"line":96,"column":26}},"48":{"start":{"line":99,"column":0},"end":{"line":102,"column":1},"skip":true},"49":{"start":{"line":100,"column":4},"end":{"line":100,"column":36},"skip":true},"50":{"start":{"line":101,"column":4},"end":{"line":101,"column":27},"skip":true},"51":{"start":{"line":105,"column":0},"end":{"line":110,"column":1},"skip":true},"52":{"start":{"line":106,"column":4},"end":{"line":108,"column":7},"skip":true},"53":{"start":{"line":107,"column":8},"end":{"line":107,"column":32},"skip":true},"54":{"start":{"line":109,"column":4},"end":{"line":109,"column":27},"skip":true},"55":{"start":{"line":113,"column":0},"end":{"line":118,"column":1},"skip":true},"56":{"start":{"line":114,"column":4},"end":{"line":116,"column":7},"skip":true},"57":{"start":{"line":115,"column":8},"end":{"line":115,"column":40},"skip":true},"58":{"start":{"line":117,"column":4},"end":{"line":117,"column":27},"skip":true},"59":{"start":{"line":120,"column":0},"end":{"line":120,"column":59},"skip":true}},"branchMap":{"1":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":14},"end":{"line":9,"column":21}},{"start":{"line":9,"column":25},"end":{"line":9,"column":27}}]},"2":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},{"start":{"line":33,"column":4},"end":{"line":33,"column":4}}]},"3":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":12},"end":{"line":46,"column":12}},{"start":{"line":46,"column":12},"end":{"line":46,"column":12}}]},"4":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":12},"end":{"line":47,"column":12}},{"start":{"line":47,"column":12},"end":{"line":47,"column":12}}]},"5":{"line":47,"type":"binary-expr","locations":[{"start":{"line":47,"column":16},"end":{"line":47,"column":40}},{"start":{"line":47,"column":44},"end":{"line":47,"column":68}}]},"6":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":12},"end":{"line":51,"column":12}},{"start":{"line":51,"column":12},"end":{"line":51,"column":12}}]},"7":{"line":51,"type":"binary-expr","locations":[{"start":{"line":51,"column":16},"end":{"line":51,"column":45}},{"start":{"line":51,"column":49},"end":{"line":51,"column":58}}]},"8":{"line":52,"type":"binary-expr","locations":[{"start":{"line":52,"column":16},"end":{"line":52,"column":48}},{"start":{"line":52,"column":54},"end":{"line":52,"column":73}}]},"9":{"line":55,"type":"binary-expr","locations":[{"start":{"line":55,"column":22},"end":{"line":55,"column":30}},{"start":{"line":55,"column":34},"end":{"line":55,"column":39}}]},"10":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":12},"end":{"line":56,"column":12}},{"start":{"line":56,"column":12},"end":{"line":56,"column":12}}]},"11":{"line":58,"type":"switch","locations":[{"start":{"line":59,"column":20},"end":{"line":61,"column":30}},{"start":{"line":62,"column":20},"end":{"line":64,"column":30}},{"start":{"line":65,"column":20},"end":{"line":66,"column":35}}]},"12":{"line":69,"type":"cond-expr","locations":[{"start":{"line":69,"column":48},"end":{"line":69,"column":65}},{"start":{"line":69,"column":67},"end":{"line":69,"column":69}}]},"13":{"line":70,"type":"cond-expr","locations":[{"start":{"line":70,"column":35},"end":{"line":70,"column":53}},{"start":{"line":70,"column":55},"end":{"line":70,"column":57}}]},"14":{"line":80,"type":"binary-expr","locations":[{"start":{"line":80,"column":16},"end":{"line":80,"column":24}},{"start":{"line":80,"column":29},"end":{"line":80,"column":107}}]},"15":{"line":80,"type":"cond-expr","locations":[{"start":{"line":80,"column":81},"end":{"line":80,"column":102}},{"start":{"line":80,"column":104},"end":{"line":80,"column":106}}]},"16":{"line":88,"type":"if","locations":[{"start":{"line":88,"column":4},"end":{"line":88,"column":4}},{"start":{"line":88,"column":4},"end":{"line":88,"column":4}}]},"17":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":11},"end":{"line":92,"column":11}},{"start":{"line":92,"column":11},"end":{"line":92,"column":11}}]},"18":{"line":92,"type":"binary-expr","locations":[{"start":{"line":92,"column":15},"end":{"line":92,"column":39}},{"start":{"line":92,"column":43},"end":{"line":92,"column":73}}]},"19":{"line":99,"type":"if","locations":[{"start":{"line":99,"column":0},"end":{"line":99,"column":0},"skip":true},{"start":{"line":99,"column":0},"end":{"line":99,"column":0},"skip":true}]},"20":{"line":99,"type":"binary-expr","locations":[{"start":{"line":99,"column":4},"end":{"line":99,"column":30},"skip":true},{"start":{"line":99,"column":34},"end":{"line":99,"column":68},"skip":true}]},"21":{"line":105,"type":"if","locations":[{"start":{"line":105,"column":0},"end":{"line":105,"column":0},"skip":true},{"start":{"line":105,"column":0},"end":{"line":105,"column":0},"skip":true}]},"22":{"line":105,"type":"binary-expr","locations":[{"start":{"line":105,"column":4},"end":{"line":105,"column":31},"skip":true},{"start":{"line":105,"column":35},"end":{"line":105,"column":71},"skip":true}]},"23":{"line":113,"type":"if","locations":[{"start":{"line":113,"column":0},"end":{"line":113,"column":0},"skip":true},{"start":{"line":113,"column":0},"end":{"line":113,"column":0},"skip":true}]},"24":{"line":120,"type":"binary-expr","locations":[{"start":{"line":120,"column":0},"end":{"line":120,"column":14},"skip":true},{"start":{"line":120,"column":19},"end":{"line":120,"column":57},"skip":true}]},"25":{"line":123,"type":"cond-expr","locations":[{"start":{"line":123,"column":34},"end":{"line":123,"column":40}},{"start":{"line":123,"column":42},"end":{"line":123,"column":48}}]}}}}

@@ -80,3 +80,3 @@ (function(global) {

for (var key in obj) {
attr += ' ' + key + ((obj[key] && typeof obj[key] !== 'boolean')? '="' + obj[key] + '"': '');
obj[key] && (attr += ' ' + key + (typeof obj[key] !== 'boolean'? '="' + obj[key] + '"': ''));
}

@@ -83,0 +83,0 @@ return attr;

{
"name": "posthtml-render",
"version": "1.0.1",
"version": "1.0.2",
"description": "Render PostHTMLTree to HTML/XML",

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

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

!function(global){function postHTMLRender(tree,options){function html(tree){function attrs(obj){var attr="";for(var key in obj)attr+=" "+key+(obj[key]&&"boolean"!=typeof obj[key]?'="'+obj[key]+'"':"");return attr}var buf="";return traverse([].concat(tree),function(node){if(node){if("string"==typeof node||"number"==typeof node)return void(buf+=node);if("boolean"==typeof node.tag&&!node.tag)return"object"!=typeof node.content&&(buf+=node.content),node.content;var tag=node.tag||"div";if(singleTags[tag])switch(buf+="<"+tag+attrs(node.attrs),closingSingleTag){case"slash":buf+=" />";break;case"tag":buf+="></"+tag+">";break;default:buf+=">"}else buf+="<"+tag+(node.attrs?attrs(node.attrs):"")+">"+(node.content?html(node.content):"")+"</"+tag+">"}}),buf}options=options||{};for(var optSingleTags=options.singleTags,closingSingleTag=options.closingSingleTag,SINGLE_TAGS=["area","base","br","col","command","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],singleTags={},i=0,leni=SINGLE_TAGS.length;leni>i;i++)singleTags[SINGLE_TAGS[i]]=1;if(optSingleTags)for(var j=0,lenj=optSingleTags.length;lenj>j;j++)singleTags[optSingleTags[j]]=1;return html(tree)}function traverse(tree,cb){if(Array.isArray(tree))for(var i=0,len=tree.length;len>i;i++)tree[i]=traverse(cb(tree[i]),cb);else"object"==typeof tree&&tree.hasOwnProperty("content")&&traverse(tree.content,cb);return tree}var defineAsGlobal=!0;"object"==typeof module&&"object"==typeof module.exports&&(module.exports=postHTMLRender,defineAsGlobal=!1),"object"==typeof modules&&"function"==typeof modules.define&&(modules.define("postHTMLRender",function(provide){provide(postHTMLRender)}),defineAsGlobal=!1),"function"==typeof define&&(define(function(require,exports,module){module.exports=postHTMLRender}),defineAsGlobal=!1),defineAsGlobal&&(global.postHTMLRender=postHTMLRender)}("undefined"!=typeof window?window:global);
!function(global){function postHTMLRender(tree,options){function html(tree){function attrs(obj){var attr="";for(var key in obj)obj[key]&&(attr+=" "+key+("boolean"!=typeof obj[key]?'="'+obj[key]+'"':""));return attr}var buf="";return traverse([].concat(tree),function(node){if(node){if("string"==typeof node||"number"==typeof node)return void(buf+=node);if("boolean"==typeof node.tag&&!node.tag)return"object"!=typeof node.content&&(buf+=node.content),node.content;var tag=node.tag||"div";if(singleTags[tag])switch(buf+="<"+tag+attrs(node.attrs),closingSingleTag){case"slash":buf+=" />";break;case"tag":buf+="></"+tag+">";break;default:buf+=">"}else buf+="<"+tag+(node.attrs?attrs(node.attrs):"")+">"+(node.content?html(node.content):"")+"</"+tag+">"}}),buf}options=options||{};for(var optSingleTags=options.singleTags,closingSingleTag=options.closingSingleTag,SINGLE_TAGS=["area","base","br","col","command","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],singleTags={},i=0,leni=SINGLE_TAGS.length;leni>i;i++)singleTags[SINGLE_TAGS[i]]=1;if(optSingleTags)for(var j=0,lenj=optSingleTags.length;lenj>j;j++)singleTags[optSingleTags[j]]=1;return html(tree)}function traverse(tree,cb){if(Array.isArray(tree))for(var i=0,len=tree.length;len>i;i++)tree[i]=traverse(cb(tree[i]),cb);else"object"==typeof tree&&tree.hasOwnProperty("content")&&traverse(tree.content,cb);return tree}var defineAsGlobal=!0;"object"==typeof module&&"object"==typeof module.exports&&(module.exports=postHTMLRender,defineAsGlobal=!1),"object"==typeof modules&&"function"==typeof modules.define&&(modules.define("postHTMLRender",function(provide){provide(postHTMLRender)}),defineAsGlobal=!1),"function"==typeof define&&(define(function(require,exports,module){module.exports=postHTMLRender}),defineAsGlobal=!1),defineAsGlobal&&(global.postHTMLRender=postHTMLRender)}("undefined"!=typeof window?window:global);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc