koa-better-error-handler
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -1,1 +0,1 @@ | ||
{"/Users/nexus/Public/koa-better-error-handler/lib/index.js":{"path":"/Users/nexus/Public/koa-better-error-handler/lib/index.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":5,"column":3}},"1":{"start":{"line":7,"column":19},"end":{"line":7,"column":55}},"2":{"start":{"line":9,"column":20},"end":{"line":9,"column":56}},"3":{"start":{"line":11,"column":17},"end":{"line":11,"column":64}},"4":{"start":{"line":13,"column":18},"end":{"line":13,"column":52}},"5":{"start":{"line":15,"column":25},"end":{"line":15,"column":74}},"6":{"start":{"line":17,"column":25},"end":{"line":17,"column":67}},"7":{"start":{"line":19,"column":10},"end":{"line":19,"column":23}},"8":{"start":{"line":21,"column":11},"end":{"line":21,"column":38}},"9":{"start":{"line":23,"column":13},"end":{"line":23,"column":29}},"10":{"start":{"line":25,"column":14},"end":{"line":25,"column":44}},"11":{"start":{"line":27,"column":14},"end":{"line":27,"column":31}},"12":{"start":{"line":29,"column":15},"end":{"line":29,"column":46}},"13":{"start":{"line":31,"column":12},"end":{"line":31,"column":27}},"14":{"start":{"line":33,"column":13},"end":{"line":33,"column":42}},"15":{"start":{"line":35,"column":10},"end":{"line":35,"column":23}},"16":{"start":{"line":37,"column":11},"end":{"line":37,"column":38}},"17":{"start":{"line":39,"column":12},"end":{"line":39,"column":27}},"18":{"start":{"line":41,"column":13},"end":{"line":41,"column":42}},"19":{"start":{"line":44,"column":2},"end":{"line":44,"column":56}},"20":{"start":{"line":47,"column":11},"end":{"line":49,"column":1}},"21":{"start":{"line":53,"column":11},"end":{"line":53,"column":92}},"22":{"start":{"line":54,"column":11},"end":{"line":54,"column":92}},"23":{"start":{"line":56,"column":12},"end":{"line":56,"column":59}},"24":{"start":{"line":66,"column":0},"end":{"line":320,"column":4}},"25":{"start":{"line":67,"column":13},"end":{"line":313,"column":5}},"26":{"start":{"line":69,"column":4},"end":{"line":312,"column":44}},"27":{"start":{"line":70,"column":6},"end":{"line":311,"column":7}},"28":{"start":{"line":71,"column":8},"end":{"line":310,"column":9}},"29":{"start":{"line":73,"column":12},"end":{"line":76,"column":13}},"30":{"start":{"line":74,"column":14},"end":{"line":74,"column":32}},"31":{"start":{"line":75,"column":14},"end":{"line":75,"column":20}},"32":{"start":{"line":78,"column":12},"end":{"line":78,"column":45}},"33":{"start":{"line":82,"column":12},"end":{"line":82,"column":69}},"34":{"start":{"line":82,"column":48},"end":{"line":82,"column":69}},"35":{"start":{"line":84,"column":12},"end":{"line":84,"column":58}},"36":{"start":{"line":86,"column":12},"end":{"line":90,"column":13}},"37":{"start":{"line":87,"column":14},"end":{"line":87,"column":55}},"38":{"start":{"line":88,"column":14},"end":{"line":88,"column":31}},"39":{"start":{"line":89,"column":14},"end":{"line":89,"column":74}},"40":{"start":{"line":93,"column":12},"end":{"line":93,"column":50}},"41":{"start":{"line":96,"column":12},"end":{"line":96,"column":44}},"42":{"start":{"line":98,"column":12},"end":{"line":98,"column":95}},"43":{"start":{"line":98,"column":62},"end":{"line":98,"column":95}},"44":{"start":{"line":102,"column":12},"end":{"line":102,"column":142}},"45":{"start":{"line":102,"column":107},"end":{"line":102,"column":142}},"46":{"start":{"line":104,"column":12},"end":{"line":104,"column":73}},"47":{"start":{"line":104,"column":56},"end":{"line":104,"column":73}},"48":{"start":{"line":107,"column":12},"end":{"line":107,"column":63}},"49":{"start":{"line":109,"column":12},"end":{"line":109,"column":40}},"50":{"start":{"line":112,"column":12},"end":{"line":112,"column":256}},"51":{"start":{"line":114,"column":12},"end":{"line":114,"column":46}},"52":{"start":{"line":117,"column":12},"end":{"line":117,"column":65}},"53":{"start":{"line":119,"column":12},"end":{"line":119,"column":42}},"54":{"start":{"line":122,"column":12},"end":{"line":122,"column":53}},"55":{"start":{"line":127,"column":12},"end":{"line":127,"column":92}},"56":{"start":{"line":128,"column":12},"end":{"line":128,"column":86}},"57":{"start":{"line":130,"column":12},"end":{"line":130,"column":53}},"58":{"start":{"line":132,"column":12},"end":{"line":132,"column":46}},"59":{"start":{"line":138,"column":12},"end":{"line":141,"column":13}},"60":{"start":{"line":139,"column":14},"end":{"line":139,"column":33}},"61":{"start":{"line":140,"column":14},"end":{"line":140,"column":20}},"62":{"start":{"line":143,"column":12},"end":{"line":143,"column":64}},"63":{"start":{"line":144,"column":12},"end":{"line":144,"column":34}},"64":{"start":{"line":145,"column":12},"end":{"line":145,"column":45}},"65":{"start":{"line":150,"column":12},"end":{"line":150,"column":47}},"66":{"start":{"line":151,"column":12},"end":{"line":151,"column":68}},"67":{"start":{"line":152,"column":12},"end":{"line":152,"column":42}},"68":{"start":{"line":153,"column":12},"end":{"line":153,"column":66}},"69":{"start":{"line":155,"column":12},"end":{"line":155,"column":39}},"70":{"start":{"line":157,"column":12},"end":{"line":157,"column":31}},"71":{"start":{"line":158,"column":12},"end":{"line":158,"column":91}},"72":{"start":{"line":159,"column":12},"end":{"line":159,"column":18}},"73":{"start":{"line":163,"column":12},"end":{"line":163,"column":31}},"74":{"start":{"line":165,"column":12},"end":{"line":168,"column":13}},"75":{"start":{"line":166,"column":14},"end":{"line":166,"column":33}},"76":{"start":{"line":167,"column":14},"end":{"line":167,"column":20}},"77":{"start":{"line":170,"column":12},"end":{"line":173,"column":13}},"78":{"start":{"line":171,"column":14},"end":{"line":171,"column":33}},"79":{"start":{"line":172,"column":14},"end":{"line":172,"column":20}},"80":{"start":{"line":175,"column":12},"end":{"line":175,"column":31}},"81":{"start":{"line":177,"column":12},"end":{"line":177,"column":40}},"82":{"start":{"line":178,"column":12},"end":{"line":178,"column":31}},"83":{"start":{"line":179,"column":12},"end":{"line":179,"column":38}},"84":{"start":{"line":182,"column":12},"end":{"line":182,"column":31}},"85":{"start":{"line":183,"column":12},"end":{"line":183,"column":18}},"86":{"start":{"line":186,"column":12},"end":{"line":186,"column":31}},"87":{"start":{"line":187,"column":12},"end":{"line":187,"column":48}},"88":{"start":{"line":189,"column":12},"end":{"line":189,"column":70}},"89":{"start":{"line":190,"column":12},"end":{"line":190,"column":29}},"90":{"start":{"line":193,"column":12},"end":{"line":193,"column":31}},"91":{"start":{"line":194,"column":12},"end":{"line":194,"column":18}},"92":{"start":{"line":197,"column":12},"end":{"line":197,"column":29}},"93":{"start":{"line":200,"column":12},"end":{"line":200,"column":31}},"94":{"start":{"line":201,"column":12},"end":{"line":201,"column":18}},"95":{"start":{"line":204,"column":12},"end":{"line":207,"column":13}},"96":{"start":{"line":205,"column":14},"end":{"line":205,"column":33}},"97":{"start":{"line":206,"column":14},"end":{"line":206,"column":20}},"98":{"start":{"line":212,"column":12},"end":{"line":212,"column":70}},"99":{"start":{"line":212,"column":28},"end":{"line":212,"column":70}},"100":{"start":{"line":215,"column":12},"end":{"line":215,"column":59}},"101":{"start":{"line":215,"column":26},"end":{"line":215,"column":59}},"102":{"start":{"line":219,"column":12},"end":{"line":222,"column":13}},"103":{"start":{"line":220,"column":14},"end":{"line":220,"column":33}},"104":{"start":{"line":221,"column":14},"end":{"line":221,"column":20}},"105":{"start":{"line":224,"column":12},"end":{"line":224,"column":31}},"106":{"start":{"line":226,"column":12},"end":{"line":226,"column":40}},"107":{"start":{"line":227,"column":12},"end":{"line":227,"column":31}},"108":{"start":{"line":228,"column":12},"end":{"line":228,"column":38}},"109":{"start":{"line":231,"column":12},"end":{"line":231,"column":31}},"110":{"start":{"line":232,"column":12},"end":{"line":232,"column":18}},"111":{"start":{"line":235,"column":12},"end":{"line":235,"column":31}},"112":{"start":{"line":236,"column":12},"end":{"line":236,"column":48}},"113":{"start":{"line":238,"column":12},"end":{"line":238,"column":70}},"114":{"start":{"line":239,"column":12},"end":{"line":239,"column":29}},"115":{"start":{"line":242,"column":12},"end":{"line":242,"column":31}},"116":{"start":{"line":243,"column":12},"end":{"line":243,"column":18}},"117":{"start":{"line":246,"column":12},"end":{"line":246,"column":29}},"118":{"start":{"line":249,"column":12},"end":{"line":249,"column":31}},"119":{"start":{"line":250,"column":12},"end":{"line":250,"column":18}},"120":{"start":{"line":255,"column":12},"end":{"line":255,"column":59}},"121":{"start":{"line":255,"column":26},"end":{"line":255,"column":59}},"122":{"start":{"line":260,"column":12},"end":{"line":263,"column":13}},"123":{"start":{"line":261,"column":14},"end":{"line":261,"column":33}},"124":{"start":{"line":262,"column":14},"end":{"line":262,"column":20}},"125":{"start":{"line":265,"column":12},"end":{"line":265,"column":31}},"126":{"start":{"line":266,"column":12},"end":{"line":266,"column":114}},"127":{"start":{"line":269,"column":12},"end":{"line":269,"column":89}},"128":{"start":{"line":287,"column":12},"end":{"line":287,"column":34}},"129":{"start":{"line":290,"column":12},"end":{"line":290,"column":48}},"130":{"start":{"line":293,"column":12},"end":{"line":293,"column":31}},"131":{"start":{"line":294,"column":12},"end":{"line":294,"column":69}},"132":{"start":{"line":295,"column":12},"end":{"line":295,"column":48}},"133":{"start":{"line":298,"column":12},"end":{"line":298,"column":31}},"134":{"start":{"line":299,"column":12},"end":{"line":299,"column":69}},"135":{"start":{"line":300,"column":12},"end":{"line":300,"column":48}},"136":{"start":{"line":304,"column":12},"end":{"line":304,"column":55}},"137":{"start":{"line":305,"column":12},"end":{"line":305,"column":36}},"138":{"start":{"line":309,"column":12},"end":{"line":309,"column":35}},"139":{"start":{"line":316,"column":4},"end":{"line":316,"column":39}},"140":{"start":{"line":319,"column":2},"end":{"line":319,"column":22}},"141":{"start":{"line":325,"column":2},"end":{"line":325,"column":49}},"142":{"start":{"line":325,"column":38},"end":{"line":325,"column":49}},"143":{"start":{"line":327,"column":2},"end":{"line":327,"column":17}},"144":{"start":{"line":331,"column":2},"end":{"line":336,"column":3}},"145":{"start":{"line":332,"column":4},"end":{"line":332,"column":65}},"146":{"start":{"line":334,"column":17},"end":{"line":334,"column":85}},"147":{"start":{"line":335,"column":4},"end":{"line":335,"column":127}},"148":{"start":{"line":338,"column":2},"end":{"line":338,"column":13}},"149":{"start":{"line":340,"column":0},"end":{"line":340,"column":36}}},"fnMap":{"0":{"name":"_interopRequireDefault","decl":{"start":{"line":43,"column":9},"end":{"line":43,"column":31}},"loc":{"start":{"line":43,"column":37},"end":{"line":45,"column":1}},"line":43},"1":{"name":"(anonymous_1)","decl":{"start":{"line":66,"column":18},"end":{"line":66,"column":19}},"loc":{"start":{"line":66,"column":30},"end":{"line":320,"column":1}},"line":66},"2":{"name":"_callee","decl":{"start":{"line":67,"column":81},"end":{"line":67,"column":88}},"loc":{"start":{"line":67,"column":94},"end":{"line":313,"column":3}},"line":67},"3":{"name":"_callee$","decl":{"start":{"line":69,"column":47},"end":{"line":69,"column":55}},"loc":{"start":{"line":69,"column":66},"end":{"line":312,"column":5}},"line":69},"4":{"name":"errorHandler","decl":{"start":{"line":315,"column":11},"end":{"line":315,"column":23}},"loc":{"start":{"line":315,"column":28},"end":{"line":317,"column":3}},"line":315},"5":{"name":"parseValidationError","decl":{"start":{"line":322,"column":9},"end":{"line":322,"column":29}},"loc":{"start":{"line":322,"column":40},"end":{"line":339,"column":1}},"line":322}},"branchMap":{"0":{"loc":{"start":{"line":44,"column":9},"end":{"line":44,"column":55}},"type":"cond-expr","locations":[{"start":{"line":44,"column":33},"end":{"line":44,"column":36}},{"start":{"line":44,"column":39},"end":{"line":44,"column":55}}],"line":44},"1":{"loc":{"start":{"line":44,"column":9},"end":{"line":44,"column":30}},"type":"binary-expr","locations":[{"start":{"line":44,"column":9},"end":{"line":44,"column":12}},{"start":{"line":44,"column":16},"end":{"line":44,"column":30}}],"line":44},"2":{"loc":{"start":{"line":71,"column":8},"end":{"line":310,"column":9}},"type":"switch","locations":[{"start":{"line":72,"column":10},"end":{"line":78,"column":45}},{"start":{"line":80,"column":10},"end":{"line":145,"column":45}},{"start":{"line":147,"column":10},"end":{"line":159,"column":18}},{"start":{"line":161,"column":10},"end":{"line":179,"column":38}},{"start":{"line":181,"column":10},"end":{"line":183,"column":18}},{"start":{"line":185,"column":10},"end":{"line":190,"column":29}},{"start":{"line":192,"column":10},"end":{"line":194,"column":18}},{"start":{"line":196,"column":10},"end":{"line":197,"column":29}},{"start":{"line":199,"column":10},"end":{"line":201,"column":18}},{"start":{"line":203,"column":10},"end":{"line":228,"column":38}},{"start":{"line":230,"column":10},"end":{"line":232,"column":18}},{"start":{"line":234,"column":10},"end":{"line":239,"column":29}},{"start":{"line":241,"column":10},"end":{"line":243,"column":18}},{"start":{"line":245,"column":10},"end":{"line":246,"column":29}},{"start":{"line":248,"column":10},"end":{"line":250,"column":18}},{"start":{"line":252,"column":10},"end":{"line":266,"column":114}},{"start":{"line":268,"column":10},"end":{"line":269,"column":89}},{"start":{"line":271,"column":10},"end":{"line":287,"column":34}},{"start":{"line":289,"column":10},"end":{"line":290,"column":48}},{"start":{"line":292,"column":10},"end":{"line":295,"column":48}},{"start":{"line":297,"column":10},"end":{"line":300,"column":48}},{"start":{"line":302,"column":10},"end":{"line":305,"column":36}},{"start":{"line":307,"column":10},"end":{"line":307,"column":18}},{"start":{"line":308,"column":10},"end":{"line":309,"column":35}}],"line":71},"3":{"loc":{"start":{"line":73,"column":12},"end":{"line":76,"column":13}},"type":"if","locations":[{"start":{"line":73,"column":12},"end":{"line":76,"column":13}},{"start":{"line":73,"column":12},"end":{"line":76,"column":13}}],"line":73},"4":{"loc":{"start":{"line":82,"column":12},"end":{"line":82,"column":69}},"type":"if","locations":[{"start":{"line":82,"column":12},"end":{"line":82,"column":69}},{"start":{"line":82,"column":12},"end":{"line":82,"column":69}}],"line":82},"5":{"loc":{"start":{"line":86,"column":12},"end":{"line":90,"column":13}},"type":"if","locations":[{"start":{"line":86,"column":12},"end":{"line":90,"column":13}},{"start":{"line":86,"column":12},"end":{"line":90,"column":13}}],"line":86},"6":{"loc":{"start":{"line":98,"column":12},"end":{"line":98,"column":95}},"type":"if","locations":[{"start":{"line":98,"column":12},"end":{"line":98,"column":95}},{"start":{"line":98,"column":12},"end":{"line":98,"column":95}}],"line":98},"7":{"loc":{"start":{"line":98,"column":16},"end":{"line":98,"column":60}},"type":"binary-expr","locations":[{"start":{"line":98,"column":16},"end":{"line":98,"column":46}},{"start":{"line":98,"column":50},"end":{"line":98,"column":60}}],"line":98},"8":{"loc":{"start":{"line":102,"column":12},"end":{"line":102,"column":142}},"type":"if","locations":[{"start":{"line":102,"column":12},"end":{"line":102,"column":142}},{"start":{"line":102,"column":12},"end":{"line":102,"column":142}}],"line":102},"9":{"loc":{"start":{"line":102,"column":16},"end":{"line":102,"column":105}},"type":"binary-expr","locations":[{"start":{"line":102,"column":16},"end":{"line":102,"column":53}},{"start":{"line":102,"column":57},"end":{"line":102,"column":105}}],"line":102},"10":{"loc":{"start":{"line":104,"column":12},"end":{"line":104,"column":73}},"type":"if","locations":[{"start":{"line":104,"column":12},"end":{"line":104,"column":73}},{"start":{"line":104,"column":12},"end":{"line":104,"column":73}}],"line":104},"11":{"loc":{"start":{"line":112,"column":26},"end":{"line":112,"column":255}},"type":"binary-expr","locations":[{"start":{"line":112,"column":26},"end":{"line":112,"column":65}},{"start":{"line":112,"column":69},"end":{"line":112,"column":113}},{"start":{"line":112,"column":117},"end":{"line":112,"column":158}},{"start":{"line":112,"column":162},"end":{"line":112,"column":201}},{"start":{"line":112,"column":205},"end":{"line":112,"column":255}}],"line":112},"12":{"loc":{"start":{"line":127,"column":74},"end":{"line":127,"column":91}},"type":"binary-expr","locations":[{"start":{"line":127,"column":74},"end":{"line":127,"column":84}},{"start":{"line":127,"column":88},"end":{"line":127,"column":91}}],"line":127},"13":{"loc":{"start":{"line":138,"column":12},"end":{"line":141,"column":13}},"type":"if","locations":[{"start":{"line":138,"column":12},"end":{"line":141,"column":13}},{"start":{"line":138,"column":12},"end":{"line":141,"column":13}}],"line":138},"14":{"loc":{"start":{"line":138,"column":18},"end":{"line":138,"column":51}},"type":"binary-expr","locations":[{"start":{"line":138,"column":18},"end":{"line":138,"column":33}},{"start":{"line":138,"column":37},"end":{"line":138,"column":51}}],"line":138},"15":{"loc":{"start":{"line":158,"column":28},"end":{"line":158,"column":90}},"type":"cond-expr","locations":[{"start":{"line":158,"column":53},"end":{"line":158,"column":55}},{"start":{"line":158,"column":58},"end":{"line":158,"column":90}}],"line":158},"16":{"loc":{"start":{"line":158,"column":58},"end":{"line":158,"column":90}},"type":"cond-expr","locations":[{"start":{"line":158,"column":83},"end":{"line":158,"column":85}},{"start":{"line":158,"column":88},"end":{"line":158,"column":90}}],"line":158},"17":{"loc":{"start":{"line":165,"column":12},"end":{"line":168,"column":13}},"type":"if","locations":[{"start":{"line":165,"column":12},"end":{"line":168,"column":13}},{"start":{"line":165,"column":12},"end":{"line":168,"column":13}}],"line":165},"18":{"loc":{"start":{"line":170,"column":12},"end":{"line":173,"column":13}},"type":"if","locations":[{"start":{"line":170,"column":12},"end":{"line":173,"column":13}},{"start":{"line":170,"column":12},"end":{"line":173,"column":13}}],"line":170},"19":{"loc":{"start":{"line":204,"column":12},"end":{"line":207,"column":13}},"type":"if","locations":[{"start":{"line":204,"column":12},"end":{"line":207,"column":13}},{"start":{"line":204,"column":12},"end":{"line":207,"column":13}}],"line":204},"20":{"loc":{"start":{"line":204,"column":18},"end":{"line":204,"column":51}},"type":"binary-expr","locations":[{"start":{"line":204,"column":18},"end":{"line":204,"column":28}},{"start":{"line":204,"column":32},"end":{"line":204,"column":51}}],"line":204},"21":{"loc":{"start":{"line":212,"column":12},"end":{"line":212,"column":70}},"type":"if","locations":[{"start":{"line":212,"column":12},"end":{"line":212,"column":70}},{"start":{"line":212,"column":12},"end":{"line":212,"column":70}}],"line":212},"22":{"loc":{"start":{"line":215,"column":12},"end":{"line":215,"column":59}},"type":"if","locations":[{"start":{"line":215,"column":12},"end":{"line":215,"column":59}},{"start":{"line":215,"column":12},"end":{"line":215,"column":59}}],"line":215},"23":{"loc":{"start":{"line":219,"column":12},"end":{"line":222,"column":13}},"type":"if","locations":[{"start":{"line":219,"column":12},"end":{"line":222,"column":13}},{"start":{"line":219,"column":12},"end":{"line":222,"column":13}}],"line":219},"24":{"loc":{"start":{"line":255,"column":12},"end":{"line":255,"column":59}},"type":"if","locations":[{"start":{"line":255,"column":12},"end":{"line":255,"column":59}},{"start":{"line":255,"column":12},"end":{"line":255,"column":59}}],"line":255},"25":{"loc":{"start":{"line":260,"column":12},"end":{"line":263,"column":13}},"type":"if","locations":[{"start":{"line":260,"column":12},"end":{"line":263,"column":13}},{"start":{"line":260,"column":12},"end":{"line":263,"column":13}}],"line":260},"26":{"loc":{"start":{"line":260,"column":18},"end":{"line":260,"column":94}},"type":"binary-expr","locations":[{"start":{"line":260,"column":18},"end":{"line":260,"column":35}},{"start":{"line":260,"column":39},"end":{"line":260,"column":53}},{"start":{"line":260,"column":57},"end":{"line":260,"column":69}},{"start":{"line":260,"column":73},"end":{"line":260,"column":94}}],"line":260},"27":{"loc":{"start":{"line":325,"column":2},"end":{"line":325,"column":49}},"type":"if","locations":[{"start":{"line":325,"column":2},"end":{"line":325,"column":49}},{"start":{"line":325,"column":2},"end":{"line":325,"column":49}}],"line":325},"28":{"loc":{"start":{"line":331,"column":2},"end":{"line":336,"column":3}},"type":"if","locations":[{"start":{"line":331,"column":2},"end":{"line":336,"column":3}},{"start":{"line":331,"column":2},"end":{"line":336,"column":3}}],"line":331},"29":{"loc":{"start":{"line":335,"column":18},"end":{"line":335,"column":126}},"type":"cond-expr","locations":[{"start":{"line":335,"column":28},"end":{"line":335,"column":45}},{"start":{"line":335,"column":48},"end":{"line":335,"column":126}}],"line":335}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":9,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":246,"27":492,"28":983,"29":246,"30":123,"31":123,"32":123,"33":123,"34":0,"35":123,"36":123,"37":0,"38":0,"39":0,"40":123,"41":123,"42":123,"43":0,"44":123,"45":0,"46":123,"47":0,"48":123,"49":123,"50":123,"51":123,"52":123,"53":123,"54":123,"55":123,"56":123,"57":123,"58":123,"59":123,"60":123,"61":123,"62":0,"63":0,"64":0,"65":123,"66":123,"67":123,"68":123,"69":123,"70":123,"71":123,"72":123,"73":41,"74":41,"75":40,"76":40,"77":1,"78":1,"79":1,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":1,"93":1,"94":1,"95":40,"96":0,"97":0,"98":40,"99":40,"100":40,"101":0,"102":40,"103":40,"104":40,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":40,"118":40,"119":40,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":41,"130":41,"131":41,"132":41,"133":41,"134":41,"135":41,"136":123,"137":123,"138":246,"139":246,"140":1,"141":123,"142":123,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":1},"f":{"0":9,"1":1,"2":246,"3":492,"4":246,"5":123},"b":{"0":[2,7],"1":[9,9],"2":[246,123,123,41,0,0,0,1,1,40,0,0,0,40,40,0,0,0,41,41,41,123,123,246],"3":[123,123],"4":[0,123],"5":[0,123],"6":[0,123],"7":[123,123],"8":[0,123],"9":[123,0],"10":[0,123],"11":[123,0,0,0,0],"12":[123,0],"13":[123,0],"14":[123,123],"15":[41,82],"16":[41,41],"17":[40,1],"18":[1,0],"19":[0,40],"20":[40,0],"21":[40,0],"22":[0,40],"23":[40,0],"24":[0,0],"25":[0,0],"26":[0,0,0,0],"27":[123,0],"28":[0,0],"29":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"6227e5c782bc96a8f126e5e9a1e2f48d847506ce"}} | ||
{"/Users/nexus/Public/koa-better-error-handler/lib/index.js":{"path":"/Users/nexus/Public/koa-better-error-handler/lib/index.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":5,"column":3}},"1":{"start":{"line":7,"column":19},"end":{"line":7,"column":55}},"2":{"start":{"line":9,"column":20},"end":{"line":9,"column":56}},"3":{"start":{"line":11,"column":17},"end":{"line":11,"column":64}},"4":{"start":{"line":13,"column":18},"end":{"line":13,"column":52}},"5":{"start":{"line":15,"column":25},"end":{"line":15,"column":74}},"6":{"start":{"line":17,"column":25},"end":{"line":17,"column":67}},"7":{"start":{"line":19,"column":18},"end":{"line":19,"column":46}},"8":{"start":{"line":21,"column":19},"end":{"line":21,"column":54}},"9":{"start":{"line":23,"column":10},"end":{"line":23,"column":23}},"10":{"start":{"line":25,"column":11},"end":{"line":25,"column":38}},"11":{"start":{"line":27,"column":13},"end":{"line":27,"column":29}},"12":{"start":{"line":29,"column":14},"end":{"line":29,"column":44}},"13":{"start":{"line":31,"column":14},"end":{"line":31,"column":31}},"14":{"start":{"line":33,"column":15},"end":{"line":33,"column":46}},"15":{"start":{"line":35,"column":12},"end":{"line":35,"column":27}},"16":{"start":{"line":37,"column":13},"end":{"line":37,"column":42}},"17":{"start":{"line":39,"column":10},"end":{"line":39,"column":23}},"18":{"start":{"line":41,"column":11},"end":{"line":41,"column":38}},"19":{"start":{"line":43,"column":12},"end":{"line":43,"column":27}},"20":{"start":{"line":45,"column":13},"end":{"line":45,"column":42}},"21":{"start":{"line":48,"column":2},"end":{"line":48,"column":56}},"22":{"start":{"line":51,"column":11},"end":{"line":53,"column":1}},"23":{"start":{"line":57,"column":11},"end":{"line":57,"column":92}},"24":{"start":{"line":58,"column":11},"end":{"line":58,"column":92}},"25":{"start":{"line":60,"column":12},"end":{"line":60,"column":59}},"26":{"start":{"line":70,"column":0},"end":{"line":323,"column":4}},"27":{"start":{"line":71,"column":13},"end":{"line":316,"column":5}},"28":{"start":{"line":73,"column":4},"end":{"line":315,"column":44}},"29":{"start":{"line":74,"column":6},"end":{"line":314,"column":7}},"30":{"start":{"line":75,"column":8},"end":{"line":313,"column":9}},"31":{"start":{"line":77,"column":12},"end":{"line":80,"column":13}},"32":{"start":{"line":78,"column":14},"end":{"line":78,"column":32}},"33":{"start":{"line":79,"column":14},"end":{"line":79,"column":20}},"34":{"start":{"line":82,"column":12},"end":{"line":82,"column":45}},"35":{"start":{"line":86,"column":12},"end":{"line":86,"column":69}},"36":{"start":{"line":86,"column":48},"end":{"line":86,"column":69}},"37":{"start":{"line":88,"column":12},"end":{"line":88,"column":58}},"38":{"start":{"line":90,"column":12},"end":{"line":94,"column":13}},"39":{"start":{"line":91,"column":14},"end":{"line":91,"column":55}},"40":{"start":{"line":92,"column":14},"end":{"line":92,"column":31}},"41":{"start":{"line":93,"column":14},"end":{"line":93,"column":74}},"42":{"start":{"line":97,"column":12},"end":{"line":97,"column":50}},"43":{"start":{"line":100,"column":12},"end":{"line":100,"column":44}},"44":{"start":{"line":102,"column":12},"end":{"line":102,"column":95}},"45":{"start":{"line":102,"column":62},"end":{"line":102,"column":95}},"46":{"start":{"line":106,"column":12},"end":{"line":106,"column":142}},"47":{"start":{"line":106,"column":107},"end":{"line":106,"column":142}},"48":{"start":{"line":108,"column":12},"end":{"line":108,"column":73}},"49":{"start":{"line":108,"column":56},"end":{"line":108,"column":73}},"50":{"start":{"line":111,"column":12},"end":{"line":111,"column":63}},"51":{"start":{"line":113,"column":12},"end":{"line":113,"column":40}},"52":{"start":{"line":116,"column":12},"end":{"line":116,"column":256}},"53":{"start":{"line":118,"column":12},"end":{"line":118,"column":46}},"54":{"start":{"line":121,"column":12},"end":{"line":121,"column":65}},"55":{"start":{"line":123,"column":12},"end":{"line":123,"column":42}},"56":{"start":{"line":126,"column":12},"end":{"line":126,"column":53}},"57":{"start":{"line":131,"column":12},"end":{"line":131,"column":92}},"58":{"start":{"line":132,"column":12},"end":{"line":132,"column":86}},"59":{"start":{"line":134,"column":12},"end":{"line":134,"column":53}},"60":{"start":{"line":136,"column":12},"end":{"line":136,"column":46}},"61":{"start":{"line":142,"column":12},"end":{"line":145,"column":13}},"62":{"start":{"line":143,"column":14},"end":{"line":143,"column":33}},"63":{"start":{"line":144,"column":14},"end":{"line":144,"column":20}},"64":{"start":{"line":147,"column":12},"end":{"line":147,"column":64}},"65":{"start":{"line":148,"column":12},"end":{"line":148,"column":34}},"66":{"start":{"line":149,"column":12},"end":{"line":149,"column":45}},"67":{"start":{"line":154,"column":12},"end":{"line":154,"column":52}},"68":{"start":{"line":155,"column":12},"end":{"line":155,"column":52}},"69":{"start":{"line":156,"column":12},"end":{"line":156,"column":54}},"70":{"start":{"line":157,"column":12},"end":{"line":157,"column":78}},"71":{"start":{"line":158,"column":12},"end":{"line":158,"column":83}},"72":{"start":{"line":160,"column":12},"end":{"line":160,"column":39}},"73":{"start":{"line":162,"column":12},"end":{"line":162,"column":31}},"74":{"start":{"line":163,"column":12},"end":{"line":163,"column":91}},"75":{"start":{"line":164,"column":12},"end":{"line":164,"column":18}},"76":{"start":{"line":167,"column":12},"end":{"line":167,"column":31}},"77":{"start":{"line":169,"column":12},"end":{"line":172,"column":13}},"78":{"start":{"line":170,"column":14},"end":{"line":170,"column":33}},"79":{"start":{"line":171,"column":14},"end":{"line":171,"column":20}},"80":{"start":{"line":174,"column":12},"end":{"line":177,"column":13}},"81":{"start":{"line":175,"column":14},"end":{"line":175,"column":33}},"82":{"start":{"line":176,"column":14},"end":{"line":176,"column":20}},"83":{"start":{"line":179,"column":12},"end":{"line":179,"column":31}},"84":{"start":{"line":181,"column":12},"end":{"line":181,"column":40}},"85":{"start":{"line":182,"column":12},"end":{"line":182,"column":31}},"86":{"start":{"line":183,"column":12},"end":{"line":183,"column":38}},"87":{"start":{"line":186,"column":12},"end":{"line":186,"column":31}},"88":{"start":{"line":187,"column":12},"end":{"line":187,"column":18}},"89":{"start":{"line":190,"column":12},"end":{"line":190,"column":31}},"90":{"start":{"line":191,"column":12},"end":{"line":191,"column":48}},"91":{"start":{"line":193,"column":12},"end":{"line":193,"column":70}},"92":{"start":{"line":194,"column":12},"end":{"line":194,"column":29}},"93":{"start":{"line":197,"column":12},"end":{"line":197,"column":31}},"94":{"start":{"line":198,"column":12},"end":{"line":198,"column":18}},"95":{"start":{"line":201,"column":12},"end":{"line":201,"column":29}},"96":{"start":{"line":204,"column":12},"end":{"line":204,"column":31}},"97":{"start":{"line":205,"column":12},"end":{"line":205,"column":18}},"98":{"start":{"line":208,"column":12},"end":{"line":211,"column":13}},"99":{"start":{"line":209,"column":14},"end":{"line":209,"column":33}},"100":{"start":{"line":210,"column":14},"end":{"line":210,"column":20}},"101":{"start":{"line":216,"column":12},"end":{"line":216,"column":70}},"102":{"start":{"line":216,"column":28},"end":{"line":216,"column":70}},"103":{"start":{"line":219,"column":12},"end":{"line":219,"column":59}},"104":{"start":{"line":219,"column":26},"end":{"line":219,"column":59}},"105":{"start":{"line":223,"column":12},"end":{"line":226,"column":13}},"106":{"start":{"line":224,"column":14},"end":{"line":224,"column":33}},"107":{"start":{"line":225,"column":14},"end":{"line":225,"column":20}},"108":{"start":{"line":228,"column":12},"end":{"line":228,"column":31}},"109":{"start":{"line":230,"column":12},"end":{"line":230,"column":40}},"110":{"start":{"line":231,"column":12},"end":{"line":231,"column":31}},"111":{"start":{"line":232,"column":12},"end":{"line":232,"column":38}},"112":{"start":{"line":235,"column":12},"end":{"line":235,"column":31}},"113":{"start":{"line":236,"column":12},"end":{"line":236,"column":18}},"114":{"start":{"line":239,"column":12},"end":{"line":239,"column":31}},"115":{"start":{"line":240,"column":12},"end":{"line":240,"column":48}},"116":{"start":{"line":242,"column":12},"end":{"line":242,"column":70}},"117":{"start":{"line":243,"column":12},"end":{"line":243,"column":29}},"118":{"start":{"line":246,"column":12},"end":{"line":246,"column":31}},"119":{"start":{"line":247,"column":12},"end":{"line":247,"column":18}},"120":{"start":{"line":250,"column":12},"end":{"line":250,"column":29}},"121":{"start":{"line":253,"column":12},"end":{"line":253,"column":31}},"122":{"start":{"line":254,"column":12},"end":{"line":254,"column":18}},"123":{"start":{"line":258,"column":12},"end":{"line":258,"column":59}},"124":{"start":{"line":258,"column":26},"end":{"line":258,"column":59}},"125":{"start":{"line":263,"column":12},"end":{"line":266,"column":13}},"126":{"start":{"line":264,"column":14},"end":{"line":264,"column":33}},"127":{"start":{"line":265,"column":14},"end":{"line":265,"column":20}},"128":{"start":{"line":268,"column":12},"end":{"line":268,"column":31}},"129":{"start":{"line":269,"column":12},"end":{"line":269,"column":114}},"130":{"start":{"line":272,"column":12},"end":{"line":272,"column":89}},"131":{"start":{"line":290,"column":12},"end":{"line":290,"column":34}},"132":{"start":{"line":293,"column":12},"end":{"line":293,"column":48}},"133":{"start":{"line":296,"column":12},"end":{"line":296,"column":31}},"134":{"start":{"line":297,"column":12},"end":{"line":297,"column":69}},"135":{"start":{"line":298,"column":12},"end":{"line":298,"column":48}},"136":{"start":{"line":301,"column":12},"end":{"line":301,"column":31}},"137":{"start":{"line":302,"column":12},"end":{"line":302,"column":69}},"138":{"start":{"line":303,"column":12},"end":{"line":303,"column":48}},"139":{"start":{"line":307,"column":12},"end":{"line":307,"column":55}},"140":{"start":{"line":308,"column":12},"end":{"line":308,"column":36}},"141":{"start":{"line":312,"column":12},"end":{"line":312,"column":35}},"142":{"start":{"line":319,"column":4},"end":{"line":319,"column":39}},"143":{"start":{"line":322,"column":2},"end":{"line":322,"column":22}},"144":{"start":{"line":327,"column":2},"end":{"line":327,"column":49}},"145":{"start":{"line":327,"column":38},"end":{"line":327,"column":49}},"146":{"start":{"line":329,"column":2},"end":{"line":329,"column":17}},"147":{"start":{"line":333,"column":2},"end":{"line":341,"column":5}},"148":{"start":{"line":334,"column":4},"end":{"line":337,"column":5}},"149":{"start":{"line":335,"column":6},"end":{"line":335,"column":69}},"150":{"start":{"line":336,"column":6},"end":{"line":336,"column":19}},"151":{"start":{"line":338,"column":4},"end":{"line":338,"column":114}},"152":{"start":{"line":339,"column":4},"end":{"line":339,"column":67}},"153":{"start":{"line":340,"column":4},"end":{"line":340,"column":17}},"154":{"start":{"line":345,"column":2},"end":{"line":350,"column":3}},"155":{"start":{"line":346,"column":4},"end":{"line":346,"column":65}},"156":{"start":{"line":348,"column":17},"end":{"line":348,"column":85}},"157":{"start":{"line":349,"column":4},"end":{"line":349,"column":127}},"158":{"start":{"line":352,"column":2},"end":{"line":352,"column":13}},"159":{"start":{"line":354,"column":0},"end":{"line":354,"column":36}}},"fnMap":{"0":{"name":"_interopRequireDefault","decl":{"start":{"line":47,"column":9},"end":{"line":47,"column":31}},"loc":{"start":{"line":47,"column":37},"end":{"line":49,"column":1}},"line":47},"1":{"name":"(anonymous_1)","decl":{"start":{"line":70,"column":18},"end":{"line":70,"column":19}},"loc":{"start":{"line":70,"column":30},"end":{"line":323,"column":1}},"line":70},"2":{"name":"_callee","decl":{"start":{"line":71,"column":95},"end":{"line":71,"column":102}},"loc":{"start":{"line":71,"column":108},"end":{"line":316,"column":3}},"line":71},"3":{"name":"_callee$","decl":{"start":{"line":73,"column":47},"end":{"line":73,"column":55}},"loc":{"start":{"line":73,"column":66},"end":{"line":315,"column":5}},"line":73},"4":{"name":"errorHandler","decl":{"start":{"line":318,"column":11},"end":{"line":318,"column":23}},"loc":{"start":{"line":318,"column":28},"end":{"line":320,"column":3}},"line":318},"5":{"name":"parseValidationError","decl":{"start":{"line":325,"column":9},"end":{"line":325,"column":29}},"loc":{"start":{"line":325,"column":40},"end":{"line":353,"column":1}},"line":325},"6":{"name":"(anonymous_6)","decl":{"start":{"line":333,"column":48},"end":{"line":333,"column":49}},"loc":{"start":{"line":333,"column":65},"end":{"line":341,"column":3}},"line":333}},"branchMap":{"0":{"loc":{"start":{"line":48,"column":9},"end":{"line":48,"column":55}},"type":"cond-expr","locations":[{"start":{"line":48,"column":33},"end":{"line":48,"column":36}},{"start":{"line":48,"column":39},"end":{"line":48,"column":55}}],"line":48},"1":{"loc":{"start":{"line":48,"column":9},"end":{"line":48,"column":30}},"type":"binary-expr","locations":[{"start":{"line":48,"column":9},"end":{"line":48,"column":12}},{"start":{"line":48,"column":16},"end":{"line":48,"column":30}}],"line":48},"2":{"loc":{"start":{"line":75,"column":8},"end":{"line":313,"column":9}},"type":"switch","locations":[{"start":{"line":76,"column":10},"end":{"line":82,"column":45}},{"start":{"line":84,"column":10},"end":{"line":149,"column":45}},{"start":{"line":151,"column":10},"end":{"line":164,"column":18}},{"start":{"line":166,"column":10},"end":{"line":183,"column":38}},{"start":{"line":185,"column":10},"end":{"line":187,"column":18}},{"start":{"line":189,"column":10},"end":{"line":194,"column":29}},{"start":{"line":196,"column":10},"end":{"line":198,"column":18}},{"start":{"line":200,"column":10},"end":{"line":201,"column":29}},{"start":{"line":203,"column":10},"end":{"line":205,"column":18}},{"start":{"line":207,"column":10},"end":{"line":232,"column":38}},{"start":{"line":234,"column":10},"end":{"line":236,"column":18}},{"start":{"line":238,"column":10},"end":{"line":243,"column":29}},{"start":{"line":245,"column":10},"end":{"line":247,"column":18}},{"start":{"line":249,"column":10},"end":{"line":250,"column":29}},{"start":{"line":252,"column":10},"end":{"line":254,"column":18}},{"start":{"line":256,"column":10},"end":{"line":269,"column":114}},{"start":{"line":271,"column":10},"end":{"line":272,"column":89}},{"start":{"line":274,"column":10},"end":{"line":290,"column":34}},{"start":{"line":292,"column":10},"end":{"line":293,"column":48}},{"start":{"line":295,"column":10},"end":{"line":298,"column":48}},{"start":{"line":300,"column":10},"end":{"line":303,"column":48}},{"start":{"line":305,"column":10},"end":{"line":308,"column":36}},{"start":{"line":310,"column":10},"end":{"line":310,"column":18}},{"start":{"line":311,"column":10},"end":{"line":312,"column":35}}],"line":75},"3":{"loc":{"start":{"line":77,"column":12},"end":{"line":80,"column":13}},"type":"if","locations":[{"start":{"line":77,"column":12},"end":{"line":80,"column":13}},{"start":{"line":77,"column":12},"end":{"line":80,"column":13}}],"line":77},"4":{"loc":{"start":{"line":86,"column":12},"end":{"line":86,"column":69}},"type":"if","locations":[{"start":{"line":86,"column":12},"end":{"line":86,"column":69}},{"start":{"line":86,"column":12},"end":{"line":86,"column":69}}],"line":86},"5":{"loc":{"start":{"line":90,"column":12},"end":{"line":94,"column":13}},"type":"if","locations":[{"start":{"line":90,"column":12},"end":{"line":94,"column":13}},{"start":{"line":90,"column":12},"end":{"line":94,"column":13}}],"line":90},"6":{"loc":{"start":{"line":102,"column":12},"end":{"line":102,"column":95}},"type":"if","locations":[{"start":{"line":102,"column":12},"end":{"line":102,"column":95}},{"start":{"line":102,"column":12},"end":{"line":102,"column":95}}],"line":102},"7":{"loc":{"start":{"line":102,"column":16},"end":{"line":102,"column":60}},"type":"binary-expr","locations":[{"start":{"line":102,"column":16},"end":{"line":102,"column":46}},{"start":{"line":102,"column":50},"end":{"line":102,"column":60}}],"line":102},"8":{"loc":{"start":{"line":106,"column":12},"end":{"line":106,"column":142}},"type":"if","locations":[{"start":{"line":106,"column":12},"end":{"line":106,"column":142}},{"start":{"line":106,"column":12},"end":{"line":106,"column":142}}],"line":106},"9":{"loc":{"start":{"line":106,"column":16},"end":{"line":106,"column":105}},"type":"binary-expr","locations":[{"start":{"line":106,"column":16},"end":{"line":106,"column":53}},{"start":{"line":106,"column":57},"end":{"line":106,"column":105}}],"line":106},"10":{"loc":{"start":{"line":108,"column":12},"end":{"line":108,"column":73}},"type":"if","locations":[{"start":{"line":108,"column":12},"end":{"line":108,"column":73}},{"start":{"line":108,"column":12},"end":{"line":108,"column":73}}],"line":108},"11":{"loc":{"start":{"line":116,"column":26},"end":{"line":116,"column":255}},"type":"binary-expr","locations":[{"start":{"line":116,"column":26},"end":{"line":116,"column":65}},{"start":{"line":116,"column":69},"end":{"line":116,"column":113}},{"start":{"line":116,"column":117},"end":{"line":116,"column":158}},{"start":{"line":116,"column":162},"end":{"line":116,"column":201}},{"start":{"line":116,"column":205},"end":{"line":116,"column":255}}],"line":116},"12":{"loc":{"start":{"line":131,"column":74},"end":{"line":131,"column":91}},"type":"binary-expr","locations":[{"start":{"line":131,"column":74},"end":{"line":131,"column":84}},{"start":{"line":131,"column":88},"end":{"line":131,"column":91}}],"line":131},"13":{"loc":{"start":{"line":142,"column":12},"end":{"line":145,"column":13}},"type":"if","locations":[{"start":{"line":142,"column":12},"end":{"line":145,"column":13}},{"start":{"line":142,"column":12},"end":{"line":145,"column":13}}],"line":142},"14":{"loc":{"start":{"line":142,"column":18},"end":{"line":142,"column":51}},"type":"binary-expr","locations":[{"start":{"line":142,"column":18},"end":{"line":142,"column":33}},{"start":{"line":142,"column":37},"end":{"line":142,"column":51}}],"line":142},"15":{"loc":{"start":{"line":154,"column":30},"end":{"line":154,"column":51}},"type":"binary-expr","locations":[{"start":{"line":154,"column":30},"end":{"line":154,"column":45}},{"start":{"line":154,"column":49},"end":{"line":154,"column":51}}],"line":154},"16":{"loc":{"start":{"line":163,"column":28},"end":{"line":163,"column":90}},"type":"cond-expr","locations":[{"start":{"line":163,"column":53},"end":{"line":163,"column":55}},{"start":{"line":163,"column":58},"end":{"line":163,"column":90}}],"line":163},"17":{"loc":{"start":{"line":163,"column":58},"end":{"line":163,"column":90}},"type":"cond-expr","locations":[{"start":{"line":163,"column":83},"end":{"line":163,"column":85}},{"start":{"line":163,"column":88},"end":{"line":163,"column":90}}],"line":163},"18":{"loc":{"start":{"line":169,"column":12},"end":{"line":172,"column":13}},"type":"if","locations":[{"start":{"line":169,"column":12},"end":{"line":172,"column":13}},{"start":{"line":169,"column":12},"end":{"line":172,"column":13}}],"line":169},"19":{"loc":{"start":{"line":174,"column":12},"end":{"line":177,"column":13}},"type":"if","locations":[{"start":{"line":174,"column":12},"end":{"line":177,"column":13}},{"start":{"line":174,"column":12},"end":{"line":177,"column":13}}],"line":174},"20":{"loc":{"start":{"line":208,"column":12},"end":{"line":211,"column":13}},"type":"if","locations":[{"start":{"line":208,"column":12},"end":{"line":211,"column":13}},{"start":{"line":208,"column":12},"end":{"line":211,"column":13}}],"line":208},"21":{"loc":{"start":{"line":208,"column":18},"end":{"line":208,"column":51}},"type":"binary-expr","locations":[{"start":{"line":208,"column":18},"end":{"line":208,"column":28}},{"start":{"line":208,"column":32},"end":{"line":208,"column":51}}],"line":208},"22":{"loc":{"start":{"line":216,"column":12},"end":{"line":216,"column":70}},"type":"if","locations":[{"start":{"line":216,"column":12},"end":{"line":216,"column":70}},{"start":{"line":216,"column":12},"end":{"line":216,"column":70}}],"line":216},"23":{"loc":{"start":{"line":219,"column":12},"end":{"line":219,"column":59}},"type":"if","locations":[{"start":{"line":219,"column":12},"end":{"line":219,"column":59}},{"start":{"line":219,"column":12},"end":{"line":219,"column":59}}],"line":219},"24":{"loc":{"start":{"line":223,"column":12},"end":{"line":226,"column":13}},"type":"if","locations":[{"start":{"line":223,"column":12},"end":{"line":226,"column":13}},{"start":{"line":223,"column":12},"end":{"line":226,"column":13}}],"line":223},"25":{"loc":{"start":{"line":258,"column":12},"end":{"line":258,"column":59}},"type":"if","locations":[{"start":{"line":258,"column":12},"end":{"line":258,"column":59}},{"start":{"line":258,"column":12},"end":{"line":258,"column":59}}],"line":258},"26":{"loc":{"start":{"line":263,"column":12},"end":{"line":266,"column":13}},"type":"if","locations":[{"start":{"line":263,"column":12},"end":{"line":266,"column":13}},{"start":{"line":263,"column":12},"end":{"line":266,"column":13}}],"line":263},"27":{"loc":{"start":{"line":263,"column":18},"end":{"line":263,"column":94}},"type":"binary-expr","locations":[{"start":{"line":263,"column":18},"end":{"line":263,"column":35}},{"start":{"line":263,"column":39},"end":{"line":263,"column":53}},{"start":{"line":263,"column":57},"end":{"line":263,"column":69}},{"start":{"line":263,"column":73},"end":{"line":263,"column":94}}],"line":263},"28":{"loc":{"start":{"line":327,"column":2},"end":{"line":327,"column":49}},"type":"if","locations":[{"start":{"line":327,"column":2},"end":{"line":327,"column":49}},{"start":{"line":327,"column":2},"end":{"line":327,"column":49}}],"line":327},"29":{"loc":{"start":{"line":334,"column":4},"end":{"line":337,"column":5}},"type":"if","locations":[{"start":{"line":334,"column":4},"end":{"line":337,"column":5}},{"start":{"line":334,"column":4},"end":{"line":337,"column":5}}],"line":334},"30":{"loc":{"start":{"line":345,"column":2},"end":{"line":350,"column":3}},"type":"if","locations":[{"start":{"line":345,"column":2},"end":{"line":350,"column":3}},{"start":{"line":345,"column":2},"end":{"line":350,"column":3}}],"line":345},"31":{"loc":{"start":{"line":349,"column":18},"end":{"line":349,"column":126}},"type":"cond-expr","locations":[{"start":{"line":349,"column":28},"end":{"line":349,"column":45}},{"start":{"line":349,"column":48},"end":{"line":349,"column":126}}],"line":349}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":10,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":246,"29":492,"30":983,"31":246,"32":123,"33":123,"34":123,"35":123,"36":0,"37":123,"38":123,"39":0,"40":0,"41":0,"42":123,"43":123,"44":123,"45":0,"46":123,"47":0,"48":123,"49":0,"50":123,"51":123,"52":123,"53":123,"54":123,"55":123,"56":123,"57":123,"58":123,"59":123,"60":123,"61":123,"62":123,"63":123,"64":0,"65":0,"66":0,"67":123,"68":123,"69":123,"70":123,"71":123,"72":123,"73":123,"74":123,"75":123,"76":41,"77":41,"78":40,"79":40,"80":1,"81":1,"82":1,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":1,"96":1,"97":1,"98":40,"99":0,"100":0,"101":40,"102":40,"103":40,"104":0,"105":40,"106":40,"107":40,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":40,"121":40,"122":40,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":41,"133":41,"134":41,"135":41,"136":41,"137":41,"138":41,"139":123,"140":123,"141":246,"142":246,"143":1,"144":123,"145":123,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":1},"f":{"0":10,"1":1,"2":246,"3":492,"4":246,"5":123,"6":0},"b":{"0":[2,8],"1":[10,10],"2":[246,123,123,41,0,0,0,1,1,40,0,0,0,40,40,0,0,0,41,41,41,123,123,246],"3":[123,123],"4":[0,123],"5":[0,123],"6":[0,123],"7":[123,123],"8":[0,123],"9":[123,0],"10":[0,123],"11":[123,0,0,0,0],"12":[123,0],"13":[123,0],"14":[123,123],"15":[123,123],"16":[41,82],"17":[41,41],"18":[40,1],"19":[1,0],"20":[0,40],"21":[40,0],"22":[40,0],"23":[0,40],"24":[40,0],"25":[0,0],"26":[0,0],"27":[0,0,0,0],"28":[123,0],"29":[0,0],"30":[0,0],"31":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"fab686040053a86890889640f046fb879475b1bb"}} |
122
lib/index.js
@@ -19,2 +19,6 @@ 'use strict'; | ||
var _underscore = require('underscore.string'); | ||
var _underscore2 = _interopRequireDefault(_underscore); | ||
var _co = require('co'); | ||
@@ -66,3 +70,3 @@ | ||
exports.default = function () { | ||
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(err) { | ||
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(err) { | ||
var type, val, hasFlash, hasSessions, hasRender, noReferrer; | ||
@@ -151,6 +155,7 @@ return _regenerator2.default.wrap(function _callee$(_context) { | ||
// fix page title and description | ||
this.state.title = this.body.error; | ||
debug('set `this.state.title` to %s', this.state.title); | ||
this.state.desc = err.message; | ||
debug('set `this.state.desc` to %s', this.state.desc); | ||
this.state.meta = this.state.meta || {}; | ||
this.state.meta.title = this.body.error; | ||
this.state.meta.description = err.message; | ||
debug('set `this.state.meta.title` to %s', this.state.meta.title); | ||
debug('set `this.state.meta.desc` to %s', this.state.meta.description); | ||
@@ -160,11 +165,10 @@ debug('type was %s', type); | ||
_context.t0 = type; | ||
_context.next = _context.t0 === 'html' ? 33 : _context.t0 === 'json' ? 77 : 80; | ||
_context.next = _context.t0 === 'html' ? 34 : _context.t0 === 'json' ? 78 : 81; | ||
break; | ||
case 33: | ||
case 34: | ||
this.type = 'html'; | ||
if (!(this.status === 404)) { | ||
_context.next = 51; | ||
_context.next = 52; | ||
break; | ||
@@ -174,19 +178,19 @@ } | ||
if (!hasRender) { | ||
_context.next = 48; | ||
_context.next = 49; | ||
break; | ||
} | ||
_context.prev = 36; | ||
_context.prev = 37; | ||
debug('rendering 404 page'); | ||
_context.next = 40; | ||
_context.next = 41; | ||
return this.render('404'); | ||
case 40: | ||
_context.next = 46; | ||
case 41: | ||
_context.next = 47; | ||
break; | ||
case 42: | ||
_context.prev = 42; | ||
_context.t1 = _context['catch'](36); | ||
case 43: | ||
_context.prev = 43; | ||
_context.t1 = _context['catch'](37); | ||
@@ -196,16 +200,16 @@ debug('could not find 404 page, using built-in 404 html'); | ||
case 46: | ||
_context.next = 49; | ||
case 47: | ||
_context.next = 50; | ||
break; | ||
case 48: | ||
case 49: | ||
this.body = _404; | ||
case 49: | ||
_context.next = 76; | ||
case 50: | ||
_context.next = 77; | ||
break; | ||
case 51: | ||
case 52: | ||
if (!(noReferrer || this.status === 500)) { | ||
_context.next = 70; | ||
_context.next = 71; | ||
break; | ||
@@ -225,19 +229,19 @@ } | ||
if (!hasRender) { | ||
_context.next = 67; | ||
_context.next = 68; | ||
break; | ||
} | ||
_context.prev = 55; | ||
_context.prev = 56; | ||
debug('rendering 500 page'); | ||
_context.next = 59; | ||
_context.next = 60; | ||
return this.render('500'); | ||
case 59: | ||
_context.next = 65; | ||
case 60: | ||
_context.next = 66; | ||
break; | ||
case 61: | ||
_context.prev = 61; | ||
_context.t2 = _context['catch'](55); | ||
case 62: | ||
_context.prev = 62; | ||
_context.t2 = _context['catch'](56); | ||
@@ -247,15 +251,14 @@ debug('could not find 500 page, using built-in 500 html'); | ||
case 65: | ||
_context.next = 68; | ||
case 66: | ||
_context.next = 69; | ||
break; | ||
case 67: | ||
case 68: | ||
this.body = _500; | ||
case 68: | ||
_context.next = 76; | ||
case 69: | ||
_context.next = 77; | ||
break; | ||
case 70: | ||
case 71: | ||
// flash an error message | ||
@@ -268,13 +271,13 @@ if (hasFlash) this.flash('error', err.message); | ||
if (!(this.sessionStore && this.sessionId && this.session && this.state.cookiesKey)) { | ||
_context.next = 75; | ||
_context.next = 76; | ||
break; | ||
} | ||
_context.next = 74; | ||
_context.next = 75; | ||
return _co2.default.wrap(this.sessionStore.set).call(this.sessionStore, this.sessionId, this.session); | ||
case 74: | ||
case 75: | ||
this.cookies.set(this.state.cookiesKey, this.sessionId, this.session.cookie); | ||
case 75: | ||
case 76: | ||
@@ -297,16 +300,16 @@ /* | ||
case 76: | ||
return _context.abrupt('break', 83); | ||
case 77: | ||
return _context.abrupt('break', 84); | ||
case 77: | ||
case 78: | ||
this.type = 'json'; | ||
this.body = (0, _stringify2.default)(this.body, null, 2); | ||
return _context.abrupt('break', 83); | ||
return _context.abrupt('break', 84); | ||
case 80: | ||
case 81: | ||
this.type = 'text'; | ||
this.body = (0, _stringify2.default)(this.body, null, 2); | ||
return _context.abrupt('break', 83); | ||
return _context.abrupt('break', 84); | ||
case 83: | ||
case 84: | ||
@@ -316,3 +319,3 @@ this.length = Buffer.byteLength(this.body); | ||
case 85: | ||
case 86: | ||
case 'end': | ||
@@ -322,3 +325,3 @@ return _context.stop(); | ||
} | ||
}, _callee, this, [[36, 42], [55, 61]]); | ||
}, _callee, this, [[37, 43], [56, 62]]); | ||
})); | ||
@@ -334,3 +337,2 @@ | ||
function parseValidationError(ctx, err) { | ||
// inspired by https://github.com/syntagma/mongoose-error-helper | ||
@@ -341,2 +343,14 @@ if (err.name !== 'ValidationError') return err; | ||
// transform the error messages to be humanized as adapted from: | ||
// https://github.com/niftylettuce/mongoose-validation-error-transform | ||
err.errors = _lodash2.default.map(err.errors, function (error) { | ||
if (!_lodash2.default.isString(error.path)) { | ||
error.message = _underscore2.default.capitalize(error.message); | ||
return error; | ||
} | ||
error.message = error.message.replace(new RegExp(error.path, 'g'), _underscore2.default.humanize(error.path)); | ||
error.message = _underscore2.default.capitalize(error.message); | ||
return error; | ||
}); | ||
// loop over the errors object of the Validation Error | ||
@@ -354,2 +368,2 @@ // with support for HTML error lists | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9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1xuICAgIGVyci5tZXNzYWdlID0gY3R4LmFwaVxuICAgICAgPyBlcnJvcnMuam9pbignLCAnKVxuICAgICAgOiBgPHVsIGNsYXNzPVwidGV4dC14cy1sZWZ0IG1iLTBcIj48bGk+JHtlcnJvcnMuam9pbihcbiAgICAgICAgICAnPC9saT48bGk+J1xuICAgICAgICApfTwvbGk+PC91bD5gO1xuICB9XG5cbiAgcmV0dXJuIGVycjtcbn1cbiJdfQ== |
{ | ||
"name": "koa-better-error-handler", | ||
"description": "A better error-handler for Koa v2+, built for CrocodileJS. Makes `ctx.throw` beautiful again :sparkles!", | ||
"version": "1.2.0", | ||
"description": | ||
"A better error-handler for Koa v2+, built for CrocodileJS. Makes `ctx.throw` beautiful again :sparkles!", | ||
"version": "1.3.0", | ||
"author": "Nick Baugh <niftylettuce@gmail.com>", | ||
@@ -11,4 +12,5 @@ "bugs": "https://github.com/niftylettuce/koa-better-error-handler/issues", | ||
"co": "^4.6.0", | ||
"debug": "^2.6.8", | ||
"lodash": "^4.17.4" | ||
"debug": "^3.0.1", | ||
"lodash": "^4.17.4", | ||
"underscore.string": "^3.3.4" | ||
}, | ||
@@ -28,3 +30,3 @@ "devDependencies": { | ||
"koa-convert": "^1.2.0", | ||
"koa-generic-session": "^1.11.6", | ||
"koa-generic-session": "^2.0.0", | ||
"koa-redis": "^3.0.0", | ||
@@ -61,7 +63,10 @@ "koa-router": "^7.2.1", | ||
"scripts": { | ||
"analyze-coverage": "node_modules/.bin/babel-node node_modules/.bin/istanbul cover node_modules/.bin/_mocha", | ||
"check-coverage": "node_modules/.bin/babel-node node_modules/.bin/istanbul check-coverage", | ||
"analyze-coverage": | ||
"node_modules/.bin/babel-node node_modules/.bin/istanbul cover node_modules/.bin/_mocha", | ||
"check-coverage": | ||
"node_modules/.bin/babel-node node_modules/.bin/istanbul check-coverage", | ||
"compile": "rm -rf lib/ && babel -d lib src", | ||
"watch": "babel -d lib src -w", | ||
"coverage": "rm -rf coverage/ && npm run analyze-coverage && npm run check-coverage && node_modules/.bin/codecov", | ||
"coverage": | ||
"rm -rf coverage/ && npm run analyze-coverage && npm run check-coverage && node_modules/.bin/codecov", | ||
"lint": "eslint .", | ||
@@ -68,0 +73,0 @@ "mocha": "NODE_ENV=test node_modules/.bin/_mocha", |
@@ -229,2 +229,2 @@ | ||
[gh-500-issue]: https://github.com/koajs/koa/blob/e4bcdecef295d7adbf5cce1bdc09adc0a24117b7/lib/context.js#L94-L140 | ||
[mongoose-beautiful-unique-validation]: https://github.com/BohdanTkachenko/mongoose-beautiful-unique-validation | ||
[mongoose-beautiful-unique-validation]: https://github.com/matteodelabre/mongoose-beautiful-unique-validation |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
241954
0
6
21
744
+ Addedunderscore.string@^3.3.4
+ Addeddebug@3.2.7(transitive)
+ Addedms@2.1.3(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedunderscore.string@3.3.6(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedms@2.0.0(transitive)
Updateddebug@^3.0.1