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

crosswalk

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crosswalk - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0-beta

9

coverage/coverage-final.json

@@ -1,6 +0,5 @@

{"/Users/danvk/github/crosswalk/src/index.ts": {"path":"/Users/danvk/github/crosswalk/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}},"1":{"start":{"line":1,"column":8},"end":{"line":1,"column":43}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":32}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}}},"fnMap":{"0":{"name":"(anonymous_4)","decl":{"start":{"line":1,"column":8},"end":{"line":1,"column":24}},"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":43}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1},"f":{"0":0},"b":{}}
,"/Users/danvk/github/crosswalk/src/openapi.ts": {"path":"/Users/danvk/github/crosswalk/src/openapi.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},"1":{"start":{"line":50,"column":17},"end":{"line":50,"column":48}},"2":{"start":{"line":50,"column":47},"end":{"line":50,"column":76}},"3":{"start":{"line":53,"column":17},"end":{"line":53,"column":41}},"4":{"start":{"line":54,"column":2},"end":{"line":58,"column":6}},"5":{"start":{"line":54,"column":44},"end":{"line":58,"column":5}},"6":{"start":{"line":63,"column":2},"end":{"line":63,"column":43}},"7":{"start":{"line":66,"column":19},"end":{"line":66,"column":35}},"8":{"start":{"line":68,"column":14},"end":{"line":68,"column":25}},"9":{"start":{"line":69,"column":2},"end":{"line":71,"column":null}},"10":{"start":{"line":70,"column":4},"end":{"line":70,"column":54}},"11":{"start":{"line":73,"column":15},"end":{"line":73,"column":43}},"12":{"start":{"line":74,"column":14},"end":{"line":74,"column":36}},"13":{"start":{"line":75,"column":2},"end":{"line":77,"column":null}},"14":{"start":{"line":76,"column":4},"end":{"line":76,"column":61}},"15":{"start":{"line":78,"column":2},"end":{"line":78,"column":21}},"16":{"start":{"line":67,"column":0},"end":{"line":67,"column":16}},"17":{"start":{"line":83,"column":2},"end":{"line":83,"column":48}},"18":{"start":{"line":84,"column":72},"end":{"line":84,"column":80}},"19":{"start":{"line":87,"column":37},"end":{"line":87,"column":39}},"20":{"start":{"line":89,"column":19},"end":{"line":89,"column":36}},"21":{"start":{"line":91,"column":2},"end":{"line":131,"column":null}},"22":{"start":{"line":91,"column":25},"end":{"line":91,"column":34}},"23":{"start":{"line":91,"column":21},"end":{"line":91,"column":25}},"24":{"start":{"line":92,"column":24},"end":{"line":92,"column":58}},"25":{"start":{"line":93,"column":4},"end":{"line":93,"column":28}},"26":{"start":{"line":94,"column":19},"end":{"line":94,"column":53}},"27":{"start":{"line":95,"column":4},"end":{"line":130,"column":null}},"28":{"start":{"line":95,"column":30},"end":{"line":95,"column":36}},"29":{"start":{"line":95,"column":30},"end":{"line":95,"column":52}},"30":{"start":{"line":95,"column":15},"end":{"line":95,"column":16}},"31":{"start":{"line":95,"column":20},"end":{"line":95,"column":22}},"32":{"start":{"line":95,"column":25},"end":{"line":95,"column":26}},"33":{"start":{"line":96,"column":29},"end":{"line":96,"column":65}},"34":{"start":{"line":96,"column":17},"end":{"line":96,"column":19}},"35":{"start":{"line":96,"column":25},"end":{"line":96,"column":29}},"36":{"start":{"line":97,"column":42},"end":{"line":97,"column":67}},"37":{"start":{"line":97,"column":20},"end":{"line":97,"column":22}},"38":{"start":{"line":97,"column":30},"end":{"line":97,"column":32}},"39":{"start":{"line":97,"column":37},"end":{"line":97,"column":42}},"40":{"start":{"line":99,"column":34},"end":{"line":99,"column":61}},"41":{"start":{"line":100,"column":6},"end":{"line":106,"column":null}},"42":{"start":{"line":101,"column":8},"end":{"line":105,"column":11}},"43":{"start":{"line":108,"column":6},"end":{"line":116,"column":null}},"44":{"start":{"line":109,"column":8},"end":{"line":115,"column":null}},"45":{"start":{"line":109,"column":35},"end":{"line":109,"column":41}},"46":{"start":{"line":109,"column":35},"end":{"line":109,"column":75}},"47":{"start":{"line":109,"column":19},"end":{"line":109,"column":20}},"48":{"start":{"line":109,"column":23},"end":{"line":109,"column":25}},"49":{"start":{"line":109,"column":30},"end":{"line":109,"column":31}},"50":{"start":{"line":110,"column":10},"end":{"line":114,"column":13}},"51":{"start":{"line":118,"column":19},"end":{"line":126,"column":null}},"52":{"start":{"line":128,"column":6},"end":{"line":128,"column":41}},"53":{"start":{"line":129,"column":6},"end":{"line":129,"column":25}},"54":{"start":{"line":133,"column":2},"end":{"line":135,"column":5}},"55":{"start":{"line":134,"column":4},"end":{"line":134,"column":29}},"56":{"start":{"line":137,"column":2},"end":{"line":146,"column":null}},"57":{"start":{"line":82,"column":0},"end":{"line":82,"column":16}}},"fnMap":{"0":{"name":"(anonymous_8)","decl":{"start":{"line":50,"column":17},"end":{"line":50,"column":21}},"loc":{"start":{"line":50,"column":25},"end":{"line":50,"column":48}}},"1":{"name":"extractPathParams","decl":{"start":{"line":52,"column":9},"end":{"line":52,"column":26}},"loc":{"start":{"line":52,"column":39},"end":{"line":59,"column":1}}},"2":{"name":"(anonymous_10)","decl":{"start":{"line":54,"column":37},"end":{"line":54,"column":40}},"loc":{"start":{"line":54,"column":40},"end":{"line":54,"column":45}}},"3":{"name":"expressPathToOpenApiPath","decl":{"start":{"line":62,"column":9},"end":{"line":62,"column":33}},"loc":{"start":{"line":62,"column":46},"end":{"line":64,"column":1}}},"4":{"name":"followApiRef","decl":{"start":{"line":67,"column":16},"end":{"line":67,"column":28}},"loc":{"start":{"line":67,"column":54},"end":{"line":79,"column":1}}},"5":{"name":"apiSpecToOpenApi","decl":{"start":{"line":82,"column":16},"end":{"line":82,"column":32}},"loc":{"start":{"line":82,"column":64},"end":{"line":148,"column":1}}},"6":{"name":"(anonymous_14)","decl":{"start":{"line":133,"column":19},"end":{"line":133,"column":23}},"loc":{"start":{"line":133,"column":23},"end":{"line":135,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":50,"column":47},"end":{"line":50,"column":50}},"type":"binary-expr","locations":[{"start":{"line":50,"column":47},"end":{"line":50,"column":50}},{"start":{"line":50,"column":54},"end":{"line":50,"column":75}}]},"1":{"loc":{"start":{"line":69,"column":2},"end":{"line":71,"column":null}},"type":"if","locations":[{"start":{"line":69,"column":2},"end":{"line":71,"column":null}},{"start":{"line":69,"column":2},"end":{"line":71,"column":null}}]},"2":{"loc":{"start":{"line":75,"column":2},"end":{"line":77,"column":null}},"type":"if","locations":[{"start":{"line":75,"column":2},"end":{"line":77,"column":null}},{"start":{"line":75,"column":2},"end":{"line":77,"column":null}}]},"3":{"loc":{"start":{"line":100,"column":6},"end":{"line":106,"column":null}},"type":"if","locations":[{"start":{"line":100,"column":6},"end":{"line":106,"column":null}},{"start":{"line":100,"column":6},"end":{"line":106,"column":null}}]},"4":{"loc":{"start":{"line":100,"column":17},"end":{"line":100,"column":19}},"type":"cond-expr","locations":[{"start":{"line":100,"column":17},"end":{"line":100,"column":19}},{"start":{"line":100,"column":10},"end":{"line":100,"column":23}}]},"5":{"loc":{"start":{"line":100,"column":10},"end":{"line":100,"column":19}},"type":"binary-expr","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":19}},{"start":{"line":100,"column":10},"end":{"line":100,"column":19}}]},"6":{"loc":{"start":{"line":108,"column":6},"end":{"line":116,"column":null}},"type":"if","locations":[{"start":{"line":108,"column":6},"end":{"line":116,"column":null}},{"start":{"line":108,"column":6},"end":{"line":116,"column":null}}]},"7":{"loc":{"start":{"line":120,"column":12},"end":{"line":120,"column":29}},"type":"binary-expr","locations":[{"start":{"line":120,"column":12},"end":{"line":120,"column":29}},{"start":{"line":120,"column":33},"end":{"line":120,"column":45}}]}},"s":{"0":2,"1":2,"2":13,"3":9,"4":9,"5":4,"6":4,"7":2,"8":9,"9":9,"10":0,"11":9,"12":9,"13":9,"14":0,"15":9,"16":2,"17":1,"18":3,"19":1,"20":1,"21":1,"22":2,"23":4,"24":4,"25":4,"26":4,"27":4,"28":4,"29":4,"30":9,"31":9,"32":9,"33":9,"34":9,"35":9,"36":9,"37":9,"38":9,"39":9,"40":9,"41":9,"42":6,"43":9,"44":3,"45":3,"46":3,"47":5,"48":5,"49":5,"50":5,"51":9,"52":9,"53":9,"54":1,"55":9,"56":1,"57":2},"f":{"0":13,"1":9,"2":4,"3":4,"4":9,"5":1,"6":9},"b":{"0":[13,13],"1":[0,9],"2":[0,9],"3":[6,3],"4":[0,9],"5":[9,9],"6":[3,6],"7":[9,8]}}
,"/Users/danvk/github/crosswalk/src/status-codes.ts": {"path":"/Users/danvk/github/crosswalk/src/status-codes.ts","statementMap":{"0":{"start":{"line":2,"column":13},"end":{"line":66,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{}}
,"/Users/danvk/github/crosswalk/src/typed-request.ts": {"path":"/Users/danvk/github/crosswalk/src/typed-request.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":39}},"1":{"start":{"line":38,"column":33},"end":{"line":38,"column":null}},"2":{"start":{"line":40,"column":2},"end":{"line":57,"column":4}},"3":{"start":{"line":46,"column":4},"end":{"line":46,"column":8}},"4":{"start":{"line":46,"column":16},"end":{"line":46,"column":18}},"5":{"start":{"line":46,"column":25},"end":{"line":46,"column":32}},"6":{"start":{"line":48,"column":19},"end":{"line":48,"column":46}},"7":{"start":{"line":52,"column":4},"end":{"line":56,"column":6}},"8":{"start":{"line":52,"column":12},"end":{"line":52,"column":54}},"9":{"start":{"line":53,"column":21},"end":{"line":53,"column":38}},"10":{"start":{"line":54,"column":26},"end":{"line":54,"column":78}},"11":{"start":{"line":55,"column":6},"end":{"line":55,"column":81}},"12":{"start":{"line":38,"column":0},"end":{"line":38,"column":16}},"13":{"start":{"line":68,"column":19},"end":{"line":75,"column":null}},"14":{"start":{"line":68,"column":8},"end":{"line":75,"column":null}},"15":{"start":{"line":76,"column":2},"end":{"line":76,"column":25}},"16":{"start":{"line":67,"column":0},"end":{"line":67,"column":22}},"17":{"start":{"line":80,"column":24},"end":{"line":80,"column":38}},"18":{"start":{"line":80,"column":15},"end":{"line":80,"column":24}},"19":{"start":{"line":81,"column":18},"end":{"line":81,"column":45}},"20":{"start":{"line":83,"column":19},"end":{"line":83,"column":43}},"21":{"start":{"line":85,"column":26},"end":{"line":85,"column":null}},"22":{"start":{"line":85,"column":71},"end":{"line":110,"column":4}},"23":{"start":{"line":107,"column":20},"end":{"line":107,"column":53}},"24":{"start":{"line":108,"column":4},"end":{"line":109,"column":82}},"25":{"start":{"line":108,"column":12},"end":{"line":108,"column":16}},"26":{"start":{"line":108,"column":22},"end":{"line":108,"column":24}},"27":{"start":{"line":108,"column":28},"end":{"line":108,"column":30}},"28":{"start":{"line":108,"column":35},"end":{"line":108,"column":42}},"29":{"start":{"line":109,"column":6},"end":{"line":109,"column":82}},"30":{"start":{"line":112,"column":29},"end":{"line":112,"column":null}},"31":{"start":{"line":112,"column":74},"end":{"line":124,"column":4}},"32":{"start":{"line":122,"column":4},"end":{"line":123,"column":88}},"33":{"start":{"line":122,"column":12},"end":{"line":122,"column":50}},"34":{"start":{"line":123,"column":6},"end":{"line":123,"column":88}},"35":{"start":{"line":126,"column":2},"end":{"line":136,"column":4}},"36":{"start":{"line":135,"column":6},"end":{"line":135,"column":null}},"37":{"start":{"line":79,"column":0},"end":{"line":79,"column":16}}},"fnMap":{"0":{"name":"apiUrlMaker","decl":{"start":{"line":38,"column":16},"end":{"line":38,"column":27}},"loc":{"start":{"line":38,"column":44},"end":{"line":58,"column":1}}},"1":{"name":"(anonymous_14)","decl":{"start":{"line":40,"column":9},"end":{"line":40,"column":null}},"loc":{"start":{"line":40,"column":9},"end":{"line":57,"column":3}}},"2":{"name":"(anonymous_15)","decl":{"start":{"line":52,"column":11},"end":{"line":52,"column":12}},"loc":{"start":{"line":52,"column":11},"end":{"line":56,"column":5}}},"3":{"name":"fetchJson","decl":{"start":{"line":67,"column":22},"end":{"line":67,"column":31}},"loc":{"start":{"line":67,"column":79},"end":{"line":77,"column":null}}},"4":{"name":"typedApi","decl":{"start":{"line":79,"column":16},"end":{"line":79,"column":24}},"loc":{"start":{"line":79,"column":47},"end":{"line":137,"column":1}}},"5":{"name":"(anonymous_20)","decl":{"start":{"line":85,"column":26},"end":{"line":85,"column":52}},"loc":{"start":{"line":85,"column":66},"end":{"line":85,"column":null}}},"6":{"name":"(anonymous_21)","decl":{"start":{"line":85,"column":71},"end":{"line":85,"column":null}},"loc":{"start":{"line":88,"column":18},"end":{"line":110,"column":3}}},"7":{"name":"(anonymous_22)","decl":{"start":{"line":108,"column":11},"end":{"line":108,"column":12}},"loc":{"start":{"line":108,"column":11},"end":{"line":109,"column":13}}},"8":{"name":"(anonymous_23)","decl":{"start":{"line":112,"column":29},"end":{"line":112,"column":55}},"loc":{"start":{"line":112,"column":69},"end":{"line":112,"column":null}}},"9":{"name":"(anonymous_24)","decl":{"start":{"line":112,"column":74},"end":{"line":112,"column":null}},"loc":{"start":{"line":115,"column":18},"end":{"line":124,"column":3}}},"10":{"name":"(anonymous_25)","decl":{"start":{"line":122,"column":11},"end":{"line":122,"column":12}},"loc":{"start":{"line":122,"column":11},"end":{"line":123,"column":7}}},"11":{"name":"(anonymous_26)","decl":{"start":{"line":134,"column":13},"end":{"line":134,"column":39}},"loc":{"start":{"line":134,"column":88},"end":{"line":135,"column":21}}}},"branchMap":{"0":{"loc":{"start":{"line":38,"column":33},"end":{"line":38,"column":null}},"type":"if","locations":[{"start":{"line":38,"column":33},"end":{"line":38,"column":null}},{"start":{"line":38,"column":33},"end":{"line":38,"column":null}}]},"1":{"loc":{"start":{"line":54,"column":38},"end":{"line":54,"column":73}},"type":"cond-expr","locations":[{"start":{"line":54,"column":38},"end":{"line":54,"column":73}},{"start":{"line":54,"column":76},"end":{"line":54,"column":78}}]},"2":{"loc":{"start":{"line":55,"column":57},"end":{"line":55,"column":74}},"type":"cond-expr","locations":[{"start":{"line":55,"column":57},"end":{"line":55,"column":74}},{"start":{"line":55,"column":77},"end":{"line":55,"column":79}}]},"3":{"loc":{"start":{"line":68,"column":19},"end":{"line":75,"column":null}},"type":"switch","locations":[{"start":{"line":68,"column":19},"end":{"line":75,"column":null}}]},"4":{"loc":{"start":{"line":80,"column":24},"end":{"line":80,"column":31}},"type":"binary-expr","locations":[{"start":{"line":80,"column":24},"end":{"line":80,"column":31}},{"start":{"line":80,"column":35},"end":{"line":80,"column":37}}]},"5":{"loc":{"start":{"line":80,"column":18},"end":{"line":80,"column":20}},"type":"cond-expr","locations":[{"start":{"line":80,"column":18},"end":{"line":80,"column":20}},{"start":{"line":80,"column":20},"end":{"line":80,"column":24}}]},"6":{"loc":{"start":{"line":81,"column":32},"end":{"line":81,"column":36}},"type":"cond-expr","locations":[{"start":{"line":81,"column":32},"end":{"line":81,"column":36}},{"start":{"line":81,"column":36},"end":{"line":81,"column":45}}]},"7":{"loc":{"start":{"line":81,"column":18},"end":{"line":81,"column":36}},"type":"binary-expr","locations":[{"start":{"line":81,"column":18},"end":{"line":81,"column":36}},{"start":{"line":81,"column":32},"end":{"line":81,"column":36}}]},"8":{"loc":{"start":{"line":81,"column":25},"end":{"line":81,"column":27}},"type":"cond-expr","locations":[{"start":{"line":81,"column":25},"end":{"line":81,"column":27}},{"start":{"line":81,"column":18},"end":{"line":81,"column":32}}]},"9":{"loc":{"start":{"line":81,"column":18},"end":{"line":81,"column":27}},"type":"binary-expr","locations":[{"start":{"line":81,"column":18},"end":{"line":81,"column":27}},{"start":{"line":81,"column":18},"end":{"line":81,"column":27}}]},"10":{"loc":{"start":{"line":123,"column":55},"end":{"line":123,"column":58}},"type":"cond-expr","locations":[{"start":{"line":123,"column":55},"end":{"line":123,"column":58}},{"start":{"line":123,"column":49},"end":{"line":123,"column":60}}]},"11":{"loc":{"start":{"line":123,"column":49},"end":{"line":123,"column":58}},"type":"binary-expr","locations":[{"start":{"line":123,"column":49},"end":{"line":123,"column":58}},{"start":{"line":123,"column":49},"end":{"line":123,"column":58}}]},"12":{"loc":{"start":{"line":123,"column":81},"end":{"line":123,"column":84}},"type":"cond-expr","locations":[{"start":{"line":123,"column":81},"end":{"line":123,"column":84}},{"start":{"line":123,"column":75},"end":{"line":123,"column":86}}]},"13":{"loc":{"start":{"line":123,"column":75},"end":{"line":123,"column":84}},"type":"binary-expr","locations":[{"start":{"line":123,"column":75},"end":{"line":123,"column":84}},{"start":{"line":123,"column":75},"end":{"line":123,"column":84}}]}},"s":{"0":1,"1":35,"2":23,"3":128,"4":36,"5":36,"6":36,"7":36,"8":169,"9":48,"10":48,"11":48,"12":1,"13":2,"14":2,"15":2,"16":1,"17":7,"18":7,"19":7,"20":7,"21":7,"22":30,"23":12,"24":12,"25":57,"26":12,"27":12,"28":12,"29":12,"30":7,"31":14,"32":5,"33":24,"34":8,"35":7,"36":1,"37":1},"f":{"0":23,"1":36,"2":48,"3":2,"4":7,"5":30,"6":12,"7":12,"8":14,"9":5,"10":8,"11":1},"b":{"0":[12,11],"1":[24,24],"2":[22,25],"3":[2],"4":[7,1],"5":[7,0],"6":[6,1],"7":[7,7],"8":[1,6],"9":[7,7],"10":[0,8],"11":[8,8],"12":[0,8],"13":[8,8]}}
,"/Users/danvk/github/crosswalk/src/typed-router.ts": {"path":"/Users/danvk/github/crosswalk/src/typed-router.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":22}},"1":{"start":{"line":7,"column":0},"end":{"line":7,"column":44}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":null}},"3":{"start":{"line":11,"column":31},"end":{"line":11,"column":36}},"4":{"start":{"line":15,"column":28},"end":{"line":15,"column":null}},"5":{"start":{"line":16,"column":4},"end":{"line":16,"column":null}},"6":{"start":{"line":17,"column":4},"end":{"line":17,"column":21}},"7":{"start":{"line":18,"column":4},"end":{"line":18,"column":27}},"8":{"start":{"line":20,"column":0},"end":{"line":20,"column":null}},"9":{"start":{"line":11,"column":13},"end":{"line":11,"column":22}},"10":{"start":{"line":36,"column":25},"end":{"line":39,"column":null}},"11":{"start":{"line":39,"column":5},"end":{"line":52,"column":2}},"12":{"start":{"line":51,"column":2},"end":{"line":51,"column":64}},"13":{"start":{"line":54,"column":28},"end":{"line":57,"column":null}},"14":{"start":{"line":57,"column":5},"end":{"line":71,"column":2}},"15":{"start":{"line":68,"column":2},"end":{"line":70,"column":4}},"16":{"start":{"line":69,"column":4},"end":{"line":69,"column":null}},"17":{"start":{"line":87,"column":10},"end":{"line":87,"column":null}},"18":{"start":{"line":88,"column":9},"end":{"line":88,"column":null}},"19":{"start":{"line":89,"column":5},"end":{"line":89,"column":null}},"20":{"start":{"line":90,"column":8},"end":{"line":90,"column":null}},"21":{"start":{"line":92,"column":2},"end":{"line":96,"column":5}},"22":{"start":{"line":86,"column":0},"end":{"line":86,"column":16}},"23":{"start":{"line":103,"column":0},"end":{"line":103,"column":13}},"24":{"start":{"line":122,"column":2},"end":{"line":122,"column":53}},"25":{"start":{"line":123,"column":2},"end":{"line":123,"column":62}},"26":{"start":{"line":125,"column":2},"end":{"line":125,"column":53}},"27":{"start":{"line":126,"column":2},"end":{"line":126,"column":56}},"28":{"start":{"line":127,"column":2},"end":{"line":127,"column":50}},"29":{"start":{"line":111,"column":4},"end":{"line":111,"column":25}},"30":{"start":{"line":112,"column":4},"end":{"line":116,"column":null}},"31":{"start":{"line":113,"column":6},"end":{"line":113,"column":33}},"32":{"start":{"line":114,"column":6},"end":{"line":114,"column":44}},"33":{"start":{"line":115,"column":6},"end":{"line":115,"column":36}},"34":{"start":{"line":117,"column":4},"end":{"line":117,"column":95}},"35":{"start":{"line":118,"column":4},"end":{"line":118,"column":28}},"36":{"start":{"line":130,"column":2},"end":{"line":200,"column":null}},"37":{"start":{"line":130,"column":2},"end":{"line":130,"column":18}},"38":{"start":{"line":144,"column":25},"end":{"line":144,"column":68}},"39":{"start":{"line":145,"column":26},"end":{"line":145,"column":67}},"40":{"start":{"line":146,"column":4},"end":{"line":146,"column":61}},"41":{"start":{"line":148,"column":4},"end":{"line":199,"column":7}},"42":{"start":{"line":148,"column":39},"end":{"line":148,"column":43}},"43":{"start":{"line":148,"column":46},"end":{"line":148,"column":48}},"44":{"start":{"line":148,"column":56},"end":{"line":148,"column":58}},"45":{"start":{"line":148,"column":62},"end":{"line":148,"column":78}},"46":{"start":{"line":149,"column":28},"end":{"line":149,"column":32}},"47":{"start":{"line":151,"column":6},"end":{"line":160,"column":null}},"48":{"start":{"line":152,"column":8},"end":{"line":159,"column":11}},"49":{"start":{"line":162,"column":6},"end":{"line":171,"column":null}},"50":{"start":{"line":163,"column":8},"end":{"line":170,"column":11}},"51":{"start":{"line":173,"column":6},"end":{"line":176,"column":null}},"52":{"start":{"line":175,"column":8},"end":{"line":175,"column":92}},"53":{"start":{"line":178,"column":6},"end":{"line":198,"column":11}},"54":{"start":{"line":180,"column":10},"end":{"line":186,"column":null}},"55":{"start":{"line":182,"column":17},"end":{"line":186,"column":null}},"56":{"start":{"line":183,"column":12},"end":{"line":183,"column":54}},"57":{"start":{"line":185,"column":12},"end":{"line":185,"column":42}},"58":{"start":{"line":190,"column":10},"end":{"line":197,"column":null}},"59":{"start":{"line":194,"column":12},"end":{"line":194,"column":69}},"60":{"start":{"line":196,"column":12},"end":{"line":196,"column":24}},"61":{"start":{"line":203,"column":2},"end":{"line":246,"column":null}},"62":{"start":{"line":208,"column":24},"end":{"line":208,"column":29}},"63":{"start":{"line":209,"column":4},"end":{"line":211,"column":null}},"64":{"start":{"line":210,"column":6},"end":{"line":210,"column":18}},"65":{"start":{"line":213,"column":19},"end":{"line":213,"column":46}},"66":{"start":{"line":214,"column":4},"end":{"line":216,"column":null}},"67":{"start":{"line":215,"column":6},"end":{"line":215,"column":70}},"68":{"start":{"line":217,"column":30},"end":{"line":217,"column":67}},"69":{"start":{"line":218,"column":21},"end":{"line":218,"column":61}},"70":{"start":{"line":219,"column":27},"end":{"line":219,"column":77}},"71":{"start":{"line":220,"column":23},"end":{"line":220,"column":46}},"72":{"start":{"line":221,"column":4},"end":{"line":225,"column":null}},"73":{"start":{"line":222,"column":6},"end":{"line":222,"column":39}},"74":{"start":{"line":223,"column":11},"end":{"line":225,"column":null}},"75":{"start":{"line":224,"column":6},"end":{"line":224,"column":26}},"76":{"start":{"line":227,"column":4},"end":{"line":244,"column":null}},"77":{"start":{"line":228,"column":18},"end":{"line":228,"column":19}},"78":{"start":{"line":229,"column":6},"end":{"line":239,"column":null}},"79":{"start":{"line":230,"column":8},"end":{"line":230,"column":60}},"80":{"start":{"line":233,"column":27},"end":{"line":233,"column":71}},"81":{"start":{"line":234,"column":8},"end":{"line":238,"column":11}},"82":{"start":{"line":240,"column":6},"end":{"line":242,"column":null}},"83":{"start":{"line":241,"column":8},"end":{"line":241,"column":70}},"84":{"start":{"line":243,"column":6},"end":{"line":243,"column":22}},"85":{"start":{"line":245,"column":4},"end":{"line":245,"column":16}},"86":{"start":{"line":249,"column":2},"end":{"line":274,"column":null}},"87":{"start":{"line":250,"column":4},"end":{"line":252,"column":null}},"88":{"start":{"line":251,"column":6},"end":{"line":251,"column":72}},"89":{"start":{"line":254,"column":21},"end":{"line":254,"column":38}},"90":{"start":{"line":255,"column":61},"end":{"line":255,"column":75}},"91":{"start":{"line":255,"column":30},"end":{"line":255,"column":44}},"92":{"start":{"line":255,"column":57},"end":{"line":255,"column":61}},"93":{"start":{"line":256,"column":4},"end":{"line":261,"column":null}},"94":{"start":{"line":256,"column":23},"end":{"line":256,"column":32}},"95":{"start":{"line":256,"column":19},"end":{"line":256,"column":23}},"96":{"start":{"line":257,"column":22},"end":{"line":257,"column":50}},"97":{"start":{"line":258,"column":6},"end":{"line":260,"column":null}},"98":{"start":{"line":258,"column":27},"end":{"line":258,"column":34}},"99":{"start":{"line":258,"column":23},"end":{"line":258,"column":27}},"100":{"start":{"line":259,"column":8},"end":{"line":259,"column":42}},"101":{"start":{"line":263,"column":4},"end":{"line":266,"column":null}},"102":{"start":{"line":263,"column":33},"end":{"line":263,"column":37}},"103":{"start":{"line":263,"column":33},"end":{"line":263,"column":51}},"104":{"start":{"line":263,"column":15},"end":{"line":263,"column":16}},"105":{"start":{"line":263,"column":22},"end":{"line":263,"column":24}},"106":{"start":{"line":263,"column":28},"end":{"line":263,"column":29}},"107":{"start":{"line":264,"column":18},"end":{"line":264,"column":37}},"108":{"start":{"line":265,"column":6},"end":{"line":265,"column":27}},"109":{"start":{"line":268,"column":4},"end":{"line":273,"column":null}},"110":{"start":{"line":269,"column":22},"end":{"line":269,"column":62}},"111":{"start":{"line":270,"column":6},"end":{"line":272,"column":8}},"112":{"start":{"line":275,"column":0},"end":{"line":275,"column":null}},"113":{"start":{"line":103,"column":13},"end":{"line":103,"column":24}}},"fnMap":{"0":{"name":"(anonymous_9)","decl":{"start":{"line":11,"column":0},"end":{"line":11,"column":13}},"loc":{"start":{"line":11,"column":0},"end":{"line":20,"column":null}}},"1":{"name":"HTTPError","decl":{"start":{"line":15,"column":2},"end":{"line":15,"column":14}},"loc":{"start":{"line":15,"column":40},"end":{"line":19,"column":3}}},"2":{"name":"(anonymous_11)","decl":{"start":{"line":36,"column":25},"end":{"line":36,"column":null}},"loc":{"start":{"line":38,"column":26},"end":{"line":39,"column":null}}},"3":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":5},"end":{"line":39,"column":null}},"loc":{"start":{"line":49,"column":67},"end":{"line":52,"column":1}}},"4":{"name":"(anonymous_13)","decl":{"start":{"line":54,"column":28},"end":{"line":54,"column":null}},"loc":{"start":{"line":56,"column":26},"end":{"line":57,"column":null}}},"5":{"name":"(anonymous_14)","decl":{"start":{"line":57,"column":5},"end":{"line":57,"column":null}},"loc":{"start":{"line":66,"column":67},"end":{"line":71,"column":1}}},"6":{"name":"(anonymous_15)","decl":{"start":{"line":68,"column":48},"end":{"line":68,"column":49}},"loc":{"start":{"line":68,"column":77},"end":{"line":69,"column":11}}},"7":{"name":"defaultInvalidRequestHandler","decl":{"start":{"line":86,"column":16},"end":{"line":86,"column":44}},"loc":{"start":{"line":91,"column":28},"end":{"line":97,"column":1}}},"8":{"name":"(anonymous_17)","decl":{"start":{"line":103,"column":0},"end":{"line":103,"column":13}},"loc":{"start":{"line":103,"column":0},"end":{"line":275,"column":null}}},"9":{"name":"TypedRouter","decl":{"start":{"line":110,"column":2},"end":{"line":110,"column":14}},"loc":{"start":{"line":110,"column":83},"end":{"line":119,"column":3}}},"10":{"name":"(anonymous_19)","decl":{"start":{"line":130,"column":2},"end":{"line":130,"column":18}},"loc":{"start":{"line":142,"column":69},"end":{"line":200,"column":3}}},"11":{"name":"(anonymous_20)","decl":{"start":{"line":148,"column":38},"end":{"line":148,"column":39}},"loc":{"start":{"line":148,"column":38},"end":{"line":199,"column":5}}},"12":{"name":"(anonymous_21)","decl":{"start":{"line":179,"column":14},"end":{"line":179,"column":28}},"loc":{"start":{"line":179,"column":28},"end":{"line":187,"column":9}}},"13":{"name":"(anonymous_22)","decl":{"start":{"line":188,"column":15},"end":{"line":188,"column":16}},"loc":{"start":{"line":188,"column":26},"end":{"line":198,"column":9}}},"14":{"name":"(anonymous_23)","decl":{"start":{"line":203,"column":2},"end":{"line":203,"column":14}},"loc":{"start":{"line":206,"column":33},"end":{"line":246,"column":3}}},"15":{"name":"(anonymous_24)","decl":{"start":{"line":249,"column":2},"end":{"line":249,"column":27}},"loc":{"start":{"line":249,"column":2},"end":{"line":274,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":28},"end":{"line":15,"column":null}},"type":"if","locations":[{"start":{"line":15,"column":28},"end":{"line":15,"column":null}},{"start":{"line":15,"column":28},"end":{"line":15,"column":null}}]},"1":{"loc":{"start":{"line":16,"column":4},"end":{"line":16,"column":31}},"type":"binary-expr","locations":[{"start":{"line":16,"column":4},"end":{"line":16,"column":31}},{"start":{"line":16,"column":31},"end":{"line":16,"column":null}}]},"2":{"loc":{"start":{"line":112,"column":4},"end":{"line":116,"column":null}},"type":"if","locations":[{"start":{"line":112,"column":4},"end":{"line":116,"column":null}},{"start":{"line":112,"column":4},"end":{"line":116,"column":null}}]},"3":{"loc":{"start":{"line":117,"column":62},"end":{"line":117,"column":66}},"type":"cond-expr","locations":[{"start":{"line":117,"column":62},"end":{"line":117,"column":66}},{"start":{"line":117,"column":66},"end":{"line":117,"column":94}}]},"4":{"loc":{"start":{"line":117,"column":32},"end":{"line":117,"column":66}},"type":"binary-expr","locations":[{"start":{"line":117,"column":32},"end":{"line":117,"column":66}},{"start":{"line":117,"column":62},"end":{"line":117,"column":66}}]},"5":{"loc":{"start":{"line":117,"column":39},"end":{"line":117,"column":41}},"type":"cond-expr","locations":[{"start":{"line":117,"column":39},"end":{"line":117,"column":41}},{"start":{"line":117,"column":32},"end":{"line":117,"column":62}}]},"6":{"loc":{"start":{"line":117,"column":32},"end":{"line":117,"column":41}},"type":"binary-expr","locations":[{"start":{"line":117,"column":32},"end":{"line":117,"column":41}},{"start":{"line":117,"column":32},"end":{"line":117,"column":41}}]},"7":{"loc":{"start":{"line":151,"column":6},"end":{"line":160,"column":null}},"type":"if","locations":[{"start":{"line":151,"column":6},"end":{"line":160,"column":null}},{"start":{"line":151,"column":6},"end":{"line":160,"column":null}}]},"8":{"loc":{"start":{"line":151,"column":10},"end":{"line":151,"column":22}},"type":"binary-expr","locations":[{"start":{"line":151,"column":10},"end":{"line":151,"column":22}},{"start":{"line":151,"column":26},"end":{"line":151,"column":45}}]},"9":{"loc":{"start":{"line":162,"column":6},"end":{"line":171,"column":null}},"type":"if","locations":[{"start":{"line":162,"column":6},"end":{"line":171,"column":null}},{"start":{"line":162,"column":6},"end":{"line":171,"column":null}}]},"10":{"loc":{"start":{"line":162,"column":10},"end":{"line":162,"column":23}},"type":"binary-expr","locations":[{"start":{"line":162,"column":10},"end":{"line":162,"column":23}},{"start":{"line":162,"column":27},"end":{"line":162,"column":48}}]},"11":{"loc":{"start":{"line":173,"column":6},"end":{"line":176,"column":null}},"type":"if","locations":[{"start":{"line":173,"column":6},"end":{"line":176,"column":null}},{"start":{"line":173,"column":6},"end":{"line":176,"column":null}}]},"12":{"loc":{"start":{"line":180,"column":10},"end":{"line":186,"column":null}},"type":"if","locations":[{"start":{"line":180,"column":10},"end":{"line":186,"column":null}},{"start":{"line":180,"column":10},"end":{"line":186,"column":null}}]},"13":{"loc":{"start":{"line":182,"column":17},"end":{"line":186,"column":null}},"type":"if","locations":[{"start":{"line":182,"column":17},"end":{"line":186,"column":null}},{"start":{"line":182,"column":17},"end":{"line":186,"column":null}}]},"14":{"loc":{"start":{"line":190,"column":10},"end":{"line":197,"column":null}},"type":"if","locations":[{"start":{"line":190,"column":10},"end":{"line":197,"column":null}},{"start":{"line":190,"column":10},"end":{"line":197,"column":null}}]},"15":{"loc":{"start":{"line":191,"column":12},"end":{"line":191,"column":38}},"type":"binary-expr","locations":[{"start":{"line":191,"column":12},"end":{"line":191,"column":38}},{"start":{"line":192,"column":13},"end":{"line":192,"column":23}},{"start":{"line":192,"column":27},"end":{"line":192,"column":64}}]},"16":{"loc":{"start":{"line":209,"column":4},"end":{"line":211,"column":null}},"type":"if","locations":[{"start":{"line":209,"column":4},"end":{"line":211,"column":null}},{"start":{"line":209,"column":4},"end":{"line":211,"column":null}}]},"17":{"loc":{"start":{"line":214,"column":4},"end":{"line":216,"column":null}},"type":"if","locations":[{"start":{"line":214,"column":4},"end":{"line":216,"column":null}},{"start":{"line":214,"column":4},"end":{"line":216,"column":null}}]},"18":{"loc":{"start":{"line":221,"column":4},"end":{"line":225,"column":null}},"type":"if","locations":[{"start":{"line":221,"column":4},"end":{"line":225,"column":null}},{"start":{"line":221,"column":4},"end":{"line":225,"column":null}}]},"19":{"loc":{"start":{"line":223,"column":11},"end":{"line":225,"column":null}},"type":"if","locations":[{"start":{"line":223,"column":11},"end":{"line":225,"column":null}},{"start":{"line":223,"column":11},"end":{"line":225,"column":null}}]},"20":{"loc":{"start":{"line":223,"column":15},"end":{"line":223,"column":32}},"type":"binary-expr","locations":[{"start":{"line":223,"column":15},"end":{"line":223,"column":32}},{"start":{"line":223,"column":36},"end":{"line":223,"column":64}}]},"21":{"loc":{"start":{"line":227,"column":4},"end":{"line":244,"column":null}},"type":"if","locations":[{"start":{"line":227,"column":4},"end":{"line":244,"column":null}},{"start":{"line":227,"column":4},"end":{"line":244,"column":null}}]},"22":{"loc":{"start":{"line":227,"column":8},"end":{"line":227,"column":20}},"type":"binary-expr","locations":[{"start":{"line":227,"column":8},"end":{"line":227,"column":20}},{"start":{"line":227,"column":24},"end":{"line":227,"column":32}}]},"23":{"loc":{"start":{"line":229,"column":6},"end":{"line":239,"column":null}},"type":"if","locations":[{"start":{"line":229,"column":6},"end":{"line":239,"column":null}},{"start":{"line":229,"column":6},"end":{"line":239,"column":null}}]},"24":{"loc":{"start":{"line":230,"column":51},"end":{"line":230,"column":55}},"type":"cond-expr","locations":[{"start":{"line":230,"column":51},"end":{"line":230,"column":55}},{"start":{"line":230,"column":55},"end":{"line":230,"column":59}}]},"25":{"loc":{"start":{"line":230,"column":19},"end":{"line":230,"column":55}},"type":"binary-expr","locations":[{"start":{"line":230,"column":19},"end":{"line":230,"column":55}},{"start":{"line":230,"column":51},"end":{"line":230,"column":55}}]},"26":{"loc":{"start":{"line":240,"column":6},"end":{"line":242,"column":null}},"type":"if","locations":[{"start":{"line":240,"column":6},"end":{"line":242,"column":null}},{"start":{"line":240,"column":6},"end":{"line":242,"column":null}}]},"27":{"loc":{"start":{"line":250,"column":4},"end":{"line":252,"column":null}},"type":"if","locations":[{"start":{"line":250,"column":4},"end":{"line":252,"column":null}},{"start":{"line":250,"column":4},"end":{"line":252,"column":null}}]},"28":{"loc":{"start":{"line":268,"column":4},"end":{"line":273,"column":null}},"type":"if","locations":[{"start":{"line":268,"column":4},"end":{"line":273,"column":null}},{"start":{"line":268,"column":4},"end":{"line":273,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":4,"5":4,"6":4,"7":4,"8":2,"9":2,"10":2,"11":12,"12":4,"13":2,"14":8,"15":7,"16":10,"17":9,"18":9,"19":9,"20":9,"21":9,"22":2,"23":2,"24":4,"25":4,"26":4,"27":4,"28":4,"29":4,"30":4,"31":4,"32":4,"33":4,"34":4,"35":4,"36":2,"37":14,"38":14,"39":14,"40":14,"41":14,"42":135,"43":27,"44":27,"45":27,"46":54,"47":27,"48":8,"49":19,"50":2,"51":17,"52":17,"53":17,"54":12,"55":12,"56":0,"57":12,"58":5,"59":4,"60":1,"61":2,"62":28,"63":28,"64":0,"65":28,"66":28,"67":0,"68":28,"69":28,"70":28,"71":28,"72":28,"73":2,"74":26,"75":14,"76":28,"77":14,"78":14,"79":2,"80":12,"81":12,"82":14,"83":0,"84":14,"85":14,"86":2,"87":2,"88":0,"89":2,"90":2,"91":2,"92":2,"93":2,"94":4,"95":8,"96":8,"97":8,"98":16,"99":18,"100":18,"101":2,"102":2,"103":2,"104":13,"105":13,"106":13,"107":13,"108":13,"109":2,"110":1,"111":1,"112":2,"113":2},"f":{"0":2,"1":4,"2":12,"3":4,"4":8,"5":7,"6":10,"7":9,"8":2,"9":4,"10":14,"11":27,"12":12,"13":5,"14":28,"15":2},"b":{"0":[0,4],"1":[4,0],"2":[4,0],"3":[1,3],"4":[4,4],"5":[3,1],"6":[4,4],"7":[8,19],"8":[27,15],"9":[2,17],"10":[19,13],"11":[17,0],"12":[0,12],"13":[0,12],"14":[4,1],"15":[5,5,5],"16":[0,28],"17":[0,28],"18":[2,26],"19":[14,12],"20":[26,26],"21":[14,14],"22":[28,14],"23":[2,12],"24":[2,0],"25":[2,2],"26":[0,14],"27":[0,2],"28":[1,1]}}
{"/Users/danvk/github/typed-router/src/index.ts": {"path":"/Users/danvk/github/typed-router/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}},"1":{"start":{"line":1,"column":9},"end":{"line":1,"column":45}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":32}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}}},"fnMap":{"0":{"name":"(anonymous_4)","decl":{"start":{"line":1,"column":9},"end":{"line":1,"column":25}},"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":45}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1},"f":{"0":0},"b":{}}
,"/Users/danvk/github/typed-router/src/openapi.ts": {"path":"/Users/danvk/github/typed-router/src/openapi.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},"1":{"start":{"line":43,"column":17},"end":{"line":43,"column":48}},"2":{"start":{"line":43,"column":47},"end":{"line":43,"column":76}},"3":{"start":{"line":46,"column":17},"end":{"line":46,"column":41}},"4":{"start":{"line":47,"column":2},"end":{"line":51,"column":6}},"5":{"start":{"line":47,"column":46},"end":{"line":51,"column":5}},"6":{"start":{"line":56,"column":2},"end":{"line":56,"column":43}},"7":{"start":{"line":59,"column":19},"end":{"line":59,"column":35}},"8":{"start":{"line":61,"column":14},"end":{"line":61,"column":25}},"9":{"start":{"line":62,"column":2},"end":{"line":64,"column":null}},"10":{"start":{"line":63,"column":4},"end":{"line":63,"column":54}},"11":{"start":{"line":66,"column":15},"end":{"line":66,"column":43}},"12":{"start":{"line":67,"column":14},"end":{"line":67,"column":36}},"13":{"start":{"line":68,"column":2},"end":{"line":70,"column":null}},"14":{"start":{"line":69,"column":4},"end":{"line":69,"column":61}},"15":{"start":{"line":71,"column":2},"end":{"line":71,"column":21}},"16":{"start":{"line":60,"column":0},"end":{"line":60,"column":16}},"17":{"start":{"line":76,"column":2},"end":{"line":76,"column":48}},"18":{"start":{"line":81,"column":6},"end":{"line":81,"column":14}},"19":{"start":{"line":84,"column":37},"end":{"line":84,"column":39}},"20":{"start":{"line":86,"column":19},"end":{"line":86,"column":36}},"21":{"start":{"line":88,"column":2},"end":{"line":118,"column":null}},"22":{"start":{"line":88,"column":25},"end":{"line":88,"column":34}},"23":{"start":{"line":88,"column":21},"end":{"line":88,"column":25}},"24":{"start":{"line":89,"column":24},"end":{"line":89,"column":58}},"25":{"start":{"line":90,"column":4},"end":{"line":90,"column":28}},"26":{"start":{"line":91,"column":19},"end":{"line":91,"column":53}},"27":{"start":{"line":92,"column":4},"end":{"line":117,"column":null}},"28":{"start":{"line":92,"column":30},"end":{"line":92,"column":36}},"29":{"start":{"line":92,"column":30},"end":{"line":92,"column":52}},"30":{"start":{"line":92,"column":15},"end":{"line":92,"column":16}},"31":{"start":{"line":92,"column":20},"end":{"line":92,"column":22}},"32":{"start":{"line":92,"column":25},"end":{"line":92,"column":26}},"33":{"start":{"line":93,"column":29},"end":{"line":93,"column":65}},"34":{"start":{"line":93,"column":17},"end":{"line":93,"column":19}},"35":{"start":{"line":93,"column":25},"end":{"line":93,"column":29}},"36":{"start":{"line":94,"column":37},"end":{"line":94,"column":62}},"37":{"start":{"line":94,"column":21},"end":{"line":94,"column":23}},"38":{"start":{"line":94,"column":31},"end":{"line":94,"column":37}},"39":{"start":{"line":96,"column":34},"end":{"line":96,"column":61}},"40":{"start":{"line":97,"column":6},"end":{"line":103,"column":null}},"41":{"start":{"line":98,"column":8},"end":{"line":102,"column":11}},"42":{"start":{"line":105,"column":19},"end":{"line":113,"column":null}},"43":{"start":{"line":115,"column":6},"end":{"line":115,"column":41}},"44":{"start":{"line":116,"column":6},"end":{"line":116,"column":25}},"45":{"start":{"line":120,"column":2},"end":{"line":122,"column":5}},"46":{"start":{"line":121,"column":4},"end":{"line":121,"column":29}},"47":{"start":{"line":124,"column":2},"end":{"line":133,"column":null}},"48":{"start":{"line":75,"column":0},"end":{"line":75,"column":16}}},"fnMap":{"0":{"name":"(anonymous_8)","decl":{"start":{"line":43,"column":17},"end":{"line":43,"column":21}},"loc":{"start":{"line":43,"column":25},"end":{"line":43,"column":48}}},"1":{"name":"extractPathParams","decl":{"start":{"line":45,"column":9},"end":{"line":45,"column":26}},"loc":{"start":{"line":45,"column":39},"end":{"line":52,"column":1}}},"2":{"name":"(anonymous_10)","decl":{"start":{"line":47,"column":37},"end":{"line":47,"column":38}},"loc":{"start":{"line":47,"column":41},"end":{"line":47,"column":47}}},"3":{"name":"expressPathToOpenApiPath","decl":{"start":{"line":55,"column":9},"end":{"line":55,"column":33}},"loc":{"start":{"line":55,"column":46},"end":{"line":57,"column":1}}},"4":{"name":"followApiRef","decl":{"start":{"line":60,"column":16},"end":{"line":60,"column":28}},"loc":{"start":{"line":60,"column":54},"end":{"line":72,"column":1}}},"5":{"name":"apiSpecToOpenApi","decl":{"start":{"line":75,"column":16},"end":{"line":75,"column":32}},"loc":{"start":{"line":75,"column":64},"end":{"line":135,"column":1}}},"6":{"name":"(anonymous_14)","decl":{"start":{"line":120,"column":19},"end":{"line":120,"column":23}},"loc":{"start":{"line":120,"column":23},"end":{"line":122,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":43,"column":47},"end":{"line":43,"column":50}},"type":"binary-expr","locations":[{"start":{"line":43,"column":47},"end":{"line":43,"column":50}},{"start":{"line":43,"column":54},"end":{"line":43,"column":75}}]},"1":{"loc":{"start":{"line":62,"column":2},"end":{"line":64,"column":null}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":64,"column":null}},{"start":{"line":62,"column":2},"end":{"line":64,"column":null}}]},"2":{"loc":{"start":{"line":68,"column":2},"end":{"line":70,"column":null}},"type":"if","locations":[{"start":{"line":68,"column":2},"end":{"line":70,"column":null}},{"start":{"line":68,"column":2},"end":{"line":70,"column":null}}]},"3":{"loc":{"start":{"line":97,"column":6},"end":{"line":103,"column":null}},"type":"if","locations":[{"start":{"line":97,"column":6},"end":{"line":103,"column":null}},{"start":{"line":97,"column":6},"end":{"line":103,"column":null}}]},"4":{"loc":{"start":{"line":97,"column":17},"end":{"line":97,"column":19}},"type":"cond-expr","locations":[{"start":{"line":97,"column":17},"end":{"line":97,"column":19}},{"start":{"line":97,"column":10},"end":{"line":97,"column":23}}]},"5":{"loc":{"start":{"line":97,"column":10},"end":{"line":97,"column":19}},"type":"binary-expr","locations":[{"start":{"line":97,"column":10},"end":{"line":97,"column":19}},{"start":{"line":97,"column":10},"end":{"line":97,"column":19}}]},"6":{"loc":{"start":{"line":107,"column":12},"end":{"line":107,"column":29}},"type":"binary-expr","locations":[{"start":{"line":107,"column":12},"end":{"line":107,"column":29}},{"start":{"line":107,"column":33},"end":{"line":107,"column":47}}]}},"s":{"0":2,"1":2,"2":10,"3":6,"4":6,"5":4,"6":2,"7":2,"8":6,"9":6,"10":0,"11":6,"12":6,"13":6,"14":0,"15":6,"16":2,"17":1,"18":3,"19":1,"20":1,"21":1,"22":2,"23":2,"24":2,"25":2,"26":2,"27":2,"28":2,"29":2,"30":6,"31":6,"32":6,"33":6,"34":6,"35":6,"36":6,"37":6,"38":6,"39":6,"40":6,"41":4,"42":6,"43":6,"44":6,"45":1,"46":6,"47":1,"48":2},"f":{"0":10,"1":6,"2":4,"3":2,"4":6,"5":1,"6":6},"b":{"0":[10,10],"1":[0,6],"2":[0,6],"3":[4,2],"4":[0,6],"5":[6,6],"6":[6,5]}}
,"/Users/danvk/github/typed-router/src/typed-request.ts": {"path":"/Users/danvk/github/typed-router/src/typed-request.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":41}},"1":{"start":{"line":11,"column":33},"end":{"line":11,"column":null}},"2":{"start":{"line":12,"column":2},"end":{"line":16,"column":4}},"3":{"start":{"line":13,"column":19},"end":{"line":13,"column":36}},"4":{"start":{"line":14,"column":4},"end":{"line":15,"column":44}},"5":{"start":{"line":14,"column":12},"end":{"line":14,"column":67}},"6":{"start":{"line":15,"column":6},"end":{"line":15,"column":44}},"7":{"start":{"line":11,"column":0},"end":{"line":11,"column":16}},"8":{"start":{"line":31,"column":19},"end":{"line":38,"column":null}},"9":{"start":{"line":31,"column":8},"end":{"line":38,"column":null}},"10":{"start":{"line":39,"column":2},"end":{"line":39,"column":25}},"11":{"start":{"line":26,"column":0},"end":{"line":26,"column":22}},"12":{"start":{"line":43,"column":26},"end":{"line":43,"column":40}},"13":{"start":{"line":43,"column":16},"end":{"line":43,"column":26}},"14":{"start":{"line":44,"column":15},"end":{"line":44,"column":45}},"15":{"start":{"line":46,"column":19},"end":{"line":46,"column":43}},"16":{"start":{"line":52,"column":18},"end":{"line":66,"column":3}},"17":{"start":{"line":63,"column":20},"end":{"line":63,"column":38}},"18":{"start":{"line":64,"column":4},"end":{"line":65,"column":80}},"19":{"start":{"line":65,"column":6},"end":{"line":65,"column":80}},"20":{"start":{"line":68,"column":2},"end":{"line":87,"column":4}},"21":{"start":{"line":75,"column":6},"end":{"line":76,"column":73}},"22":{"start":{"line":75,"column":14},"end":{"line":75,"column":35}},"23":{"start":{"line":76,"column":8},"end":{"line":76,"column":73}},"24":{"start":{"line":84,"column":6},"end":{"line":85,"column":55}},"25":{"start":{"line":85,"column":8},"end":{"line":85,"column":55}},"26":{"start":{"line":42,"column":0},"end":{"line":42,"column":16}}},"fnMap":{"0":{"name":"apiUrlMaker","decl":{"start":{"line":11,"column":16},"end":{"line":11,"column":27}},"loc":{"start":{"line":11,"column":44},"end":{"line":17,"column":1}}},"1":{"name":"(anonymous_14)","decl":{"start":{"line":12,"column":9},"end":{"line":12,"column":34}},"loc":{"start":{"line":12,"column":57},"end":{"line":16,"column":3}}},"2":{"name":"(anonymous_15)","decl":{"start":{"line":14,"column":11},"end":{"line":14,"column":12}},"loc":{"start":{"line":14,"column":11},"end":{"line":15,"column":12}}},"3":{"name":"fetchJson","decl":{"start":{"line":26,"column":22},"end":{"line":26,"column":31}},"loc":{"start":{"line":29,"column":18},"end":{"line":40,"column":null}}},"4":{"name":"typedApi","decl":{"start":{"line":42,"column":16},"end":{"line":42,"column":24}},"loc":{"start":{"line":42,"column":47},"end":{"line":88,"column":1}}},"5":{"name":"(anonymous_20)","decl":{"start":{"line":52,"column":18},"end":{"line":52,"column":null}},"loc":{"start":{"line":57,"column":18},"end":{"line":66,"column":3}}},"6":{"name":"(anonymous_21)","decl":{"start":{"line":64,"column":11},"end":{"line":64,"column":12}},"loc":{"start":{"line":64,"column":46},"end":{"line":65,"column":13}}},"7":{"name":"(anonymous_22)","decl":{"start":{"line":71,"column":9},"end":{"line":71,"column":33}},"loc":{"start":{"line":71,"column":47},"end":{"line":77,"column":5}}},"8":{"name":"(anonymous_23)","decl":{"start":{"line":75,"column":13},"end":{"line":75,"column":14}},"loc":{"start":{"line":75,"column":13},"end":{"line":76,"column":15}}},"9":{"name":"(anonymous_24)","decl":{"start":{"line":79,"column":10},"end":{"line":79,"column":35}},"loc":{"start":{"line":79,"column":49},"end":{"line":86,"column":5}}},"10":{"name":"(anonymous_25)","decl":{"start":{"line":84,"column":13},"end":{"line":84,"column":14}},"loc":{"start":{"line":84,"column":43},"end":{"line":85,"column":15}}}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":33},"end":{"line":11,"column":null}},"type":"if","locations":[{"start":{"line":11,"column":33},"end":{"line":11,"column":null}},{"start":{"line":11,"column":33},"end":{"line":11,"column":null}}]},"1":{"loc":{"start":{"line":31,"column":19},"end":{"line":38,"column":null}},"type":"switch","locations":[{"start":{"line":31,"column":19},"end":{"line":38,"column":null}}]},"2":{"loc":{"start":{"line":43,"column":26},"end":{"line":43,"column":33}},"type":"binary-expr","locations":[{"start":{"line":43,"column":26},"end":{"line":43,"column":33}},{"start":{"line":43,"column":37},"end":{"line":43,"column":39}}]},"3":{"loc":{"start":{"line":43,"column":19},"end":{"line":43,"column":21}},"type":"cond-expr","locations":[{"start":{"line":43,"column":19},"end":{"line":43,"column":21}},{"start":{"line":43,"column":21},"end":{"line":43,"column":26}}]},"4":{"loc":{"start":{"line":44,"column":32},"end":{"line":44,"column":36}},"type":"cond-expr","locations":[{"start":{"line":44,"column":32},"end":{"line":44,"column":36}},{"start":{"line":44,"column":36},"end":{"line":44,"column":45}}]},"5":{"loc":{"start":{"line":44,"column":15},"end":{"line":44,"column":36}},"type":"binary-expr","locations":[{"start":{"line":44,"column":15},"end":{"line":44,"column":36}},{"start":{"line":44,"column":32},"end":{"line":44,"column":36}}]},"6":{"loc":{"start":{"line":44,"column":25},"end":{"line":44,"column":27}},"type":"cond-expr","locations":[{"start":{"line":44,"column":25},"end":{"line":44,"column":27}},{"start":{"line":44,"column":18},"end":{"line":44,"column":32}}]},"7":{"loc":{"start":{"line":44,"column":18},"end":{"line":44,"column":27}},"type":"binary-expr","locations":[{"start":{"line":44,"column":18},"end":{"line":44,"column":27}},{"start":{"line":44,"column":18},"end":{"line":44,"column":27}}]},"8":{"loc":{"start":{"line":76,"column":46},"end":{"line":76,"column":49}},"type":"cond-expr","locations":[{"start":{"line":76,"column":46},"end":{"line":76,"column":49}},{"start":{"line":76,"column":40},"end":{"line":76,"column":58}}]},"9":{"loc":{"start":{"line":76,"column":40},"end":{"line":76,"column":49}},"type":"binary-expr","locations":[{"start":{"line":76,"column":40},"end":{"line":76,"column":49}},{"start":{"line":76,"column":40},"end":{"line":76,"column":49}}]}},"s":{"0":1,"1":6,"2":5,"3":8,"4":8,"5":22,"6":8,"7":1,"8":1,"9":1,"10":1,"11":1,"12":2,"13":2,"14":2,"15":2,"16":2,"17":3,"18":3,"19":3,"20":2,"21":2,"22":5,"23":2,"24":1,"25":1,"26":1},"f":{"0":5,"1":8,"2":8,"3":1,"4":2,"5":3,"6":3,"7":2,"8":2,"9":1,"10":1},"b":{"0":[1,4],"1":[1],"2":[2,0],"3":[2,0],"4":[2,0],"5":[2,2],"6":[0,2],"7":[2,2],"8":[0,2],"9":[2,2]}}
,"/Users/danvk/github/typed-router/src/typed-router.ts": {"path":"/Users/danvk/github/typed-router/src/typed-router.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":22}},"1":{"start":{"line":10,"column":0},"end":{"line":10,"column":null}},"2":{"start":{"line":10,"column":31},"end":{"line":10,"column":36}},"3":{"start":{"line":14,"column":28},"end":{"line":14,"column":null}},"4":{"start":{"line":15,"column":4},"end":{"line":15,"column":null}},"5":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"6":{"start":{"line":17,"column":4},"end":{"line":17,"column":27}},"7":{"start":{"line":19,"column":0},"end":{"line":19,"column":null}},"8":{"start":{"line":10,"column":13},"end":{"line":10,"column":22}},"9":{"start":{"line":25,"column":0},"end":{"line":25,"column":13}},"10":{"start":{"line":32,"column":4},"end":{"line":32,"column":25}},"11":{"start":{"line":33,"column":4},"end":{"line":37,"column":null}},"12":{"start":{"line":34,"column":6},"end":{"line":34,"column":33}},"13":{"start":{"line":35,"column":6},"end":{"line":35,"column":44}},"14":{"start":{"line":36,"column":6},"end":{"line":36,"column":36}},"15":{"start":{"line":38,"column":4},"end":{"line":38,"column":28}},"16":{"start":{"line":41,"column":2},"end":{"line":54,"column":null}},"17":{"start":{"line":53,"column":4},"end":{"line":53,"column":117}},"18":{"start":{"line":53,"column":81},"end":{"line":53,"column":116}},"19":{"start":{"line":57,"column":2},"end":{"line":142,"column":null}},"20":{"start":{"line":57,"column":2},"end":{"line":57,"column":18}},"21":{"start":{"line":71,"column":24},"end":{"line":71,"column":29}},"22":{"start":{"line":73,"column":4},"end":{"line":104,"column":null}},"23":{"start":{"line":74,"column":21},"end":{"line":74,"column":48}},"24":{"start":{"line":75,"column":6},"end":{"line":77,"column":null}},"25":{"start":{"line":76,"column":8},"end":{"line":76,"column":72}},"26":{"start":{"line":78,"column":32},"end":{"line":78,"column":69}},"27":{"start":{"line":79,"column":23},"end":{"line":79,"column":63}},"28":{"start":{"line":80,"column":29},"end":{"line":80,"column":79}},"29":{"start":{"line":81,"column":24},"end":{"line":81,"column":45}},"30":{"start":{"line":82,"column":6},"end":{"line":89,"column":null}},"31":{"start":{"line":83,"column":8},"end":{"line":83,"column":39}},"32":{"start":{"line":84,"column":13},"end":{"line":89,"column":null}},"33":{"start":{"line":85,"column":8},"end":{"line":85,"column":27}},"34":{"start":{"line":86,"column":13},"end":{"line":89,"column":null}},"35":{"start":{"line":88,"column":8},"end":{"line":88,"column":77}},"36":{"start":{"line":91,"column":6},"end":{"line":103,"column":null}},"37":{"start":{"line":92,"column":8},"end":{"line":99,"column":null}},"38":{"start":{"line":93,"column":10},"end":{"line":93,"column":53}},"39":{"start":{"line":97,"column":29},"end":{"line":97,"column":38}},"40":{"start":{"line":98,"column":10},"end":{"line":98,"column":53}},"41":{"start":{"line":100,"column":8},"end":{"line":102,"column":null}},"42":{"start":{"line":101,"column":10},"end":{"line":101,"column":71}},"43":{"start":{"line":105,"column":4},"end":{"line":105,"column":61}},"44":{"start":{"line":107,"column":4},"end":{"line":141,"column":7}},"45":{"start":{"line":107,"column":39},"end":{"line":107,"column":43}},"46":{"start":{"line":107,"column":46},"end":{"line":107,"column":48}},"47":{"start":{"line":107,"column":56},"end":{"line":107,"column":58}},"48":{"start":{"line":107,"column":62},"end":{"line":107,"column":78}},"49":{"start":{"line":108,"column":21},"end":{"line":108,"column":25}},"50":{"start":{"line":110,"column":6},"end":{"line":116,"column":null}},"51":{"start":{"line":111,"column":8},"end":{"line":115,"column":11}},"52":{"start":{"line":118,"column":6},"end":{"line":121,"column":null}},"53":{"start":{"line":120,"column":8},"end":{"line":120,"column":75}},"54":{"start":{"line":123,"column":6},"end":{"line":140,"column":11}},"55":{"start":{"line":125,"column":10},"end":{"line":131,"column":null}},"56":{"start":{"line":127,"column":17},"end":{"line":131,"column":null}},"57":{"start":{"line":128,"column":12},"end":{"line":128,"column":54}},"58":{"start":{"line":130,"column":12},"end":{"line":130,"column":42}},"59":{"start":{"line":135,"column":10},"end":{"line":139,"column":null}},"60":{"start":{"line":136,"column":12},"end":{"line":136,"column":69}},"61":{"start":{"line":138,"column":12},"end":{"line":138,"column":24}},"62":{"start":{"line":145,"column":2},"end":{"line":173,"column":null}},"63":{"start":{"line":146,"column":4},"end":{"line":148,"column":null}},"64":{"start":{"line":147,"column":6},"end":{"line":147,"column":72}},"65":{"start":{"line":150,"column":21},"end":{"line":150,"column":38}},"66":{"start":{"line":154,"column":8},"end":{"line":154,"column":22}},"67":{"start":{"line":152,"column":25},"end":{"line":152,"column":null}},"68":{"start":{"line":153,"column":31},"end":{"line":153,"column":null}},"69":{"start":{"line":155,"column":4},"end":{"line":160,"column":null}},"70":{"start":{"line":155,"column":23},"end":{"line":155,"column":32}},"71":{"start":{"line":155,"column":19},"end":{"line":155,"column":23}},"72":{"start":{"line":156,"column":22},"end":{"line":156,"column":50}},"73":{"start":{"line":157,"column":6},"end":{"line":159,"column":null}},"74":{"start":{"line":157,"column":27},"end":{"line":157,"column":34}},"75":{"start":{"line":157,"column":23},"end":{"line":157,"column":27}},"76":{"start":{"line":158,"column":8},"end":{"line":158,"column":42}},"77":{"start":{"line":162,"column":4},"end":{"line":165,"column":null}},"78":{"start":{"line":162,"column":33},"end":{"line":162,"column":37}},"79":{"start":{"line":162,"column":33},"end":{"line":162,"column":51}},"80":{"start":{"line":162,"column":15},"end":{"line":162,"column":16}},"81":{"start":{"line":162,"column":22},"end":{"line":162,"column":24}},"82":{"start":{"line":162,"column":28},"end":{"line":162,"column":29}},"83":{"start":{"line":163,"column":21},"end":{"line":163,"column":37}},"84":{"start":{"line":164,"column":6},"end":{"line":164,"column":27}},"85":{"start":{"line":167,"column":4},"end":{"line":172,"column":null}},"86":{"start":{"line":168,"column":22},"end":{"line":168,"column":62}},"87":{"start":{"line":169,"column":6},"end":{"line":171,"column":8}},"88":{"start":{"line":174,"column":0},"end":{"line":174,"column":null}},"89":{"start":{"line":25,"column":13},"end":{"line":25,"column":24}}},"fnMap":{"0":{"name":"(anonymous_7)","decl":{"start":{"line":10,"column":0},"end":{"line":10,"column":13}},"loc":{"start":{"line":10,"column":0},"end":{"line":19,"column":null}}},"1":{"name":"HTTPError","decl":{"start":{"line":14,"column":2},"end":{"line":14,"column":14}},"loc":{"start":{"line":14,"column":40},"end":{"line":18,"column":3}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":25,"column":0},"end":{"line":25,"column":13}},"loc":{"start":{"line":25,"column":0},"end":{"line":174,"column":null}}},"3":{"name":"TypedRouter","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":14}},"loc":{"start":{"line":31,"column":53},"end":{"line":39,"column":3}}},"4":{"name":"(anonymous_11)","decl":{"start":{"line":41,"column":2},"end":{"line":41,"column":5}},"loc":{"start":{"line":50,"column":69},"end":{"line":54,"column":3}}},"5":{"name":"(anonymous_12)","decl":{"start":{"line":53,"column":47},"end":{"line":53,"column":48}},"loc":{"start":{"line":53,"column":76},"end":{"line":53,"column":88}}},"6":{"name":"(anonymous_13)","decl":{"start":{"line":57,"column":2},"end":{"line":57,"column":18}},"loc":{"start":{"line":69,"column":69},"end":{"line":142,"column":3}}},"7":{"name":"(anonymous_14)","decl":{"start":{"line":107,"column":38},"end":{"line":107,"column":39}},"loc":{"start":{"line":107,"column":38},"end":{"line":141,"column":5}}},"8":{"name":"(anonymous_15)","decl":{"start":{"line":124,"column":14},"end":{"line":124,"column":28}},"loc":{"start":{"line":124,"column":28},"end":{"line":132,"column":9}}},"9":{"name":"(anonymous_16)","decl":{"start":{"line":133,"column":15},"end":{"line":133,"column":16}},"loc":{"start":{"line":133,"column":26},"end":{"line":140,"column":9}}},"10":{"name":"(anonymous_17)","decl":{"start":{"line":145,"column":2},"end":{"line":145,"column":27}},"loc":{"start":{"line":145,"column":2},"end":{"line":173,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":14,"column":28},"end":{"line":14,"column":null}},"type":"if","locations":[{"start":{"line":14,"column":28},"end":{"line":14,"column":null}},{"start":{"line":14,"column":28},"end":{"line":14,"column":null}}]},"1":{"loc":{"start":{"line":15,"column":4},"end":{"line":15,"column":31}},"type":"binary-expr","locations":[{"start":{"line":15,"column":4},"end":{"line":15,"column":31}},{"start":{"line":15,"column":31},"end":{"line":15,"column":null}}]},"2":{"loc":{"start":{"line":33,"column":4},"end":{"line":37,"column":null}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":37,"column":null}},{"start":{"line":33,"column":4},"end":{"line":37,"column":null}}]},"3":{"loc":{"start":{"line":73,"column":4},"end":{"line":104,"column":null}},"type":"if","locations":[{"start":{"line":73,"column":4},"end":{"line":104,"column":null}},{"start":{"line":73,"column":4},"end":{"line":104,"column":null}}]},"4":{"loc":{"start":{"line":75,"column":6},"end":{"line":77,"column":null}},"type":"if","locations":[{"start":{"line":75,"column":6},"end":{"line":77,"column":null}},{"start":{"line":75,"column":6},"end":{"line":77,"column":null}}]},"5":{"loc":{"start":{"line":82,"column":6},"end":{"line":89,"column":null}},"type":"if","locations":[{"start":{"line":82,"column":6},"end":{"line":89,"column":null}},{"start":{"line":82,"column":6},"end":{"line":89,"column":null}}]},"6":{"loc":{"start":{"line":84,"column":13},"end":{"line":89,"column":null}},"type":"if","locations":[{"start":{"line":84,"column":13},"end":{"line":89,"column":null}},{"start":{"line":84,"column":13},"end":{"line":89,"column":null}}]},"7":{"loc":{"start":{"line":84,"column":17},"end":{"line":84,"column":33}},"type":"binary-expr","locations":[{"start":{"line":84,"column":17},"end":{"line":84,"column":33}},{"start":{"line":84,"column":37},"end":{"line":84,"column":64}}]},"8":{"loc":{"start":{"line":86,"column":13},"end":{"line":89,"column":null}},"type":"if","locations":[{"start":{"line":86,"column":13},"end":{"line":89,"column":null}},{"start":{"line":86,"column":13},"end":{"line":89,"column":null}}]},"9":{"loc":{"start":{"line":91,"column":6},"end":{"line":103,"column":null}},"type":"if","locations":[{"start":{"line":91,"column":6},"end":{"line":103,"column":null}},{"start":{"line":91,"column":6},"end":{"line":103,"column":null}}]},"10":{"loc":{"start":{"line":91,"column":10},"end":{"line":91,"column":21}},"type":"binary-expr","locations":[{"start":{"line":91,"column":10},"end":{"line":91,"column":21}},{"start":{"line":91,"column":25},"end":{"line":91,"column":33}}]},"11":{"loc":{"start":{"line":92,"column":8},"end":{"line":99,"column":null}},"type":"if","locations":[{"start":{"line":92,"column":8},"end":{"line":99,"column":null}},{"start":{"line":92,"column":8},"end":{"line":99,"column":null}}]},"12":{"loc":{"start":{"line":100,"column":8},"end":{"line":102,"column":null}},"type":"if","locations":[{"start":{"line":100,"column":8},"end":{"line":102,"column":null}},{"start":{"line":100,"column":8},"end":{"line":102,"column":null}}]},"13":{"loc":{"start":{"line":110,"column":6},"end":{"line":116,"column":null}},"type":"if","locations":[{"start":{"line":110,"column":6},"end":{"line":116,"column":null}},{"start":{"line":110,"column":6},"end":{"line":116,"column":null}}]},"14":{"loc":{"start":{"line":110,"column":10},"end":{"line":110,"column":18}},"type":"binary-expr","locations":[{"start":{"line":110,"column":10},"end":{"line":110,"column":18}},{"start":{"line":110,"column":22},"end":{"line":110,"column":37}}]},"15":{"loc":{"start":{"line":118,"column":6},"end":{"line":121,"column":null}},"type":"if","locations":[{"start":{"line":118,"column":6},"end":{"line":121,"column":null}},{"start":{"line":118,"column":6},"end":{"line":121,"column":null}}]},"16":{"loc":{"start":{"line":125,"column":10},"end":{"line":131,"column":null}},"type":"if","locations":[{"start":{"line":125,"column":10},"end":{"line":131,"column":null}},{"start":{"line":125,"column":10},"end":{"line":131,"column":null}}]},"17":{"loc":{"start":{"line":127,"column":17},"end":{"line":131,"column":null}},"type":"if","locations":[{"start":{"line":127,"column":17},"end":{"line":131,"column":null}},{"start":{"line":127,"column":17},"end":{"line":131,"column":null}}]},"18":{"loc":{"start":{"line":135,"column":10},"end":{"line":139,"column":null}},"type":"if","locations":[{"start":{"line":135,"column":10},"end":{"line":139,"column":null}},{"start":{"line":135,"column":10},"end":{"line":139,"column":null}}]},"19":{"loc":{"start":{"line":135,"column":14},"end":{"line":135,"column":40}},"type":"binary-expr","locations":[{"start":{"line":135,"column":14},"end":{"line":135,"column":40}},{"start":{"line":135,"column":45},"end":{"line":135,"column":55}}]},"20":{"loc":{"start":{"line":146,"column":4},"end":{"line":148,"column":null}},"type":"if","locations":[{"start":{"line":146,"column":4},"end":{"line":148,"column":null}},{"start":{"line":146,"column":4},"end":{"line":148,"column":null}}]},"21":{"loc":{"start":{"line":167,"column":4},"end":{"line":172,"column":null}},"type":"if","locations":[{"start":{"line":167,"column":4},"end":{"line":172,"column":null}},{"start":{"line":167,"column":4},"end":{"line":172,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":3,"4":3,"5":3,"6":3,"7":2,"8":2,"9":2,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":4,"18":5,"19":2,"20":8,"21":8,"22":8,"23":8,"24":8,"25":0,"26":8,"27":8,"28":8,"29":8,"30":8,"31":2,"32":6,"33":4,"34":2,"35":0,"36":8,"37":4,"38":2,"39":2,"40":2,"41":4,"42":0,"43":8,"44":8,"45":60,"46":12,"47":12,"48":12,"49":12,"50":12,"51":3,"52":9,"53":9,"54":9,"55":6,"56":6,"57":0,"58":6,"59":3,"60":3,"61":0,"62":2,"63":2,"64":0,"65":2,"66":2,"67":2,"68":2,"69":2,"70":4,"71":4,"72":4,"73":4,"74":8,"75":12,"76":12,"77":2,"78":2,"79":2,"80":9,"81":9,"82":9,"83":9,"84":9,"85":2,"86":1,"87":1,"88":2,"89":2},"f":{"0":2,"1":3,"2":2,"3":2,"4":4,"5":5,"6":8,"7":12,"8":6,"9":3,"10":2},"b":{"0":[0,3],"1":[3,0],"2":[2,0],"3":[8,0],"4":[0,8],"5":[2,6],"6":[4,2],"7":[6,6],"8":[0,2],"9":[4,4],"10":[8,4],"11":[2,2],"12":[0,4],"13":[3,9],"14":[12,7],"15":[9,0],"16":[0,6],"17":[0,6],"18":[3,0],"19":[3,3],"20":[0,2],"21":[1,1]}}
}

@@ -35,2 +35,3 @@ /** Type-safe wrapper around Express router for REST APIs */

ajv?: Ajv.Ajv;
middlewareFns: express.RequestHandler[];
registrations: {

@@ -49,2 +50,12 @@ path: string;

registerEndpoint<Method extends HTTPVerb, Path extends PathsForMethod<API, Method>, Spec extends SafeKey<API[Path], Method> = SafeKey<API[Path], Method>>(method: Method, route: Path, handler: (params: ExtractRouteParams<Path>, body: SafeKey<Spec, 'request'>, request: ExpressRequest<Path, Spec>, response: ExpressResponse<Spec>) => Promise<Spec extends AnyEndpoint ? Spec['response'] : never>): void;
/**
* Add a "route-aware" middleware function.
*
* This runs after a route has been matched, but before the request body has been validated
* and before the request handler function runs. It's convenient to access
* req.params and req.route from this sort of middleware, e.g. to apply access controls.
*
* Like any middleware, this function should either handle the request or call next().
*/
useRouterMiddleware(fn: (request: ExpressRequest<keyof API & string, SafeKey<API[keyof API], HTTPVerb>>, response: express.Response, next: express.NextFunction) => void): this;
/** Get a validation function for request bodies for the endpoint, or null if not applicable. */

@@ -51,0 +62,0 @@ getValidator(route: string, method: HTTPVerb, property: 'request' | 'query'): Ajv.ValidateFunction | null;

@@ -81,2 +81,3 @@ "use strict";

this.registrations = [];
this.middlewareFns = [];
}

@@ -89,3 +90,3 @@ /** Register a handler on the router for the given path and verb */

this.registrations.push({ path: route, method: method });
this.router[method](route, function () {
var handlerFn = function () {
var _a = [];

@@ -143,4 +144,29 @@ for (var _i = 0; _i < arguments.length; _i++) {

});
});
};
var _loop_1 = function (i) {
var middlewareFn = this_1.middlewareFns[i];
var prevHandlerFn = handlerFn;
handlerFn = function (req, res, next) {
return middlewareFn(req, res, function () { return prevHandlerFn(req, res, next); });
};
};
var this_1 = this;
for (var i = this.middlewareFns.length - 1; i >= 0; i--) {
_loop_1(i);
}
this.router[method](route, handlerFn);
};
/**
* Add a "route-aware" middleware function.
*
* This runs after a route has been matched, but before the request body has been validated
* and before the request handler function runs. It's convenient to access
* req.params and req.route from this sort of middleware, e.g. to apply access controls.
*
* Like any middleware, this function should either handle the request or call next().
*/
TypedRouter.prototype.useRouterMiddleware = function (fn) {
this.middlewareFns.push(fn);
return this;
};
/** Get a validation function for request bodies for the endpoint, or null if not applicable. */

@@ -147,0 +173,0 @@ TypedRouter.prototype.getValidator = function (route, method, property) {

{
"name": "crosswalk",
"version": "1.4.1",
"version": "1.5.0-beta",
"description": "Type-safe express routing with TypeScript",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -202,2 +202,28 @@ # Crosswalk: safe routes for Express and TypeScript

### Route-aware middleware
Express middlware runs before you know which route is going to match.
This means that you can't access route params, or the path that was matched.
You _can_ access these properties if you register a [`finish`][finish] handler, but by that point
the request has been served and you can't do anything about it.
crosswalk lets you register middleware that runs after a route has been matched, but before the
request has been handled. This is often a convenient place to apply access controls.
For example:
```ts
typedRouter.useRouterMiddleware((req, res, next) => {
const {params} = req;
if ('userId' in params && params.userId === 'badguy') {
res.status(403).send('Forbidden');
} else {
next();
}
});
```
You can also access `req.route` in this context.
For example, `req.route.path` might be `/users/:userId` in the previous example.
### Generating API docs

@@ -394,1 +420,2 @@

[apollo]: https://www.apollographql.com/
[finish]: https://nodejs.org/api/http.html#http_event_finish

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc