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

xml-beautify

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-beautify - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

coverage/coverage-final.json

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

{"C:\\temp5\\xml-beautify\\src\\XmlBeautify.js": {"path":"C:\\temp5\\xml-beautify\\src\\XmlBeautify.js","statementMap":{"0":{"start":{"line":26,"column":19},"end":{"line":26,"column":20}},"1":{"start":{"line":27,"column":21},"end":{"line":27,"column":22}},"2":{"start":{"line":28,"column":16},"end":{"line":28,"column":17}},"3":{"start":{"line":29,"column":25},"end":{"line":29,"column":26}},"4":{"start":{"line":30,"column":34},"end":{"line":30,"column":35}},"5":{"start":{"line":31,"column":19},"end":{"line":31,"column":20}},"6":{"start":{"line":32,"column":20},"end":{"line":32,"column":21}},"7":{"start":{"line":33,"column":25},"end":{"line":33,"column":27}},"8":{"start":{"line":34,"column":29},"end":{"line":34,"column":31}},"9":{"start":{"line":37,"column":16},"end":{"line":37,"column":28}},"10":{"start":{"line":38,"column":4},"end":{"line":38,"column":34}},"11":{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},"12":{"start":{"line":40,"column":6},"end":{"line":40,"column":35}},"13":{"start":{"line":41,"column":6},"end":{"line":41,"column":37}},"14":{"start":{"line":43,"column":6},"end":{"line":43,"column":36}},"15":{"start":{"line":48,"column":4},"end":{"line":48,"column":41}},"16":{"start":{"line":52,"column":15},"end":{"line":52,"column":19}},"17":{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},"18":{"start":{"line":54,"column":6},"end":{"line":54,"column":18}},"19":{"start":{"line":57,"column":29},"end":{"line":57,"column":94}},"20":{"start":{"line":58,"column":27},"end":{"line":58,"column":49}},"21":{"start":{"line":59,"column":21},"end":{"line":59,"column":88}},"22":{"start":{"line":60,"column":4},"end":{"line":60,"column":20}},"23":{"start":{"line":65,"column":15},"end":{"line":65,"column":17}},"24":{"start":{"line":67,"column":12},"end":{"line":67,"column":37}},"25":{"start":{"line":68,"column":4},"end":{"line":72,"column":5}},"26":{"start":{"line":68,"column":14},"end":{"line":68,"column":15}},"27":{"start":{"line":69,"column":6},"end":{"line":71,"column":7}},"28":{"start":{"line":70,"column":8},"end":{"line":70,"column":41}},"29":{"start":{"line":73,"column":4},"end":{"line":73,"column":16}},"30":{"start":{"line":78,"column":15},"end":{"line":78,"column":19}},"31":{"start":{"line":80,"column":16},"end":{"line":80,"column":62}},"32":{"start":{"line":82,"column":17},"end":{"line":82,"column":21}},"33":{"start":{"line":83,"column":21},"end":{"line":83,"column":28}},"34":{"start":{"line":84,"column":32},"end":{"line":84,"column":37}},"35":{"start":{"line":86,"column":4},"end":{"line":94,"column":5}},"36":{"start":{"line":87,"column":6},"end":{"line":89,"column":7}},"37":{"start":{"line":88,"column":8},"end":{"line":88,"column":29}},"38":{"start":{"line":91,"column":6},"end":{"line":93,"column":7}},"39":{"start":{"line":92,"column":8},"end":{"line":92,"column":59}},"40":{"start":{"line":96,"column":20},"end":{"line":96,"column":24}},"41":{"start":{"line":98,"column":4},"end":{"line":101,"column":5}},"42":{"start":{"line":99,"column":23},"end":{"line":99,"column":46}},"43":{"start":{"line":100,"column":6},"end":{"line":100,"column":70}},"44":{"start":{"line":102,"column":22},"end":{"line":107,"column":5}},"45":{"start":{"line":111,"column":4},"end":{"line":115,"column":5}},"46":{"start":{"line":112,"column":4},"end":{"line":112,"column":60}},"47":{"start":{"line":114,"column":6},"end":{"line":114,"column":54}},"48":{"start":{"line":116,"column":20},"end":{"line":116,"column":22}},"49":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"50":{"start":{"line":119,"column":6},"end":{"line":119,"column":36}},"51":{"start":{"line":121,"column":4},"end":{"line":121,"column":35}},"52":{"start":{"line":123,"column":4},"end":{"line":123,"column":21}},"53":{"start":{"line":129,"column":15},"end":{"line":129,"column":19}},"54":{"start":{"line":131,"column":29},"end":{"line":131,"column":48}},"55":{"start":{"line":133,"column":40},"end":{"line":133,"column":136}},"56":{"start":{"line":135,"column":4},"end":{"line":137,"column":5}},"57":{"start":{"line":136,"column":6},"end":{"line":136,"column":30}},"58":{"start":{"line":141,"column":4},"end":{"line":145,"column":5}},"59":{"start":{"line":142,"column":6},"end":{"line":142,"column":66}},"60":{"start":{"line":144,"column":6},"end":{"line":144,"column":60}},"61":{"start":{"line":146,"column":39},"end":{"line":146,"column":90}},"62":{"start":{"line":147,"column":31},"end":{"line":147,"column":80}},"63":{"start":{"line":148,"column":27},"end":{"line":148,"column":77}},"64":{"start":{"line":150,"column":34},"end":{"line":150,"column":65}},"65":{"start":{"line":152,"column":27},"end":{"line":152,"column":30}},"66":{"start":{"line":153,"column":27},"end":{"line":153,"column":30}},"67":{"start":{"line":154,"column":32},"end":{"line":154,"column":37}},"68":{"start":{"line":155,"column":25},"end":{"line":155,"column":29}},"69":{"start":{"line":156,"column":25},"end":{"line":156,"column":28}},"70":{"start":{"line":158,"column":25},"end":{"line":158,"column":27}},"71":{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},"72":{"start":{"line":161,"column":6},"end":{"line":161,"column":42}},"73":{"start":{"line":164,"column":21},"end":{"line":164,"column":23}},"74":{"start":{"line":167,"column":4},"end":{"line":169,"column":5}},"75":{"start":{"line":167,"column":19},"end":{"line":167,"column":20}},"76":{"start":{"line":168,"column":6},"end":{"line":168,"column":41}},"77":{"start":{"line":170,"column":4},"end":{"line":170,"column":36}},"78":{"start":{"line":171,"column":4},"end":{"line":171,"column":57}},"79":{"start":{"line":174,"column":4},"end":{"line":177,"column":5}},"80":{"start":{"line":174,"column":17},"end":{"line":174,"column":18}},"81":{"start":{"line":175,"column":19},"end":{"line":175,"column":40}},"82":{"start":{"line":176,"column":6},"end":{"line":176,"column":80}},"83":{"start":{"line":179,"column":4},"end":{"line":184,"column":5}},"84":{"start":{"line":180,"column":6},"end":{"line":180,"column":47}},"85":{"start":{"line":183,"column":6},"end":{"line":183,"column":42}},"86":{"start":{"line":186,"column":4},"end":{"line":195,"column":5}},"87":{"start":{"line":187,"column":6},"end":{"line":187,"column":42}},"88":{"start":{"line":190,"column":6},"end":{"line":193,"column":7}},"89":{"start":{"line":192,"column":8},"end":{"line":192,"column":34}},"90":{"start":{"line":197,"column":4},"end":{"line":197,"column":28}},"91":{"start":{"line":201,"column":4},"end":{"line":205,"column":5}},"92":{"start":{"line":202,"column":6},"end":{"line":202,"column":53}},"93":{"start":{"line":204,"column":6},"end":{"line":204,"column":45}},"94":{"start":{"line":207,"column":4},"end":{"line":215,"column":5}},"95":{"start":{"line":207,"column":17},"end":{"line":207,"column":18}},"96":{"start":{"line":209,"column":6},"end":{"line":213,"column":7}},"97":{"start":{"line":210,"column":10},"end":{"line":210,"column":44}},"98":{"start":{"line":212,"column":10},"end":{"line":212,"column":36}},"99":{"start":{"line":214,"column":6},"end":{"line":214,"column":44}},"100":{"start":{"line":216,"column":4},"end":{"line":216,"column":28}},"101":{"start":{"line":218,"column":4},"end":{"line":235,"column":5}},"102":{"start":{"line":220,"column":6},"end":{"line":226,"column":7}},"103":{"start":{"line":223,"column":23},"end":{"line":223,"column":68}},"104":{"start":{"line":224,"column":8},"end":{"line":224,"column":36}},"105":{"start":{"line":225,"column":8},"end":{"line":225,"column":34}},"106":{"start":{"line":228,"column":21},"end":{"line":228,"column":66}},"107":{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},"108":{"start":{"line":231,"column":8},"end":{"line":231,"column":40}},"109":{"start":{"line":233,"column":6},"end":{"line":233,"column":34}},"110":{"start":{"line":234,"column":6},"end":{"line":234,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":36,"column":2},"end":{"line":36,"column":3}},"loc":{"start":{"line":36,"column":22},"end":{"line":45,"column":3}},"line":36},"1":{"name":"(anonymous_1)","decl":{"start":{"line":47,"column":2},"end":{"line":47,"column":3}},"loc":{"start":{"line":47,"column":21},"end":{"line":49,"column":3}},"line":47},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":2},"end":{"line":51,"column":3}},"loc":{"start":{"line":51,"column":23},"end":{"line":61,"column":3}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":64,"column":2},"end":{"line":64,"column":3}},"loc":{"start":{"line":64,"column":21},"end":{"line":76,"column":3}},"line":64},"4":{"name":"(anonymous_4)","decl":{"start":{"line":77,"column":2},"end":{"line":77,"column":3}},"loc":{"start":{"line":77,"column":26},"end":{"line":126,"column":3}},"line":77},"5":{"name":"(anonymous_5)","decl":{"start":{"line":128,"column":2},"end":{"line":128,"column":3}},"loc":{"start":{"line":128,"column":39},"end":{"line":237,"column":3}},"line":128}},"branchMap":{"0":{"loc":{"start":{"line":37,"column":16},"end":{"line":37,"column":28}},"type":"binary-expr","locations":[{"start":{"line":37,"column":16},"end":{"line":37,"column":22}},{"start":{"line":37,"column":26},"end":{"line":37,"column":28}}],"line":37},"1":{"loc":{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},{"start":{"line":39,"column":4},"end":{"line":44,"column":5}}],"line":39},"2":{"loc":{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},{"start":{"line":53,"column":4},"end":{"line":55,"column":5}}],"line":53},"3":{"loc":{"start":{"line":69,"column":6},"end":{"line":71,"column":7}},"type":"if","locations":[{"start":{"line":69,"column":6},"end":{"line":71,"column":7}},{"start":{"line":69,"column":6},"end":{"line":71,"column":7}}],"line":69},"4":{"loc":{"start":{"line":86,"column":4},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":86,"column":4},"end":{"line":94,"column":5}},{"start":{"line":86,"column":4},"end":{"line":94,"column":5}}],"line":86},"5":{"loc":{"start":{"line":87,"column":6},"end":{"line":89,"column":7}},"type":"if","locations":[{"start":{"line":87,"column":6},"end":{"line":89,"column":7}},{"start":{"line":87,"column":6},"end":{"line":89,"column":7}}],"line":87},"6":{"loc":{"start":{"line":91,"column":6},"end":{"line":93,"column":7}},"type":"if","locations":[{"start":{"line":91,"column":6},"end":{"line":93,"column":7}},{"start":{"line":91,"column":6},"end":{"line":93,"column":7}}],"line":91},"7":{"loc":{"start":{"line":98,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":101,"column":5}},{"start":{"line":98,"column":4},"end":{"line":101,"column":5}}],"line":98},"8":{"loc":{"start":{"line":111,"column":4},"end":{"line":115,"column":5}},"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":115,"column":5}},{"start":{"line":111,"column":4},"end":{"line":115,"column":5}}],"line":111},"9":{"loc":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},{"start":{"line":118,"column":4},"end":{"line":120,"column":5}}],"line":118},"10":{"loc":{"start":{"line":135,"column":4},"end":{"line":137,"column":5}},"type":"if","locations":[{"start":{"line":135,"column":4},"end":{"line":137,"column":5}},{"start":{"line":135,"column":4},"end":{"line":137,"column":5}}],"line":135},"11":{"loc":{"start":{"line":141,"column":4},"end":{"line":145,"column":5}},"type":"if","locations":[{"start":{"line":141,"column":4},"end":{"line":145,"column":5}},{"start":{"line":141,"column":4},"end":{"line":145,"column":5}}],"line":141},"12":{"loc":{"start":{"line":146,"column":39},"end":{"line":146,"column":90}},"type":"binary-expr","locations":[{"start":{"line":146,"column":39},"end":{"line":146,"column":57}},{"start":{"line":146,"column":61},"end":{"line":146,"column":90}}],"line":146},"13":{"loc":{"start":{"line":147,"column":31},"end":{"line":147,"column":80}},"type":"binary-expr","locations":[{"start":{"line":147,"column":31},"end":{"line":147,"column":51}},{"start":{"line":147,"column":55},"end":{"line":147,"column":80}}],"line":147},"14":{"loc":{"start":{"line":148,"column":27},"end":{"line":148,"column":77}},"type":"binary-expr","locations":[{"start":{"line":148,"column":27},"end":{"line":148,"column":47}},{"start":{"line":148,"column":51},"end":{"line":148,"column":77}}],"line":148},"15":{"loc":{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},"type":"if","locations":[{"start":{"line":160,"column":4},"end":{"line":162,"column":5}},{"start":{"line":160,"column":4},"end":{"line":162,"column":5}}],"line":160},"16":{"loc":{"start":{"line":179,"column":4},"end":{"line":184,"column":5}},"type":"if","locations":[{"start":{"line":179,"column":4},"end":{"line":184,"column":5}},{"start":{"line":179,"column":4},"end":{"line":184,"column":5}}],"line":179},"17":{"loc":{"start":{"line":179,"column":8},"end":{"line":179,"column":47}},"type":"binary-expr","locations":[{"start":{"line":179,"column":8},"end":{"line":179,"column":22}},{"start":{"line":179,"column":26},"end":{"line":179,"column":47}}],"line":179},"18":{"loc":{"start":{"line":186,"column":4},"end":{"line":195,"column":5}},"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":195,"column":5}},{"start":{"line":186,"column":4},"end":{"line":195,"column":5}}],"line":186},"19":{"loc":{"start":{"line":190,"column":6},"end":{"line":193,"column":7}},"type":"if","locations":[{"start":{"line":190,"column":6},"end":{"line":193,"column":7}},{"start":{"line":190,"column":6},"end":{"line":193,"column":7}}],"line":190},"20":{"loc":{"start":{"line":190,"column":10},"end":{"line":190,"column":50}},"type":"binary-expr","locations":[{"start":{"line":190,"column":10},"end":{"line":190,"column":24}},{"start":{"line":190,"column":28},"end":{"line":190,"column":50}}],"line":190},"21":{"loc":{"start":{"line":201,"column":4},"end":{"line":205,"column":5}},"type":"if","locations":[{"start":{"line":201,"column":4},"end":{"line":205,"column":5}},{"start":{"line":201,"column":4},"end":{"line":205,"column":5}}],"line":201},"22":{"loc":{"start":{"line":209,"column":6},"end":{"line":213,"column":7}},"type":"if","locations":[{"start":{"line":209,"column":6},"end":{"line":213,"column":7}},{"start":{"line":209,"column":6},"end":{"line":213,"column":7}}],"line":209},"23":{"loc":{"start":{"line":218,"column":4},"end":{"line":235,"column":5}},"type":"if","locations":[{"start":{"line":218,"column":4},"end":{"line":235,"column":5}},{"start":{"line":218,"column":4},"end":{"line":235,"column":5}}],"line":218},"24":{"loc":{"start":{"line":220,"column":6},"end":{"line":226,"column":7}},"type":"if","locations":[{"start":{"line":220,"column":6},"end":{"line":226,"column":7}},{"start":{"line":220,"column":6},"end":{"line":226,"column":7}}],"line":220},"25":{"loc":{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},"type":"if","locations":[{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},{"start":{"line":230,"column":6},"end":{"line":232,"column":7}}],"line":230},"26":{"loc":{"start":{"line":230,"column":12},"end":{"line":230,"column":61}},"type":"binary-expr","locations":[{"start":{"line":230,"column":12},"end":{"line":230,"column":32}},{"start":{"line":230,"column":36},"end":{"line":230,"column":61}}],"line":230}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":14,"10":14,"11":14,"12":7,"13":7,"14":7,"15":28,"16":14,"17":14,"18":0,"19":14,"20":14,"21":14,"22":14,"23":69,"24":69,"25":69,"26":69,"27":135,"28":67,"29":69,"30":14,"31":14,"32":14,"33":14,"34":14,"35":14,"36":12,"37":8,"38":12,"39":2,"40":14,"41":14,"42":14,"43":14,"44":14,"45":14,"46":7,"47":7,"48":14,"49":14,"50":14,"51":14,"52":14,"53":46,"54":46,"55":46,"56":46,"57":34,"58":46,"59":23,"60":23,"61":46,"62":46,"63":46,"64":46,"65":46,"66":46,"67":46,"68":46,"69":46,"70":46,"71":46,"72":4,"73":46,"74":46,"75":46,"76":58,"77":46,"78":46,"79":46,"80":46,"81":16,"82":16,"83":46,"84":2,"85":44,"86":46,"87":4,"88":42,"89":24,"90":46,"91":46,"92":23,"93":23,"94":46,"95":46,"96":32,"97":16,"98":16,"99":32,"100":46,"101":46,"102":20,"103":18,"104":18,"105":18,"106":26,"107":26,"108":22,"109":26,"110":26},"f":{"0":14,"1":28,"2":14,"3":69,"4":14,"5":46},"b":{"0":[14,7],"1":[7,7],"2":[0,14],"3":[67,68],"4":[12,2],"5":[8,4],"6":[2,10],"7":[14,0],"8":[7,7],"9":[14,0],"10":[34,12],"11":[23,23],"12":[46,12],"13":[46,24],"14":[46,24],"15":[4,42],"16":[2,44],"17":[46,20],"18":[4,42],"19":[18,24],"20":[42,20],"21":[23,23],"22":[16,16],"23":[20,26],"24":[2,18],"25":[22,4],"26":[26,4]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"8f05ce44ae0aa7516a14d94a66d3dd1eba3f1333"}
{"C:\\temp5\\xml-beautify\\src\\XmlBeautify.js": {"path":"C:\\temp5\\xml-beautify\\src\\XmlBeautify.js","statementMap":{"0":{"start":{"line":26,"column":21},"end":{"line":26,"column":22}},"1":{"start":{"line":27,"column":23},"end":{"line":27,"column":24}},"2":{"start":{"line":28,"column":18},"end":{"line":28,"column":19}},"3":{"start":{"line":29,"column":27},"end":{"line":29,"column":28}},"4":{"start":{"line":30,"column":36},"end":{"line":30,"column":37}},"5":{"start":{"line":31,"column":21},"end":{"line":31,"column":22}},"6":{"start":{"line":32,"column":22},"end":{"line":32,"column":23}},"7":{"start":{"line":33,"column":27},"end":{"line":33,"column":29}},"8":{"start":{"line":34,"column":31},"end":{"line":34,"column":33}},"9":{"start":{"line":37,"column":16},"end":{"line":37,"column":28}},"10":{"start":{"line":38,"column":4},"end":{"line":38,"column":36}},"11":{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},"12":{"start":{"line":40,"column":6},"end":{"line":40,"column":37}},"13":{"start":{"line":41,"column":6},"end":{"line":41,"column":37}},"14":{"start":{"line":43,"column":6},"end":{"line":43,"column":36}},"15":{"start":{"line":48,"column":4},"end":{"line":48,"column":41}},"16":{"start":{"line":52,"column":15},"end":{"line":52,"column":19}},"17":{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},"18":{"start":{"line":54,"column":6},"end":{"line":54,"column":18}},"19":{"start":{"line":57,"column":29},"end":{"line":57,"column":94}},"20":{"start":{"line":58,"column":27},"end":{"line":58,"column":49}},"21":{"start":{"line":59,"column":21},"end":{"line":59,"column":88}},"22":{"start":{"line":60,"column":4},"end":{"line":60,"column":20}},"23":{"start":{"line":65,"column":17},"end":{"line":65,"column":19}},"24":{"start":{"line":67,"column":14},"end":{"line":67,"column":39}},"25":{"start":{"line":68,"column":4},"end":{"line":72,"column":5}},"26":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"27":{"start":{"line":69,"column":6},"end":{"line":71,"column":7}},"28":{"start":{"line":70,"column":8},"end":{"line":70,"column":41}},"29":{"start":{"line":73,"column":4},"end":{"line":73,"column":16}},"30":{"start":{"line":79,"column":15},"end":{"line":79,"column":19}},"31":{"start":{"line":81,"column":16},"end":{"line":81,"column":62}},"32":{"start":{"line":83,"column":17},"end":{"line":83,"column":21}},"33":{"start":{"line":84,"column":21},"end":{"line":84,"column":28}},"34":{"start":{"line":85,"column":32},"end":{"line":85,"column":37}},"35":{"start":{"line":87,"column":4},"end":{"line":95,"column":5}},"36":{"start":{"line":88,"column":6},"end":{"line":90,"column":7}},"37":{"start":{"line":89,"column":8},"end":{"line":89,"column":29}},"38":{"start":{"line":92,"column":6},"end":{"line":94,"column":7}},"39":{"start":{"line":93,"column":8},"end":{"line":93,"column":59}},"40":{"start":{"line":97,"column":20},"end":{"line":97,"column":24}},"41":{"start":{"line":99,"column":4},"end":{"line":102,"column":5}},"42":{"start":{"line":100,"column":23},"end":{"line":100,"column":46}},"43":{"start":{"line":101,"column":6},"end":{"line":101,"column":70}},"44":{"start":{"line":103,"column":22},"end":{"line":108,"column":5}},"45":{"start":{"line":110,"column":4},"end":{"line":114,"column":5}},"46":{"start":{"line":111,"column":6},"end":{"line":111,"column":61}},"47":{"start":{"line":113,"column":6},"end":{"line":113,"column":54}},"48":{"start":{"line":116,"column":20},"end":{"line":116,"column":22}},"49":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"50":{"start":{"line":119,"column":6},"end":{"line":119,"column":36}},"51":{"start":{"line":121,"column":4},"end":{"line":121,"column":35}},"52":{"start":{"line":123,"column":4},"end":{"line":123,"column":21}},"53":{"start":{"line":129,"column":15},"end":{"line":129,"column":19}},"54":{"start":{"line":131,"column":29},"end":{"line":131,"column":48}},"55":{"start":{"line":133,"column":40},"end":{"line":133,"column":136}},"56":{"start":{"line":135,"column":4},"end":{"line":137,"column":5}},"57":{"start":{"line":136,"column":6},"end":{"line":136,"column":30}},"58":{"start":{"line":141,"column":4},"end":{"line":145,"column":5}},"59":{"start":{"line":142,"column":6},"end":{"line":142,"column":65}},"60":{"start":{"line":144,"column":6},"end":{"line":144,"column":60}},"61":{"start":{"line":147,"column":39},"end":{"line":147,"column":90}},"62":{"start":{"line":148,"column":31},"end":{"line":148,"column":80}},"63":{"start":{"line":149,"column":27},"end":{"line":149,"column":77}},"64":{"start":{"line":151,"column":34},"end":{"line":151,"column":65}},"65":{"start":{"line":153,"column":27},"end":{"line":153,"column":30}},"66":{"start":{"line":154,"column":27},"end":{"line":154,"column":30}},"67":{"start":{"line":155,"column":32},"end":{"line":155,"column":37}},"68":{"start":{"line":156,"column":25},"end":{"line":156,"column":29}},"69":{"start":{"line":157,"column":25},"end":{"line":157,"column":28}},"70":{"start":{"line":159,"column":25},"end":{"line":159,"column":27}},"71":{"start":{"line":161,"column":4},"end":{"line":163,"column":5}},"72":{"start":{"line":162,"column":6},"end":{"line":162,"column":42}},"73":{"start":{"line":165,"column":21},"end":{"line":165,"column":23}},"74":{"start":{"line":168,"column":4},"end":{"line":170,"column":5}},"75":{"start":{"line":168,"column":19},"end":{"line":168,"column":20}},"76":{"start":{"line":169,"column":6},"end":{"line":169,"column":41}},"77":{"start":{"line":171,"column":4},"end":{"line":171,"column":36}},"78":{"start":{"line":172,"column":4},"end":{"line":172,"column":57}},"79":{"start":{"line":175,"column":4},"end":{"line":178,"column":5}},"80":{"start":{"line":175,"column":17},"end":{"line":175,"column":18}},"81":{"start":{"line":176,"column":19},"end":{"line":176,"column":40}},"82":{"start":{"line":177,"column":6},"end":{"line":177,"column":80}},"83":{"start":{"line":180,"column":4},"end":{"line":185,"column":5}},"84":{"start":{"line":181,"column":6},"end":{"line":181,"column":47}},"85":{"start":{"line":184,"column":6},"end":{"line":184,"column":42}},"86":{"start":{"line":187,"column":4},"end":{"line":196,"column":5}},"87":{"start":{"line":188,"column":6},"end":{"line":188,"column":42}},"88":{"start":{"line":191,"column":6},"end":{"line":194,"column":7}},"89":{"start":{"line":193,"column":8},"end":{"line":193,"column":34}},"90":{"start":{"line":198,"column":4},"end":{"line":198,"column":28}},"91":{"start":{"line":202,"column":4},"end":{"line":206,"column":5}},"92":{"start":{"line":203,"column":6},"end":{"line":203,"column":52}},"93":{"start":{"line":205,"column":6},"end":{"line":205,"column":47}},"94":{"start":{"line":208,"column":4},"end":{"line":216,"column":5}},"95":{"start":{"line":208,"column":17},"end":{"line":208,"column":18}},"96":{"start":{"line":210,"column":6},"end":{"line":214,"column":7}},"97":{"start":{"line":211,"column":8},"end":{"line":211,"column":41}},"98":{"start":{"line":213,"column":8},"end":{"line":213,"column":36}},"99":{"start":{"line":215,"column":6},"end":{"line":215,"column":44}},"100":{"start":{"line":217,"column":4},"end":{"line":217,"column":28}},"101":{"start":{"line":219,"column":4},"end":{"line":235,"column":5}},"102":{"start":{"line":220,"column":6},"end":{"line":226,"column":7}},"103":{"start":{"line":223,"column":23},"end":{"line":223,"column":68}},"104":{"start":{"line":224,"column":8},"end":{"line":224,"column":36}},"105":{"start":{"line":225,"column":8},"end":{"line":225,"column":34}},"106":{"start":{"line":228,"column":21},"end":{"line":228,"column":66}},"107":{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},"108":{"start":{"line":231,"column":8},"end":{"line":231,"column":40}},"109":{"start":{"line":233,"column":6},"end":{"line":233,"column":34}},"110":{"start":{"line":234,"column":6},"end":{"line":234,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":36,"column":2},"end":{"line":36,"column":3}},"loc":{"start":{"line":36,"column":22},"end":{"line":45,"column":3}},"line":36},"1":{"name":"(anonymous_1)","decl":{"start":{"line":47,"column":2},"end":{"line":47,"column":3}},"loc":{"start":{"line":47,"column":21},"end":{"line":49,"column":3}},"line":47},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":2},"end":{"line":51,"column":3}},"loc":{"start":{"line":51,"column":23},"end":{"line":61,"column":3}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":64,"column":2},"end":{"line":64,"column":3}},"loc":{"start":{"line":64,"column":21},"end":{"line":76,"column":3}},"line":64},"4":{"name":"(anonymous_4)","decl":{"start":{"line":78,"column":2},"end":{"line":78,"column":3}},"loc":{"start":{"line":78,"column":26},"end":{"line":126,"column":3}},"line":78},"5":{"name":"(anonymous_5)","decl":{"start":{"line":128,"column":2},"end":{"line":128,"column":3}},"loc":{"start":{"line":128,"column":39},"end":{"line":236,"column":3}},"line":128}},"branchMap":{"0":{"loc":{"start":{"line":37,"column":16},"end":{"line":37,"column":28}},"type":"binary-expr","locations":[{"start":{"line":37,"column":16},"end":{"line":37,"column":22}},{"start":{"line":37,"column":26},"end":{"line":37,"column":28}}],"line":37},"1":{"loc":{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},{"start":{"line":39,"column":4},"end":{"line":44,"column":5}}],"line":39},"2":{"loc":{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":55,"column":5}},{"start":{"line":53,"column":4},"end":{"line":55,"column":5}}],"line":53},"3":{"loc":{"start":{"line":69,"column":6},"end":{"line":71,"column":7}},"type":"if","locations":[{"start":{"line":69,"column":6},"end":{"line":71,"column":7}},{"start":{"line":69,"column":6},"end":{"line":71,"column":7}}],"line":69},"4":{"loc":{"start":{"line":87,"column":4},"end":{"line":95,"column":5}},"type":"if","locations":[{"start":{"line":87,"column":4},"end":{"line":95,"column":5}},{"start":{"line":87,"column":4},"end":{"line":95,"column":5}}],"line":87},"5":{"loc":{"start":{"line":88,"column":6},"end":{"line":90,"column":7}},"type":"if","locations":[{"start":{"line":88,"column":6},"end":{"line":90,"column":7}},{"start":{"line":88,"column":6},"end":{"line":90,"column":7}}],"line":88},"6":{"loc":{"start":{"line":92,"column":6},"end":{"line":94,"column":7}},"type":"if","locations":[{"start":{"line":92,"column":6},"end":{"line":94,"column":7}},{"start":{"line":92,"column":6},"end":{"line":94,"column":7}}],"line":92},"7":{"loc":{"start":{"line":99,"column":4},"end":{"line":102,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":102,"column":5}},{"start":{"line":99,"column":4},"end":{"line":102,"column":5}}],"line":99},"8":{"loc":{"start":{"line":110,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":110,"column":4},"end":{"line":114,"column":5}},{"start":{"line":110,"column":4},"end":{"line":114,"column":5}}],"line":110},"9":{"loc":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},{"start":{"line":118,"column":4},"end":{"line":120,"column":5}}],"line":118},"10":{"loc":{"start":{"line":135,"column":4},"end":{"line":137,"column":5}},"type":"if","locations":[{"start":{"line":135,"column":4},"end":{"line":137,"column":5}},{"start":{"line":135,"column":4},"end":{"line":137,"column":5}}],"line":135},"11":{"loc":{"start":{"line":141,"column":4},"end":{"line":145,"column":5}},"type":"if","locations":[{"start":{"line":141,"column":4},"end":{"line":145,"column":5}},{"start":{"line":141,"column":4},"end":{"line":145,"column":5}}],"line":141},"12":{"loc":{"start":{"line":147,"column":39},"end":{"line":147,"column":90}},"type":"binary-expr","locations":[{"start":{"line":147,"column":39},"end":{"line":147,"column":57}},{"start":{"line":147,"column":61},"end":{"line":147,"column":90}}],"line":147},"13":{"loc":{"start":{"line":148,"column":31},"end":{"line":148,"column":80}},"type":"binary-expr","locations":[{"start":{"line":148,"column":31},"end":{"line":148,"column":51}},{"start":{"line":148,"column":55},"end":{"line":148,"column":80}}],"line":148},"14":{"loc":{"start":{"line":149,"column":27},"end":{"line":149,"column":77}},"type":"binary-expr","locations":[{"start":{"line":149,"column":27},"end":{"line":149,"column":47}},{"start":{"line":149,"column":51},"end":{"line":149,"column":77}}],"line":149},"15":{"loc":{"start":{"line":161,"column":4},"end":{"line":163,"column":5}},"type":"if","locations":[{"start":{"line":161,"column":4},"end":{"line":163,"column":5}},{"start":{"line":161,"column":4},"end":{"line":163,"column":5}}],"line":161},"16":{"loc":{"start":{"line":180,"column":4},"end":{"line":185,"column":5}},"type":"if","locations":[{"start":{"line":180,"column":4},"end":{"line":185,"column":5}},{"start":{"line":180,"column":4},"end":{"line":185,"column":5}}],"line":180},"17":{"loc":{"start":{"line":180,"column":8},"end":{"line":180,"column":47}},"type":"binary-expr","locations":[{"start":{"line":180,"column":8},"end":{"line":180,"column":22}},{"start":{"line":180,"column":26},"end":{"line":180,"column":47}}],"line":180},"18":{"loc":{"start":{"line":187,"column":4},"end":{"line":196,"column":5}},"type":"if","locations":[{"start":{"line":187,"column":4},"end":{"line":196,"column":5}},{"start":{"line":187,"column":4},"end":{"line":196,"column":5}}],"line":187},"19":{"loc":{"start":{"line":191,"column":6},"end":{"line":194,"column":7}},"type":"if","locations":[{"start":{"line":191,"column":6},"end":{"line":194,"column":7}},{"start":{"line":191,"column":6},"end":{"line":194,"column":7}}],"line":191},"20":{"loc":{"start":{"line":191,"column":10},"end":{"line":191,"column":50}},"type":"binary-expr","locations":[{"start":{"line":191,"column":10},"end":{"line":191,"column":24}},{"start":{"line":191,"column":28},"end":{"line":191,"column":50}}],"line":191},"21":{"loc":{"start":{"line":202,"column":4},"end":{"line":206,"column":5}},"type":"if","locations":[{"start":{"line":202,"column":4},"end":{"line":206,"column":5}},{"start":{"line":202,"column":4},"end":{"line":206,"column":5}}],"line":202},"22":{"loc":{"start":{"line":210,"column":6},"end":{"line":214,"column":7}},"type":"if","locations":[{"start":{"line":210,"column":6},"end":{"line":214,"column":7}},{"start":{"line":210,"column":6},"end":{"line":214,"column":7}}],"line":210},"23":{"loc":{"start":{"line":219,"column":4},"end":{"line":235,"column":5}},"type":"if","locations":[{"start":{"line":219,"column":4},"end":{"line":235,"column":5}},{"start":{"line":219,"column":4},"end":{"line":235,"column":5}}],"line":219},"24":{"loc":{"start":{"line":220,"column":6},"end":{"line":226,"column":7}},"type":"if","locations":[{"start":{"line":220,"column":6},"end":{"line":226,"column":7}},{"start":{"line":220,"column":6},"end":{"line":226,"column":7}}],"line":220},"25":{"loc":{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},"type":"if","locations":[{"start":{"line":230,"column":6},"end":{"line":232,"column":7}},{"start":{"line":230,"column":6},"end":{"line":232,"column":7}}],"line":230},"26":{"loc":{"start":{"line":230,"column":12},"end":{"line":230,"column":61}},"type":"binary-expr","locations":[{"start":{"line":230,"column":12},"end":{"line":230,"column":32}},{"start":{"line":230,"column":36},"end":{"line":230,"column":61}}],"line":230}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":14,"10":14,"11":14,"12":7,"13":7,"14":7,"15":28,"16":14,"17":14,"18":0,"19":14,"20":14,"21":14,"22":14,"23":69,"24":69,"25":69,"26":69,"27":135,"28":67,"29":69,"30":14,"31":14,"32":14,"33":14,"34":14,"35":14,"36":12,"37":8,"38":12,"39":2,"40":14,"41":14,"42":14,"43":14,"44":14,"45":14,"46":7,"47":7,"48":14,"49":14,"50":14,"51":14,"52":14,"53":46,"54":46,"55":46,"56":46,"57":34,"58":46,"59":23,"60":23,"61":46,"62":46,"63":46,"64":46,"65":46,"66":46,"67":46,"68":46,"69":46,"70":46,"71":46,"72":4,"73":46,"74":46,"75":46,"76":58,"77":46,"78":46,"79":46,"80":46,"81":16,"82":16,"83":46,"84":2,"85":44,"86":46,"87":4,"88":42,"89":24,"90":46,"91":46,"92":23,"93":23,"94":46,"95":46,"96":32,"97":16,"98":16,"99":32,"100":46,"101":46,"102":20,"103":18,"104":18,"105":18,"106":26,"107":26,"108":22,"109":26,"110":26},"f":{"0":14,"1":28,"2":14,"3":69,"4":14,"5":46},"b":{"0":[14,7],"1":[7,7],"2":[0,14],"3":[67,68],"4":[12,2],"5":[8,4],"6":[2,10],"7":[14,0],"8":[7,7],"9":[14,0],"10":[34,12],"11":[23,23],"12":[46,12],"13":[46,24],"14":[46,24],"15":[4,42],"16":[2,44],"17":[46,20],"18":[4,42],"19":[18,24],"20":[42,20],"21":[23,23],"22":[16,16],"23":[20,26],"24":[2,18],"25":[22,4],"26":[26,4]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d7a5b12b69aa462980a22087de41b6ef015c50f2"}
}

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

