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

digest-fetch

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digest-fetch - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

coverage/coverage.raw.json

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

{"/Users/stefanliu/git/digest-fetch/digest-fetch-src.js":{"path":"/Users/stefanliu/git/digest-fetch/digest-fetch-src.js","statementMap":{"0":{"start":{"line":7,"column":19},"end":{"line":7,"column":48}},"1":{"start":{"line":8,"column":0},"end":{"line":8,"column":81}},"2":{"start":{"line":8,"column":60},"end":{"line":8,"column":81}},"3":{"start":{"line":9,"column":12},"end":{"line":9,"column":26}},"4":{"start":{"line":10,"column":15},"end":{"line":10,"column":42}},"5":{"start":{"line":11,"column":18},"end":{"line":11,"column":49}},"6":{"start":{"line":12,"column":15},"end":{"line":12,"column":33}},"7":{"start":{"line":14,"column":29},"end":{"line":14,"column":110}},"8":{"start":{"line":16,"column":14},"end":{"line":22,"column":1}},"9":{"start":{"line":17,"column":16},"end":{"line":17,"column":59}},"10":{"start":{"line":18,"column":16},"end":{"line":18,"column":31}},"11":{"start":{"line":19,"column":2},"end":{"line":20,"column":59}},"12":{"start":{"line":20,"column":4},"end":{"line":20,"column":59}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":13}},"14":{"start":{"line":26,"column":4},"end":{"line":26,"column":20}},"15":{"start":{"line":27,"column":4},"end":{"line":27,"column":24}},"16":{"start":{"line":28,"column":4},"end":{"line":28,"column":28}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":38}},"18":{"start":{"line":30,"column":4},"end":{"line":30,"column":32}},"19":{"start":{"line":31,"column":4},"end":{"line":31,"column":50}},"20":{"start":{"line":33,"column":20},"end":{"line":33,"column":46}},"21":{"start":{"line":34,"column":4},"end":{"line":37,"column":5}},"22":{"start":{"line":35,"column":6},"end":{"line":35,"column":96}},"23":{"start":{"line":35,"column":23},"end":{"line":35,"column":96}},"24":{"start":{"line":36,"column":6},"end":{"line":36,"column":23}},"25":{"start":{"line":38,"column":4},"end":{"line":42,"column":5}},"26":{"start":{"line":39,"column":6},"end":{"line":39,"column":28}},"27":{"start":{"line":40,"column":11},"end":{"line":42,"column":5}},"28":{"start":{"line":41,"column":6},"end":{"line":41,"column":31}},"29":{"start":{"line":43,"column":4},"end":{"line":43,"column":49}},"30":{"start":{"line":44,"column":4},"end":{"line":44,"column":24}},"31":{"start":{"line":45,"column":24},"end":{"line":45,"column":52}},"32":{"start":{"line":46,"column":4},"end":{"line":46,"column":59}},"33":{"start":{"line":50,"column":4},"end":{"line":50,"column":40}},"34":{"start":{"line":51,"column":4},"end":{"line":51,"column":39}},"35":{"start":{"line":55,"column":4},"end":{"line":55,"column":65}},"36":{"start":{"line":55,"column":20},"end":{"line":55,"column":65}},"37":{"start":{"line":56,"column":17},"end":{"line":56,"column":61}},"38":{"start":{"line":57,"column":4},"end":{"line":69,"column":27}},"39":{"start":{"line":58,"column":6},"end":{"line":58,"column":26}},"40":{"start":{"line":59,"column":6},"end":{"line":59,"column":64}},"41":{"start":{"line":60,"column":6},"end":{"line":68,"column":7}},"42":{"start":{"line":61,"column":26},"end":{"line":61,"column":70}},"43":{"start":{"line":62,"column":8},"end":{"line":66,"column":9}},"44":{"start":{"line":63,"column":10},"end":{"line":63,"column":30}},"45":{"start":{"line":65,"column":10},"end":{"line":65,"column":26}},"46":{"start":{"line":67,"column":8},"end":{"line":67,"column":24}},"47":{"start":{"line":69,"column":11},"end":{"line":69,"column":27}},"48":{"start":{"line":70,"column":4},"end":{"line":70,"column":15}},"49":{"start":{"line":74,"column":19},"end":{"line":74,"column":21}},"50":{"start":{"line":75,"column":4},"end":{"line":79,"column":5}},"51":{"start":{"line":76,"column":6},"end":{"line":76,"column":34}},"52":{"start":{"line":78,"column":6},"end":{"line":78,"column":24}},"53":{"start":{"line":81,"column":17},"end":{"line":81,"column":74}},"54":{"start":{"line":82,"column":4},"end":{"line":82,"column":45}},"55":{"start":{"line":83,"column":4},"end":{"line":83,"column":42}},"56":{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},"57":{"start":{"line":85,"column":6},"end":{"line":85,"column":49}},"58":{"start":{"line":88,"column":4},"end":{"line":88,"column":47}},"59":{"start":{"line":88,"column":21},"end":{"line":88,"column":47}},"60":{"start":{"line":89,"column":4},"end":{"line":89,"column":19}},"61":{"start":{"line":93,"column":4},"end":{"line":93,"column":66}},"62":{"start":{"line":97,"column":4},"end":{"line":97,"column":30}},"63":{"start":{"line":101,"column":4},"end":{"line":101,"column":74}},"64":{"start":{"line":101,"column":47},"end":{"line":101,"column":74}},"65":{"start":{"line":102,"column":4},"end":{"line":102,"column":37}},"66":{"start":{"line":102,"column":23},"end":{"line":102,"column":37}},"67":{"start":{"line":103,"column":4},"end":{"line":103,"column":69}},"68":{"start":{"line":103,"column":21},"end":{"line":103,"column":69}},"69":{"start":{"line":105,"column":22},"end":{"line":105,"column":78}},"70":{"start":{"line":106,"column":19},"end":{"line":106,"column":44}},"71":{"start":{"line":107,"column":17},"end":{"line":107,"column":41}},"72":{"start":{"line":108,"column":16},"end":{"line":108,"column":77}},"73":{"start":{"line":109,"column":19},"end":{"line":109,"column":72}},"74":{"start":{"line":111,"column":14},"end":{"line":111,"column":114}},"75":{"start":{"line":112,"column":4},"end":{"line":114,"column":5}},"76":{"start":{"line":113,"column":6},"end":{"line":113,"column":88}},"77":{"start":{"line":117,"column":15},"end":{"line":117,"column":17}},"78":{"start":{"line":118,"column":4},"end":{"line":123,"column":5}},"79":{"start":{"line":120,"column":6},"end":{"line":120,"column":92}},"80":{"start":{"line":120,"column":23},"end":{"line":120,"column":92}},"81":{"start":{"line":124,"column":16},"end":{"line":124,"column":65}},"82":{"start":{"line":126,"column":21},"end":{"line":126,"column":58}},"83":{"start":{"line":128,"column":20},"end":{"line":128,"column":109}},"84":{"start":{"line":129,"column":4},"end":{"line":129,"column":74}},"85":{"start":{"line":129,"column":26},"end":{"line":129,"column":74}},"86":{"start":{"line":130,"column":21},"end":{"line":130,"column":54}},"87":{"start":{"line":132,"column":25},"end":{"line":132,"column":93}},"88":{"start":{"line":133,"column":22},"end":{"line":133,"column":70}},"89":{"start":{"line":134,"column":19},"end":{"line":136,"column":104}},"90":{"start":{"line":137,"column":4},"end":{"line":137,"column":43}},"91":{"start":{"line":138,"column":4},"end":{"line":138,"column":42}},"92":{"start":{"line":139,"column":4},"end":{"line":141,"column":5}},"93":{"start":{"line":140,"column":6},"end":{"line":140,"column":50}},"94":{"start":{"line":143,"column":4},"end":{"line":143,"column":47}},"95":{"start":{"line":143,"column":21},"end":{"line":143,"column":47}},"96":{"start":{"line":146,"column":21},"end":{"line":146,"column":23}},"97":{"start":{"line":147,"column":4},"end":{"line":147,"column":36}},"98":{"start":{"line":148,"column":4},"end":{"line":148,"column":27}},"99":{"start":{"line":149,"column":4},"end":{"line":149,"column":20}},"100":{"start":{"line":153,"column":4},"end":{"line":153,"column":21}},"101":{"start":{"line":155,"column":4},"end":{"line":158,"column":5}},"102":{"start":{"line":156,"column":6},"end":{"line":156,"column":26}},"103":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"104":{"start":{"line":160,"column":4},"end":{"line":160,"column":23}},"105":{"start":{"line":162,"column":4},"end":{"line":162,"column":41}},"106":{"start":{"line":164,"column":4},"end":{"line":164,"column":76}},"107":{"start":{"line":166,"column":4},"end":{"line":166,"column":38}},"108":{"start":{"line":168,"column":4},"end":{"line":168,"column":43}},"109":{"start":{"line":170,"column":4},"end":{"line":170,"column":47}},"110":{"start":{"line":172,"column":4},"end":{"line":172,"column":41}},"111":{"start":{"line":173,"column":4},"end":{"line":173,"column":20}},"112":{"start":{"line":182,"column":17},"end":{"line":182,"column":38}},"113":{"start":{"line":184,"column":4},"end":{"line":188,"column":5}},"114":{"start":{"line":185,"column":19},"end":{"line":185,"column":34}},"115":{"start":{"line":186,"column":6},"end":{"line":187,"column":59}},"116":{"start":{"line":186,"column":33},"end":{"line":186,"column":46}},"117":{"start":{"line":187,"column":11},"end":{"line":187,"column":59}},"118":{"start":{"line":187,"column":42},"end":{"line":187,"column":59}},"119":{"start":{"line":190,"column":4},"end":{"line":190,"column":15}},"120":{"start":{"line":194,"column":14},"end":{"line":194,"column":16}},"121":{"start":{"line":195,"column":4},"end":{"line":197,"column":5}},"122":{"start":{"line":196,"column":6},"end":{"line":196,"column":77}},"123":{"start":{"line":198,"column":4},"end":{"line":198,"column":14}},"124":{"start":{"line":202,"column":4},"end":{"line":202,"column":25}},"125":{"start":{"line":206,"column":0},"end":{"line":206,"column":66}},"126":{"start":{"line":206,"column":33},"end":{"line":206,"column":66}},"127":{"start":{"line":207,"column":0},"end":{"line":207,"column":29}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":14},"end":{"line":16,"column":15}},"loc":{"start":{"line":16,"column":41},"end":{"line":22,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":25,"column":2},"end":{"line":25,"column":3}},"loc":{"start":{"line":25,"column":42},"end":{"line":52,"column":3}},"line":25},"2":{"name":"(anonymous_2)","decl":{"start":{"line":54,"column":2},"end":{"line":54,"column":3}},"loc":{"start":{"line":54,"column":32},"end":{"line":71,"column":3}},"line":54},"3":{"name":"(anonymous_3)","decl":{"start":{"line":73,"column":2},"end":{"line":73,"column":3}},"loc":{"start":{"line":73,"column":28},"end":{"line":90,"column":3}},"line":73},"4":{"name":"(anonymous_4)","decl":{"start":{"line":92,"column":2},"end":{"line":92,"column":3}},"loc":{"start":{"line":92,"column":37},"end":{"line":94,"column":3}},"line":92},"5":{"name":"(anonymous_5)","decl":{"start":{"line":96,"column":2},"end":{"line":96,"column":3}},"loc":{"start":{"line":96,"column":26},"end":{"line":98,"column":3}},"line":96},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":2},"end":{"line":100,"column":3}},"loc":{"start":{"line":100,"column":25},"end":{"line":150,"column":3}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":152,"column":2},"end":{"line":152,"column":3}},"loc":{"start":{"line":152,"column":22},"end":{"line":174,"column":3}},"line":152},"8":{"name":"(anonymous_8)","decl":{"start":{"line":176,"column":2},"end":{"line":176,"column":3}},"loc":{"start":{"line":176,"column":21},"end":{"line":191,"column":3}},"line":176},"9":{"name":"(anonymous_9)","decl":{"start":{"line":193,"column":2},"end":{"line":193,"column":3}},"loc":{"start":{"line":193,"column":15},"end":{"line":199,"column":3}},"line":193},"10":{"name":"(anonymous_10)","decl":{"start":{"line":201,"column":2},"end":{"line":201,"column":3}},"loc":{"start":{"line":201,"column":24},"end":{"line":203,"column":3}},"line":201}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":0},"end":{"line":8,"column":81}},"type":"if","locations":[{"start":{"line":8,"column":0},"end":{"line":8,"column":81}},{"start":{"line":8,"column":0},"end":{"line":8,"column":81}}],"line":8},"1":{"loc":{"start":{"line":8,"column":4},"end":{"line":8,"column":46}},"type":"binary-expr","locations":[{"start":{"line":8,"column":4},"end":{"line":8,"column":32}},{"start":{"line":8,"column":36},"end":{"line":8,"column":46}}],"line":8},"2":{"loc":{"start":{"line":16,"column":27},"end":{"line":16,"column":36}},"type":"default-arg","locations":[{"start":{"line":16,"column":32},"end":{"line":16,"column":36}}],"line":16},"3":{"loc":{"start":{"line":19,"column":2},"end":{"line":20,"column":59}},"type":"if","locations":[{"start":{"line":19,"column":2},"end":{"line":20,"column":59}},{"start":{"line":19,"column":2},"end":{"line":20,"column":59}}],"line":19},"4":{"loc":{"start":{"line":20,"column":11},"end":{"line":20,"column":59}},"type":"cond-expr","locations":[{"start":{"line":20,"column":18},"end":{"line":20,"column":48}},{"start":{"line":20,"column":51},"end":{"line":20,"column":59}}],"line":20},"5":{"loc":{"start":{"line":25,"column":30},"end":{"line":25,"column":40}},"type":"default-arg","locations":[{"start":{"line":25,"column":38},"end":{"line":25,"column":40}}],"line":25},"6":{"loc":{"start":{"line":33,"column":20},"end":{"line":33,"column":46}},"type":"binary-expr","locations":[{"start":{"line":33,"column":20},"end":{"line":33,"column":37}},{"start":{"line":33,"column":41},"end":{"line":33,"column":46}}],"line":33},"7":{"loc":{"start":{"line":34,"column":4},"end":{"line":37,"column":5}},"type":"if","locations":[{"start":{"line":34,"column":4},"end":{"line":37,"column":5}},{"start":{"line":34,"column":4},"end":{"line":37,"column":5}}],"line":34},"8":{"loc":{"start":{"line":35,"column":6},"end":{"line":35,"column":96}},"type":"if","locations":[{"start":{"line":35,"column":6},"end":{"line":35,"column":96}},{"start":{"line":35,"column":6},"end":{"line":35,"column":96}}],"line":35},"9":{"loc":{"start":{"line":38,"column":4},"end":{"line":42,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":42,"column":5}},{"start":{"line":38,"column":4},"end":{"line":42,"column":5}}],"line":38},"10":{"loc":{"start":{"line":40,"column":11},"end":{"line":42,"column":5}},"type":"if","locations":[{"start":{"line":40,"column":11},"end":{"line":42,"column":5}},{"start":{"line":40,"column":11},"end":{"line":42,"column":5}}],"line":40},"11":{"loc":{"start":{"line":46,"column":22},"end":{"line":46,"column":59}},"type":"cond-expr","locations":[{"start":{"line":46,"column":43},"end":{"line":46,"column":45}},{"start":{"line":46,"column":48},"end":{"line":46,"column":59}}],"line":46},"12":{"loc":{"start":{"line":51,"column":17},"end":{"line":51,"column":39}},"type":"binary-expr","locations":[{"start":{"line":51,"column":17},"end":{"line":51,"column":30}},{"start":{"line":51,"column":34},"end":{"line":51,"column":39}}],"line":51},"13":{"loc":{"start":{"line":54,"column":20},"end":{"line":54,"column":30}},"type":"default-arg","locations":[{"start":{"line":54,"column":28},"end":{"line":54,"column":30}}],"line":54},"14":{"loc":{"start":{"line":55,"column":4},"end":{"line":55,"column":65}},"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":55,"column":65}},{"start":{"line":55,"column":4},"end":{"line":55,"column":65}}],"line":55},"15":{"loc":{"start":{"line":57,"column":4},"end":{"line":69,"column":27}},"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":69,"column":27}},{"start":{"line":57,"column":4},"end":{"line":69,"column":27}}],"line":57},"16":{"loc":{"start":{"line":57,"column":8},"end":{"line":57,"column":81}},"type":"binary-expr","locations":[{"start":{"line":57,"column":8},"end":{"line":57,"column":26}},{"start":{"line":57,"column":31},"end":{"line":57,"column":61}},{"start":{"line":57,"column":65},"end":{"line":57,"column":80}}],"line":57},"17":{"loc":{"start":{"line":60,"column":6},"end":{"line":68,"column":7}},"type":"if","locations":[{"start":{"line":60,"column":6},"end":{"line":68,"column":7}},{"start":{"line":60,"column":6},"end":{"line":68,"column":7}}],"line":60},"18":{"loc":{"start":{"line":62,"column":8},"end":{"line":66,"column":9}},"type":"if","locations":[{"start":{"line":62,"column":8},"end":{"line":66,"column":9}},{"start":{"line":62,"column":8},"end":{"line":66,"column":9}}],"line":62},"19":{"loc":{"start":{"line":62,"column":12},"end":{"line":62,"column":74}},"type":"binary-expr","locations":[{"start":{"line":62,"column":12},"end":{"line":62,"column":35}},{"start":{"line":62,"column":39},"end":{"line":62,"column":74}}],"line":62},"20":{"loc":{"start":{"line":73,"column":16},"end":{"line":73,"column":26}},"type":"default-arg","locations":[{"start":{"line":73,"column":24},"end":{"line":73,"column":26}}],"line":73},"21":{"loc":{"start":{"line":75,"column":4},"end":{"line":79,"column":5}},"type":"if","locations":[{"start":{"line":75,"column":4},"end":{"line":79,"column":5}},{"start":{"line":75,"column":4},"end":{"line":79,"column":5}}],"line":75},"22":{"loc":{"start":{"line":82,"column":23},"end":{"line":82,"column":45}},"type":"binary-expr","locations":[{"start":{"line":82,"column":23},"end":{"line":82,"column":39}},{"start":{"line":82,"column":43},"end":{"line":82,"column":45}}],"line":82},"23":{"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},"24":{"loc":{"start":{"line":88,"column":4},"end":{"line":88,"column":47}},"type":"if","locations":[{"start":{"line":88,"column":4},"end":{"line":88,"column":47}},{"start":{"line":88,"column":4},"end":{"line":88,"column":47}}],"line":88},"25":{"loc":{"start":{"line":101,"column":4},"end":{"line":101,"column":74}},"type":"if","locations":[{"start":{"line":101,"column":4},"end":{"line":101,"column":74}},{"start":{"line":101,"column":4},"end":{"line":101,"column":74}}],"line":101},"26":{"loc":{"start":{"line":102,"column":4},"end":{"line":102,"column":37}},"type":"if","locations":[{"start":{"line":102,"column":4},"end":{"line":102,"column":37}},{"start":{"line":102,"column":4},"end":{"line":102,"column":37}}],"line":102},"27":{"loc":{"start":{"line":103,"column":4},"end":{"line":103,"column":69}},"type":"if","locations":[{"start":{"line":103,"column":4},"end":{"line":103,"column":69}},{"start":{"line":103,"column":4},"end":{"line":103,"column":69}}],"line":103},"28":{"loc":{"start":{"line":105,"column":22},"end":{"line":105,"column":78}},"type":"binary-expr","locations":[{"start":{"line":105,"column":22},"end":{"line":105,"column":46}},{"start":{"line":105,"column":50},"end":{"line":105,"column":78}}],"line":105},"29":{"loc":{"start":{"line":106,"column":19},"end":{"line":106,"column":44}},"type":"cond-expr","locations":[{"start":{"line":106,"column":31},"end":{"line":106,"column":38}},{"start":{"line":106,"column":41},"end":{"line":106,"column":44}}],"line":106},"30":{"loc":{"start":{"line":108,"column":16},"end":{"line":108,"column":77}},"type":"cond-expr","locations":[{"start":{"line":108,"column":42},"end":{"line":108,"column":45}},{"start":{"line":108,"column":48},"end":{"line":108,"column":77}}],"line":108},"31":{"loc":{"start":{"line":109,"column":19},"end":{"line":109,"column":72}},"type":"cond-expr","locations":[{"start":{"line":109,"column":36},"end":{"line":109,"column":64}},{"start":{"line":109,"column":67},"end":{"line":109,"column":72}}],"line":109},"32":{"loc":{"start":{"line":111,"column":14},"end":{"line":111,"column":114}},"type":"cond-expr","locations":[{"start":{"line":111,"column":37},"end":{"line":111,"column":50}},{"start":{"line":111,"column":53},"end":{"line":111,"column":114}}],"line":111},"33":{"loc":{"start":{"line":112,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":112,"column":4},"end":{"line":114,"column":5}},{"start":{"line":112,"column":4},"end":{"line":114,"column":5}}],"line":112},"34":{"loc":{"start":{"line":118,"column":4},"end":{"line":123,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":123,"column":5}},{"start":{"line":118,"column":4},"end":{"line":123,"column":5}}],"line":118},"35":{"loc":{"start":{"line":120,"column":6},"end":{"line":120,"column":92}},"type":"if","locations":[{"start":{"line":120,"column":6},"end":{"line":120,"column":92}},{"start":{"line":120,"column":6},"end":{"line":120,"column":92}}],"line":120},"36":{"loc":{"start":{"line":129,"column":4},"end":{"line":129,"column":74}},"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":129,"column":74}},{"start":{"line":129,"column":4},"end":{"line":129,"column":74}}],"line":129},"37":{"loc":{"start":{"line":132,"column":25},"end":{"line":132,"column":93}},"type":"cond-expr","locations":[{"start":{"line":132,"column":55},"end":{"line":132,"column":88}},{"start":{"line":132,"column":91},"end":{"line":132,"column":93}}],"line":132},"38":{"loc":{"start":{"line":133,"column":22},"end":{"line":133,"column":70}},"type":"cond-expr","locations":[{"start":{"line":133,"column":40},"end":{"line":133,"column":65}},{"start":{"line":133,"column":68},"end":{"line":133,"column":70}}],"line":133},"39":{"loc":{"start":{"line":137,"column":22},"end":{"line":137,"column":43}},"type":"binary-expr","locations":[{"start":{"line":137,"column":22},"end":{"line":137,"column":37}},{"start":{"line":137,"column":41},"end":{"line":137,"column":43}}],"line":137},"40":{"loc":{"start":{"line":139,"column":4},"end":{"line":141,"column":5}},"type":"if","locations":[{"start":{"line":139,"column":4},"end":{"line":141,"column":5}},{"start":{"line":139,"column":4},"end":{"line":141,"column":5}}],"line":139},"41":{"loc":{"start":{"line":143,"column":4},"end":{"line":143,"column":47}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":143,"column":47}},{"start":{"line":143,"column":4},"end":{"line":143,"column":47}}],"line":143},"42":{"loc":{"start":{"line":155,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":155,"column":4},"end":{"line":158,"column":5}},{"start":{"line":155,"column":4},"end":{"line":158,"column":5}}],"line":155},"43":{"loc":{"start":{"line":155,"column":8},"end":{"line":155,"column":26}},"type":"binary-expr","locations":[{"start":{"line":155,"column":8},"end":{"line":155,"column":10}},{"start":{"line":155,"column":14},"end":{"line":155,"column":26}}],"line":155},"44":{"loc":{"start":{"line":164,"column":25},"end":{"line":164,"column":55}},"type":"binary-expr","locations":[{"start":{"line":164,"column":25},"end":{"line":164,"column":49}},{"start":{"line":164,"column":53},"end":{"line":164,"column":55}}],"line":164},"45":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":41}},{"start":{"line":170,"column":45},"end":{"line":170,"column":47}}],"line":170},"46":{"loc":{"start":{"line":184,"column":4},"end":{"line":188,"column":5}},"type":"if","locations":[{"start":{"line":184,"column":4},"end":{"line":188,"column":5}},{"start":{"line":184,"column":4},"end":{"line":188,"column":5}}],"line":184},"47":{"loc":{"start":{"line":186,"column":6},"end":{"line":187,"column":59}},"type":"if","locations":[{"start":{"line":186,"column":6},"end":{"line":187,"column":59}},{"start":{"line":186,"column":6},"end":{"line":187,"column":59}}],"line":186},"48":{"loc":{"start":{"line":187,"column":11},"end":{"line":187,"column":59}},"type":"if","locations":[{"start":{"line":187,"column":11},"end":{"line":187,"column":59}},{"start":{"line":187,"column":11},"end":{"line":187,"column":59}}],"line":187},"49":{"loc":{"start":{"line":206,"column":0},"end":{"line":206,"column":66}},"type":"if","locations":[{"start":{"line":206,"column":0},"end":{"line":206,"column":66}},{"start":{"line":206,"column":0},"end":{"line":206,"column":66}}],"line":206}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":61,"10":61,"11":61,"12":45,"13":16,"14":19,"15":19,"16":19,"17":19,"18":19,"19":19,"20":19,"21":19,"22":0,"23":0,"24":0,"25":19,"26":4,"27":15,"28":4,"29":19,"30":19,"31":19,"32":19,"33":19,"34":19,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":2,"50":2,"51":0,"52":2,"53":2,"54":2,"55":2,"56":2,"57":0,"58":2,"59":0,"60":2,"61":11,"62":33,"63":12,"64":0,"65":12,"66":1,"67":11,"68":0,"69":11,"70":11,"71":11,"72":11,"73":11,"74":11,"75":11,"76":0,"77":11,"78":11,"79":0,"80":0,"81":11,"82":11,"83":11,"84":11,"85":0,"86":11,"87":11,"88":11,"89":11,"90":11,"91":11,"92":11,"93":0,"94":11,"95":0,"96":11,"97":11,"98":11,"99":11,"100":14,"101":14,"102":1,"103":1,"104":13,"105":13,"106":13,"107":13,"108":13,"109":13,"110":13,"111":13,"112":17,"113":17,"114":17,"115":17,"116":15,"117":2,"118":2,"119":0,"120":13,"121":13,"122":416,"123":13,"124":5,"125":1,"126":0,"127":1},"f":{"0":61,"1":19,"2":0,"3":2,"4":11,"5":33,"6":12,"7":14,"8":17,"9":13,"10":5},"b":{"0":[1,0],"1":[1,1],"2":[48],"3":[45,16],"4":[32,13],"5":[8],"6":[19,11],"7":[0,19],"8":[0,0],"9":[4,15],"10":[4,11],"11":[19,0],"12":[19,17],"13":[0],"14":[0,0],"15":[0,0],"16":[0,0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[2],"21":[0,2],"22":[2,2],"23":[0,2],"24":[0,2],"25":[0,12],"26":[1,11],"27":[0,11],"28":[11,0],"29":[0,11],"30":[0,11],"31":[11,0],"32":[3,8],"33":[0,11],"34":[0,11],"35":[0,0],"36":[0,11],"37":[0,11],"38":[11,0],"39":[11,11],"40":[0,11],"41":[0,11],"42":[1,13],"43":[14,13],"44":[13,0],"45":[13,2],"46":[17,0],"47":[15,2],"48":[2,0],"49":[0,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"7b9a38215802b74022b9760cbe214e98f8032707"}}
{"/Users/stefanliu/git/digest-fetch/digest-fetch-src.js":{"path":"/Users/stefanliu/git/digest-fetch/digest-fetch-src.js","statementMap":{"0":{"start":{"line":7,"column":19},"end":{"line":7,"column":48}},"1":{"start":{"line":8,"column":0},"end":{"line":8,"column":81}},"2":{"start":{"line":8,"column":60},"end":{"line":8,"column":81}},"3":{"start":{"line":9,"column":12},"end":{"line":9,"column":26}},"4":{"start":{"line":10,"column":15},"end":{"line":10,"column":42}},"5":{"start":{"line":11,"column":18},"end":{"line":11,"column":49}},"6":{"start":{"line":12,"column":15},"end":{"line":12,"column":33}},"7":{"start":{"line":14,"column":29},"end":{"line":14,"column":110}},"8":{"start":{"line":16,"column":14},"end":{"line":22,"column":1}},"9":{"start":{"line":17,"column":16},"end":{"line":17,"column":59}},"10":{"start":{"line":18,"column":16},"end":{"line":18,"column":31}},"11":{"start":{"line":19,"column":2},"end":{"line":20,"column":59}},"12":{"start":{"line":20,"column":4},"end":{"line":20,"column":59}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":13}},"14":{"start":{"line":26,"column":4},"end":{"line":26,"column":20}},"15":{"start":{"line":27,"column":4},"end":{"line":27,"column":24}},"16":{"start":{"line":28,"column":4},"end":{"line":28,"column":28}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":38}},"18":{"start":{"line":30,"column":4},"end":{"line":30,"column":32}},"19":{"start":{"line":31,"column":4},"end":{"line":31,"column":50}},"20":{"start":{"line":33,"column":20},"end":{"line":33,"column":46}},"21":{"start":{"line":34,"column":4},"end":{"line":37,"column":5}},"22":{"start":{"line":35,"column":6},"end":{"line":35,"column":96}},"23":{"start":{"line":35,"column":23},"end":{"line":35,"column":96}},"24":{"start":{"line":36,"column":6},"end":{"line":36,"column":23}},"25":{"start":{"line":38,"column":4},"end":{"line":42,"column":5}},"26":{"start":{"line":39,"column":6},"end":{"line":39,"column":28}},"27":{"start":{"line":40,"column":11},"end":{"line":42,"column":5}},"28":{"start":{"line":41,"column":6},"end":{"line":41,"column":31}},"29":{"start":{"line":43,"column":4},"end":{"line":43,"column":49}},"30":{"start":{"line":44,"column":4},"end":{"line":44,"column":24}},"31":{"start":{"line":45,"column":24},"end":{"line":45,"column":52}},"32":{"start":{"line":46,"column":4},"end":{"line":46,"column":59}},"33":{"start":{"line":50,"column":4},"end":{"line":50,"column":40}},"34":{"start":{"line":51,"column":4},"end":{"line":51,"column":39}},"35":{"start":{"line":55,"column":4},"end":{"line":55,"column":65}},"36":{"start":{"line":55,"column":20},"end":{"line":55,"column":65}},"37":{"start":{"line":56,"column":17},"end":{"line":56,"column":61}},"38":{"start":{"line":57,"column":4},"end":{"line":69,"column":27}},"39":{"start":{"line":58,"column":6},"end":{"line":58,"column":26}},"40":{"start":{"line":59,"column":6},"end":{"line":59,"column":58}},"41":{"start":{"line":60,"column":6},"end":{"line":68,"column":7}},"42":{"start":{"line":61,"column":26},"end":{"line":61,"column":70}},"43":{"start":{"line":62,"column":8},"end":{"line":66,"column":9}},"44":{"start":{"line":63,"column":10},"end":{"line":63,"column":30}},"45":{"start":{"line":65,"column":10},"end":{"line":65,"column":26}},"46":{"start":{"line":67,"column":8},"end":{"line":67,"column":24}},"47":{"start":{"line":69,"column":11},"end":{"line":69,"column":27}},"48":{"start":{"line":70,"column":4},"end":{"line":70,"column":15}},"49":{"start":{"line":74,"column":19},"end":{"line":74,"column":21}},"50":{"start":{"line":75,"column":4},"end":{"line":79,"column":5}},"51":{"start":{"line":76,"column":6},"end":{"line":76,"column":34}},"52":{"start":{"line":78,"column":6},"end":{"line":78,"column":24}},"53":{"start":{"line":81,"column":17},"end":{"line":81,"column":74}},"54":{"start":{"line":82,"column":4},"end":{"line":82,"column":45}},"55":{"start":{"line":83,"column":4},"end":{"line":83,"column":42}},"56":{"start":{"line":84,"column":4},"end":{"line":86,"column":5}},"57":{"start":{"line":85,"column":6},"end":{"line":85,"column":49}},"58":{"start":{"line":88,"column":4},"end":{"line":88,"column":47}},"59":{"start":{"line":88,"column":21},"end":{"line":88,"column":47}},"60":{"start":{"line":89,"column":4},"end":{"line":89,"column":19}},"61":{"start":{"line":93,"column":4},"end":{"line":93,"column":66}},"62":{"start":{"line":97,"column":4},"end":{"line":97,"column":30}},"63":{"start":{"line":101,"column":4},"end":{"line":101,"column":74}},"64":{"start":{"line":101,"column":47},"end":{"line":101,"column":74}},"65":{"start":{"line":102,"column":4},"end":{"line":102,"column":37}},"66":{"start":{"line":102,"column":23},"end":{"line":102,"column":37}},"67":{"start":{"line":103,"column":4},"end":{"line":103,"column":69}},"68":{"start":{"line":103,"column":21},"end":{"line":103,"column":69}},"69":{"start":{"line":105,"column":22},"end":{"line":105,"column":78}},"70":{"start":{"line":106,"column":19},"end":{"line":106,"column":44}},"71":{"start":{"line":107,"column":17},"end":{"line":107,"column":41}},"72":{"start":{"line":108,"column":16},"end":{"line":108,"column":77}},"73":{"start":{"line":109,"column":19},"end":{"line":109,"column":72}},"74":{"start":{"line":111,"column":14},"end":{"line":111,"column":114}},"75":{"start":{"line":112,"column":4},"end":{"line":114,"column":5}},"76":{"start":{"line":113,"column":6},"end":{"line":113,"column":88}},"77":{"start":{"line":117,"column":15},"end":{"line":117,"column":17}},"78":{"start":{"line":118,"column":4},"end":{"line":123,"column":5}},"79":{"start":{"line":120,"column":6},"end":{"line":120,"column":92}},"80":{"start":{"line":120,"column":23},"end":{"line":120,"column":92}},"81":{"start":{"line":124,"column":16},"end":{"line":124,"column":65}},"82":{"start":{"line":126,"column":21},"end":{"line":126,"column":58}},"83":{"start":{"line":128,"column":20},"end":{"line":128,"column":109}},"84":{"start":{"line":129,"column":4},"end":{"line":129,"column":74}},"85":{"start":{"line":129,"column":26},"end":{"line":129,"column":74}},"86":{"start":{"line":130,"column":21},"end":{"line":130,"column":54}},"87":{"start":{"line":132,"column":25},"end":{"line":132,"column":93}},"88":{"start":{"line":133,"column":22},"end":{"line":133,"column":70}},"89":{"start":{"line":134,"column":19},"end":{"line":136,"column":104}},"90":{"start":{"line":137,"column":4},"end":{"line":137,"column":43}},"91":{"start":{"line":138,"column":4},"end":{"line":138,"column":42}},"92":{"start":{"line":139,"column":4},"end":{"line":141,"column":5}},"93":{"start":{"line":140,"column":6},"end":{"line":140,"column":50}},"94":{"start":{"line":143,"column":4},"end":{"line":143,"column":47}},"95":{"start":{"line":143,"column":21},"end":{"line":143,"column":47}},"96":{"start":{"line":146,"column":21},"end":{"line":146,"column":23}},"97":{"start":{"line":147,"column":4},"end":{"line":147,"column":36}},"98":{"start":{"line":148,"column":4},"end":{"line":148,"column":27}},"99":{"start":{"line":149,"column":4},"end":{"line":149,"column":20}},"100":{"start":{"line":153,"column":4},"end":{"line":153,"column":21}},"101":{"start":{"line":155,"column":4},"end":{"line":158,"column":5}},"102":{"start":{"line":156,"column":6},"end":{"line":156,"column":26}},"103":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"104":{"start":{"line":160,"column":4},"end":{"line":160,"column":23}},"105":{"start":{"line":162,"column":4},"end":{"line":162,"column":41}},"106":{"start":{"line":164,"column":4},"end":{"line":164,"column":76}},"107":{"start":{"line":166,"column":4},"end":{"line":166,"column":38}},"108":{"start":{"line":168,"column":4},"end":{"line":168,"column":43}},"109":{"start":{"line":170,"column":4},"end":{"line":170,"column":47}},"110":{"start":{"line":172,"column":4},"end":{"line":172,"column":41}},"111":{"start":{"line":173,"column":4},"end":{"line":173,"column":20}},"112":{"start":{"line":182,"column":17},"end":{"line":182,"column":38}},"113":{"start":{"line":184,"column":4},"end":{"line":188,"column":5}},"114":{"start":{"line":185,"column":19},"end":{"line":185,"column":34}},"115":{"start":{"line":186,"column":6},"end":{"line":187,"column":59}},"116":{"start":{"line":186,"column":33},"end":{"line":186,"column":46}},"117":{"start":{"line":187,"column":11},"end":{"line":187,"column":59}},"118":{"start":{"line":187,"column":42},"end":{"line":187,"column":59}},"119":{"start":{"line":190,"column":4},"end":{"line":190,"column":15}},"120":{"start":{"line":194,"column":14},"end":{"line":194,"column":16}},"121":{"start":{"line":195,"column":4},"end":{"line":197,"column":5}},"122":{"start":{"line":196,"column":6},"end":{"line":196,"column":77}},"123":{"start":{"line":198,"column":4},"end":{"line":198,"column":14}},"124":{"start":{"line":202,"column":4},"end":{"line":202,"column":25}},"125":{"start":{"line":206,"column":0},"end":{"line":206,"column":66}},"126":{"start":{"line":206,"column":33},"end":{"line":206,"column":66}},"127":{"start":{"line":207,"column":0},"end":{"line":207,"column":29}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":14},"end":{"line":16,"column":15}},"loc":{"start":{"line":16,"column":41},"end":{"line":22,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":25,"column":2},"end":{"line":25,"column":3}},"loc":{"start":{"line":25,"column":42},"end":{"line":52,"column":3}},"line":25},"2":{"name":"(anonymous_2)","decl":{"start":{"line":54,"column":2},"end":{"line":54,"column":3}},"loc":{"start":{"line":54,"column":32},"end":{"line":71,"column":3}},"line":54},"3":{"name":"(anonymous_3)","decl":{"start":{"line":73,"column":2},"end":{"line":73,"column":3}},"loc":{"start":{"line":73,"column":28},"end":{"line":90,"column":3}},"line":73},"4":{"name":"(anonymous_4)","decl":{"start":{"line":92,"column":2},"end":{"line":92,"column":3}},"loc":{"start":{"line":92,"column":37},"end":{"line":94,"column":3}},"line":92},"5":{"name":"(anonymous_5)","decl":{"start":{"line":96,"column":2},"end":{"line":96,"column":3}},"loc":{"start":{"line":96,"column":26},"end":{"line":98,"column":3}},"line":96},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":2},"end":{"line":100,"column":3}},"loc":{"start":{"line":100,"column":25},"end":{"line":150,"column":3}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":152,"column":2},"end":{"line":152,"column":3}},"loc":{"start":{"line":152,"column":16},"end":{"line":174,"column":3}},"line":152},"8":{"name":"(anonymous_8)","decl":{"start":{"line":176,"column":2},"end":{"line":176,"column":3}},"loc":{"start":{"line":176,"column":21},"end":{"line":191,"column":3}},"line":176},"9":{"name":"(anonymous_9)","decl":{"start":{"line":193,"column":2},"end":{"line":193,"column":3}},"loc":{"start":{"line":193,"column":15},"end":{"line":199,"column":3}},"line":193},"10":{"name":"(anonymous_10)","decl":{"start":{"line":201,"column":2},"end":{"line":201,"column":3}},"loc":{"start":{"line":201,"column":24},"end":{"line":203,"column":3}},"line":201}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":0},"end":{"line":8,"column":81}},"type":"if","locations":[{"start":{"line":8,"column":0},"end":{"line":8,"column":81}},{"start":{"line":8,"column":0},"end":{"line":8,"column":81}}],"line":8},"1":{"loc":{"start":{"line":8,"column":4},"end":{"line":8,"column":46}},"type":"binary-expr","locations":[{"start":{"line":8,"column":4},"end":{"line":8,"column":32}},{"start":{"line":8,"column":36},"end":{"line":8,"column":46}}],"line":8},"2":{"loc":{"start":{"line":16,"column":27},"end":{"line":16,"column":36}},"type":"default-arg","locations":[{"start":{"line":16,"column":32},"end":{"line":16,"column":36}}],"line":16},"3":{"loc":{"start":{"line":19,"column":2},"end":{"line":20,"column":59}},"type":"if","locations":[{"start":{"line":19,"column":2},"end":{"line":20,"column":59}},{"start":{"line":19,"column":2},"end":{"line":20,"column":59}}],"line":19},"4":{"loc":{"start":{"line":20,"column":11},"end":{"line":20,"column":59}},"type":"cond-expr","locations":[{"start":{"line":20,"column":18},"end":{"line":20,"column":48}},{"start":{"line":20,"column":51},"end":{"line":20,"column":59}}],"line":20},"5":{"loc":{"start":{"line":25,"column":30},"end":{"line":25,"column":40}},"type":"default-arg","locations":[{"start":{"line":25,"column":38},"end":{"line":25,"column":40}}],"line":25},"6":{"loc":{"start":{"line":33,"column":20},"end":{"line":33,"column":46}},"type":"binary-expr","locations":[{"start":{"line":33,"column":20},"end":{"line":33,"column":37}},{"start":{"line":33,"column":41},"end":{"line":33,"column":46}}],"line":33},"7":{"loc":{"start":{"line":34,"column":4},"end":{"line":37,"column":5}},"type":"if","locations":[{"start":{"line":34,"column":4},"end":{"line":37,"column":5}},{"start":{"line":34,"column":4},"end":{"line":37,"column":5}}],"line":34},"8":{"loc":{"start":{"line":35,"column":6},"end":{"line":35,"column":96}},"type":"if","locations":[{"start":{"line":35,"column":6},"end":{"line":35,"column":96}},{"start":{"line":35,"column":6},"end":{"line":35,"column":96}}],"line":35},"9":{"loc":{"start":{"line":38,"column":4},"end":{"line":42,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":42,"column":5}},{"start":{"line":38,"column":4},"end":{"line":42,"column":5}}],"line":38},"10":{"loc":{"start":{"line":40,"column":11},"end":{"line":42,"column":5}},"type":"if","locations":[{"start":{"line":40,"column":11},"end":{"line":42,"column":5}},{"start":{"line":40,"column":11},"end":{"line":42,"column":5}}],"line":40},"11":{"loc":{"start":{"line":46,"column":22},"end":{"line":46,"column":59}},"type":"cond-expr","locations":[{"start":{"line":46,"column":43},"end":{"line":46,"column":45}},{"start":{"line":46,"column":48},"end":{"line":46,"column":59}}],"line":46},"12":{"loc":{"start":{"line":51,"column":17},"end":{"line":51,"column":39}},"type":"binary-expr","locations":[{"start":{"line":51,"column":17},"end":{"line":51,"column":30}},{"start":{"line":51,"column":34},"end":{"line":51,"column":39}}],"line":51},"13":{"loc":{"start":{"line":54,"column":20},"end":{"line":54,"column":30}},"type":"default-arg","locations":[{"start":{"line":54,"column":28},"end":{"line":54,"column":30}}],"line":54},"14":{"loc":{"start":{"line":55,"column":4},"end":{"line":55,"column":65}},"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":55,"column":65}},{"start":{"line":55,"column":4},"end":{"line":55,"column":65}}],"line":55},"15":{"loc":{"start":{"line":57,"column":4},"end":{"line":69,"column":27}},"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":69,"column":27}},{"start":{"line":57,"column":4},"end":{"line":69,"column":27}}],"line":57},"16":{"loc":{"start":{"line":57,"column":8},"end":{"line":57,"column":81}},"type":"binary-expr","locations":[{"start":{"line":57,"column":8},"end":{"line":57,"column":26}},{"start":{"line":57,"column":31},"end":{"line":57,"column":61}},{"start":{"line":57,"column":65},"end":{"line":57,"column":80}}],"line":57},"17":{"loc":{"start":{"line":60,"column":6},"end":{"line":68,"column":7}},"type":"if","locations":[{"start":{"line":60,"column":6},"end":{"line":68,"column":7}},{"start":{"line":60,"column":6},"end":{"line":68,"column":7}}],"line":60},"18":{"loc":{"start":{"line":62,"column":8},"end":{"line":66,"column":9}},"type":"if","locations":[{"start":{"line":62,"column":8},"end":{"line":66,"column":9}},{"start":{"line":62,"column":8},"end":{"line":66,"column":9}}],"line":62},"19":{"loc":{"start":{"line":62,"column":12},"end":{"line":62,"column":74}},"type":"binary-expr","locations":[{"start":{"line":62,"column":12},"end":{"line":62,"column":35}},{"start":{"line":62,"column":39},"end":{"line":62,"column":74}}],"line":62},"20":{"loc":{"start":{"line":73,"column":16},"end":{"line":73,"column":26}},"type":"default-arg","locations":[{"start":{"line":73,"column":24},"end":{"line":73,"column":26}}],"line":73},"21":{"loc":{"start":{"line":75,"column":4},"end":{"line":79,"column":5}},"type":"if","locations":[{"start":{"line":75,"column":4},"end":{"line":79,"column":5}},{"start":{"line":75,"column":4},"end":{"line":79,"column":5}}],"line":75},"22":{"loc":{"start":{"line":82,"column":23},"end":{"line":82,"column":45}},"type":"binary-expr","locations":[{"start":{"line":82,"column":23},"end":{"line":82,"column":39}},{"start":{"line":82,"column":43},"end":{"line":82,"column":45}}],"line":82},"23":{"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},"24":{"loc":{"start":{"line":88,"column":4},"end":{"line":88,"column":47}},"type":"if","locations":[{"start":{"line":88,"column":4},"end":{"line":88,"column":47}},{"start":{"line":88,"column":4},"end":{"line":88,"column":47}}],"line":88},"25":{"loc":{"start":{"line":101,"column":4},"end":{"line":101,"column":74}},"type":"if","locations":[{"start":{"line":101,"column":4},"end":{"line":101,"column":74}},{"start":{"line":101,"column":4},"end":{"line":101,"column":74}}],"line":101},"26":{"loc":{"start":{"line":102,"column":4},"end":{"line":102,"column":37}},"type":"if","locations":[{"start":{"line":102,"column":4},"end":{"line":102,"column":37}},{"start":{"line":102,"column":4},"end":{"line":102,"column":37}}],"line":102},"27":{"loc":{"start":{"line":103,"column":4},"end":{"line":103,"column":69}},"type":"if","locations":[{"start":{"line":103,"column":4},"end":{"line":103,"column":69}},{"start":{"line":103,"column":4},"end":{"line":103,"column":69}}],"line":103},"28":{"loc":{"start":{"line":105,"column":22},"end":{"line":105,"column":78}},"type":"binary-expr","locations":[{"start":{"line":105,"column":22},"end":{"line":105,"column":46}},{"start":{"line":105,"column":50},"end":{"line":105,"column":78}}],"line":105},"29":{"loc":{"start":{"line":106,"column":19},"end":{"line":106,"column":44}},"type":"cond-expr","locations":[{"start":{"line":106,"column":31},"end":{"line":106,"column":38}},{"start":{"line":106,"column":41},"end":{"line":106,"column":44}}],"line":106},"30":{"loc":{"start":{"line":108,"column":16},"end":{"line":108,"column":77}},"type":"cond-expr","locations":[{"start":{"line":108,"column":42},"end":{"line":108,"column":45}},{"start":{"line":108,"column":48},"end":{"line":108,"column":77}}],"line":108},"31":{"loc":{"start":{"line":109,"column":19},"end":{"line":109,"column":72}},"type":"cond-expr","locations":[{"start":{"line":109,"column":36},"end":{"line":109,"column":64}},{"start":{"line":109,"column":67},"end":{"line":109,"column":72}}],"line":109},"32":{"loc":{"start":{"line":111,"column":14},"end":{"line":111,"column":114}},"type":"cond-expr","locations":[{"start":{"line":111,"column":37},"end":{"line":111,"column":50}},{"start":{"line":111,"column":53},"end":{"line":111,"column":114}}],"line":111},"33":{"loc":{"start":{"line":112,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":112,"column":4},"end":{"line":114,"column":5}},{"start":{"line":112,"column":4},"end":{"line":114,"column":5}}],"line":112},"34":{"loc":{"start":{"line":118,"column":4},"end":{"line":123,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":123,"column":5}},{"start":{"line":118,"column":4},"end":{"line":123,"column":5}}],"line":118},"35":{"loc":{"start":{"line":120,"column":6},"end":{"line":120,"column":92}},"type":"if","locations":[{"start":{"line":120,"column":6},"end":{"line":120,"column":92}},{"start":{"line":120,"column":6},"end":{"line":120,"column":92}}],"line":120},"36":{"loc":{"start":{"line":129,"column":4},"end":{"line":129,"column":74}},"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":129,"column":74}},{"start":{"line":129,"column":4},"end":{"line":129,"column":74}}],"line":129},"37":{"loc":{"start":{"line":132,"column":25},"end":{"line":132,"column":93}},"type":"cond-expr","locations":[{"start":{"line":132,"column":55},"end":{"line":132,"column":88}},{"start":{"line":132,"column":91},"end":{"line":132,"column":93}}],"line":132},"38":{"loc":{"start":{"line":133,"column":22},"end":{"line":133,"column":70}},"type":"cond-expr","locations":[{"start":{"line":133,"column":40},"end":{"line":133,"column":65}},{"start":{"line":133,"column":68},"end":{"line":133,"column":70}}],"line":133},"39":{"loc":{"start":{"line":137,"column":22},"end":{"line":137,"column":43}},"type":"binary-expr","locations":[{"start":{"line":137,"column":22},"end":{"line":137,"column":37}},{"start":{"line":137,"column":41},"end":{"line":137,"column":43}}],"line":137},"40":{"loc":{"start":{"line":139,"column":4},"end":{"line":141,"column":5}},"type":"if","locations":[{"start":{"line":139,"column":4},"end":{"line":141,"column":5}},{"start":{"line":139,"column":4},"end":{"line":141,"column":5}}],"line":139},"41":{"loc":{"start":{"line":143,"column":4},"end":{"line":143,"column":47}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":143,"column":47}},{"start":{"line":143,"column":4},"end":{"line":143,"column":47}}],"line":143},"42":{"loc":{"start":{"line":155,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":155,"column":4},"end":{"line":158,"column":5}},{"start":{"line":155,"column":4},"end":{"line":158,"column":5}}],"line":155},"43":{"loc":{"start":{"line":155,"column":8},"end":{"line":155,"column":26}},"type":"binary-expr","locations":[{"start":{"line":155,"column":8},"end":{"line":155,"column":10}},{"start":{"line":155,"column":14},"end":{"line":155,"column":26}}],"line":155},"44":{"loc":{"start":{"line":164,"column":25},"end":{"line":164,"column":55}},"type":"binary-expr","locations":[{"start":{"line":164,"column":25},"end":{"line":164,"column":49}},{"start":{"line":164,"column":53},"end":{"line":164,"column":55}}],"line":164},"45":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":41}},{"start":{"line":170,"column":45},"end":{"line":170,"column":47}}],"line":170},"46":{"loc":{"start":{"line":184,"column":4},"end":{"line":188,"column":5}},"type":"if","locations":[{"start":{"line":184,"column":4},"end":{"line":188,"column":5}},{"start":{"line":184,"column":4},"end":{"line":188,"column":5}}],"line":184},"47":{"loc":{"start":{"line":186,"column":6},"end":{"line":187,"column":59}},"type":"if","locations":[{"start":{"line":186,"column":6},"end":{"line":187,"column":59}},{"start":{"line":186,"column":6},"end":{"line":187,"column":59}}],"line":186},"48":{"loc":{"start":{"line":187,"column":11},"end":{"line":187,"column":59}},"type":"if","locations":[{"start":{"line":187,"column":11},"end":{"line":187,"column":59}},{"start":{"line":187,"column":11},"end":{"line":187,"column":59}}],"line":187},"49":{"loc":{"start":{"line":206,"column":0},"end":{"line":206,"column":66}},"type":"if","locations":[{"start":{"line":206,"column":0},"end":{"line":206,"column":66}},{"start":{"line":206,"column":0},"end":{"line":206,"column":66}}],"line":206}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":61,"10":61,"11":61,"12":45,"13":16,"14":19,"15":19,"16":19,"17":19,"18":19,"19":19,"20":19,"21":19,"22":0,"23":0,"24":0,"25":19,"26":4,"27":15,"28":4,"29":19,"30":19,"31":19,"32":19,"33":19,"34":19,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":2,"50":2,"51":0,"52":2,"53":2,"54":2,"55":2,"56":2,"57":0,"58":2,"59":0,"60":2,"61":11,"62":33,"63":12,"64":0,"65":12,"66":1,"67":11,"68":0,"69":11,"70":11,"71":11,"72":11,"73":11,"74":11,"75":11,"76":0,"77":11,"78":11,"79":0,"80":0,"81":11,"82":11,"83":11,"84":11,"85":0,"86":11,"87":11,"88":11,"89":11,"90":11,"91":11,"92":11,"93":0,"94":11,"95":0,"96":11,"97":11,"98":11,"99":11,"100":14,"101":14,"102":1,"103":1,"104":13,"105":13,"106":13,"107":13,"108":13,"109":13,"110":13,"111":13,"112":17,"113":17,"114":17,"115":17,"116":15,"117":2,"118":2,"119":0,"120":13,"121":13,"122":416,"123":13,"124":5,"125":1,"126":0,"127":1},"f":{"0":61,"1":19,"2":0,"3":2,"4":11,"5":33,"6":12,"7":14,"8":17,"9":13,"10":5},"b":{"0":[1,0],"1":[1,1],"2":[48],"3":[45,16],"4":[32,13],"5":[8],"6":[19,11],"7":[0,19],"8":[0,0],"9":[4,15],"10":[4,11],"11":[19,0],"12":[19,17],"13":[0],"14":[0,0],"15":[0,0],"16":[0,0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[2],"21":[0,2],"22":[2,2],"23":[0,2],"24":[0,2],"25":[0,12],"26":[1,11],"27":[0,11],"28":[11,0],"29":[0,11],"30":[0,11],"31":[11,0],"32":[3,8],"33":[0,11],"34":[0,11],"35":[0,0],"36":[0,11],"37":[0,11],"38":[11,0],"39":[11,11],"40":[0,11],"41":[0,11],"42":[1,13],"43":[14,13],"44":[13,0],"45":[13,2],"46":[17,0],"47":[15,2],"48":[2,0],"49":[0,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"2558021ea697ffe8f2b27e281726db4d16c7f37a"}}

@@ -59,3 +59,3 @@ /// !-----------------------------------------------------------------------------------------------------------

this.hasAuth = false
await this.parseAuth(resp.headers.get('www-authenticate'))
this.parseAuth(resp.headers.get('www-authenticate'))
if (this.hasAuth) {

@@ -153,3 +153,3 @@ const respFinal = await fetch(url, this.addAuth(url, options))

async parseAuth (h) {
parseAuth (h) {
this.lastAuth = h

@@ -156,0 +156,0 @@

{
"name": "digest-fetch",
"version": "2.0.0",
"version": "2.0.1",
"description": "digest auth request plugin for fetch/node-fetch also support http basic auth authentication",

@@ -42,3 +42,3 @@ "main": "digest-fetch-src.js",

"passport": "^0.6.0",
"passport-http": "^0.3.0",
"passport-digest": "^0.1.0",
"serialize-javascript": "^3.1.0",

@@ -45,0 +45,0 @@ "webpack": "^5.67.0",

@@ -19,3 +19,3 @@ process.env.NO_DEPRECATION = 'digest-fetch';

const auth = client.addBasicAuth().headers.Authorization
chai.request(app).get('/basic').set('Authorization', auth).then(res => {
return chai.request(app).get('/basic').set('Authorization', auth).then(res => {
expect(res).to.have.status(200)

@@ -27,3 +27,3 @@ })

const auth = client.addBasicAuth().headers.Authorization
chai.request(app).get('/basic').set('Authorization', auth).then(res => {
return chai.request(app).get('/basic').set('Authorization', auth).then(res => {
expect(res).to.have.status(401)

@@ -30,0 +30,0 @@ })

@@ -18,3 +18,3 @@ process.env.NO_DEPRECATION = 'digest-fetch';

var client = new DigestFetch('test', 'test')
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -26,3 +26,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(200)

@@ -35,3 +35,3 @@ })

var client = new DigestFetch('test', 'test-null')
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
res.should.have.status(401)

@@ -43,3 +43,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(401)

@@ -46,0 +46,0 @@ })

@@ -18,3 +18,3 @@ process.env.NO_DEPRECATION = 'digest-fetch';

var client = new DigestFetch('test', 'test')
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -26,3 +26,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(200)

@@ -36,3 +36,3 @@ })

var client = new DigestFetch('test', precomputedHash, { precomputedHash: true })
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -44,3 +44,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(200)

@@ -53,3 +53,3 @@ })

var client = new DigestFetch('test', 'test-null')
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -61,3 +61,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(401)

@@ -64,0 +64,0 @@ })

