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

posthtml-parser

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthtml-parser - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

.huskyrc

2

coverage/coverage.json

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

{"/Users/ivandemidov/Projects/posthtml-parser/index.js":{"path":"/Users/ivandemidov/Projects/posthtml-parser/index.js","s":{"1":2,"2":2,"3":2,"4":1,"5":21,"6":21,"7":21,"8":1,"9":13,"10":2,"11":2,"12":11,"13":5,"14":6,"15":1,"16":8,"17":8,"18":8,"19":13,"20":13,"21":13,"22":13,"23":8,"24":7,"25":7,"26":1,"27":1,"28":1,"29":2,"30":2,"31":4,"32":4,"33":4,"34":2,"35":21,"36":2,"37":2,"38":1,"39":1,"40":1,"41":1,"42":14,"43":14,"44":2,"45":14,"46":14,"47":14,"48":12,"49":12,"50":2,"51":2,"52":1,"53":2,"54":9,"55":9,"56":2,"57":2,"58":7,"59":7,"60":21,"61":21,"62":21,"63":1,"64":21,"65":1,"66":21,"67":21,"68":21,"69":1,"70":1,"71":20,"72":20,"73":2,"74":2,"75":2},"b":{"1":[2,11],"2":[5,6],"3":[8,2],"4":[8,5],"5":[7,1],"6":[1,1],"7":[1,1],"8":[1,1],"9":[2,12],"10":[12,2],"11":[1,1],"12":[2,7],"13":[7,6],"14":[21,0],"15":[1,20],"16":[21,15,14]},"f":{"1":21,"2":21,"3":13,"4":8,"5":2,"6":4,"7":2,"8":14,"9":14,"10":9,"11":21,"12":21},"fnMap":{"1":{"name":"postHTMLParser","line":18,"loc":{"start":{"line":18,"column":0},"end":{"line":18,"column":39}}},"2":{"name":"(anonymous_2)","line":22,"loc":{"start":{"line":22,"column":20},"end":{"line":22,"column":31}}},"3":{"name":"isDirective","line":26,"loc":{"start":{"line":26,"column":4},"end":{"line":26,"column":41}}},"4":{"name":"parserDirective","line":40,"loc":{"start":{"line":40,"column":4},"end":{"line":40,"column":41}}},"5":{"name":"normalizeArributes","line":61,"loc":{"start":{"line":61,"column":4},"end":{"line":61,"column":39}}},"6":{"name":"(anonymous_6)","line":63,"loc":{"start":{"line":63,"column":35},"end":{"line":63,"column":49}}},"7":{"name":"(anonymous_7)","line":74,"loc":{"start":{"line":74,"column":19},"end":{"line":74,"column":34}}},"8":{"name":"(anonymous_8)","line":86,"loc":{"start":{"line":86,"column":19},"end":{"line":86,"column":40}}},"9":{"name":"(anonymous_9)","line":95,"loc":{"start":{"line":95,"column":20},"end":{"line":95,"column":31}}},"10":{"name":"(anonymous_10)","line":110,"loc":{"start":{"line":110,"column":16},"end":{"line":110,"column":31}}},"11":{"name":"parserWrapper","line":128,"loc":{"start":{"line":128,"column":0},"end":{"line":128,"column":25}}},"12":{"name":"parser","line":131,"loc":{"start":{"line":131,"column":4},"end":{"line":131,"column":26}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":47}},"2":{"start":{"line":8,"column":0},"end":{"line":8,"column":76}},"3":{"start":{"line":10,"column":0},"end":{"line":10,"column":67}},"4":{"start":{"line":18,"column":0},"end":{"line":126,"column":1}},"5":{"start":{"line":19,"column":4},"end":{"line":20,"column":21}},"6":{"start":{"line":22,"column":4},"end":{"line":24,"column":6}},"7":{"start":{"line":23,"column":8},"end":{"line":23,"column":37}},"8":{"start":{"line":26,"column":4},"end":{"line":38,"column":5}},"9":{"start":{"line":27,"column":8},"end":{"line":31,"column":9}},"10":{"start":{"line":28,"column":12},"end":{"line":28,"column":59}},"11":{"start":{"line":30,"column":12},"end":{"line":30,"column":35}},"12":{"start":{"line":33,"column":8},"end":{"line":35,"column":9}},"13":{"start":{"line":34,"column":12},"end":{"line":34,"column":25}},"14":{"start":{"line":37,"column":8},"end":{"line":37,"column":20}},"15":{"start":{"line":40,"column":4},"end":{"line":59,"column":5}},"16":{"start":{"line":41,"column":8},"end":{"line":41,"column":80}},"17":{"start":{"line":42,"column":8},"end":{"line":42,"column":35}},"18":{"start":{"line":44,"column":8},"end":{"line":58,"column":9}},"19":{"start":{"line":45,"column":12},"end":{"line":45,"column":42}},"20":{"start":{"line":46,"column":12},"end":{"line":46,"column":71}},"21":{"start":{"line":48,"column":12},"end":{"line":48,"column":38}},"22":{"start":{"line":49,"column":12},"end":{"line":57,"column":13}},"23":{"start":{"line":50,"column":16},"end":{"line":53,"column":17}},"24":{"start":{"line":51,"column":20},"end":{"line":51,"column":48}},"25":{"start":{"line":52,"column":20},"end":{"line":52,"column":27}},"26":{"start":{"line":55,"column":16},"end":{"line":55,"column":52}},"27":{"start":{"line":56,"column":16},"end":{"line":56,"column":49}},"28":{"start":{"line":61,"column":4},"end":{"line":70,"column":5}},"29":{"start":{"line":62,"column":8},"end":{"line":62,"column":24}},"30":{"start":{"line":63,"column":8},"end":{"line":67,"column":11}},"31":{"start":{"line":64,"column":12},"end":{"line":64,"column":25}},"32":{"start":{"line":65,"column":16},"end":{"line":65,"column":62}},"33":{"start":{"line":66,"column":12},"end":{"line":66,"column":39}},"34":{"start":{"line":69,"column":8},"end":{"line":69,"column":22}},"35":{"start":{"line":72,"column":4},"end":{"line":120,"column":34}},"36":{"start":{"line":75,"column":12},"end":{"line":76,"column":39}},"37":{"start":{"line":78,"column":12},"end":{"line":81,"column":13}},"38":{"start":{"line":79,"column":16},"end":{"line":79,"column":38}},"39":{"start":{"line":80,"column":16},"end":{"line":80,"column":23}},"40":{"start":{"line":83,"column":12},"end":{"line":83,"column":48}},"41":{"start":{"line":84,"column":12},"end":{"line":84,"column":39}},"42":{"start":{"line":87,"column":12},"end":{"line":87,"column":35}},"43":{"start":{"line":89,"column":12},"end":{"line":91,"column":13}},"44":{"start":{"line":90,"column":16},"end":{"line":90,"column":54}},"45":{"start":{"line":93,"column":12},"end":{"line":93,"column":31}},"46":{"start":{"line":96,"column":12},"end":{"line":96,"column":37}},"47":{"start":{"line":98,"column":12},"end":{"line":101,"column":13}},"48":{"start":{"line":99,"column":16},"end":{"line":99,"column":34}},"49":{"start":{"line":100,"column":16},"end":{"line":100,"column":23}},"50":{"start":{"line":103,"column":12},"end":{"line":103,"column":39}},"51":{"start":{"line":104,"column":12},"end":{"line":106,"column":13}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":34}},"53":{"start":{"line":108,"column":12},"end":{"line":108,"column":35}},"54":{"start":{"line":111,"column":12},"end":{"line":111,"column":39}},"55":{"start":{"line":112,"column":12},"end":{"line":115,"column":13}},"56":{"start":{"line":113,"column":16},"end":{"line":113,"column":35}},"57":{"start":{"line":114,"column":16},"end":{"line":114,"column":23}},"58":{"start":{"line":117,"column":12},"end":{"line":117,"column":48}},"59":{"start":{"line":118,"column":12},"end":{"line":118,"column":36}},"60":{"start":{"line":122,"column":4},"end":{"line":122,"column":23}},"61":{"start":{"line":123,"column":4},"end":{"line":123,"column":17}},"62":{"start":{"line":125,"column":4},"end":{"line":125,"column":19}},"63":{"start":{"line":128,"column":0},"end":{"line":147,"column":1}},"64":{"start":{"line":129,"column":4},"end":{"line":129,"column":15}},"65":{"start":{"line":131,"column":4},"end":{"line":134,"column":5}},"66":{"start":{"line":132,"column":8},"end":{"line":132,"column":56}},"67":{"start":{"line":133,"column":8},"end":{"line":133,"column":41}},"68":{"start":{"line":136,"column":4},"end":{"line":143,"column":5}},"69":{"start":{"line":141,"column":8},"end":{"line":141,"column":30}},"70":{"start":{"line":142,"column":8},"end":{"line":142,"column":22}},"71":{"start":{"line":145,"column":4},"end":{"line":145,"column":26}},"72":{"start":{"line":146,"column":4},"end":{"line":146,"column":32}},"73":{"start":{"line":149,"column":0},"end":{"line":149,"column":31}},"74":{"start":{"line":150,"column":0},"end":{"line":150,"column":47}},"75":{"start":{"line":151,"column":0},"end":{"line":151,"column":53}}},"branchMap":{"1":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":8}},{"start":{"line":27,"column":8},"end":{"line":27,"column":8}}]},"2":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":8},"end":{"line":33,"column":8}},{"start":{"line":33,"column":8},"end":{"line":33,"column":8}}]},"3":{"line":41,"type":"binary-expr","locations":[{"start":{"line":41,"column":54},"end":{"line":41,"column":72}},{"start":{"line":41,"column":76},"end":{"line":41,"column":78}}]},"4":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":12},"end":{"line":49,"column":12}},{"start":{"line":49,"column":12},"end":{"line":49,"column":12}}]},"5":{"line":50,"type":"if","locations":[{"start":{"line":50,"column":16},"end":{"line":50,"column":16}},{"start":{"line":50,"column":16},"end":{"line":50,"column":16}}]},"6":{"line":55,"type":"binary-expr","locations":[{"start":{"line":55,"column":16},"end":{"line":55,"column":28}},{"start":{"line":55,"column":33},"end":{"line":55,"column":50}}]},"7":{"line":78,"type":"if","locations":[{"start":{"line":78,"column":12},"end":{"line":78,"column":12}},{"start":{"line":78,"column":12},"end":{"line":78,"column":12}}]},"8":{"line":83,"type":"binary-expr","locations":[{"start":{"line":83,"column":12},"end":{"line":83,"column":24}},{"start":{"line":83,"column":29},"end":{"line":83,"column":46}}]},"9":{"line":89,"type":"if","locations":[{"start":{"line":89,"column":12},"end":{"line":89,"column":12}},{"start":{"line":89,"column":12},"end":{"line":89,"column":12}}]},"10":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":12},"end":{"line":98,"column":12}},{"start":{"line":98,"column":12},"end":{"line":98,"column":12}}]},"11":{"line":104,"type":"if","locations":[{"start":{"line":104,"column":12},"end":{"line":104,"column":12}},{"start":{"line":104,"column":12},"end":{"line":104,"column":12}}]},"12":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":12},"end":{"line":112,"column":12}},{"start":{"line":112,"column":12},"end":{"line":112,"column":12}}]},"13":{"line":117,"type":"binary-expr","locations":[{"start":{"line":117,"column":12},"end":{"line":117,"column":24}},{"start":{"line":117,"column":29},"end":{"line":117,"column":46}}]},"14":{"line":120,"type":"binary-expr","locations":[{"start":{"line":120,"column":7},"end":{"line":120,"column":14}},{"start":{"line":120,"column":18},"end":{"line":120,"column":32}}]},"15":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"16":{"line":137,"type":"binary-expr","locations":[{"start":{"line":137,"column":6},"end":{"line":137,"column":28}},{"start":{"line":138,"column":6},"end":{"line":138,"column":27}},{"start":{"line":139,"column":6},"end":{"line":139,"column":48}}]}}}}
{"/Users/ivandemidov/Projects/posthtml-parser/index.js":{"path":"/Users/ivandemidov/Projects/posthtml-parser/index.js","s":{"1":2,"2":2,"3":2,"4":1,"5":21,"6":21,"7":22,"8":1,"9":13,"10":2,"11":2,"12":11,"13":5,"14":6,"15":1,"16":8,"17":8,"18":8,"19":13,"20":13,"21":13,"22":13,"23":8,"24":7,"25":7,"26":1,"27":1,"28":1,"29":2,"30":2,"31":4,"32":4,"33":4,"34":2,"35":21,"36":2,"37":2,"38":1,"39":1,"40":1,"41":1,"42":15,"43":15,"44":2,"45":15,"46":15,"47":15,"48":13,"49":13,"50":2,"51":2,"52":1,"53":2,"54":10,"55":10,"56":2,"57":2,"58":8,"59":8,"60":21,"61":21,"62":21,"63":1,"64":21,"65":1,"66":21,"67":21,"68":21,"69":1,"70":1,"71":20,"72":20,"73":2,"74":2,"75":2},"b":{"1":[2,11],"2":[5,6],"3":[8,3],"4":[8,5],"5":[7,1],"6":[1,1],"7":[1,1],"8":[1,1],"9":[2,13],"10":[13,2],"11":[1,1],"12":[2,8],"13":[8,7],"14":[21,0],"15":[1,20],"16":[21,15,14]},"f":{"1":21,"2":22,"3":13,"4":8,"5":2,"6":4,"7":2,"8":15,"9":15,"10":10,"11":21,"12":21},"fnMap":{"1":{"name":"postHTMLParser","line":18,"loc":{"start":{"line":18,"column":0},"end":{"line":18,"column":39}}},"2":{"name":"(anonymous_2)","line":22,"loc":{"start":{"line":22,"column":20},"end":{"line":22,"column":31}}},"3":{"name":"isDirective","line":26,"loc":{"start":{"line":26,"column":4},"end":{"line":26,"column":41}}},"4":{"name":"parserDirective","line":40,"loc":{"start":{"line":40,"column":4},"end":{"line":40,"column":41}}},"5":{"name":"normalizeArributes","line":61,"loc":{"start":{"line":61,"column":4},"end":{"line":61,"column":39}}},"6":{"name":"(anonymous_6)","line":63,"loc":{"start":{"line":63,"column":35},"end":{"line":63,"column":49}}},"7":{"name":"(anonymous_7)","line":74,"loc":{"start":{"line":74,"column":19},"end":{"line":74,"column":34}}},"8":{"name":"(anonymous_8)","line":86,"loc":{"start":{"line":86,"column":19},"end":{"line":86,"column":40}}},"9":{"name":"(anonymous_9)","line":95,"loc":{"start":{"line":95,"column":20},"end":{"line":95,"column":31}}},"10":{"name":"(anonymous_10)","line":110,"loc":{"start":{"line":110,"column":16},"end":{"line":110,"column":31}}},"11":{"name":"parserWrapper","line":128,"loc":{"start":{"line":128,"column":0},"end":{"line":128,"column":25}}},"12":{"name":"parser","line":131,"loc":{"start":{"line":131,"column":4},"end":{"line":131,"column":26}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":47}},"2":{"start":{"line":8,"column":0},"end":{"line":8,"column":76}},"3":{"start":{"line":10,"column":0},"end":{"line":10,"column":67}},"4":{"start":{"line":18,"column":0},"end":{"line":126,"column":1}},"5":{"start":{"line":19,"column":4},"end":{"line":20,"column":21}},"6":{"start":{"line":22,"column":4},"end":{"line":24,"column":6}},"7":{"start":{"line":23,"column":8},"end":{"line":23,"column":37}},"8":{"start":{"line":26,"column":4},"end":{"line":38,"column":5}},"9":{"start":{"line":27,"column":8},"end":{"line":31,"column":9}},"10":{"start":{"line":28,"column":12},"end":{"line":28,"column":59}},"11":{"start":{"line":30,"column":12},"end":{"line":30,"column":35}},"12":{"start":{"line":33,"column":8},"end":{"line":35,"column":9}},"13":{"start":{"line":34,"column":12},"end":{"line":34,"column":25}},"14":{"start":{"line":37,"column":8},"end":{"line":37,"column":20}},"15":{"start":{"line":40,"column":4},"end":{"line":59,"column":5}},"16":{"start":{"line":41,"column":8},"end":{"line":41,"column":80}},"17":{"start":{"line":42,"column":8},"end":{"line":42,"column":35}},"18":{"start":{"line":44,"column":8},"end":{"line":58,"column":9}},"19":{"start":{"line":45,"column":12},"end":{"line":45,"column":42}},"20":{"start":{"line":46,"column":12},"end":{"line":46,"column":71}},"21":{"start":{"line":48,"column":12},"end":{"line":48,"column":38}},"22":{"start":{"line":49,"column":12},"end":{"line":57,"column":13}},"23":{"start":{"line":50,"column":16},"end":{"line":53,"column":17}},"24":{"start":{"line":51,"column":20},"end":{"line":51,"column":48}},"25":{"start":{"line":52,"column":20},"end":{"line":52,"column":27}},"26":{"start":{"line":55,"column":16},"end":{"line":55,"column":52}},"27":{"start":{"line":56,"column":16},"end":{"line":56,"column":49}},"28":{"start":{"line":61,"column":4},"end":{"line":70,"column":5}},"29":{"start":{"line":62,"column":8},"end":{"line":62,"column":24}},"30":{"start":{"line":63,"column":8},"end":{"line":67,"column":11}},"31":{"start":{"line":64,"column":12},"end":{"line":64,"column":25}},"32":{"start":{"line":65,"column":16},"end":{"line":65,"column":62}},"33":{"start":{"line":66,"column":12},"end":{"line":66,"column":39}},"34":{"start":{"line":69,"column":8},"end":{"line":69,"column":22}},"35":{"start":{"line":72,"column":4},"end":{"line":120,"column":34}},"36":{"start":{"line":75,"column":12},"end":{"line":76,"column":39}},"37":{"start":{"line":78,"column":12},"end":{"line":81,"column":13}},"38":{"start":{"line":79,"column":16},"end":{"line":79,"column":38}},"39":{"start":{"line":80,"column":16},"end":{"line":80,"column":23}},"40":{"start":{"line":83,"column":12},"end":{"line":83,"column":48}},"41":{"start":{"line":84,"column":12},"end":{"line":84,"column":39}},"42":{"start":{"line":87,"column":12},"end":{"line":87,"column":35}},"43":{"start":{"line":89,"column":12},"end":{"line":91,"column":13}},"44":{"start":{"line":90,"column":16},"end":{"line":90,"column":54}},"45":{"start":{"line":93,"column":12},"end":{"line":93,"column":31}},"46":{"start":{"line":96,"column":12},"end":{"line":96,"column":37}},"47":{"start":{"line":98,"column":12},"end":{"line":101,"column":13}},"48":{"start":{"line":99,"column":16},"end":{"line":99,"column":34}},"49":{"start":{"line":100,"column":16},"end":{"line":100,"column":23}},"50":{"start":{"line":103,"column":12},"end":{"line":103,"column":39}},"51":{"start":{"line":104,"column":12},"end":{"line":106,"column":13}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":34}},"53":{"start":{"line":108,"column":12},"end":{"line":108,"column":35}},"54":{"start":{"line":111,"column":12},"end":{"line":111,"column":39}},"55":{"start":{"line":112,"column":12},"end":{"line":115,"column":13}},"56":{"start":{"line":113,"column":16},"end":{"line":113,"column":35}},"57":{"start":{"line":114,"column":16},"end":{"line":114,"column":23}},"58":{"start":{"line":117,"column":12},"end":{"line":117,"column":48}},"59":{"start":{"line":118,"column":12},"end":{"line":118,"column":36}},"60":{"start":{"line":122,"column":4},"end":{"line":122,"column":23}},"61":{"start":{"line":123,"column":4},"end":{"line":123,"column":17}},"62":{"start":{"line":125,"column":4},"end":{"line":125,"column":19}},"63":{"start":{"line":128,"column":0},"end":{"line":147,"column":1}},"64":{"start":{"line":129,"column":4},"end":{"line":129,"column":15}},"65":{"start":{"line":131,"column":4},"end":{"line":134,"column":5}},"66":{"start":{"line":132,"column":8},"end":{"line":132,"column":60}},"67":{"start":{"line":133,"column":8},"end":{"line":133,"column":41}},"68":{"start":{"line":136,"column":4},"end":{"line":143,"column":5}},"69":{"start":{"line":141,"column":8},"end":{"line":141,"column":30}},"70":{"start":{"line":142,"column":8},"end":{"line":142,"column":22}},"71":{"start":{"line":145,"column":4},"end":{"line":145,"column":26}},"72":{"start":{"line":146,"column":4},"end":{"line":146,"column":32}},"73":{"start":{"line":149,"column":0},"end":{"line":149,"column":31}},"74":{"start":{"line":150,"column":0},"end":{"line":150,"column":47}},"75":{"start":{"line":151,"column":0},"end":{"line":151,"column":53}}},"branchMap":{"1":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":8}},{"start":{"line":27,"column":8},"end":{"line":27,"column":8}}]},"2":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":8},"end":{"line":33,"column":8}},{"start":{"line":33,"column":8},"end":{"line":33,"column":8}}]},"3":{"line":41,"type":"binary-expr","locations":[{"start":{"line":41,"column":54},"end":{"line":41,"column":72}},{"start":{"line":41,"column":76},"end":{"line":41,"column":78}}]},"4":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":12},"end":{"line":49,"column":12}},{"start":{"line":49,"column":12},"end":{"line":49,"column":12}}]},"5":{"line":50,"type":"if","locations":[{"start":{"line":50,"column":16},"end":{"line":50,"column":16}},{"start":{"line":50,"column":16},"end":{"line":50,"column":16}}]},"6":{"line":55,"type":"binary-expr","locations":[{"start":{"line":55,"column":16},"end":{"line":55,"column":28}},{"start":{"line":55,"column":33},"end":{"line":55,"column":50}}]},"7":{"line":78,"type":"if","locations":[{"start":{"line":78,"column":12},"end":{"line":78,"column":12}},{"start":{"line":78,"column":12},"end":{"line":78,"column":12}}]},"8":{"line":83,"type":"binary-expr","locations":[{"start":{"line":83,"column":12},"end":{"line":83,"column":24}},{"start":{"line":83,"column":29},"end":{"line":83,"column":46}}]},"9":{"line":89,"type":"if","locations":[{"start":{"line":89,"column":12},"end":{"line":89,"column":12}},{"start":{"line":89,"column":12},"end":{"line":89,"column":12}}]},"10":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":12},"end":{"line":98,"column":12}},{"start":{"line":98,"column":12},"end":{"line":98,"column":12}}]},"11":{"line":104,"type":"if","locations":[{"start":{"line":104,"column":12},"end":{"line":104,"column":12}},{"start":{"line":104,"column":12},"end":{"line":104,"column":12}}]},"12":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":12},"end":{"line":112,"column":12}},{"start":{"line":112,"column":12},"end":{"line":112,"column":12}}]},"13":{"line":117,"type":"binary-expr","locations":[{"start":{"line":117,"column":12},"end":{"line":117,"column":24}},{"start":{"line":117,"column":29},"end":{"line":117,"column":46}}]},"14":{"line":120,"type":"binary-expr","locations":[{"start":{"line":120,"column":7},"end":{"line":120,"column":14}},{"start":{"line":120,"column":18},"end":{"line":120,"column":32}}]},"15":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"16":{"line":137,"type":"binary-expr","locations":[{"start":{"line":137,"column":6},"end":{"line":137,"column":28}},{"start":{"line":138,"column":6},"end":{"line":138,"column":27}},{"start":{"line":139,"column":6},"end":{"line":139,"column":48}}]}}}}

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