/*! XmlBeautify v1.1.0 Copyright (c) 2019-2021 https://github.com/riversun(riversun.org@gmail.com) */
/*! XmlBeautify v1.1.2 Copyright (c) 2019-2021 https://github.com/riversun(riversun.org@gmail.com) */
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.XmlBeautify=n():e.XmlBeautify=n()}(this,(function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var l=n[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,t),l.l=!0,l.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var l in e)t.d(r,l,function(n){return e[n]}.bind(null,l));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=0)}([function(e,n,t){e.exports=t(1)},function(e,n,t){"use strict";function r(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}t.r(n),t.d(n,"default",(function(){return l}));var l=function(){function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);var t=n||{};this.userExternalParser=!1,t.parser?(this.userExternalParser=!0,this.parser=new t.parser):this.parser=new DOMParser}var n,t,l;return n=e,(t=[{key:"hasXmlDef",value:function(e){return e.indexOf("<?xml")>=0}},{key:"getEncoding",value:function(e){if(!this.hasXmlDef(e))return null;var n=e.toLowerCase().indexOf('encoding="')+'encoding="'.length,t=e.indexOf('"?>');return e.substr(n,t-n)}},{key:"_children",value:function(e){for(var n=[],t=e.childNodes.length,r=0;r<t;r++)1===e.childNodes[r].nodeType&&n.push(e.childNodes[r]);return n}},{key:"beautify",value:function(e,n){var t=this,r=t.parser.parseFromString(e,"text/xml"),l=" ",a=!1;n&&(n.indent&&(l=n.indent),1==n.useSelfClosingElement&&(a=n.useSelfClosingElement));var i=null;t.hasXmlDef(e)&&(i='<?xml version="1.0" encoding="'+t.getEncoding(e)+'"?>');var o={indentText:l,xmlText:"",useSelfClosingElement:a,indentLevel:0};t.userExternalParser?t._parseInternally(this._children(r)[0],o):t._parseInternally(r.children[0],o);var u="";return i&&(u+=i+"\n"),u+=o.xmlText}},{key:"_parseInternally",value:function(e,n){var t,r=this,l=e.textContent;0==l.replace(/ /g,"").replace(/\r?\n/g,"").replace(/\n/g,"").replace(/\t/g,"").length&&(l=""),t=r.userExternalParser?!(r._children(e).length>0):!(e.children.length>0);var a=l&&l.length>0,i=t&&a,o=t&&!a,u=n.useSelfClosingElement,s="";i&&(s=l);for(var f,c="",d=0;d<n.indentLevel;d++)c+=n.indentText;n.xmlText+=c,n.xmlText+="<"+e.tagName;for(var x=0;x<e.attributes.length;x++){var p=e.attributes[x];n.xmlText+=" "+p.name+'="'+p.textContent+'"'}n.xmlText+=o&&u?" />":">",i?n.xmlText+=s:o&&!u||(n.xmlText+="\n"),n.indentLevel++,f=r.userExternalParser?r._children(e).length:e.children.length;for(var m=0;m<f;m++){var v=void 0;v=r.userExternalParser?r._children(e)[m]:e.children[m],r._parseInternally(v,n)}if(n.indentLevel--,o)if(u);else{var h="</"+e.tagName+">";n.xmlText+=h,n.xmlText+="\n"}else{var g="</"+e.tagName+">";t&&a||(n.xmlText+=c),n.xmlText+=g,n.xmlText+="\n"}}}])&&r(n.prototype,t),l&&r(n,l),e}()}]).default}));
{
"name": "xml-beautify",
"version": "1.1.1",
"version": "1.1.2",
"description": "XML pretty formatter that corresponds to the self-closing empty elements.",

@@ -23,4 +23,4 @@ "main": "dist/XmlBeautify.js",

"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/core": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"babel-jest": "^26.6.3",

@@ -33,3 +33,3 @@ "babel-loader": "^8.2.2",

"webpack-dev-server": "^3.11.2",
"xmldom": "^0.4.0"
"xmldom": "^0.6.0"
},

@@ -36,0 +36,0 @@ "directories": {

@@ -77,3 +77,3 @@ # xml-beautify

```
<script src="https://cdn.jsdelivr.net/npm/xml-beautify/dist/XmlBeautify.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xml-beautify@1.1.1/dist/XmlBeautify.js"></script>
```

@@ -100,3 +100,3 @@

<body>
<script src="https://cdn.jsdelivr.net/npm/xml-beautify/dist/XmlBeautify.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xml-beautify@1.1.1/dist/XmlBeautify.js"></script>
<script>

@@ -103,0 +103,0 @@ const srcXmlText = `<?xml version="1.0" encoding="utf-8"?><example version="2.0">

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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