@@ -18,3 +18,3 @@ process.env.NO_DEPRECATION = 'digest-fetch';

var client = new DigestFetch('test', 'test', {algorithm: 'SHA-512-256'})
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -26,3 +26,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(200)

@@ -36,3 +36,3 @@ })

var client = new DigestFetch('test', precomputedHash, { precomputedHash: true, algorithm: 'SHA-512-256'})
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -44,3 +44,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(200)

@@ -53,3 +53,3 @@ })

var client = new DigestFetch('test', 'test-null', {algorithm: 'SHA-512-256'})
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -61,3 +61,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(401)

@@ -64,0 +64,0 @@ })

@@ -18,3 +18,3 @@ process.env.NO_DEPRECATION = 'digest-fetch';

var client = new DigestFetch('test', 'test', {algorithm: 'SHA-256'})
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -26,3 +26,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(200)

@@ -36,3 +36,3 @@ })

var client = new DigestFetch('test', precomputedHash, { precomputedHash: true, algorithm: 'SHA-256'})
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -44,3 +44,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(200)

@@ -53,3 +53,3 @@ })

var client = new DigestFetch('test', 'test-null', {algorithm: 'SHA-256'})
chai.request(app).get('/auth').then(res => {
return chai.request(app).get('/auth').then(res => {
expect(res).to.have.status(401)

@@ -61,3 +61,3 @@ client.lastAuth = res.res.headers['www-authenticate']

const auth = client.addAuth('/auth', { method: 'GET' }).headers.Authorization
chai.request(app).get('/auth').set('Authorization', auth).then(res => {
return chai.request(app).get('/auth').set('Authorization', auth).then(res => {
expect(res).to.have.status(401)

@@ -64,0 +64,0 @@ })

const path = require("path");
const express = require("express");
const passport = require('passport');
const Strategies = require("passport-http");
const Strategies = require("passport-digest");
const DigestStrategy = Strategies.DigestStrategy;

@@ -28,3 +28,3 @@ const BasicStrategy = Strategies.BasicStrategy;

const options = {}
const options = {algorithm: "MD5,SHA-256,SHA-512-256"}
if (method) options.qop = method

@@ -31,0 +31,0 @@ passport.use(new DigestStrategy(options,

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 too big to display

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