function parser(html) {
var opt = Object.assign(defaultOptions, option);
var opt = Object.assign({}, defaultOptions, option);
return postHTMLParser(html, opt);

@@ -135,0 +135,0 @@ }

{
"name": "posthtml-parser",
"version": "0.4.2",
"version": "0.5.0",
"description": "Parse HTML/XML to PostHTMLTree",

@@ -14,11 +14,22 @@ "keywords": [

"types": "index.d.ts",
"engines": {
"node": ">=10.0.0"
},
"scripts": {
"test": "npm run lint && npm run coverage",
"lint": "jshint . && jscs .",
"coverage": "istanbul cover --report text --report html --report lcov node_modules/mocha/bin/_mocha",
"preversion": "npm test",
"postversion": "git push && git push --tags && rm -rf coverage"
"version": "conventional-changelog -i changelog.md -s -r 0 && git add changelog.md && git commit -m \"build: update changelog\"",
"test": "mocha",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"repository": "posthtml/posthtml-parser",
"author": "Ivan Voischev <voischev.ivan@ya.ru>",
"contributors": [
{
"name": "Ivan Voischev",
"email": "voischev.ivan@ya.ru"
},
{
"name": "Ivan Demidov",
"email": "scrum@list.ru"
}
],
"license": "MIT",

@@ -33,11 +44,26 @@ "bugs": {

"devDependencies": {
"@commitlint/cli": "9.1.1",
"@commitlint/config-angular": "^9.1.2",
"conventional-changelog-cli": "^2.0.34",
"chai": "^4.2.0",
"husky": "^4.2.5",
"istanbul": "^0.4.0",
"jscs": "^3.0.7",
"jshint": "^2.10.3",
"mocha": "^6.2.2",
"rewire": "^4.0.1",
"sinon": "^7.5.0",
"sinon-chai": "^3.3.0"
"jshint": "^2.12.0",
"lint-staged": "^10.2.11",
"mocha": "^8.1.1",
"nyc": "^15.1.0",
"rewire": "^5.0.0",
"rimraf": "^3.0.0",
"sinon": "^9.0.3",
"sinon-chai": "^3.5.0"
},
"funding": {
"type": "patreon",
"url": "https://opencollective.com/posthtml"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/posthtml"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc