Comparing version 2.10.0 to 2.11.0
# Awilix Changelog | ||
## 2.11.0 | ||
* Add support for `container.build()` - see [relevant docs](https://github.com/jeffijoe/awilix#containerbuild) | ||
## 2.10.0 | ||
@@ -4,0 +8,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"/Users/jeff/Projects/awilix/lib/awilix.js":{"path":"/Users/jeff/Projects/awilix/lib/awilix.js","s":{"1":1,"2":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":2,"column":0},"end":{"line":8,"column":1}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":57}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/createContainer.js":{"path":"/Users/jeff/Projects/awilix/lib/createContainer.js","s":{"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":96,"14":96,"15":96,"16":96,"17":96,"18":2,"19":96,"20":41,"21":96,"22":96,"23":96,"24":96,"25":8,"26":96,"27":112,"28":1,"29":20,"30":7,"31":7,"32":6,"33":1,"34":96,"35":96,"36":224,"37":54,"38":170,"39":170,"40":96,"41":96,"42":22,"43":22,"44":71,"45":96,"46":19,"47":96,"48":96,"49":139,"50":139,"51":139,"52":149,"53":149,"54":139,"55":139,"56":96,"57":96,"58":288,"59":60,"60":4,"61":1,"62":3,"63":3,"64":3,"65":59,"66":59,"67":59,"68":86,"69":86,"70":86,"71":14,"72":14,"73":4,"74":14,"75":14,"76":86,"77":59,"78":96,"79":2,"80":96,"81":96,"82":96,"83":96,"84":177,"85":109,"86":177,"87":177,"88":177,"89":177,"90":1,"91":176,"92":4,"93":172,"94":33,"95":2,"96":31,"97":22,"98":9,"99":139,"100":139,"101":139,"102":105,"103":88,"104":6,"105":6,"106":2,"107":2,"108":4,"109":6,"110":27,"111":40,"112":40,"113":14,"114":14,"115":27,"116":13,"117":13,"118":27,"119":1,"120":121,"121":121,"122":28,"123":28,"124":96,"125":96,"126":3,"127":3,"128":96,"129":96},"b":{"1":[1,1],"2":[19,77],"3":[96,96],"4":[6,1],"5":[54,170],"6":[224,141],"7":[170,45],"8":[4,56],"9":[60,4],"10":[1,3],"11":[14,72],"12":[86,52],"13":[4,10],"14":[109,68],"15":[1,176],"16":[4,172],"17":[33,139],"18":[2,31],"19":[33,31],"20":[22,9],"21":[105,6,27,1],"22":[2,4],"23":[14,26],"24":[13,14]},"f":{"1":96,"2":41,"3":8,"4":20,"5":7,"6":22,"7":60},"fnMap":{"1":{"name":"createContainer","line":35,"loc":{"start":{"line":35,"column":17},"end":{"line":35,"column":70}}},"2":{"name":"(anonymous_2)","line":76,"loc":{"start":{"line":76,"column":21},"end":{"line":76,"column":24}}},"3":{"name":"(anonymous_3)","line":111,"loc":{"start":{"line":111,"column":6},"end":{"line":111,"column":20}}},"4":{"name":"(anonymous_4)","line":155,"loc":{"start":{"line":155,"column":13},"end":{"line":155,"column":16}}},"5":{"name":"(anonymous_5)","line":162,"loc":{"start":{"line":162,"column":30},"end":{"line":162,"column":44}}},"6":{"name":"(anonymous_6)","line":203,"loc":{"start":{"line":203,"column":36},"end":{"line":203,"column":48}}},"7":{"name":"registerShortcut","line":256,"loc":{"start":{"line":256,"column":4},"end":{"line":256,"column":49}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":54}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":44}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":44}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":67}},"6":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"7":{"start":{"line":7,"column":0},"end":{"line":7,"column":64}},"8":{"start":{"line":8,"column":0},"end":{"line":8,"column":44}},"9":{"start":{"line":9,"column":0},"end":{"line":9,"column":38}},"10":{"start":{"line":15,"column":0},"end":{"line":15,"column":40}},"11":{"start":{"line":21,"column":0},"end":{"line":21,"column":59}},"12":{"start":{"line":35,"column":0},"end":{"line":479,"column":1}},"13":{"start":{"line":36,"column":2},"end":{"line":41,"column":3}},"14":{"start":{"line":47,"column":2},"end":{"line":47,"column":26}},"15":{"start":{"line":51,"column":2},"end":{"line":51,"column":36}},"16":{"start":{"line":54,"column":2},"end":{"line":54,"column":26}},"17":{"start":{"line":59,"column":2},"end":{"line":63,"column":3}},"18":{"start":{"line":60,"column":4},"end":{"line":62,"column":75}},"19":{"start":{"line":66,"column":2},"end":{"line":85,"column":3}},"20":{"start":{"line":77,"column":6},"end":{"line":77,"column":34}},"21":{"start":{"line":88,"column":2},"end":{"line":90,"column":17}},"22":{"start":{"line":98,"column":2},"end":{"line":98,"column":37}},"23":{"start":{"line":105,"column":2},"end":{"line":105,"column":22}},"24":{"start":{"line":108,"column":2},"end":{"line":116,"column":3}},"25":{"start":{"line":112,"column":8},"end":{"line":112,"column":27}},"26":{"start":{"line":123,"column":2},"end":{"line":174,"column":3}},"27":{"start":{"line":138,"column":29},"end":{"line":138,"column":42}},"28":{"start":{"line":147,"column":8},"end":{"line":149,"column":9}},"29":{"start":{"line":156,"column":8},"end":{"line":156,"column":33}},"30":{"start":{"line":163,"column":8},"end":{"line":163,"column":42}},"31":{"start":{"line":164,"column":8},"end":{"line":169,"column":9}},"32":{"start":{"line":165,"column":10},"end":{"line":168,"column":11}},"33":{"start":{"line":171,"column":8},"end":{"line":171,"column":24}},"34":{"start":{"line":176,"column":2},"end":{"line":176,"column":27}},"35":{"start":{"line":184,"column":2},"end":{"line":196,"column":3}},"36":{"start":{"line":185,"column":4},"end":{"line":187,"column":5}},"37":{"start":{"line":186,"column":6},"end":{"line":186,"column":36}},"38":{"start":{"line":189,"column":4},"end":{"line":193,"column":5}},"39":{"start":{"line":195,"column":4},"end":{"line":195,"column":34}},"40":{"start":{"line":198,"column":2},"end":{"line":198,"column":56}},"41":{"start":{"line":203,"column":2},"end":{"line":208,"column":3}},"42":{"start":{"line":204,"column":4},"end":{"line":204,"column":47}},"43":{"start":{"line":205,"column":4},"end":{"line":207,"column":5}},"44":{"start":{"line":206,"column":6},"end":{"line":206,"column":28}},"45":{"start":{"line":216,"column":2},"end":{"line":218,"column":3}},"46":{"start":{"line":217,"column":4},"end":{"line":217,"column":46}},"47":{"start":{"line":220,"column":2},"end":{"line":220,"column":37}},"48":{"start":{"line":231,"column":2},"end":{"line":241,"column":3}},"49":{"start":{"line":232,"column":4},"end":{"line":232,"column":53}},"50":{"start":{"line":233,"column":4},"end":{"line":233,"column":76}},"51":{"start":{"line":234,"column":4},"end":{"line":237,"column":5}},"52":{"start":{"line":235,"column":6},"end":{"line":235,"column":28}},"53":{"start":{"line":236,"column":6},"end":{"line":236,"column":32}},"54":{"start":{"line":239,"column":4},"end":{"line":239,"column":34}},"55":{"start":{"line":240,"column":4},"end":{"line":240,"column":20}},"56":{"start":{"line":243,"column":2},"end":{"line":243,"column":31}},"57":{"start":{"line":255,"column":2},"end":{"line":294,"column":5}},"58":{"start":{"line":256,"column":4},"end":{"line":294,"column":5}},"59":{"start":{"line":258,"column":6},"end":{"line":267,"column":7}},"60":{"start":{"line":259,"column":8},"end":{"line":263,"column":9}},"61":{"start":{"line":260,"column":10},"end":{"line":262,"column":11}},"62":{"start":{"line":264,"column":8},"end":{"line":264,"column":20}},"63":{"start":{"line":265,"column":8},"end":{"line":265,"column":20}},"64":{"start":{"line":266,"column":8},"end":{"line":266,"column":24}},"65":{"start":{"line":269,"column":6},"end":{"line":269,"column":48}},"66":{"start":{"line":270,"column":6},"end":{"line":270,"column":78}},"67":{"start":{"line":271,"column":6},"end":{"line":290,"column":7}},"68":{"start":{"line":272,"column":8},"end":{"line":272,"column":38}},"69":{"start":{"line":275,"column":8},"end":{"line":275,"column":45}},"70":{"start":{"line":277,"column":8},"end":{"line":287,"column":9}},"71":{"start":{"line":278,"column":10},"end":{"line":278,"column":44}},"72":{"start":{"line":280,"column":10},"end":{"line":283,"column":11}},"73":{"start":{"line":282,"column":12},"end":{"line":282,"column":47}},"74":{"start":{"line":285,"column":10},"end":{"line":285,"column":57}},"75":{"start":{"line":286,"column":10},"end":{"line":286,"column":46}},"76":{"start":{"line":289,"column":8},"end":{"line":289,"column":51}},"77":{"start":{"line":293,"column":6},"end":{"line":293,"column":22}},"78":{"start":{"line":300,"column":2},"end":{"line":300,"column":56}},"79":{"start":{"line":300,"column":30},"end":{"line":300,"column":56}},"80":{"start":{"line":314,"column":2},"end":{"line":314,"column":55}},"81":{"start":{"line":328,"column":2},"end":{"line":328,"column":49}},"82":{"start":{"line":342,"column":2},"end":{"line":342,"column":76}},"83":{"start":{"line":353,"column":2},"end":{"line":452,"column":3}},"84":{"start":{"line":354,"column":4},"end":{"line":357,"column":5}},"85":{"start":{"line":356,"column":6},"end":{"line":356,"column":31}},"86":{"start":{"line":361,"column":4},"end":{"line":361,"column":33}},"87":{"start":{"line":363,"column":4},"end":{"line":451,"column":5}},"88":{"start":{"line":365,"column":6},"end":{"line":365,"column":56}},"89":{"start":{"line":366,"column":6},"end":{"line":372,"column":7}},"90":{"start":{"line":367,"column":8},"end":{"line":371,"column":9}},"91":{"start":{"line":375,"column":6},"end":{"line":377,"column":7}},"92":{"start":{"line":376,"column":8},"end":{"line":376,"column":30}},"93":{"start":{"line":379,"column":6},"end":{"line":393,"column":7}},"94":{"start":{"line":382,"column":8},"end":{"line":384,"column":9}},"95":{"start":{"line":383,"column":10},"end":{"line":383,"column":30}},"96":{"start":{"line":388,"column":8},"end":{"line":390,"column":9}},"97":{"start":{"line":389,"column":10},"end":{"line":389,"column":42}},"98":{"start":{"line":392,"column":8},"end":{"line":392,"column":62}},"99":{"start":{"line":396,"column":6},"end":{"line":396,"column":32}},"100":{"start":{"line":399,"column":6},"end":{"line":399,"column":26}},"101":{"start":{"line":400,"column":6},"end":{"line":443,"column":7}},"102":{"start":{"line":403,"column":10},"end":{"line":403,"column":52}},"103":{"start":{"line":404,"column":10},"end":{"line":404,"column":15}},"104":{"start":{"line":407,"column":10},"end":{"line":407,"column":35}},"105":{"start":{"line":408,"column":10},"end":{"line":413,"column":11}},"106":{"start":{"line":409,"column":12},"end":{"line":409,"column":54}},"107":{"start":{"line":410,"column":12},"end":{"line":410,"column":39}},"108":{"start":{"line":412,"column":12},"end":{"line":412,"column":29}},"109":{"start":{"line":414,"column":10},"end":{"line":414,"column":15}},"110":{"start":{"line":422,"column":10},"end":{"line":429,"column":11}},"111":{"start":{"line":423,"column":12},"end":{"line":423,"column":34}},"112":{"start":{"line":424,"column":12},"end":{"line":428,"column":13}},"113":{"start":{"line":426,"column":14},"end":{"line":426,"column":31}},"114":{"start":{"line":427,"column":14},"end":{"line":427,"column":19}},"115":{"start":{"line":432,"column":10},"end":{"line":435,"column":11}},"116":{"start":{"line":433,"column":12},"end":{"line":433,"column":54}},"117":{"start":{"line":434,"column":12},"end":{"line":434,"column":44}},"118":{"start":{"line":436,"column":10},"end":{"line":436,"column":15}},"119":{"start":{"line":438,"column":10},"end":{"line":442,"column":11}},"120":{"start":{"line":445,"column":6},"end":{"line":445,"column":27}},"121":{"start":{"line":446,"column":6},"end":{"line":446,"column":21}},"122":{"start":{"line":449,"column":6},"end":{"line":449,"column":26}},"123":{"start":{"line":450,"column":6},"end":{"line":450,"column":15}},"124":{"start":{"line":454,"column":2},"end":{"line":454,"column":29}},"125":{"start":{"line":465,"column":2},"end":{"line":468,"column":3}},"126":{"start":{"line":466,"column":4},"end":{"line":466,"column":53}},"127":{"start":{"line":467,"column":4},"end":{"line":467,"column":20}},"128":{"start":{"line":475,"column":2},"end":{"line":475,"column":37}},"129":{"start":{"line":478,"column":2},"end":{"line":478,"column":18}}},"branchMap":{"1":{"line":60,"type":"cond-expr","locations":[{"start":{"line":61,"column":8},"end":{"line":61,"column":18}},{"start":{"line":62,"column":8},"end":{"line":62,"column":10}}]},"2":{"line":88,"type":"cond-expr","locations":[{"start":{"line":89,"column":6},"end":{"line":89,"column":56}},{"start":{"line":90,"column":6},"end":{"line":90,"column":17}}]},"3":{"line":110,"type":"binary-expr","locations":[{"start":{"line":110,"column":6},"end":{"line":110,"column":21}},{"start":{"line":111,"column":6},"end":{"line":113,"column":7}}]},"4":{"line":164,"type":"if","locations":[{"start":{"line":164,"column":8},"end":{"line":164,"column":8}},{"start":{"line":164,"column":8},"end":{"line":164,"column":8}}]},"5":{"line":185,"type":"if","locations":[{"start":{"line":185,"column":4},"end":{"line":185,"column":4}},{"start":{"line":185,"column":4},"end":{"line":185,"column":4}}]},"6":{"line":185,"type":"binary-expr","locations":[{"start":{"line":185,"column":8},"end":{"line":185,"column":31}},{"start":{"line":185,"column":35},"end":{"line":185,"column":45}}]},"7":{"line":191,"type":"binary-expr","locations":[{"start":{"line":191,"column":6},"end":{"line":191,"column":23}},{"start":{"line":191,"column":27},"end":{"line":191,"column":78}}]},"8":{"line":258,"type":"if","locations":[{"start":{"line":258,"column":6},"end":{"line":258,"column":6}},{"start":{"line":258,"column":6},"end":{"line":258,"column":6}}]},"9":{"line":258,"type":"binary-expr","locations":[{"start":{"line":258,"column":10},"end":{"line":258,"column":36}},{"start":{"line":258,"column":40},"end":{"line":258,"column":54}}]},"10":{"line":259,"type":"if","locations":[{"start":{"line":259,"column":8},"end":{"line":259,"column":8}},{"start":{"line":259,"column":8},"end":{"line":259,"column":8}}]},"11":{"line":277,"type":"if","locations":[{"start":{"line":277,"column":8},"end":{"line":277,"column":8}},{"start":{"line":277,"column":8},"end":{"line":277,"column":8}}]},"12":{"line":277,"type":"binary-expr","locations":[{"start":{"line":277,"column":12},"end":{"line":277,"column":26}},{"start":{"line":277,"column":30},"end":{"line":277,"column":60}}]},"13":{"line":280,"type":"if","locations":[{"start":{"line":280,"column":10},"end":{"line":280,"column":10}},{"start":{"line":280,"column":10},"end":{"line":280,"column":10}}]},"14":{"line":354,"type":"if","locations":[{"start":{"line":354,"column":4},"end":{"line":354,"column":4}},{"start":{"line":354,"column":4},"end":{"line":354,"column":4}}]},"15":{"line":366,"type":"if","locations":[{"start":{"line":366,"column":6},"end":{"line":366,"column":6}},{"start":{"line":366,"column":6},"end":{"line":366,"column":6}}]},"16":{"line":375,"type":"if","locations":[{"start":{"line":375,"column":6},"end":{"line":375,"column":6}},{"start":{"line":375,"column":6},"end":{"line":375,"column":6}}]},"17":{"line":379,"type":"if","locations":[{"start":{"line":379,"column":6},"end":{"line":379,"column":6}},{"start":{"line":379,"column":6},"end":{"line":379,"column":6}}]},"18":{"line":382,"type":"if","locations":[{"start":{"line":382,"column":8},"end":{"line":382,"column":8}},{"start":{"line":382,"column":8},"end":{"line":382,"column":8}}]},"19":{"line":382,"type":"binary-expr","locations":[{"start":{"line":382,"column":12},"end":{"line":382,"column":40}},{"start":{"line":382,"column":44},"end":{"line":382,"column":62}}]},"20":{"line":388,"type":"if","locations":[{"start":{"line":388,"column":8},"end":{"line":388,"column":8}},{"start":{"line":388,"column":8},"end":{"line":388,"column":8}}]},"21":{"line":400,"type":"switch","locations":[{"start":{"line":401,"column":8},"end":{"line":404,"column":15}},{"start":{"line":405,"column":8},"end":{"line":414,"column":15}},{"start":{"line":415,"column":8},"end":{"line":436,"column":15}},{"start":{"line":437,"column":8},"end":{"line":442,"column":11}}]},"22":{"line":408,"type":"if","locations":[{"start":{"line":408,"column":10},"end":{"line":408,"column":10}},{"start":{"line":408,"column":10},"end":{"line":408,"column":10}}]},"23":{"line":424,"type":"if","locations":[{"start":{"line":424,"column":12},"end":{"line":424,"column":12}},{"start":{"line":424,"column":12},"end":{"line":424,"column":12}}]},"24":{"line":432,"type":"if","locations":[{"start":{"line":432,"column":10},"end":{"line":432,"column":10}},{"start":{"line":432,"column":10},"end":{"line":432,"column":10}}]}}},"/Users/jeff/Projects/awilix/lib/utils.js":{"path":"/Users/jeff/Projects/awilix/lib/utils.js","s":{"1":1,"2":1,"3":6,"4":6,"5":10,"6":41,"7":6,"8":1,"9":200,"10":200,"11":131,"12":200,"13":1,"14":178,"15":1,"16":29,"17":2,"18":27,"19":27,"20":27,"21":4,"22":23,"23":23,"24":2,"25":1,"26":22,"27":1,"28":158,"29":1,"30":19,"31":19,"32":85,"33":85,"34":82,"35":19},"b":{"1":[131,69],"2":[200,72],"3":[2,27],"4":[4,23],"5":[2,21],"6":[23,8],"7":[1,1],"8":[82,3]},"f":{"1":6,"2":200,"3":178,"4":29,"5":158,"6":19},"fnMap":{"1":{"name":"flatten","line":12,"loc":{"start":{"line":12,"column":25},"end":{"line":12,"column":49}}},"2":{"name":"nameValueToObject","line":34,"loc":{"start":{"line":34,"column":35},"end":{"line":34,"column":75}}},"3":{"name":"last","line":52,"loc":{"start":{"line":52,"column":22},"end":{"line":52,"column":41}}},"4":{"name":"isClass","line":62,"loc":{"start":{"line":62,"column":25},"end":{"line":62,"column":46}}},"5":{"name":"isFunction","line":93,"loc":{"start":{"line":93,"column":28},"end":{"line":93,"column":53}}},"6":{"name":"uniq","line":106,"loc":{"start":{"line":106,"column":22},"end":{"line":106,"column":41}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},"2":{"start":{"line":12,"column":0},"end":{"line":21,"column":1}},"3":{"start":{"line":13,"column":2},"end":{"line":13,"column":19}},"4":{"start":{"line":14,"column":2},"end":{"line":18,"column":4}},"5":{"start":{"line":15,"column":4},"end":{"line":17,"column":6}},"6":{"start":{"line":16,"column":6},"end":{"line":16,"column":23}},"7":{"start":{"line":20,"column":2},"end":{"line":20,"column":15}},"8":{"start":{"line":34,"column":0},"end":{"line":41,"column":1}},"9":{"start":{"line":35,"column":2},"end":{"line":35,"column":16}},"10":{"start":{"line":36,"column":2},"end":{"line":38,"column":3}},"11":{"start":{"line":37,"column":4},"end":{"line":37,"column":42}},"12":{"start":{"line":40,"column":2},"end":{"line":40,"column":12}},"13":{"start":{"line":52,"column":0},"end":{"line":54,"column":1}},"14":{"start":{"line":53,"column":2},"end":{"line":53,"column":28}},"15":{"start":{"line":62,"column":0},"end":{"line":82,"column":1}},"16":{"start":{"line":63,"column":2},"end":{"line":65,"column":3}},"17":{"start":{"line":64,"column":4},"end":{"line":64,"column":16}},"18":{"start":{"line":68,"column":2},"end":{"line":68,"column":51}},"19":{"start":{"line":69,"column":2},"end":{"line":69,"column":25}},"20":{"start":{"line":70,"column":2},"end":{"line":72,"column":3}},"21":{"start":{"line":71,"column":4},"end":{"line":71,"column":15}},"22":{"start":{"line":74,"column":2},"end":{"line":74,"column":26}},"23":{"start":{"line":75,"column":2},"end":{"line":79,"column":3}},"24":{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},"25":{"start":{"line":77,"column":6},"end":{"line":77,"column":17}},"26":{"start":{"line":81,"column":2},"end":{"line":81,"column":14}},"27":{"start":{"line":93,"column":0},"end":{"line":95,"column":1}},"28":{"start":{"line":94,"column":2},"end":{"line":94,"column":34}},"29":{"start":{"line":106,"column":0},"end":{"line":116,"column":1}},"30":{"start":{"line":107,"column":2},"end":{"line":107,"column":19}},"31":{"start":{"line":108,"column":2},"end":{"line":113,"column":3}},"32":{"start":{"line":109,"column":4},"end":{"line":109,"column":25}},"33":{"start":{"line":110,"column":4},"end":{"line":112,"column":5}},"34":{"start":{"line":111,"column":6},"end":{"line":111,"column":23}},"35":{"start":{"line":115,"column":2},"end":{"line":115,"column":15}}},"branchMap":{"1":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":2},"end":{"line":36,"column":2}},{"start":{"line":36,"column":2},"end":{"line":36,"column":2}}]},"2":{"line":36,"type":"binary-expr","locations":[{"start":{"line":36,"column":6},"end":{"line":36,"column":29}},{"start":{"line":36,"column":33},"end":{"line":36,"column":56}}]},"3":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":2},"end":{"line":63,"column":2}},{"start":{"line":63,"column":2},"end":{"line":63,"column":2}}]},"4":{"line":70,"type":"if","locations":[{"start":{"line":70,"column":2},"end":{"line":70,"column":2}},{"start":{"line":70,"column":2},"end":{"line":70,"column":2}}]},"5":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":2},"end":{"line":75,"column":2}},{"start":{"line":75,"column":2},"end":{"line":75,"column":2}}]},"6":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":6},"end":{"line":75,"column":32}},{"start":{"line":75,"column":36},"end":{"line":75,"column":48}}]},"7":{"line":76,"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":76,"column":4}},{"start":{"line":76,"column":4},"end":{"line":76,"column":4}}]},"8":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":4},"end":{"line":110,"column":4}},{"start":{"line":110,"column":4},"end":{"line":110,"column":4}}]}}},"/Users/jeff/Projects/awilix/lib/tokenizeFunction.js":{"path":"/Users/jeff/Projects/awilix/lib/tokenizeFunction.js","s":{"1":1,"2":166,"3":166,"4":166,"5":166,"6":2194,"7":11,"8":2183,"9":2183,"10":1,"11":1,"12":2182,"13":1198,"14":1198,"15":984,"16":116,"17":116,"18":116,"19":868,"20":106,"21":106,"22":106,"23":762,"24":19,"25":19,"26":19,"27":743,"28":106,"29":65,"30":65,"31":41,"32":41,"33":1028,"34":1028,"35":12,"36":12,"37":1016,"38":4,"39":1016,"40":678,"41":678,"42":3787,"43":3787,"44":89,"45":89,"46":3698,"47":589,"48":3109,"49":3109,"50":589,"51":562,"52":66,"53":1,"54":5745,"55":1652,"56":4093,"57":1,"58":1016,"59":4,"60":1012},"b":{"1":[11,2183],"2":[2194,62],"3":[1,2182],"4":[1198,984],"5":[116,868],"6":[106,762],"7":[19,743],"8":[106,637],"9":[65,41],"10":[12,1016],"11":[4,1012],"12":[1016,1008,30],"13":[89,3698],"14":[589,3109],"15":[3698,3640,3622,3563],"16":[562,27],"17":[5,301,1652],"18":[4,4,4]},"f":{"1":166,"2":5745,"3":1016},"fnMap":{"1":{"name":"tokenizeFunction","line":8,"loc":{"start":{"line":8,"column":17},"end":{"line":8,"column":62}}},"2":{"name":"isWhiteSpace","line":95,"loc":{"start":{"line":95,"column":0},"end":{"line":95,"column":26}}},"3":{"name":"isStringQuote","line":110,"loc":{"start":{"line":110,"column":0},"end":{"line":110,"column":27}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":87,"column":1}},"2":{"start":{"line":9,"column":2},"end":{"line":9,"column":13}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":8}},"4":{"start":{"line":11,"column":2},"end":{"line":11,"column":19}},"5":{"start":{"line":12,"column":2},"end":{"line":84,"column":3}},"6":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"7":{"start":{"line":14,"column":6},"end":{"line":14,"column":19}},"8":{"start":{"line":16,"column":4},"end":{"line":16,"column":20}},"9":{"start":{"line":17,"column":4},"end":{"line":20,"column":5}},"10":{"start":{"line":18,"column":6},"end":{"line":18,"column":34}},"11":{"start":{"line":19,"column":6},"end":{"line":19,"column":11}},"12":{"start":{"line":22,"column":4},"end":{"line":25,"column":5}},"13":{"start":{"line":23,"column":6},"end":{"line":23,"column":11}},"14":{"start":{"line":24,"column":6},"end":{"line":24,"column":14}},"15":{"start":{"line":27,"column":4},"end":{"line":31,"column":5}},"16":{"start":{"line":28,"column":6},"end":{"line":28,"column":32}},"17":{"start":{"line":29,"column":6},"end":{"line":29,"column":11}},"18":{"start":{"line":30,"column":6},"end":{"line":30,"column":14}},"19":{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},"20":{"start":{"line":34,"column":6},"end":{"line":34,"column":32}},"21":{"start":{"line":35,"column":6},"end":{"line":35,"column":11}},"22":{"start":{"line":36,"column":6},"end":{"line":36,"column":14}},"23":{"start":{"line":39,"column":4},"end":{"line":43,"column":5}},"24":{"start":{"line":40,"column":6},"end":{"line":40,"column":32}},"25":{"start":{"line":41,"column":6},"end":{"line":41,"column":11}},"26":{"start":{"line":42,"column":6},"end":{"line":42,"column":14}},"27":{"start":{"line":47,"column":4},"end":{"line":66,"column":5}},"28":{"start":{"line":48,"column":6},"end":{"line":52,"column":7}},"29":{"start":{"line":50,"column":8},"end":{"line":50,"column":36}},"30":{"start":{"line":51,"column":8},"end":{"line":51,"column":13}},"31":{"start":{"line":53,"column":6},"end":{"line":53,"column":28}},"32":{"start":{"line":54,"column":6},"end":{"line":65,"column":56}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":24}},"34":{"start":{"line":56,"column":8},"end":{"line":59,"column":9}},"35":{"start":{"line":57,"column":10},"end":{"line":57,"column":38}},"36":{"start":{"line":58,"column":10},"end":{"line":58,"column":15}},"37":{"start":{"line":61,"column":8},"end":{"line":63,"column":9}},"38":{"start":{"line":62,"column":10},"end":{"line":62,"column":34}},"39":{"start":{"line":64,"column":8},"end":{"line":64,"column":13}},"40":{"start":{"line":68,"column":4},"end":{"line":68,"column":23}},"41":{"start":{"line":69,"column":4},"end":{"line":80,"column":5}},"42":{"start":{"line":70,"column":6},"end":{"line":70,"column":22}},"43":{"start":{"line":71,"column":6},"end":{"line":74,"column":7}},"44":{"start":{"line":72,"column":8},"end":{"line":72,"column":36}},"45":{"start":{"line":73,"column":8},"end":{"line":73,"column":21}},"46":{"start":{"line":75,"column":6},"end":{"line":77,"column":7}},"47":{"start":{"line":76,"column":8},"end":{"line":76,"column":13}},"48":{"start":{"line":78,"column":6},"end":{"line":78,"column":23}},"49":{"start":{"line":79,"column":6},"end":{"line":79,"column":11}},"50":{"start":{"line":81,"column":4},"end":{"line":83,"column":5}},"51":{"start":{"line":82,"column":6},"end":{"line":82,"column":62}},"52":{"start":{"line":86,"column":2},"end":{"line":86,"column":15}},"53":{"start":{"line":95,"column":0},"end":{"line":103,"column":1}},"54":{"start":{"line":96,"column":2},"end":{"line":101,"column":3}},"55":{"start":{"line":100,"column":6},"end":{"line":100,"column":17}},"56":{"start":{"line":102,"column":2},"end":{"line":102,"column":14}},"57":{"start":{"line":110,"column":0},"end":{"line":118,"column":1}},"58":{"start":{"line":111,"column":2},"end":{"line":116,"column":3}},"59":{"start":{"line":115,"column":6},"end":{"line":115,"column":17}},"60":{"start":{"line":117,"column":2},"end":{"line":117,"column":14}}},"branchMap":{"1":{"line":13,"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},{"start":{"line":13,"column":4},"end":{"line":13,"column":4}}]},"2":{"line":13,"type":"binary-expr","locations":[{"start":{"line":13,"column":8},"end":{"line":13,"column":17}},{"start":{"line":13,"column":21},"end":{"line":13,"column":47}}]},"3":{"line":17,"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":17,"column":4}},{"start":{"line":17,"column":4},"end":{"line":17,"column":4}}]},"4":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":4}},{"start":{"line":22,"column":4},"end":{"line":22,"column":4}}]},"5":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":27,"column":4}},{"start":{"line":27,"column":4},"end":{"line":27,"column":4}}]},"6":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},{"start":{"line":33,"column":4},"end":{"line":33,"column":4}}]},"7":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":39,"column":4}},{"start":{"line":39,"column":4},"end":{"line":39,"column":4}}]},"8":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":47,"column":4}},{"start":{"line":47,"column":4},"end":{"line":47,"column":4}}]},"9":{"line":48,"type":"if","locations":[{"start":{"line":48,"column":6},"end":{"line":48,"column":6}},{"start":{"line":48,"column":6},"end":{"line":48,"column":6}}]},"10":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":8},"end":{"line":56,"column":8}},{"start":{"line":56,"column":8},"end":{"line":56,"column":8}}]},"11":{"line":61,"type":"if","locations":[{"start":{"line":61,"column":8},"end":{"line":61,"column":8}},{"start":{"line":61,"column":8},"end":{"line":61,"column":8}}]},"12":{"line":65,"type":"binary-expr","locations":[{"start":{"line":65,"column":16},"end":{"line":65,"column":26}},{"start":{"line":65,"column":30},"end":{"line":65,"column":40}},{"start":{"line":65,"column":45},"end":{"line":65,"column":55}}]},"13":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":6},"end":{"line":71,"column":6}},{"start":{"line":71,"column":6},"end":{"line":71,"column":6}}]},"14":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":6},"end":{"line":75,"column":6}},{"start":{"line":75,"column":6},"end":{"line":75,"column":6}}]},"15":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":10},"end":{"line":75,"column":20}},{"start":{"line":75,"column":24},"end":{"line":75,"column":34}},{"start":{"line":75,"column":38},"end":{"line":75,"column":48}},{"start":{"line":75,"column":52},"end":{"line":75,"column":68}}]},"16":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":81,"column":4}},{"start":{"line":81,"column":4},"end":{"line":81,"column":4}}]},"17":{"line":96,"type":"switch","locations":[{"start":{"line":97,"column":4},"end":{"line":97,"column":14}},{"start":{"line":98,"column":4},"end":{"line":98,"column":14}},{"start":{"line":99,"column":4},"end":{"line":100,"column":17}}]},"18":{"line":111,"type":"switch","locations":[{"start":{"line":112,"column":4},"end":{"line":112,"column":13}},{"start":{"line":113,"column":4},"end":{"line":113,"column":13}},{"start":{"line":114,"column":4},"end":{"line":115,"column":17}}]}}},"/Users/jeff/Projects/awilix/lib/loadModules.js":{"path":"/Users/jeff/Projects/awilix/lib/loadModules.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":14,"8":14,"9":14,"10":14,"11":27,"12":27,"13":1,"14":26,"15":5,"16":3,"17":2,"18":21,"19":14,"20":27,"21":14,"22":1,"23":14,"24":1,"25":24,"26":24,"27":24,"28":23,"29":23,"30":23,"31":4,"32":2,"33":4,"34":3,"35":24,"36":24,"37":5,"38":24,"39":24,"40":24},"b":{"1":[1,26],"2":[5,21],"3":[3,2],"4":[5,3],"5":[14,12],"6":[24,3],"7":[23,1],"8":[4,19],"9":[2,2],"10":[3,1],"11":[5,19],"12":[1,23],"13":[2,21]},"f":{"1":14,"2":14,"3":24},"fnMap":{"1":{"name":"loadModules","line":36,"loc":{"start":{"line":36,"column":17},"end":{"line":36,"column":72}}},"2":{"name":"optsWithDefaults","line":79,"loc":{"start":{"line":79,"column":0},"end":{"line":79,"column":43}}},"3":{"name":"registerDescriptor","line":103,"loc":{"start":{"line":103,"column":0},"end":{"line":103,"column":63}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":38}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":50}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":48}},"5":{"start":{"line":6,"column":0},"end":{"line":8,"column":1}},"6":{"start":{"line":36,"column":0},"end":{"line":74,"column":1}},"7":{"start":{"line":37,"column":2},"end":{"line":37,"column":42}},"8":{"start":{"line":38,"column":2},"end":{"line":38,"column":42}},"9":{"start":{"line":39,"column":2},"end":{"line":39,"column":62}},"10":{"start":{"line":41,"column":2},"end":{"line":69,"column":4}},"11":{"start":{"line":42,"column":4},"end":{"line":42,"column":47}},"12":{"start":{"line":45,"column":4},"end":{"line":47,"column":5}},"13":{"start":{"line":46,"column":6},"end":{"line":46,"column":22}},"14":{"start":{"line":49,"column":4},"end":{"line":61,"column":5}},"15":{"start":{"line":50,"column":6},"end":{"line":58,"column":7}},"16":{"start":{"line":52,"column":8},"end":{"line":57,"column":9}},"17":{"start":{"line":60,"column":6},"end":{"line":60,"column":22}},"18":{"start":{"line":63,"column":4},"end":{"line":68,"column":5}},"19":{"start":{"line":70,"column":2},"end":{"line":70,"column":79}},"20":{"start":{"line":70,"column":21},"end":{"line":70,"column":22}},"21":{"start":{"line":71,"column":2},"end":{"line":73,"column":3}},"22":{"start":{"line":79,"column":0},"end":{"line":94,"column":1}},"23":{"start":{"line":80,"column":2},"end":{"line":93,"column":3}},"24":{"start":{"line":103,"column":0},"end":{"line":139,"column":1}},"25":{"start":{"line":104,"column":2},"end":{"line":104,"column":73}},"26":{"start":{"line":105,"column":2},"end":{"line":105,"column":46}},"27":{"start":{"line":106,"column":2},"end":{"line":118,"column":3}},"28":{"start":{"line":107,"column":4},"end":{"line":107,"column":32}},"29":{"start":{"line":108,"column":4},"end":{"line":108,"column":35}},"30":{"start":{"line":109,"column":4},"end":{"line":117,"column":5}},"31":{"start":{"line":110,"column":6},"end":{"line":112,"column":7}},"32":{"start":{"line":111,"column":8},"end":{"line":111,"column":45}},"33":{"start":{"line":114,"column":6},"end":{"line":116,"column":7}},"34":{"start":{"line":115,"column":8},"end":{"line":115,"column":48}},"35":{"start":{"line":120,"column":2},"end":{"line":120,"column":50}},"36":{"start":{"line":122,"column":2},"end":{"line":124,"column":3}},"37":{"start":{"line":123,"column":4},"end":{"line":123,"column":61}},"38":{"start":{"line":126,"column":2},"end":{"line":130,"column":3}},"39":{"start":{"line":132,"column":2},"end":{"line":136,"column":32}},"40":{"start":{"line":138,"column":2},"end":{"line":138,"column":64}}},"branchMap":{"1":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":4},"end":{"line":45,"column":4}},{"start":{"line":45,"column":4},"end":{"line":45,"column":4}}]},"2":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":49,"column":4}},{"start":{"line":49,"column":4},"end":{"line":49,"column":4}}]},"3":{"line":50,"type":"if","locations":[{"start":{"line":50,"column":6},"end":{"line":50,"column":6}},{"start":{"line":50,"column":6},"end":{"line":50,"column":6}}]},"4":{"line":50,"type":"binary-expr","locations":[{"start":{"line":50,"column":10},"end":{"line":50,"column":24}},{"start":{"line":50,"column":28},"end":{"line":50,"column":54}}]},"5":{"line":89,"type":"binary-expr","locations":[{"start":{"line":89,"column":8},"end":{"line":89,"column":12}},{"start":{"line":89,"column":16},"end":{"line":89,"column":40}}]},"6":{"line":105,"type":"binary-expr","locations":[{"start":{"line":105,"column":13},"end":{"line":105,"column":25}},{"start":{"line":105,"column":29},"end":{"line":105,"column":46}}]},"7":{"line":106,"type":"if","locations":[{"start":{"line":106,"column":2},"end":{"line":106,"column":2}},{"start":{"line":106,"column":2},"end":{"line":106,"column":2}}]},"8":{"line":109,"type":"if","locations":[{"start":{"line":109,"column":4},"end":{"line":109,"column":4}},{"start":{"line":109,"column":4},"end":{"line":109,"column":4}}]},"9":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":6},"end":{"line":110,"column":6}},{"start":{"line":110,"column":6},"end":{"line":110,"column":6}}]},"10":{"line":114,"type":"if","locations":[{"start":{"line":114,"column":6},"end":{"line":114,"column":6}},{"start":{"line":114,"column":6},"end":{"line":114,"column":6}}]},"11":{"line":122,"type":"if","locations":[{"start":{"line":122,"column":2},"end":{"line":122,"column":2}},{"start":{"line":122,"column":2},"end":{"line":122,"column":2}}]},"12":{"line":132,"type":"cond-expr","locations":[{"start":{"line":133,"column":6},"end":{"line":133,"column":22}},{"start":{"line":134,"column":6},"end":{"line":136,"column":32}}]},"13":{"line":134,"type":"cond-expr","locations":[{"start":{"line":135,"column":8},"end":{"line":135,"column":29}},{"start":{"line":136,"column":8},"end":{"line":136,"column":32}}]}}},"/Users/jeff/Projects/awilix/lib/Lifetime.js":{"path":"/Users/jeff/Projects/awilix/lib/Lifetime.js","s":{"1":1,"2":1,"3":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":38}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":38}},"3":{"start":{"line":17,"column":0},"end":{"line":17,"column":32}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/registrations.js":{"path":"/Users/jeff/Projects/awilix/lib/registrations.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":119,"10":1,"11":119,"12":15,"13":15,"14":119,"15":8,"16":8,"17":119,"18":8,"19":8,"20":119,"21":4,"22":5,"23":4,"24":2,"25":6,"26":1,"27":44,"28":27,"29":44,"30":1,"31":1,"32":77,"33":1,"34":76,"35":76,"36":76,"37":76,"38":76,"39":76,"40":76,"41":1,"42":1,"43":44,"44":1,"45":43,"46":43,"47":43,"48":36,"49":43,"50":43,"51":43,"52":43,"53":43,"54":1,"55":6,"56":12,"57":6,"58":6,"59":1,"60":18,"61":18,"62":18,"63":20,"64":1,"65":1,"66":3,"67":1,"68":1,"69":19,"70":14,"71":5,"72":2,"73":11,"74":10,"75":1,"76":18,"77":1,"78":119,"79":76,"80":119,"81":119,"82":101,"83":101,"84":84,"85":84,"86":17,"87":13,"88":13,"89":13,"90":4,"91":1},"b":{"1":[1,76],"2":[1,43],"3":[6,6],"4":[1,19],"5":[14,5],"6":[10,1],"7":[76,43],"8":[101,71,1],"9":[84,17],"10":[18,66],"11":[13,4],"12":[6,7]},"f":{"1":36,"2":6,"3":12,"4":18,"5":20,"6":1,"7":2,"8":11,"9":119,"10":101},"fnMap":{"1":{"name":"newClass","line":163,"loc":{"start":{"line":163,"column":19},"end":{"line":163,"column":39}}},"2":{"name":"wrapWithLocals","line":187,"loc":{"start":{"line":187,"column":0},"end":{"line":187,"column":43}}},"3":{"name":"wrappedResolve","line":188,"loc":{"start":{"line":188,"column":9},"end":{"line":188,"column":39}}},"4":{"name":"createInjectorProxy","line":205,"loc":{"start":{"line":205,"column":0},"end":{"line":205,"column":50}}},"5":{"name":"(anonymous_5)","line":219,"loc":{"start":{"line":219,"column":9},"end":{"line":219,"column":24}}},"6":{"name":"iterateRegistrationsAndLocals","line":221,"loc":{"start":{"line":221,"column":17},"end":{"line":221,"column":59}}},"7":{"name":"(anonymous_7)","line":239,"loc":{"start":{"line":239,"column":13},"end":{"line":239,"column":16}}},"8":{"name":"(anonymous_8)","line":246,"loc":{"start":{"line":246,"column":30},"end":{"line":246,"column":44}}},"9":{"name":"generateResolve","line":280,"loc":{"start":{"line":280,"column":0},"end":{"line":280,"column":52}}},"10":{"name":"resolve","line":290,"loc":{"start":{"line":290,"column":9},"end":{"line":290,"column":37}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":50}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":47}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":58}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":68}},"6":{"start":{"line":11,"column":0},"end":{"line":11,"column":57}},"7":{"start":{"line":12,"column":0},"end":{"line":12,"column":42}},"8":{"start":{"line":25,"column":0},"end":{"line":27,"column":1}},"9":{"start":{"line":26,"column":2},"end":{"line":26,"column":45}},"10":{"start":{"line":42,"column":0},"end":{"line":68,"column":1}},"11":{"start":{"line":43,"column":2},"end":{"line":46,"column":3}},"12":{"start":{"line":44,"column":4},"end":{"line":44,"column":24}},"13":{"start":{"line":45,"column":4},"end":{"line":45,"column":14}},"14":{"start":{"line":48,"column":2},"end":{"line":51,"column":3}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":30}},"16":{"start":{"line":50,"column":4},"end":{"line":50,"column":14}},"17":{"start":{"line":53,"column":2},"end":{"line":56,"column":3}},"18":{"start":{"line":54,"column":4},"end":{"line":54,"column":27}},"19":{"start":{"line":55,"column":4},"end":{"line":55,"column":14}},"20":{"start":{"line":58,"column":2},"end":{"line":67,"column":3}},"21":{"start":{"line":61,"column":21},"end":{"line":61,"column":52}},"22":{"start":{"line":62,"column":18},"end":{"line":62,"column":46}},"23":{"start":{"line":63,"column":21},"end":{"line":63,"column":52}},"24":{"start":{"line":65,"column":17},"end":{"line":65,"column":56}},"25":{"start":{"line":66,"column":19},"end":{"line":66,"column":60}},"26":{"start":{"line":82,"column":0},"end":{"line":91,"column":1}},"27":{"start":{"line":83,"column":2},"end":{"line":85,"column":3}},"28":{"start":{"line":84,"column":4},"end":{"line":84,"column":16}},"29":{"start":{"line":87,"column":2},"end":{"line":90,"column":3}},"30":{"start":{"line":93,"column":0},"end":{"line":93,"column":32}},"31":{"start":{"line":111,"column":0},"end":{"line":132,"column":1}},"32":{"start":{"line":112,"column":2},"end":{"line":114,"column":3}},"33":{"start":{"line":113,"column":4},"end":{"line":113,"column":74}},"34":{"start":{"line":116,"column":2},"end":{"line":118,"column":3}},"35":{"start":{"line":120,"column":2},"end":{"line":120,"column":54}},"36":{"start":{"line":122,"column":2},"end":{"line":122,"column":37}},"37":{"start":{"line":123,"column":2},"end":{"line":128,"column":3}},"38":{"start":{"line":129,"column":2},"end":{"line":129,"column":39}},"39":{"start":{"line":130,"column":2},"end":{"line":130,"column":51}},"40":{"start":{"line":131,"column":2},"end":{"line":131,"column":15}},"41":{"start":{"line":134,"column":0},"end":{"line":134,"column":38}},"42":{"start":{"line":151,"column":0},"end":{"line":177,"column":1}},"43":{"start":{"line":152,"column":2},"end":{"line":154,"column":3}},"44":{"start":{"line":153,"column":4},"end":{"line":153,"column":70}},"45":{"start":{"line":156,"column":2},"end":{"line":158,"column":3}},"46":{"start":{"line":160,"column":2},"end":{"line":160,"column":56}},"47":{"start":{"line":163,"column":2},"end":{"line":165,"column":3}},"48":{"start":{"line":164,"column":4},"end":{"line":164,"column":33}},"49":{"start":{"line":167,"column":2},"end":{"line":167,"column":71}},"50":{"start":{"line":168,"column":2},"end":{"line":172,"column":3}},"51":{"start":{"line":173,"column":2},"end":{"line":173,"column":39}},"52":{"start":{"line":174,"column":2},"end":{"line":174,"column":51}},"53":{"start":{"line":176,"column":2},"end":{"line":176,"column":15}},"54":{"start":{"line":187,"column":0},"end":{"line":195,"column":1}},"55":{"start":{"line":188,"column":2},"end":{"line":194,"column":3}},"56":{"start":{"line":189,"column":4},"end":{"line":191,"column":5}},"57":{"start":{"line":190,"column":6},"end":{"line":190,"column":25}},"58":{"start":{"line":193,"column":4},"end":{"line":193,"column":34}},"59":{"start":{"line":205,"column":0},"end":{"line":260,"column":1}},"60":{"start":{"line":206,"column":2},"end":{"line":206,"column":36}},"61":{"start":{"line":207,"column":2},"end":{"line":210,"column":4}},"62":{"start":{"line":213,"column":2},"end":{"line":257,"column":3}},"63":{"start":{"line":220,"column":8},"end":{"line":229,"column":9}},"64":{"start":{"line":221,"column":10},"end":{"line":228,"column":11}},"65":{"start":{"line":222,"column":12},"end":{"line":224,"column":13}},"66":{"start":{"line":223,"column":14},"end":{"line":223,"column":24}},"67":{"start":{"line":225,"column":12},"end":{"line":227,"column":13}},"68":{"start":{"line":226,"column":14},"end":{"line":226,"column":24}},"69":{"start":{"line":230,"column":8},"end":{"line":232,"column":9}},"70":{"start":{"line":231,"column":10},"end":{"line":231,"column":29}},"71":{"start":{"line":233,"column":8},"end":{"line":233,"column":38}},"72":{"start":{"line":240,"column":8},"end":{"line":240,"column":22}},"73":{"start":{"line":247,"column":8},"end":{"line":252,"column":9}},"74":{"start":{"line":248,"column":10},"end":{"line":251,"column":11}},"75":{"start":{"line":254,"column":8},"end":{"line":254,"column":24}},"76":{"start":{"line":259,"column":2},"end":{"line":259,"column":14}},"77":{"start":{"line":280,"column":0},"end":{"line":320,"column":1}},"78":{"start":{"line":282,"column":2},"end":{"line":284,"column":3}},"79":{"start":{"line":283,"column":4},"end":{"line":283,"column":30}},"80":{"start":{"line":287,"column":2},"end":{"line":287,"column":75}},"81":{"start":{"line":290,"column":2},"end":{"line":319,"column":3}},"82":{"start":{"line":293,"column":4},"end":{"line":296,"column":26}},"83":{"start":{"line":298,"column":4},"end":{"line":306,"column":5}},"84":{"start":{"line":300,"column":6},"end":{"line":302,"column":26}},"85":{"start":{"line":305,"column":6},"end":{"line":305,"column":23}},"86":{"start":{"line":309,"column":4},"end":{"line":316,"column":5}},"87":{"start":{"line":310,"column":6},"end":{"line":312,"column":27}},"88":{"start":{"line":314,"column":6},"end":{"line":314,"column":48}},"89":{"start":{"line":315,"column":6},"end":{"line":315,"column":28}},"90":{"start":{"line":318,"column":4},"end":{"line":318,"column":15}},"91":{"start":{"line":322,"column":0},"end":{"line":322,"column":32}}},"branchMap":{"1":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":2},"end":{"line":112,"column":2}},{"start":{"line":112,"column":2},"end":{"line":112,"column":2}}]},"2":{"line":152,"type":"if","locations":[{"start":{"line":152,"column":2},"end":{"line":152,"column":2}},{"start":{"line":152,"column":2},"end":{"line":152,"column":2}}]},"3":{"line":189,"type":"if","locations":[{"start":{"line":189,"column":4},"end":{"line":189,"column":4}},{"start":{"line":189,"column":4},"end":{"line":189,"column":4}}]},"4":{"line":220,"type":"if","locations":[{"start":{"line":220,"column":8},"end":{"line":220,"column":8}},{"start":{"line":220,"column":8},"end":{"line":220,"column":8}}]},"5":{"line":230,"type":"if","locations":[{"start":{"line":230,"column":8},"end":{"line":230,"column":8}},{"start":{"line":230,"column":8},"end":{"line":230,"column":8}}]},"6":{"line":247,"type":"if","locations":[{"start":{"line":247,"column":8},"end":{"line":247,"column":8}},{"start":{"line":247,"column":8},"end":{"line":247,"column":8}}]},"7":{"line":282,"type":"if","locations":[{"start":{"line":282,"column":2},"end":{"line":282,"column":2}},{"start":{"line":282,"column":2},"end":{"line":282,"column":2}}]},"8":{"line":294,"type":"binary-expr","locations":[{"start":{"line":294,"column":6},"end":{"line":294,"column":25}},{"start":{"line":295,"column":6},"end":{"line":295,"column":38}},{"start":{"line":296,"column":6},"end":{"line":296,"column":26}}]},"9":{"line":298,"type":"if","locations":[{"start":{"line":298,"column":4},"end":{"line":298,"column":4}},{"start":{"line":298,"column":4},"end":{"line":298,"column":4}}]},"10":{"line":300,"type":"cond-expr","locations":[{"start":{"line":301,"column":10},"end":{"line":301,"column":55}},{"start":{"line":302,"column":10},"end":{"line":302,"column":26}}]},"11":{"line":309,"type":"if","locations":[{"start":{"line":309,"column":4},"end":{"line":309,"column":4}},{"start":{"line":309,"column":4},"end":{"line":309,"column":4}}]},"12":{"line":310,"type":"cond-expr","locations":[{"start":{"line":311,"column":10},"end":{"line":311,"column":61}},{"start":{"line":312,"column":10},"end":{"line":312,"column":27}}]}}},"/Users/jeff/Projects/awilix/lib/ResolutionMode.js":{"path":"/Users/jeff/Projects/awilix/lib/ResolutionMode.js","s":{"1":1,"2":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":6,"column":30}},"2":{"start":{"line":13,"column":0},"end":{"line":13,"column":34}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/parseParameterList.js":{"path":"/Users/jeff/Projects/awilix/lib/parseParameterList.js","s":{"1":1,"2":1,"3":139,"4":139,"5":139,"6":277,"7":277,"8":49,"9":228,"10":131,"11":17,"12":17,"13":5,"14":17,"15":17,"16":3,"17":114,"18":44,"19":162,"20":162,"21":18,"22":144,"23":12,"24":132,"25":26,"26":26,"27":86,"28":86,"29":56,"30":26,"31":84,"32":95},"b":{"1":[49,228],"2":[131,97],"3":[17,114],"4":[5,12],"5":[3,14],"6":[44,70],"7":[18,144],"8":[12,132],"9":[26,106],"10":[56,30]},"f":{"1":139},"fnMap":{"1":{"name":"parseParameterList","line":15,"loc":{"start":{"line":15,"column":17},"end":{"line":15,"column":53}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},"2":{"start":{"line":15,"column":0},"end":{"line":60,"column":1}},"3":{"start":{"line":16,"column":2},"end":{"line":16,"column":41}},"4":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"5":{"start":{"line":18,"column":2},"end":{"line":58,"column":3}},"6":{"start":{"line":19,"column":4},"end":{"line":19,"column":21}},"7":{"start":{"line":20,"column":4},"end":{"line":22,"column":5}},"8":{"start":{"line":21,"column":6},"end":{"line":21,"column":11}},"9":{"start":{"line":23,"column":4},"end":{"line":57,"column":5}},"10":{"start":{"line":24,"column":6},"end":{"line":55,"column":7}},"11":{"start":{"line":25,"column":8},"end":{"line":25,"column":23}},"12":{"start":{"line":26,"column":8},"end":{"line":28,"column":9}},"13":{"start":{"line":27,"column":10},"end":{"line":27,"column":25}},"14":{"start":{"line":30,"column":8},"end":{"line":30,"column":23}},"15":{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},"16":{"start":{"line":32,"column":10},"end":{"line":32,"column":15}},"17":{"start":{"line":34,"column":13},"end":{"line":55,"column":7}},"18":{"start":{"line":36,"column":8},"end":{"line":54,"column":22}},"19":{"start":{"line":37,"column":10},"end":{"line":37,"column":25}},"20":{"start":{"line":38,"column":10},"end":{"line":40,"column":11}},"21":{"start":{"line":39,"column":12},"end":{"line":39,"column":25}},"22":{"start":{"line":41,"column":10},"end":{"line":43,"column":11}},"23":{"start":{"line":42,"column":12},"end":{"line":42,"column":20}},"24":{"start":{"line":44,"column":10},"end":{"line":53,"column":11}},"25":{"start":{"line":45,"column":12},"end":{"line":45,"column":27}},"26":{"start":{"line":46,"column":12},"end":{"line":51,"column":13}},"27":{"start":{"line":47,"column":14},"end":{"line":47,"column":29}},"28":{"start":{"line":48,"column":14},"end":{"line":50,"column":15}},"29":{"start":{"line":49,"column":16},"end":{"line":49,"column":36}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":25}},"31":{"start":{"line":56,"column":6},"end":{"line":56,"column":26}},"32":{"start":{"line":59,"column":2},"end":{"line":59,"column":15}}},"branchMap":{"1":{"line":20,"type":"if","locations":[{"start":{"line":20,"column":4},"end":{"line":20,"column":4}},{"start":{"line":20,"column":4},"end":{"line":20,"column":4}}]},"2":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":4}},{"start":{"line":23,"column":4},"end":{"line":23,"column":4}}]},"3":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":6},"end":{"line":24,"column":6}},{"start":{"line":24,"column":6},"end":{"line":24,"column":6}}]},"4":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":8},"end":{"line":26,"column":8}},{"start":{"line":26,"column":8},"end":{"line":26,"column":8}}]},"5":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":8},"end":{"line":31,"column":8}},{"start":{"line":31,"column":8},"end":{"line":31,"column":8}}]},"6":{"line":34,"type":"if","locations":[{"start":{"line":34,"column":13},"end":{"line":34,"column":13}},{"start":{"line":34,"column":13},"end":{"line":34,"column":13}}]},"7":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":10},"end":{"line":38,"column":10}},{"start":{"line":38,"column":10},"end":{"line":38,"column":10}}]},"8":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":10},"end":{"line":41,"column":10}},{"start":{"line":41,"column":10},"end":{"line":41,"column":10}}]},"9":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":10},"end":{"line":44,"column":10}},{"start":{"line":44,"column":10},"end":{"line":44,"column":10}}]},"10":{"line":48,"type":"if","locations":[{"start":{"line":48,"column":14},"end":{"line":48,"column":14}},{"start":{"line":48,"column":14},"end":{"line":48,"column":14}}]}}},"/Users/jeff/Projects/awilix/lib/AwilixNotAFunctionError.js":{"path":"/Users/jeff/Projects/awilix/lib/AwilixNotAFunctionError.js","s":{"1":1,"2":2,"3":1},"b":{},"f":{"1":2},"fnMap":{"1":{"name":"(anonymous_1)","line":20,"loc":{"start":{"line":20,"column":13},"end":{"line":20,"column":53}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},"2":{"start":{"line":21,"column":4},"end":{"line":21,"column":76}},"3":{"start":{"line":25,"column":0},"end":{"line":25,"column":40}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/AwilixError.js":{"path":"/Users/jeff/Projects/awilix/lib/AwilixError.js","s":{"1":1,"2":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},"2":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/ExtendableError.js":{"path":"/Users/jeff/Projects/awilix/lib/ExtendableError.js","s":{"1":14,"2":14,"3":14,"4":14,"5":1},"b":{},"f":{"1":14},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":13},"end":{"line":12,"column":23}}}},"statementMap":{"1":{"start":{"line":13,"column":4},"end":{"line":13,"column":18}},"2":{"start":{"line":16,"column":4},"end":{"line":19,"column":6}},"3":{"start":{"line":21,"column":4},"end":{"line":24,"column":6}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":51}},"5":{"start":{"line":30,"column":0},"end":{"line":30,"column":32}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/listModules.js":{"path":"/Users/jeff/Projects/awilix/lib/listModules.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":12,"7":12,"8":12,"9":5,"10":5,"11":12,"12":12,"13":88,"14":12,"15":1,"16":9,"17":5,"18":8,"19":4},"b":{"1":[5,7],"2":[5,4]},"f":{"1":12,"2":9},"fnMap":{"1":{"name":"_listModules","line":23,"loc":{"start":{"line":23,"column":0},"end":{"line":23,"column":41}}},"2":{"name":"listModules","line":55,"loc":{"start":{"line":55,"column":17},"end":{"line":55,"column":58}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":28}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":38}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":28}},"5":{"start":{"line":23,"column":0},"end":{"line":38,"column":1}},"6":{"start":{"line":24,"column":2},"end":{"line":24,"column":69}},"7":{"start":{"line":25,"column":2},"end":{"line":25,"column":24}},"8":{"start":{"line":26,"column":2},"end":{"line":29,"column":3}},"9":{"start":{"line":27,"column":4},"end":{"line":27,"column":32}},"10":{"start":{"line":28,"column":4},"end":{"line":28,"column":32}},"11":{"start":{"line":31,"column":2},"end":{"line":31,"column":58}},"12":{"start":{"line":32,"column":2},"end":{"line":36,"column":5}},"13":{"start":{"line":32,"column":34},"end":{"line":36,"column":3}},"14":{"start":{"line":37,"column":2},"end":{"line":37,"column":15}},"15":{"start":{"line":55,"column":0},"end":{"line":61,"column":1}},"16":{"start":{"line":56,"column":2},"end":{"line":58,"column":3}},"17":{"start":{"line":57,"column":4},"end":{"line":57,"column":64}},"18":{"start":{"line":57,"column":41},"end":{"line":57,"column":62}},"19":{"start":{"line":60,"column":2},"end":{"line":60,"column":41}}},"branchMap":{"1":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":2},"end":{"line":26,"column":2}},{"start":{"line":26,"column":2},"end":{"line":26,"column":2}}]},"2":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":2},"end":{"line":56,"column":2}},{"start":{"line":56,"column":2},"end":{"line":56,"column":2}}]}}},"/Users/jeff/Projects/awilix/lib/AwilixResolutionError.js":{"path":"/Users/jeff/Projects/awilix/lib/AwilixResolutionError.js","s":{"1":1,"2":1,"3":1,"4":11,"5":1,"6":11,"7":11,"8":11,"9":11,"10":11,"11":2,"12":11,"13":11,"14":11,"15":11,"16":1},"b":{"1":[1,10],"2":[2,9]},"f":{"1":11},"fnMap":{"1":{"name":"(anonymous_1)","line":48,"loc":{"start":{"line":48,"column":13},"end":{"line":48,"column":46}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":44}},"3":{"start":{"line":16,"column":0},"end":{"line":32,"column":1}},"4":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":26}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":43}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":28}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":59}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":42}},"10":{"start":{"line":24,"column":2},"end":{"line":26,"column":3}},"11":{"start":{"line":25,"column":4},"end":{"line":25,"column":24}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":51}},"14":{"start":{"line":31,"column":2},"end":{"line":31,"column":12}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":61}},"16":{"start":{"line":53,"column":0},"end":{"line":53,"column":38}}},"branchMap":{"1":{"line":17,"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":17,"column":2}},{"start":{"line":17,"column":2},"end":{"line":17,"column":2}}]},"2":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":2},"end":{"line":24,"column":2}},{"start":{"line":24,"column":2},"end":{"line":24,"column":2}}]}}}} | ||
{"/Users/jeff/Projects/awilix/lib/awilix.js":{"path":"/Users/jeff/Projects/awilix/lib/awilix.js","s":{"1":1,"2":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":2,"column":0},"end":{"line":8,"column":1}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":57}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/createContainer.js":{"path":"/Users/jeff/Projects/awilix/lib/createContainer.js","s":{"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":101,"15":101,"16":101,"17":101,"18":101,"19":2,"20":101,"21":41,"22":101,"23":101,"24":101,"25":101,"26":8,"27":101,"28":116,"29":1,"30":20,"31":7,"32":7,"33":6,"34":1,"35":101,"36":101,"37":231,"38":54,"39":177,"40":177,"41":101,"42":101,"43":22,"44":22,"45":71,"46":101,"47":19,"48":101,"49":101,"50":141,"51":141,"52":141,"53":151,"54":151,"55":141,"56":141,"57":101,"58":101,"59":303,"60":62,"61":4,"62":1,"63":3,"64":3,"65":3,"66":61,"67":61,"68":61,"69":88,"70":88,"71":88,"72":14,"73":14,"74":4,"75":14,"76":14,"77":88,"78":61,"79":101,"80":2,"81":101,"82":101,"83":101,"84":101,"85":184,"86":116,"87":184,"88":184,"89":184,"90":184,"91":1,"92":183,"93":4,"94":179,"95":33,"96":2,"97":31,"98":22,"99":9,"100":146,"101":146,"102":146,"103":112,"104":95,"105":6,"106":6,"107":2,"108":2,"109":4,"110":6,"111":27,"112":40,"113":40,"114":14,"115":14,"116":27,"117":13,"118":13,"119":27,"120":1,"121":128,"122":128,"123":28,"124":28,"125":101,"126":101,"127":10,"128":3,"129":7,"130":7,"131":7,"132":5,"133":4,"134":4,"135":101,"136":101,"137":3,"138":3,"139":101,"140":101},"b":{"1":[1,1],"2":[19,82],"3":[101,101],"4":[6,1],"5":[54,177],"6":[231,146],"7":[177,45],"8":[4,58],"9":[62,4],"10":[1,3],"11":[14,74],"12":[88,52],"13":[4,10],"14":[116,68],"15":[1,183],"16":[4,179],"17":[33,146],"18":[2,31],"19":[33,31],"20":[22,9],"21":[112,6,27,1],"22":[2,4],"23":[14,26],"24":[13,14],"25":[3,7],"26":[10,8],"27":[2,2]},"f":{"1":101,"2":41,"3":8,"4":20,"5":7,"6":22,"7":62},"fnMap":{"1":{"name":"createContainer","line":36,"loc":{"start":{"line":36,"column":17},"end":{"line":36,"column":70}}},"2":{"name":"(anonymous_2)","line":77,"loc":{"start":{"line":77,"column":21},"end":{"line":77,"column":24}}},"3":{"name":"(anonymous_3)","line":112,"loc":{"start":{"line":112,"column":6},"end":{"line":112,"column":20}}},"4":{"name":"(anonymous_4)","line":158,"loc":{"start":{"line":158,"column":13},"end":{"line":158,"column":16}}},"5":{"name":"(anonymous_5)","line":165,"loc":{"start":{"line":165,"column":30},"end":{"line":165,"column":44}}},"6":{"name":"(anonymous_6)","line":206,"loc":{"start":{"line":206,"column":36},"end":{"line":206,"column":48}}},"7":{"name":"registerShortcut","line":259,"loc":{"start":{"line":259,"column":4},"end":{"line":259,"column":49}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":63}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":44}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":44}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":67}},"6":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"7":{"start":{"line":7,"column":0},"end":{"line":7,"column":64}},"8":{"start":{"line":8,"column":0},"end":{"line":8,"column":52}},"9":{"start":{"line":9,"column":0},"end":{"line":9,"column":44}},"10":{"start":{"line":10,"column":0},"end":{"line":10,"column":38}},"11":{"start":{"line":16,"column":0},"end":{"line":16,"column":40}},"12":{"start":{"line":22,"column":0},"end":{"line":22,"column":59}},"13":{"start":{"line":36,"column":0},"end":{"line":520,"column":1}},"14":{"start":{"line":37,"column":2},"end":{"line":42,"column":3}},"15":{"start":{"line":48,"column":2},"end":{"line":48,"column":26}},"16":{"start":{"line":52,"column":2},"end":{"line":52,"column":36}},"17":{"start":{"line":55,"column":2},"end":{"line":55,"column":26}},"18":{"start":{"line":60,"column":2},"end":{"line":64,"column":3}},"19":{"start":{"line":61,"column":4},"end":{"line":63,"column":69}},"20":{"start":{"line":67,"column":2},"end":{"line":86,"column":3}},"21":{"start":{"line":78,"column":6},"end":{"line":78,"column":34}},"22":{"start":{"line":89,"column":2},"end":{"line":91,"column":17}},"23":{"start":{"line":99,"column":2},"end":{"line":99,"column":37}},"24":{"start":{"line":106,"column":2},"end":{"line":106,"column":22}},"25":{"start":{"line":109,"column":2},"end":{"line":117,"column":3}},"26":{"start":{"line":113,"column":8},"end":{"line":113,"column":27}},"27":{"start":{"line":124,"column":2},"end":{"line":177,"column":3}},"28":{"start":{"line":139,"column":29},"end":{"line":139,"column":42}},"29":{"start":{"line":148,"column":8},"end":{"line":152,"column":9}},"30":{"start":{"line":159,"column":8},"end":{"line":159,"column":33}},"31":{"start":{"line":166,"column":8},"end":{"line":166,"column":42}},"32":{"start":{"line":167,"column":8},"end":{"line":172,"column":9}},"33":{"start":{"line":168,"column":10},"end":{"line":171,"column":11}},"34":{"start":{"line":174,"column":8},"end":{"line":174,"column":24}},"35":{"start":{"line":179,"column":2},"end":{"line":179,"column":27}},"36":{"start":{"line":187,"column":2},"end":{"line":199,"column":3}},"37":{"start":{"line":188,"column":4},"end":{"line":190,"column":5}},"38":{"start":{"line":189,"column":6},"end":{"line":189,"column":36}},"39":{"start":{"line":192,"column":4},"end":{"line":196,"column":5}},"40":{"start":{"line":198,"column":4},"end":{"line":198,"column":34}},"41":{"start":{"line":201,"column":2},"end":{"line":201,"column":56}},"42":{"start":{"line":206,"column":2},"end":{"line":211,"column":3}},"43":{"start":{"line":207,"column":4},"end":{"line":207,"column":47}},"44":{"start":{"line":208,"column":4},"end":{"line":210,"column":5}},"45":{"start":{"line":209,"column":6},"end":{"line":209,"column":28}},"46":{"start":{"line":219,"column":2},"end":{"line":221,"column":3}},"47":{"start":{"line":220,"column":4},"end":{"line":220,"column":46}},"48":{"start":{"line":223,"column":2},"end":{"line":223,"column":37}},"49":{"start":{"line":234,"column":2},"end":{"line":244,"column":3}},"50":{"start":{"line":235,"column":4},"end":{"line":235,"column":53}},"51":{"start":{"line":236,"column":4},"end":{"line":236,"column":76}},"52":{"start":{"line":237,"column":4},"end":{"line":240,"column":5}},"53":{"start":{"line":238,"column":6},"end":{"line":238,"column":28}},"54":{"start":{"line":239,"column":6},"end":{"line":239,"column":32}},"55":{"start":{"line":242,"column":4},"end":{"line":242,"column":34}},"56":{"start":{"line":243,"column":4},"end":{"line":243,"column":20}},"57":{"start":{"line":246,"column":2},"end":{"line":246,"column":31}},"58":{"start":{"line":258,"column":2},"end":{"line":297,"column":5}},"59":{"start":{"line":259,"column":4},"end":{"line":297,"column":5}},"60":{"start":{"line":261,"column":6},"end":{"line":270,"column":7}},"61":{"start":{"line":262,"column":8},"end":{"line":266,"column":9}},"62":{"start":{"line":263,"column":10},"end":{"line":265,"column":11}},"63":{"start":{"line":267,"column":8},"end":{"line":267,"column":20}},"64":{"start":{"line":268,"column":8},"end":{"line":268,"column":20}},"65":{"start":{"line":269,"column":8},"end":{"line":269,"column":24}},"66":{"start":{"line":272,"column":6},"end":{"line":272,"column":48}},"67":{"start":{"line":273,"column":6},"end":{"line":273,"column":78}},"68":{"start":{"line":274,"column":6},"end":{"line":293,"column":7}},"69":{"start":{"line":275,"column":8},"end":{"line":275,"column":38}},"70":{"start":{"line":278,"column":8},"end":{"line":278,"column":45}},"71":{"start":{"line":280,"column":8},"end":{"line":290,"column":9}},"72":{"start":{"line":281,"column":10},"end":{"line":281,"column":44}},"73":{"start":{"line":283,"column":10},"end":{"line":286,"column":11}},"74":{"start":{"line":285,"column":12},"end":{"line":285,"column":47}},"75":{"start":{"line":288,"column":10},"end":{"line":288,"column":57}},"76":{"start":{"line":289,"column":10},"end":{"line":289,"column":46}},"77":{"start":{"line":292,"column":8},"end":{"line":292,"column":51}},"78":{"start":{"line":296,"column":6},"end":{"line":296,"column":22}},"79":{"start":{"line":303,"column":2},"end":{"line":303,"column":56}},"80":{"start":{"line":303,"column":30},"end":{"line":303,"column":56}},"81":{"start":{"line":317,"column":2},"end":{"line":317,"column":55}},"82":{"start":{"line":331,"column":2},"end":{"line":331,"column":49}},"83":{"start":{"line":345,"column":2},"end":{"line":345,"column":76}},"84":{"start":{"line":356,"column":2},"end":{"line":455,"column":3}},"85":{"start":{"line":357,"column":4},"end":{"line":360,"column":5}},"86":{"start":{"line":359,"column":6},"end":{"line":359,"column":31}},"87":{"start":{"line":364,"column":4},"end":{"line":364,"column":33}},"88":{"start":{"line":366,"column":4},"end":{"line":454,"column":5}},"89":{"start":{"line":368,"column":6},"end":{"line":368,"column":56}},"90":{"start":{"line":369,"column":6},"end":{"line":375,"column":7}},"91":{"start":{"line":370,"column":8},"end":{"line":374,"column":9}},"92":{"start":{"line":378,"column":6},"end":{"line":380,"column":7}},"93":{"start":{"line":379,"column":8},"end":{"line":379,"column":30}},"94":{"start":{"line":382,"column":6},"end":{"line":396,"column":7}},"95":{"start":{"line":385,"column":8},"end":{"line":387,"column":9}},"96":{"start":{"line":386,"column":10},"end":{"line":386,"column":30}},"97":{"start":{"line":391,"column":8},"end":{"line":393,"column":9}},"98":{"start":{"line":392,"column":10},"end":{"line":392,"column":42}},"99":{"start":{"line":395,"column":8},"end":{"line":395,"column":62}},"100":{"start":{"line":399,"column":6},"end":{"line":399,"column":32}},"101":{"start":{"line":402,"column":6},"end":{"line":402,"column":26}},"102":{"start":{"line":403,"column":6},"end":{"line":446,"column":7}},"103":{"start":{"line":406,"column":10},"end":{"line":406,"column":52}},"104":{"start":{"line":407,"column":10},"end":{"line":407,"column":15}},"105":{"start":{"line":410,"column":10},"end":{"line":410,"column":35}},"106":{"start":{"line":411,"column":10},"end":{"line":416,"column":11}},"107":{"start":{"line":412,"column":12},"end":{"line":412,"column":54}},"108":{"start":{"line":413,"column":12},"end":{"line":413,"column":39}},"109":{"start":{"line":415,"column":12},"end":{"line":415,"column":29}},"110":{"start":{"line":417,"column":10},"end":{"line":417,"column":15}},"111":{"start":{"line":425,"column":10},"end":{"line":432,"column":11}},"112":{"start":{"line":426,"column":12},"end":{"line":426,"column":34}},"113":{"start":{"line":427,"column":12},"end":{"line":431,"column":13}},"114":{"start":{"line":429,"column":14},"end":{"line":429,"column":31}},"115":{"start":{"line":430,"column":14},"end":{"line":430,"column":19}},"116":{"start":{"line":435,"column":10},"end":{"line":438,"column":11}},"117":{"start":{"line":436,"column":12},"end":{"line":436,"column":54}},"118":{"start":{"line":437,"column":12},"end":{"line":437,"column":44}},"119":{"start":{"line":439,"column":10},"end":{"line":439,"column":15}},"120":{"start":{"line":441,"column":10},"end":{"line":445,"column":11}},"121":{"start":{"line":448,"column":6},"end":{"line":448,"column":27}},"122":{"start":{"line":449,"column":6},"end":{"line":449,"column":21}},"123":{"start":{"line":452,"column":6},"end":{"line":452,"column":26}},"124":{"start":{"line":453,"column":6},"end":{"line":453,"column":15}},"125":{"start":{"line":457,"column":2},"end":{"line":457,"column":29}},"126":{"start":{"line":467,"column":2},"end":{"line":493,"column":3}},"127":{"start":{"line":468,"column":4},"end":{"line":470,"column":5}},"128":{"start":{"line":469,"column":6},"end":{"line":469,"column":48}},"129":{"start":{"line":472,"column":4},"end":{"line":472,"column":28}},"130":{"start":{"line":473,"column":4},"end":{"line":473,"column":40}},"131":{"start":{"line":474,"column":4},"end":{"line":480,"column":5}},"132":{"start":{"line":481,"column":4},"end":{"line":487,"column":5}},"133":{"start":{"line":489,"column":4},"end":{"line":491,"column":42}},"134":{"start":{"line":492,"column":4},"end":{"line":492,"column":38}},"135":{"start":{"line":495,"column":2},"end":{"line":495,"column":25}},"136":{"start":{"line":506,"column":2},"end":{"line":509,"column":3}},"137":{"start":{"line":507,"column":4},"end":{"line":507,"column":53}},"138":{"start":{"line":508,"column":4},"end":{"line":508,"column":20}},"139":{"start":{"line":516,"column":2},"end":{"line":516,"column":37}},"140":{"start":{"line":519,"column":2},"end":{"line":519,"column":18}}},"branchMap":{"1":{"line":62,"type":"cond-expr","locations":[{"start":{"line":62,"column":26},"end":{"line":62,"column":36}},{"start":{"line":62,"column":39},"end":{"line":62,"column":41}}]},"2":{"line":89,"type":"cond-expr","locations":[{"start":{"line":90,"column":6},"end":{"line":90,"column":56}},{"start":{"line":91,"column":6},"end":{"line":91,"column":17}}]},"3":{"line":111,"type":"binary-expr","locations":[{"start":{"line":111,"column":6},"end":{"line":111,"column":21}},{"start":{"line":112,"column":6},"end":{"line":114,"column":7}}]},"4":{"line":167,"type":"if","locations":[{"start":{"line":167,"column":8},"end":{"line":167,"column":8}},{"start":{"line":167,"column":8},"end":{"line":167,"column":8}}]},"5":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":4},"end":{"line":188,"column":4}},{"start":{"line":188,"column":4},"end":{"line":188,"column":4}}]},"6":{"line":188,"type":"binary-expr","locations":[{"start":{"line":188,"column":8},"end":{"line":188,"column":31}},{"start":{"line":188,"column":35},"end":{"line":188,"column":45}}]},"7":{"line":194,"type":"binary-expr","locations":[{"start":{"line":194,"column":6},"end":{"line":194,"column":23}},{"start":{"line":194,"column":27},"end":{"line":194,"column":78}}]},"8":{"line":261,"type":"if","locations":[{"start":{"line":261,"column":6},"end":{"line":261,"column":6}},{"start":{"line":261,"column":6},"end":{"line":261,"column":6}}]},"9":{"line":261,"type":"binary-expr","locations":[{"start":{"line":261,"column":10},"end":{"line":261,"column":36}},{"start":{"line":261,"column":40},"end":{"line":261,"column":54}}]},"10":{"line":262,"type":"if","locations":[{"start":{"line":262,"column":8},"end":{"line":262,"column":8}},{"start":{"line":262,"column":8},"end":{"line":262,"column":8}}]},"11":{"line":280,"type":"if","locations":[{"start":{"line":280,"column":8},"end":{"line":280,"column":8}},{"start":{"line":280,"column":8},"end":{"line":280,"column":8}}]},"12":{"line":280,"type":"binary-expr","locations":[{"start":{"line":280,"column":12},"end":{"line":280,"column":26}},{"start":{"line":280,"column":30},"end":{"line":280,"column":60}}]},"13":{"line":283,"type":"if","locations":[{"start":{"line":283,"column":10},"end":{"line":283,"column":10}},{"start":{"line":283,"column":10},"end":{"line":283,"column":10}}]},"14":{"line":357,"type":"if","locations":[{"start":{"line":357,"column":4},"end":{"line":357,"column":4}},{"start":{"line":357,"column":4},"end":{"line":357,"column":4}}]},"15":{"line":369,"type":"if","locations":[{"start":{"line":369,"column":6},"end":{"line":369,"column":6}},{"start":{"line":369,"column":6},"end":{"line":369,"column":6}}]},"16":{"line":378,"type":"if","locations":[{"start":{"line":378,"column":6},"end":{"line":378,"column":6}},{"start":{"line":378,"column":6},"end":{"line":378,"column":6}}]},"17":{"line":382,"type":"if","locations":[{"start":{"line":382,"column":6},"end":{"line":382,"column":6}},{"start":{"line":382,"column":6},"end":{"line":382,"column":6}}]},"18":{"line":385,"type":"if","locations":[{"start":{"line":385,"column":8},"end":{"line":385,"column":8}},{"start":{"line":385,"column":8},"end":{"line":385,"column":8}}]},"19":{"line":385,"type":"binary-expr","locations":[{"start":{"line":385,"column":12},"end":{"line":385,"column":40}},{"start":{"line":385,"column":44},"end":{"line":385,"column":62}}]},"20":{"line":391,"type":"if","locations":[{"start":{"line":391,"column":8},"end":{"line":391,"column":8}},{"start":{"line":391,"column":8},"end":{"line":391,"column":8}}]},"21":{"line":403,"type":"switch","locations":[{"start":{"line":404,"column":8},"end":{"line":407,"column":15}},{"start":{"line":408,"column":8},"end":{"line":417,"column":15}},{"start":{"line":418,"column":8},"end":{"line":439,"column":15}},{"start":{"line":440,"column":8},"end":{"line":445,"column":11}}]},"22":{"line":411,"type":"if","locations":[{"start":{"line":411,"column":10},"end":{"line":411,"column":10}},{"start":{"line":411,"column":10},"end":{"line":411,"column":10}}]},"23":{"line":427,"type":"if","locations":[{"start":{"line":427,"column":12},"end":{"line":427,"column":12}},{"start":{"line":427,"column":12},"end":{"line":427,"column":12}}]},"24":{"line":435,"type":"if","locations":[{"start":{"line":435,"column":10},"end":{"line":435,"column":10}},{"start":{"line":435,"column":10},"end":{"line":435,"column":10}}]},"25":{"line":468,"type":"if","locations":[{"start":{"line":468,"column":4},"end":{"line":468,"column":4}},{"start":{"line":468,"column":4},"end":{"line":468,"column":4}}]},"26":{"line":468,"type":"binary-expr","locations":[{"start":{"line":468,"column":8},"end":{"line":468,"column":24}},{"start":{"line":468,"column":28},"end":{"line":468,"column":52}}]},"27":{"line":489,"type":"cond-expr","locations":[{"start":{"line":490,"column":8},"end":{"line":490,"column":39}},{"start":{"line":491,"column":8},"end":{"line":491,"column":42}}]}}},"/Users/jeff/Projects/awilix/lib/utils.js":{"path":"/Users/jeff/Projects/awilix/lib/utils.js","s":{"1":1,"2":1,"3":6,"4":6,"5":10,"6":43,"7":6,"8":1,"9":204,"10":204,"11":133,"12":204,"13":1,"14":185,"15":1,"16":33,"17":2,"18":31,"19":31,"20":31,"21":6,"22":25,"23":25,"24":2,"25":1,"26":24,"27":1,"28":165,"29":1,"30":19,"31":19,"32":85,"33":85,"34":82,"35":19},"b":{"1":[133,71],"2":[204,74],"3":[2,31],"4":[6,25],"5":[2,23],"6":[25,8],"7":[1,1],"8":[82,3]},"f":{"1":6,"2":204,"3":185,"4":33,"5":165,"6":19},"fnMap":{"1":{"name":"flatten","line":12,"loc":{"start":{"line":12,"column":25},"end":{"line":12,"column":49}}},"2":{"name":"nameValueToObject","line":34,"loc":{"start":{"line":34,"column":35},"end":{"line":34,"column":75}}},"3":{"name":"last","line":52,"loc":{"start":{"line":52,"column":22},"end":{"line":52,"column":41}}},"4":{"name":"isClass","line":62,"loc":{"start":{"line":62,"column":25},"end":{"line":62,"column":46}}},"5":{"name":"isFunction","line":93,"loc":{"start":{"line":93,"column":28},"end":{"line":93,"column":53}}},"6":{"name":"uniq","line":106,"loc":{"start":{"line":106,"column":22},"end":{"line":106,"column":41}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},"2":{"start":{"line":12,"column":0},"end":{"line":21,"column":1}},"3":{"start":{"line":13,"column":2},"end":{"line":13,"column":19}},"4":{"start":{"line":14,"column":2},"end":{"line":18,"column":4}},"5":{"start":{"line":15,"column":4},"end":{"line":17,"column":6}},"6":{"start":{"line":16,"column":6},"end":{"line":16,"column":23}},"7":{"start":{"line":20,"column":2},"end":{"line":20,"column":15}},"8":{"start":{"line":34,"column":0},"end":{"line":41,"column":1}},"9":{"start":{"line":35,"column":2},"end":{"line":35,"column":16}},"10":{"start":{"line":36,"column":2},"end":{"line":38,"column":3}},"11":{"start":{"line":37,"column":4},"end":{"line":37,"column":42}},"12":{"start":{"line":40,"column":2},"end":{"line":40,"column":12}},"13":{"start":{"line":52,"column":0},"end":{"line":54,"column":1}},"14":{"start":{"line":53,"column":2},"end":{"line":53,"column":28}},"15":{"start":{"line":62,"column":0},"end":{"line":82,"column":1}},"16":{"start":{"line":63,"column":2},"end":{"line":65,"column":3}},"17":{"start":{"line":64,"column":4},"end":{"line":64,"column":16}},"18":{"start":{"line":68,"column":2},"end":{"line":68,"column":51}},"19":{"start":{"line":69,"column":2},"end":{"line":69,"column":25}},"20":{"start":{"line":70,"column":2},"end":{"line":72,"column":3}},"21":{"start":{"line":71,"column":4},"end":{"line":71,"column":15}},"22":{"start":{"line":74,"column":2},"end":{"line":74,"column":26}},"23":{"start":{"line":75,"column":2},"end":{"line":79,"column":3}},"24":{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},"25":{"start":{"line":77,"column":6},"end":{"line":77,"column":17}},"26":{"start":{"line":81,"column":2},"end":{"line":81,"column":14}},"27":{"start":{"line":93,"column":0},"end":{"line":95,"column":1}},"28":{"start":{"line":94,"column":2},"end":{"line":94,"column":34}},"29":{"start":{"line":106,"column":0},"end":{"line":116,"column":1}},"30":{"start":{"line":107,"column":2},"end":{"line":107,"column":19}},"31":{"start":{"line":108,"column":2},"end":{"line":113,"column":3}},"32":{"start":{"line":109,"column":4},"end":{"line":109,"column":25}},"33":{"start":{"line":110,"column":4},"end":{"line":112,"column":5}},"34":{"start":{"line":111,"column":6},"end":{"line":111,"column":23}},"35":{"start":{"line":115,"column":2},"end":{"line":115,"column":15}}},"branchMap":{"1":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":2},"end":{"line":36,"column":2}},{"start":{"line":36,"column":2},"end":{"line":36,"column":2}}]},"2":{"line":36,"type":"binary-expr","locations":[{"start":{"line":36,"column":6},"end":{"line":36,"column":29}},{"start":{"line":36,"column":33},"end":{"line":36,"column":56}}]},"3":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":2},"end":{"line":63,"column":2}},{"start":{"line":63,"column":2},"end":{"line":63,"column":2}}]},"4":{"line":70,"type":"if","locations":[{"start":{"line":70,"column":2},"end":{"line":70,"column":2}},{"start":{"line":70,"column":2},"end":{"line":70,"column":2}}]},"5":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":2},"end":{"line":75,"column":2}},{"start":{"line":75,"column":2},"end":{"line":75,"column":2}}]},"6":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":6},"end":{"line":75,"column":32}},{"start":{"line":75,"column":36},"end":{"line":75,"column":48}}]},"7":{"line":76,"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":76,"column":4}},{"start":{"line":76,"column":4},"end":{"line":76,"column":4}}]},"8":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":4},"end":{"line":110,"column":4}},{"start":{"line":110,"column":4},"end":{"line":110,"column":4}}]}}},"/Users/jeff/Projects/awilix/lib/tokenizeFunction.js":{"path":"/Users/jeff/Projects/awilix/lib/tokenizeFunction.js","s":{"1":1,"2":177,"3":177,"4":177,"5":177,"6":2297,"7":13,"8":2284,"9":2284,"10":1,"11":1,"12":2283,"13":1237,"14":1237,"15":1046,"16":120,"17":120,"18":120,"19":926,"20":110,"21":110,"22":110,"23":816,"24":19,"25":19,"26":19,"27":797,"28":115,"29":70,"30":70,"31":45,"32":45,"33":1104,"34":1104,"35":16,"36":16,"37":1088,"38":4,"39":1088,"40":727,"41":727,"42":4039,"43":4039,"44":93,"45":93,"46":3946,"47":634,"48":3312,"49":3312,"50":634,"51":607,"52":71,"53":1,"54":6086,"55":1728,"56":4358,"57":1,"58":1088,"59":4,"60":1084},"b":{"1":[13,2284],"2":[2297,76],"3":[1,2283],"4":[1237,1046],"5":[120,926],"6":[110,816],"7":[19,797],"8":[115,682],"9":[70,45],"10":[16,1088],"11":[4,1084],"12":[1088,1080,30],"13":[93,3946],"14":[634,3312],"15":[3946,3884,3866,3803],"16":[607,27],"17":[5,317,1728],"18":[4,4,4]},"f":{"1":177,"2":6086,"3":1088},"fnMap":{"1":{"name":"tokenizeFunction","line":8,"loc":{"start":{"line":8,"column":17},"end":{"line":8,"column":62}}},"2":{"name":"isWhiteSpace","line":95,"loc":{"start":{"line":95,"column":0},"end":{"line":95,"column":26}}},"3":{"name":"isStringQuote","line":110,"loc":{"start":{"line":110,"column":0},"end":{"line":110,"column":27}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":87,"column":1}},"2":{"start":{"line":9,"column":2},"end":{"line":9,"column":13}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":8}},"4":{"start":{"line":11,"column":2},"end":{"line":11,"column":19}},"5":{"start":{"line":12,"column":2},"end":{"line":84,"column":3}},"6":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"7":{"start":{"line":14,"column":6},"end":{"line":14,"column":19}},"8":{"start":{"line":16,"column":4},"end":{"line":16,"column":20}},"9":{"start":{"line":17,"column":4},"end":{"line":20,"column":5}},"10":{"start":{"line":18,"column":6},"end":{"line":18,"column":34}},"11":{"start":{"line":19,"column":6},"end":{"line":19,"column":11}},"12":{"start":{"line":22,"column":4},"end":{"line":25,"column":5}},"13":{"start":{"line":23,"column":6},"end":{"line":23,"column":11}},"14":{"start":{"line":24,"column":6},"end":{"line":24,"column":14}},"15":{"start":{"line":27,"column":4},"end":{"line":31,"column":5}},"16":{"start":{"line":28,"column":6},"end":{"line":28,"column":32}},"17":{"start":{"line":29,"column":6},"end":{"line":29,"column":11}},"18":{"start":{"line":30,"column":6},"end":{"line":30,"column":14}},"19":{"start":{"line":33,"column":4},"end":{"line":37,"column":5}},"20":{"start":{"line":34,"column":6},"end":{"line":34,"column":32}},"21":{"start":{"line":35,"column":6},"end":{"line":35,"column":11}},"22":{"start":{"line":36,"column":6},"end":{"line":36,"column":14}},"23":{"start":{"line":39,"column":4},"end":{"line":43,"column":5}},"24":{"start":{"line":40,"column":6},"end":{"line":40,"column":32}},"25":{"start":{"line":41,"column":6},"end":{"line":41,"column":11}},"26":{"start":{"line":42,"column":6},"end":{"line":42,"column":14}},"27":{"start":{"line":47,"column":4},"end":{"line":66,"column":5}},"28":{"start":{"line":48,"column":6},"end":{"line":52,"column":7}},"29":{"start":{"line":50,"column":8},"end":{"line":50,"column":36}},"30":{"start":{"line":51,"column":8},"end":{"line":51,"column":13}},"31":{"start":{"line":53,"column":6},"end":{"line":53,"column":28}},"32":{"start":{"line":54,"column":6},"end":{"line":65,"column":56}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":24}},"34":{"start":{"line":56,"column":8},"end":{"line":59,"column":9}},"35":{"start":{"line":57,"column":10},"end":{"line":57,"column":38}},"36":{"start":{"line":58,"column":10},"end":{"line":58,"column":15}},"37":{"start":{"line":61,"column":8},"end":{"line":63,"column":9}},"38":{"start":{"line":62,"column":10},"end":{"line":62,"column":34}},"39":{"start":{"line":64,"column":8},"end":{"line":64,"column":13}},"40":{"start":{"line":68,"column":4},"end":{"line":68,"column":23}},"41":{"start":{"line":69,"column":4},"end":{"line":80,"column":5}},"42":{"start":{"line":70,"column":6},"end":{"line":70,"column":22}},"43":{"start":{"line":71,"column":6},"end":{"line":74,"column":7}},"44":{"start":{"line":72,"column":8},"end":{"line":72,"column":36}},"45":{"start":{"line":73,"column":8},"end":{"line":73,"column":21}},"46":{"start":{"line":75,"column":6},"end":{"line":77,"column":7}},"47":{"start":{"line":76,"column":8},"end":{"line":76,"column":13}},"48":{"start":{"line":78,"column":6},"end":{"line":78,"column":23}},"49":{"start":{"line":79,"column":6},"end":{"line":79,"column":11}},"50":{"start":{"line":81,"column":4},"end":{"line":83,"column":5}},"51":{"start":{"line":82,"column":6},"end":{"line":82,"column":62}},"52":{"start":{"line":86,"column":2},"end":{"line":86,"column":15}},"53":{"start":{"line":95,"column":0},"end":{"line":103,"column":1}},"54":{"start":{"line":96,"column":2},"end":{"line":101,"column":3}},"55":{"start":{"line":100,"column":6},"end":{"line":100,"column":17}},"56":{"start":{"line":102,"column":2},"end":{"line":102,"column":14}},"57":{"start":{"line":110,"column":0},"end":{"line":118,"column":1}},"58":{"start":{"line":111,"column":2},"end":{"line":116,"column":3}},"59":{"start":{"line":115,"column":6},"end":{"line":115,"column":17}},"60":{"start":{"line":117,"column":2},"end":{"line":117,"column":14}}},"branchMap":{"1":{"line":13,"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":4}},{"start":{"line":13,"column":4},"end":{"line":13,"column":4}}]},"2":{"line":13,"type":"binary-expr","locations":[{"start":{"line":13,"column":8},"end":{"line":13,"column":17}},{"start":{"line":13,"column":21},"end":{"line":13,"column":47}}]},"3":{"line":17,"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":17,"column":4}},{"start":{"line":17,"column":4},"end":{"line":17,"column":4}}]},"4":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":4}},{"start":{"line":22,"column":4},"end":{"line":22,"column":4}}]},"5":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":27,"column":4}},{"start":{"line":27,"column":4},"end":{"line":27,"column":4}}]},"6":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},{"start":{"line":33,"column":4},"end":{"line":33,"column":4}}]},"7":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":39,"column":4}},{"start":{"line":39,"column":4},"end":{"line":39,"column":4}}]},"8":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":47,"column":4}},{"start":{"line":47,"column":4},"end":{"line":47,"column":4}}]},"9":{"line":48,"type":"if","locations":[{"start":{"line":48,"column":6},"end":{"line":48,"column":6}},{"start":{"line":48,"column":6},"end":{"line":48,"column":6}}]},"10":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":8},"end":{"line":56,"column":8}},{"start":{"line":56,"column":8},"end":{"line":56,"column":8}}]},"11":{"line":61,"type":"if","locations":[{"start":{"line":61,"column":8},"end":{"line":61,"column":8}},{"start":{"line":61,"column":8},"end":{"line":61,"column":8}}]},"12":{"line":65,"type":"binary-expr","locations":[{"start":{"line":65,"column":16},"end":{"line":65,"column":26}},{"start":{"line":65,"column":30},"end":{"line":65,"column":40}},{"start":{"line":65,"column":45},"end":{"line":65,"column":55}}]},"13":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":6},"end":{"line":71,"column":6}},{"start":{"line":71,"column":6},"end":{"line":71,"column":6}}]},"14":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":6},"end":{"line":75,"column":6}},{"start":{"line":75,"column":6},"end":{"line":75,"column":6}}]},"15":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":10},"end":{"line":75,"column":20}},{"start":{"line":75,"column":24},"end":{"line":75,"column":34}},{"start":{"line":75,"column":38},"end":{"line":75,"column":48}},{"start":{"line":75,"column":52},"end":{"line":75,"column":68}}]},"16":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":81,"column":4}},{"start":{"line":81,"column":4},"end":{"line":81,"column":4}}]},"17":{"line":96,"type":"switch","locations":[{"start":{"line":97,"column":4},"end":{"line":97,"column":14}},{"start":{"line":98,"column":4},"end":{"line":98,"column":14}},{"start":{"line":99,"column":4},"end":{"line":100,"column":17}}]},"18":{"line":111,"type":"switch","locations":[{"start":{"line":112,"column":4},"end":{"line":112,"column":13}},{"start":{"line":113,"column":4},"end":{"line":113,"column":13}},{"start":{"line":114,"column":4},"end":{"line":115,"column":17}}]}}},"/Users/jeff/Projects/awilix/lib/loadModules.js":{"path":"/Users/jeff/Projects/awilix/lib/loadModules.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":14,"8":14,"9":14,"10":14,"11":27,"12":27,"13":1,"14":26,"15":5,"16":3,"17":2,"18":21,"19":14,"20":27,"21":14,"22":1,"23":14,"24":1,"25":24,"26":24,"27":24,"28":23,"29":23,"30":23,"31":4,"32":2,"33":4,"34":3,"35":24,"36":24,"37":5,"38":24,"39":24,"40":24},"b":{"1":[1,26],"2":[5,21],"3":[3,2],"4":[5,3],"5":[14,12],"6":[24,3],"7":[23,1],"8":[4,19],"9":[2,2],"10":[3,1],"11":[5,19],"12":[1,23],"13":[2,21]},"f":{"1":14,"2":14,"3":24},"fnMap":{"1":{"name":"loadModules","line":36,"loc":{"start":{"line":36,"column":17},"end":{"line":36,"column":72}}},"2":{"name":"optsWithDefaults","line":79,"loc":{"start":{"line":79,"column":0},"end":{"line":79,"column":43}}},"3":{"name":"registerDescriptor","line":103,"loc":{"start":{"line":103,"column":0},"end":{"line":103,"column":63}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":38}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":50}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":48}},"5":{"start":{"line":6,"column":0},"end":{"line":8,"column":1}},"6":{"start":{"line":36,"column":0},"end":{"line":74,"column":1}},"7":{"start":{"line":37,"column":2},"end":{"line":37,"column":42}},"8":{"start":{"line":38,"column":2},"end":{"line":38,"column":42}},"9":{"start":{"line":39,"column":2},"end":{"line":39,"column":62}},"10":{"start":{"line":41,"column":2},"end":{"line":69,"column":4}},"11":{"start":{"line":42,"column":4},"end":{"line":42,"column":47}},"12":{"start":{"line":45,"column":4},"end":{"line":47,"column":5}},"13":{"start":{"line":46,"column":6},"end":{"line":46,"column":22}},"14":{"start":{"line":49,"column":4},"end":{"line":61,"column":5}},"15":{"start":{"line":50,"column":6},"end":{"line":58,"column":7}},"16":{"start":{"line":52,"column":8},"end":{"line":57,"column":9}},"17":{"start":{"line":60,"column":6},"end":{"line":60,"column":22}},"18":{"start":{"line":63,"column":4},"end":{"line":68,"column":5}},"19":{"start":{"line":70,"column":2},"end":{"line":70,"column":79}},"20":{"start":{"line":70,"column":21},"end":{"line":70,"column":22}},"21":{"start":{"line":71,"column":2},"end":{"line":73,"column":3}},"22":{"start":{"line":79,"column":0},"end":{"line":94,"column":1}},"23":{"start":{"line":80,"column":2},"end":{"line":93,"column":3}},"24":{"start":{"line":103,"column":0},"end":{"line":139,"column":1}},"25":{"start":{"line":104,"column":2},"end":{"line":104,"column":73}},"26":{"start":{"line":105,"column":2},"end":{"line":105,"column":46}},"27":{"start":{"line":106,"column":2},"end":{"line":118,"column":3}},"28":{"start":{"line":107,"column":4},"end":{"line":107,"column":32}},"29":{"start":{"line":108,"column":4},"end":{"line":108,"column":35}},"30":{"start":{"line":109,"column":4},"end":{"line":117,"column":5}},"31":{"start":{"line":110,"column":6},"end":{"line":112,"column":7}},"32":{"start":{"line":111,"column":8},"end":{"line":111,"column":45}},"33":{"start":{"line":114,"column":6},"end":{"line":116,"column":7}},"34":{"start":{"line":115,"column":8},"end":{"line":115,"column":48}},"35":{"start":{"line":120,"column":2},"end":{"line":120,"column":50}},"36":{"start":{"line":122,"column":2},"end":{"line":124,"column":3}},"37":{"start":{"line":123,"column":4},"end":{"line":123,"column":61}},"38":{"start":{"line":126,"column":2},"end":{"line":130,"column":3}},"39":{"start":{"line":132,"column":2},"end":{"line":136,"column":32}},"40":{"start":{"line":138,"column":2},"end":{"line":138,"column":64}}},"branchMap":{"1":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":4},"end":{"line":45,"column":4}},{"start":{"line":45,"column":4},"end":{"line":45,"column":4}}]},"2":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":49,"column":4}},{"start":{"line":49,"column":4},"end":{"line":49,"column":4}}]},"3":{"line":50,"type":"if","locations":[{"start":{"line":50,"column":6},"end":{"line":50,"column":6}},{"start":{"line":50,"column":6},"end":{"line":50,"column":6}}]},"4":{"line":50,"type":"binary-expr","locations":[{"start":{"line":50,"column":10},"end":{"line":50,"column":24}},{"start":{"line":50,"column":28},"end":{"line":50,"column":54}}]},"5":{"line":89,"type":"binary-expr","locations":[{"start":{"line":89,"column":8},"end":{"line":89,"column":12}},{"start":{"line":89,"column":16},"end":{"line":89,"column":40}}]},"6":{"line":105,"type":"binary-expr","locations":[{"start":{"line":105,"column":13},"end":{"line":105,"column":25}},{"start":{"line":105,"column":29},"end":{"line":105,"column":46}}]},"7":{"line":106,"type":"if","locations":[{"start":{"line":106,"column":2},"end":{"line":106,"column":2}},{"start":{"line":106,"column":2},"end":{"line":106,"column":2}}]},"8":{"line":109,"type":"if","locations":[{"start":{"line":109,"column":4},"end":{"line":109,"column":4}},{"start":{"line":109,"column":4},"end":{"line":109,"column":4}}]},"9":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":6},"end":{"line":110,"column":6}},{"start":{"line":110,"column":6},"end":{"line":110,"column":6}}]},"10":{"line":114,"type":"if","locations":[{"start":{"line":114,"column":6},"end":{"line":114,"column":6}},{"start":{"line":114,"column":6},"end":{"line":114,"column":6}}]},"11":{"line":122,"type":"if","locations":[{"start":{"line":122,"column":2},"end":{"line":122,"column":2}},{"start":{"line":122,"column":2},"end":{"line":122,"column":2}}]},"12":{"line":132,"type":"cond-expr","locations":[{"start":{"line":133,"column":6},"end":{"line":133,"column":22}},{"start":{"line":134,"column":6},"end":{"line":136,"column":32}}]},"13":{"line":134,"type":"cond-expr","locations":[{"start":{"line":135,"column":8},"end":{"line":135,"column":29}},{"start":{"line":136,"column":8},"end":{"line":136,"column":32}}]}}},"/Users/jeff/Projects/awilix/lib/Lifetime.js":{"path":"/Users/jeff/Projects/awilix/lib/Lifetime.js","s":{"1":1,"2":1,"3":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":38}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":38}},"3":{"start":{"line":17,"column":0},"end":{"line":17,"column":32}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/registrations.js":{"path":"/Users/jeff/Projects/awilix/lib/registrations.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":126,"10":1,"11":126,"12":15,"13":15,"14":126,"15":11,"16":11,"17":126,"18":8,"19":8,"20":126,"21":4,"22":5,"23":4,"24":4,"25":7,"26":1,"27":46,"28":34,"29":46,"30":1,"31":1,"32":80,"33":1,"34":79,"35":79,"36":79,"37":79,"38":79,"39":79,"40":79,"41":1,"42":1,"43":48,"44":1,"45":47,"46":47,"47":47,"48":40,"49":47,"50":47,"51":47,"52":47,"53":47,"54":1,"55":6,"56":12,"57":6,"58":6,"59":1,"60":18,"61":18,"62":18,"63":20,"64":1,"65":1,"66":3,"67":1,"68":1,"69":19,"70":14,"71":5,"72":2,"73":11,"74":10,"75":1,"76":18,"77":1,"78":126,"79":79,"80":126,"81":126,"82":108,"83":108,"84":88,"85":88,"86":20,"87":16,"88":16,"89":16,"90":4,"91":1},"b":{"1":[1,79],"2":[1,47],"3":[6,6],"4":[1,19],"5":[14,5],"6":[10,1],"7":[79,47],"8":[108,74,1],"9":[88,20],"10":[18,70],"11":[16,4],"12":[6,10]},"f":{"1":40,"2":6,"3":12,"4":18,"5":20,"6":1,"7":2,"8":11,"9":126,"10":108},"fnMap":{"1":{"name":"newClass","line":163,"loc":{"start":{"line":163,"column":19},"end":{"line":163,"column":39}}},"2":{"name":"wrapWithLocals","line":187,"loc":{"start":{"line":187,"column":0},"end":{"line":187,"column":43}}},"3":{"name":"wrappedResolve","line":188,"loc":{"start":{"line":188,"column":9},"end":{"line":188,"column":39}}},"4":{"name":"createInjectorProxy","line":205,"loc":{"start":{"line":205,"column":0},"end":{"line":205,"column":50}}},"5":{"name":"(anonymous_5)","line":219,"loc":{"start":{"line":219,"column":9},"end":{"line":219,"column":24}}},"6":{"name":"iterateRegistrationsAndLocals","line":221,"loc":{"start":{"line":221,"column":17},"end":{"line":221,"column":59}}},"7":{"name":"(anonymous_7)","line":239,"loc":{"start":{"line":239,"column":13},"end":{"line":239,"column":16}}},"8":{"name":"(anonymous_8)","line":246,"loc":{"start":{"line":246,"column":30},"end":{"line":246,"column":44}}},"9":{"name":"generateResolve","line":280,"loc":{"start":{"line":280,"column":0},"end":{"line":280,"column":52}}},"10":{"name":"resolve","line":290,"loc":{"start":{"line":290,"column":9},"end":{"line":290,"column":37}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":50}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":47}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":58}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":68}},"6":{"start":{"line":11,"column":0},"end":{"line":11,"column":57}},"7":{"start":{"line":12,"column":0},"end":{"line":12,"column":42}},"8":{"start":{"line":25,"column":0},"end":{"line":27,"column":1}},"9":{"start":{"line":26,"column":2},"end":{"line":26,"column":45}},"10":{"start":{"line":42,"column":0},"end":{"line":68,"column":1}},"11":{"start":{"line":43,"column":2},"end":{"line":46,"column":3}},"12":{"start":{"line":44,"column":4},"end":{"line":44,"column":24}},"13":{"start":{"line":45,"column":4},"end":{"line":45,"column":14}},"14":{"start":{"line":48,"column":2},"end":{"line":51,"column":3}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":30}},"16":{"start":{"line":50,"column":4},"end":{"line":50,"column":14}},"17":{"start":{"line":53,"column":2},"end":{"line":56,"column":3}},"18":{"start":{"line":54,"column":4},"end":{"line":54,"column":27}},"19":{"start":{"line":55,"column":4},"end":{"line":55,"column":14}},"20":{"start":{"line":58,"column":2},"end":{"line":67,"column":3}},"21":{"start":{"line":61,"column":21},"end":{"line":61,"column":52}},"22":{"start":{"line":62,"column":18},"end":{"line":62,"column":46}},"23":{"start":{"line":63,"column":21},"end":{"line":63,"column":52}},"24":{"start":{"line":65,"column":17},"end":{"line":65,"column":56}},"25":{"start":{"line":66,"column":19},"end":{"line":66,"column":60}},"26":{"start":{"line":82,"column":0},"end":{"line":91,"column":1}},"27":{"start":{"line":83,"column":2},"end":{"line":85,"column":3}},"28":{"start":{"line":84,"column":4},"end":{"line":84,"column":16}},"29":{"start":{"line":87,"column":2},"end":{"line":90,"column":3}},"30":{"start":{"line":93,"column":0},"end":{"line":93,"column":32}},"31":{"start":{"line":111,"column":0},"end":{"line":132,"column":1}},"32":{"start":{"line":112,"column":2},"end":{"line":114,"column":3}},"33":{"start":{"line":113,"column":4},"end":{"line":113,"column":74}},"34":{"start":{"line":116,"column":2},"end":{"line":118,"column":3}},"35":{"start":{"line":120,"column":2},"end":{"line":120,"column":54}},"36":{"start":{"line":122,"column":2},"end":{"line":122,"column":37}},"37":{"start":{"line":123,"column":2},"end":{"line":128,"column":3}},"38":{"start":{"line":129,"column":2},"end":{"line":129,"column":39}},"39":{"start":{"line":130,"column":2},"end":{"line":130,"column":51}},"40":{"start":{"line":131,"column":2},"end":{"line":131,"column":15}},"41":{"start":{"line":134,"column":0},"end":{"line":134,"column":38}},"42":{"start":{"line":151,"column":0},"end":{"line":177,"column":1}},"43":{"start":{"line":152,"column":2},"end":{"line":154,"column":3}},"44":{"start":{"line":153,"column":4},"end":{"line":153,"column":70}},"45":{"start":{"line":156,"column":2},"end":{"line":158,"column":3}},"46":{"start":{"line":160,"column":2},"end":{"line":160,"column":56}},"47":{"start":{"line":163,"column":2},"end":{"line":165,"column":3}},"48":{"start":{"line":164,"column":4},"end":{"line":164,"column":33}},"49":{"start":{"line":167,"column":2},"end":{"line":167,"column":71}},"50":{"start":{"line":168,"column":2},"end":{"line":172,"column":3}},"51":{"start":{"line":173,"column":2},"end":{"line":173,"column":39}},"52":{"start":{"line":174,"column":2},"end":{"line":174,"column":51}},"53":{"start":{"line":176,"column":2},"end":{"line":176,"column":15}},"54":{"start":{"line":187,"column":0},"end":{"line":195,"column":1}},"55":{"start":{"line":188,"column":2},"end":{"line":194,"column":3}},"56":{"start":{"line":189,"column":4},"end":{"line":191,"column":5}},"57":{"start":{"line":190,"column":6},"end":{"line":190,"column":25}},"58":{"start":{"line":193,"column":4},"end":{"line":193,"column":34}},"59":{"start":{"line":205,"column":0},"end":{"line":260,"column":1}},"60":{"start":{"line":206,"column":2},"end":{"line":206,"column":36}},"61":{"start":{"line":207,"column":2},"end":{"line":210,"column":4}},"62":{"start":{"line":213,"column":2},"end":{"line":257,"column":3}},"63":{"start":{"line":220,"column":8},"end":{"line":229,"column":9}},"64":{"start":{"line":221,"column":10},"end":{"line":228,"column":11}},"65":{"start":{"line":222,"column":12},"end":{"line":224,"column":13}},"66":{"start":{"line":223,"column":14},"end":{"line":223,"column":24}},"67":{"start":{"line":225,"column":12},"end":{"line":227,"column":13}},"68":{"start":{"line":226,"column":14},"end":{"line":226,"column":24}},"69":{"start":{"line":230,"column":8},"end":{"line":232,"column":9}},"70":{"start":{"line":231,"column":10},"end":{"line":231,"column":29}},"71":{"start":{"line":233,"column":8},"end":{"line":233,"column":38}},"72":{"start":{"line":240,"column":8},"end":{"line":240,"column":22}},"73":{"start":{"line":247,"column":8},"end":{"line":252,"column":9}},"74":{"start":{"line":248,"column":10},"end":{"line":251,"column":11}},"75":{"start":{"line":254,"column":8},"end":{"line":254,"column":24}},"76":{"start":{"line":259,"column":2},"end":{"line":259,"column":14}},"77":{"start":{"line":280,"column":0},"end":{"line":320,"column":1}},"78":{"start":{"line":282,"column":2},"end":{"line":284,"column":3}},"79":{"start":{"line":283,"column":4},"end":{"line":283,"column":30}},"80":{"start":{"line":287,"column":2},"end":{"line":287,"column":75}},"81":{"start":{"line":290,"column":2},"end":{"line":319,"column":3}},"82":{"start":{"line":293,"column":4},"end":{"line":296,"column":26}},"83":{"start":{"line":298,"column":4},"end":{"line":306,"column":5}},"84":{"start":{"line":300,"column":6},"end":{"line":302,"column":26}},"85":{"start":{"line":305,"column":6},"end":{"line":305,"column":23}},"86":{"start":{"line":309,"column":4},"end":{"line":316,"column":5}},"87":{"start":{"line":310,"column":6},"end":{"line":312,"column":27}},"88":{"start":{"line":314,"column":6},"end":{"line":314,"column":48}},"89":{"start":{"line":315,"column":6},"end":{"line":315,"column":28}},"90":{"start":{"line":318,"column":4},"end":{"line":318,"column":15}},"91":{"start":{"line":322,"column":0},"end":{"line":322,"column":32}}},"branchMap":{"1":{"line":112,"type":"if","locations":[{"start":{"line":112,"column":2},"end":{"line":112,"column":2}},{"start":{"line":112,"column":2},"end":{"line":112,"column":2}}]},"2":{"line":152,"type":"if","locations":[{"start":{"line":152,"column":2},"end":{"line":152,"column":2}},{"start":{"line":152,"column":2},"end":{"line":152,"column":2}}]},"3":{"line":189,"type":"if","locations":[{"start":{"line":189,"column":4},"end":{"line":189,"column":4}},{"start":{"line":189,"column":4},"end":{"line":189,"column":4}}]},"4":{"line":220,"type":"if","locations":[{"start":{"line":220,"column":8},"end":{"line":220,"column":8}},{"start":{"line":220,"column":8},"end":{"line":220,"column":8}}]},"5":{"line":230,"type":"if","locations":[{"start":{"line":230,"column":8},"end":{"line":230,"column":8}},{"start":{"line":230,"column":8},"end":{"line":230,"column":8}}]},"6":{"line":247,"type":"if","locations":[{"start":{"line":247,"column":8},"end":{"line":247,"column":8}},{"start":{"line":247,"column":8},"end":{"line":247,"column":8}}]},"7":{"line":282,"type":"if","locations":[{"start":{"line":282,"column":2},"end":{"line":282,"column":2}},{"start":{"line":282,"column":2},"end":{"line":282,"column":2}}]},"8":{"line":294,"type":"binary-expr","locations":[{"start":{"line":294,"column":6},"end":{"line":294,"column":25}},{"start":{"line":295,"column":6},"end":{"line":295,"column":38}},{"start":{"line":296,"column":6},"end":{"line":296,"column":26}}]},"9":{"line":298,"type":"if","locations":[{"start":{"line":298,"column":4},"end":{"line":298,"column":4}},{"start":{"line":298,"column":4},"end":{"line":298,"column":4}}]},"10":{"line":300,"type":"cond-expr","locations":[{"start":{"line":301,"column":10},"end":{"line":301,"column":55}},{"start":{"line":302,"column":10},"end":{"line":302,"column":26}}]},"11":{"line":309,"type":"if","locations":[{"start":{"line":309,"column":4},"end":{"line":309,"column":4}},{"start":{"line":309,"column":4},"end":{"line":309,"column":4}}]},"12":{"line":310,"type":"cond-expr","locations":[{"start":{"line":311,"column":10},"end":{"line":311,"column":61}},{"start":{"line":312,"column":10},"end":{"line":312,"column":27}}]}}},"/Users/jeff/Projects/awilix/lib/ResolutionMode.js":{"path":"/Users/jeff/Projects/awilix/lib/ResolutionMode.js","s":{"1":1,"2":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":6,"column":30}},"2":{"start":{"line":13,"column":0},"end":{"line":13,"column":34}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/parseParameterList.js":{"path":"/Users/jeff/Projects/awilix/lib/parseParameterList.js","s":{"1":1,"2":1,"3":146,"4":146,"5":146,"6":287,"7":287,"8":49,"9":238,"10":138,"11":17,"12":17,"13":5,"14":17,"15":17,"16":3,"17":121,"18":48,"19":174,"20":174,"21":18,"22":156,"23":12,"24":144,"25":30,"26":30,"27":102,"28":102,"29":68,"30":30,"31":87,"32":98},"b":{"1":[49,238],"2":[138,100],"3":[17,121],"4":[5,12],"5":[3,14],"6":[48,73],"7":[18,156],"8":[12,144],"9":[30,114],"10":[68,34]},"f":{"1":146},"fnMap":{"1":{"name":"parseParameterList","line":15,"loc":{"start":{"line":15,"column":17},"end":{"line":15,"column":53}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},"2":{"start":{"line":15,"column":0},"end":{"line":60,"column":1}},"3":{"start":{"line":16,"column":2},"end":{"line":16,"column":41}},"4":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"5":{"start":{"line":18,"column":2},"end":{"line":58,"column":3}},"6":{"start":{"line":19,"column":4},"end":{"line":19,"column":21}},"7":{"start":{"line":20,"column":4},"end":{"line":22,"column":5}},"8":{"start":{"line":21,"column":6},"end":{"line":21,"column":11}},"9":{"start":{"line":23,"column":4},"end":{"line":57,"column":5}},"10":{"start":{"line":24,"column":6},"end":{"line":55,"column":7}},"11":{"start":{"line":25,"column":8},"end":{"line":25,"column":23}},"12":{"start":{"line":26,"column":8},"end":{"line":28,"column":9}},"13":{"start":{"line":27,"column":10},"end":{"line":27,"column":25}},"14":{"start":{"line":30,"column":8},"end":{"line":30,"column":23}},"15":{"start":{"line":31,"column":8},"end":{"line":33,"column":9}},"16":{"start":{"line":32,"column":10},"end":{"line":32,"column":15}},"17":{"start":{"line":34,"column":13},"end":{"line":55,"column":7}},"18":{"start":{"line":36,"column":8},"end":{"line":54,"column":22}},"19":{"start":{"line":37,"column":10},"end":{"line":37,"column":25}},"20":{"start":{"line":38,"column":10},"end":{"line":40,"column":11}},"21":{"start":{"line":39,"column":12},"end":{"line":39,"column":25}},"22":{"start":{"line":41,"column":10},"end":{"line":43,"column":11}},"23":{"start":{"line":42,"column":12},"end":{"line":42,"column":20}},"24":{"start":{"line":44,"column":10},"end":{"line":53,"column":11}},"25":{"start":{"line":45,"column":12},"end":{"line":45,"column":27}},"26":{"start":{"line":46,"column":12},"end":{"line":51,"column":13}},"27":{"start":{"line":47,"column":14},"end":{"line":47,"column":29}},"28":{"start":{"line":48,"column":14},"end":{"line":50,"column":15}},"29":{"start":{"line":49,"column":16},"end":{"line":49,"column":36}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":25}},"31":{"start":{"line":56,"column":6},"end":{"line":56,"column":26}},"32":{"start":{"line":59,"column":2},"end":{"line":59,"column":15}}},"branchMap":{"1":{"line":20,"type":"if","locations":[{"start":{"line":20,"column":4},"end":{"line":20,"column":4}},{"start":{"line":20,"column":4},"end":{"line":20,"column":4}}]},"2":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":4}},{"start":{"line":23,"column":4},"end":{"line":23,"column":4}}]},"3":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":6},"end":{"line":24,"column":6}},{"start":{"line":24,"column":6},"end":{"line":24,"column":6}}]},"4":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":8},"end":{"line":26,"column":8}},{"start":{"line":26,"column":8},"end":{"line":26,"column":8}}]},"5":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":8},"end":{"line":31,"column":8}},{"start":{"line":31,"column":8},"end":{"line":31,"column":8}}]},"6":{"line":34,"type":"if","locations":[{"start":{"line":34,"column":13},"end":{"line":34,"column":13}},{"start":{"line":34,"column":13},"end":{"line":34,"column":13}}]},"7":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":10},"end":{"line":38,"column":10}},{"start":{"line":38,"column":10},"end":{"line":38,"column":10}}]},"8":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":10},"end":{"line":41,"column":10}},{"start":{"line":41,"column":10},"end":{"line":41,"column":10}}]},"9":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":10},"end":{"line":44,"column":10}},{"start":{"line":44,"column":10},"end":{"line":44,"column":10}}]},"10":{"line":48,"type":"if","locations":[{"start":{"line":48,"column":14},"end":{"line":48,"column":14}},{"start":{"line":48,"column":14},"end":{"line":48,"column":14}}]}}},"/Users/jeff/Projects/awilix/lib/AwilixNotAFunctionError.js":{"path":"/Users/jeff/Projects/awilix/lib/AwilixNotAFunctionError.js","s":{"1":1,"2":2,"3":1},"b":{},"f":{"1":2},"fnMap":{"1":{"name":"(anonymous_1)","line":20,"loc":{"start":{"line":20,"column":13},"end":{"line":20,"column":53}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},"2":{"start":{"line":21,"column":4},"end":{"line":21,"column":76}},"3":{"start":{"line":25,"column":0},"end":{"line":25,"column":40}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/AwilixError.js":{"path":"/Users/jeff/Projects/awilix/lib/AwilixError.js","s":{"1":1,"2":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},"2":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/ExtendableError.js":{"path":"/Users/jeff/Projects/awilix/lib/ExtendableError.js","s":{"1":17,"2":17,"3":17,"4":17,"5":1},"b":{},"f":{"1":17},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":13},"end":{"line":12,"column":23}}}},"statementMap":{"1":{"start":{"line":13,"column":4},"end":{"line":13,"column":18}},"2":{"start":{"line":16,"column":4},"end":{"line":19,"column":6}},"3":{"start":{"line":21,"column":4},"end":{"line":24,"column":6}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":51}},"5":{"start":{"line":30,"column":0},"end":{"line":30,"column":32}}},"branchMap":{}},"/Users/jeff/Projects/awilix/lib/listModules.js":{"path":"/Users/jeff/Projects/awilix/lib/listModules.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":12,"7":12,"8":12,"9":5,"10":5,"11":12,"12":12,"13":93,"14":12,"15":1,"16":9,"17":5,"18":8,"19":4},"b":{"1":[5,7],"2":[5,4]},"f":{"1":12,"2":9},"fnMap":{"1":{"name":"_listModules","line":23,"loc":{"start":{"line":23,"column":0},"end":{"line":23,"column":41}}},"2":{"name":"listModules","line":55,"loc":{"start":{"line":55,"column":17},"end":{"line":55,"column":58}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":28}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":38}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":28}},"5":{"start":{"line":23,"column":0},"end":{"line":38,"column":1}},"6":{"start":{"line":24,"column":2},"end":{"line":24,"column":69}},"7":{"start":{"line":25,"column":2},"end":{"line":25,"column":24}},"8":{"start":{"line":26,"column":2},"end":{"line":29,"column":3}},"9":{"start":{"line":27,"column":4},"end":{"line":27,"column":32}},"10":{"start":{"line":28,"column":4},"end":{"line":28,"column":32}},"11":{"start":{"line":31,"column":2},"end":{"line":31,"column":58}},"12":{"start":{"line":32,"column":2},"end":{"line":36,"column":5}},"13":{"start":{"line":32,"column":34},"end":{"line":36,"column":3}},"14":{"start":{"line":37,"column":2},"end":{"line":37,"column":15}},"15":{"start":{"line":55,"column":0},"end":{"line":61,"column":1}},"16":{"start":{"line":56,"column":2},"end":{"line":58,"column":3}},"17":{"start":{"line":57,"column":4},"end":{"line":57,"column":64}},"18":{"start":{"line":57,"column":41},"end":{"line":57,"column":62}},"19":{"start":{"line":60,"column":2},"end":{"line":60,"column":41}}},"branchMap":{"1":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":2},"end":{"line":26,"column":2}},{"start":{"line":26,"column":2},"end":{"line":26,"column":2}}]},"2":{"line":56,"type":"if","locations":[{"start":{"line":56,"column":2},"end":{"line":56,"column":2}},{"start":{"line":56,"column":2},"end":{"line":56,"column":2}}]}}},"/Users/jeff/Projects/awilix/lib/AwilixResolutionError.js":{"path":"/Users/jeff/Projects/awilix/lib/AwilixResolutionError.js","s":{"1":1,"2":1,"3":1,"4":11,"5":1,"6":11,"7":11,"8":11,"9":11,"10":11,"11":2,"12":11,"13":11,"14":11,"15":11,"16":1},"b":{"1":[1,10],"2":[2,9]},"f":{"1":11},"fnMap":{"1":{"name":"(anonymous_1)","line":48,"loc":{"start":{"line":48,"column":13},"end":{"line":48,"column":46}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":44}},"3":{"start":{"line":16,"column":0},"end":{"line":32,"column":1}},"4":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":26}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":43}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":28}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":59}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":42}},"10":{"start":{"line":24,"column":2},"end":{"line":26,"column":3}},"11":{"start":{"line":25,"column":4},"end":{"line":25,"column":24}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":51}},"14":{"start":{"line":31,"column":2},"end":{"line":31,"column":12}},"15":{"start":{"line":49,"column":4},"end":{"line":49,"column":61}},"16":{"start":{"line":53,"column":0},"end":{"line":53,"column":38}}},"branchMap":{"1":{"line":17,"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":17,"column":2}},{"start":{"line":17,"column":2},"end":{"line":17,"column":2}}]},"2":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":2},"end":{"line":24,"column":2}},{"start":{"line":24,"column":2},"end":{"line":24,"column":2}}]}}},"/Users/jeff/Projects/awilix/lib/AwilixTypeError.js":{"path":"/Users/jeff/Projects/awilix/lib/AwilixTypeError.js","s":{"1":1,"2":3,"3":1,"4":12,"5":3,"6":9,"7":1},"b":{"1":[3,9]},"f":{"1":3,"2":12},"fnMap":{"1":{"name":"(anonymous_1)","line":24,"loc":{"start":{"line":24,"column":13},"end":{"line":24,"column":67}}},"2":{"name":"assert","line":51,"loc":{"start":{"line":51,"column":25},"end":{"line":57,"column":2}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},"2":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"3":{"start":{"line":51,"column":0},"end":{"line":67,"column":1}},"4":{"start":{"line":58,"column":2},"end":{"line":65,"column":3}},"5":{"start":{"line":59,"column":4},"end":{"line":64,"column":5}},"6":{"start":{"line":66,"column":2},"end":{"line":66,"column":18}},"7":{"start":{"line":69,"column":0},"end":{"line":69,"column":32}}},"branchMap":{"1":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":2},"end":{"line":58,"column":2}},{"start":{"line":58,"column":2},"end":{"line":58,"column":2}}]}}}} |
@@ -10,2 +10,3 @@ // Type definitions for Awilix v2.2.6 | ||
export declare interface AwilixContainer { | ||
options: ContainerOptions | ||
cradle: { [key: string]: any } | ||
@@ -41,4 +42,9 @@ createScope(): AwilixContainer | ||
resolve<T>(name: string): T | ||
build<T>(target: ClassOrFunctionReturning<T>, opts?: RegistrationOptions): T | ||
} | ||
export declare type ClassOrFunctionReturning<T> = | ||
| ((...args: Array<any>) => T) | ||
| (new (...args: Array<any>) => T) | ||
/** | ||
@@ -45,0 +51,0 @@ * Describes a glob pattern for modules as well as registration options to use. |
const util = require('util') | ||
const { last, nameValueToObject } = require('./utils') | ||
const { last, nameValueToObject, isClass } = require('./utils') | ||
const loadModules = require('./loadModules') | ||
@@ -8,2 +8,3 @@ const listModules = require('./listModules') | ||
const AwilixResolutionError = require('./AwilixResolutionError') | ||
const AwilixTypeError = require('./AwilixTypeError') | ||
const AwilixError = require('./AwilixError') | ||
@@ -61,5 +62,5 @@ const Lifetime = require('./Lifetime') | ||
const inspect = (depth, opts) => { | ||
return `[AwilixContainer (${__parentContainer | ||
? 'scoped, ' | ||
: ''}registrations: ${Object.keys(container.registrations).length})]` | ||
return `[AwilixContainer (${ | ||
__parentContainer ? 'scoped, ' : '' | ||
}registrations: ${Object.keys(container.registrations).length})]` | ||
} | ||
@@ -150,3 +151,5 @@ | ||
throw new Error( | ||
`Attempted setting property "${name}" on container cradle - this is not allowed.` | ||
`Attempted setting property "${ | ||
name | ||
}" on container cradle - this is not allowed.` | ||
) | ||
@@ -460,2 +463,40 @@ }, | ||
/** | ||
* Given a registration, class or function, builds it up and returns it. | ||
* Does not cache it, this means that any lifetime configured in case of passing | ||
* a registration will not be used. | ||
* | ||
* @param {Registration|Class|Function} targetOrResolver | ||
* @param {RegistrationOptions} opts | ||
*/ | ||
const build = (targetOrResolver, opts) => { | ||
if (targetOrResolver && targetOrResolver.resolve) { | ||
return targetOrResolver.resolve(container) | ||
} | ||
const funcName = 'build' | ||
const paramName = 'targetOrResolver' | ||
AwilixTypeError.assert( | ||
targetOrResolver, | ||
funcName, | ||
paramName, | ||
'a registration, function or class', | ||
targetOrResolver | ||
) | ||
AwilixTypeError.assert( | ||
typeof targetOrResolver === 'function', | ||
funcName, | ||
paramName, | ||
'a function or class', | ||
targetOrResolver | ||
) | ||
const resolver = isClass(targetOrResolver) | ||
? asClass(targetOrResolver, opts) | ||
: asFunction(targetOrResolver, opts) | ||
return resolver.resolve(container) | ||
} | ||
container.build = build | ||
/** | ||
* Binds `lib/loadModules` to this container, and provides | ||
@@ -462,0 +503,0 @@ * real implementations of it's dependencies. |
{ | ||
"name": "awilix", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"description": "Simple dependency injection container + helper utilities to facilitate wiring of modules", | ||
@@ -40,7 +40,7 @@ "main": "lib/awilix.js", | ||
"@types/chai": "^4.0.1", | ||
"@types/node": "^8.0.47", | ||
"@types/node": "^8.0.51", | ||
"chai": "^4.1.0", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^4.10.0", | ||
"eslint-config-prettier": "^2.6.0", | ||
"eslint": "^4.11.0", | ||
"eslint-config-prettier": "^2.7.0", | ||
"eslint-config-standard": "^10.2.1", | ||
@@ -54,8 +54,8 @@ "eslint-plugin-import": "^2.8.0", | ||
"istanbul": "^0.4.5", | ||
"lint-staged": "^4.3.0", | ||
"lint-staged": "^5.0.0", | ||
"mocha": "^4.0.1", | ||
"prettier": "^1.7.4", | ||
"sinon": "^4.0.2", | ||
"prettier": "^1.8.2", | ||
"sinon": "^4.1.2", | ||
"sinon-chai": "^2.14.0", | ||
"typescript": "^2.5.3" | ||
"typescript": "^2.6.1" | ||
}, | ||
@@ -62,0 +62,0 @@ "dependencies": { |
187
README.md
@@ -30,3 +30,3 @@ # Awilix | ||
- [The `awilix` object](#the-awilix-object) | ||
- ['Registration options'](#registrationoptions) | ||
- [Registration options](#registration-options) | ||
- [`createContainer()`](#createcontainer) | ||
@@ -50,2 +50,3 @@ - [`asFunction()`](#asfunction) | ||
+ [`container.createScope()`](#containercreatescope) | ||
+ [`container.build()`](#containerbuild) | ||
* [Contributing](#contributing) | ||
@@ -456,2 +457,4 @@ * [What's in a name?](#whats-in-a-name) | ||
**Important**: Auto-loading relies on `glob` and therefore does not with bundlers like Webpack, Rollup and Browserify. | ||
# Per-module local injections | ||
@@ -677,2 +680,4 @@ | ||
**Important**: `listModules` relies on `glob` and therefore does not with bundlers like Webpack, Rollup and Browserify. | ||
## `AwilixResolutionError` | ||
@@ -906,2 +911,85 @@ | ||
### `container.loadModules()` | ||
Given an array of globs, registers the modules and returns the container. | ||
Awilix will use `require` on the loaded modules, and register the default-exported function or class as the name of the file. | ||
**This will not work for constructor functions (`function Database{} ...`), because there is no way to determine when to use `new`. Internally, Awilix uses `is-class` which only works for ES6 classes.** | ||
Args: | ||
* `globPatterns`: Array of glob patterns that match JS files to load. | ||
* `opts.cwd`: The `cwd` being passed to `glob`. Defaults to `process.cwd()`. | ||
* `opts.formatName`: Can be either `'camelCase'`, or a function that takes the current name as the first parameter and returns the new name. Default is to pass the name through as-is. The 2nd parameter is a full module descriptor. | ||
* `registrationOptions`: An `object` passed to the registrations. Used to configure the lifetime, resolution mode and more of the loaded modules. | ||
Example: | ||
```js | ||
// index.js | ||
container.loadModules([ | ||
'services/*.js', | ||
'repositories/*.js', | ||
'db/db.js' | ||
]) | ||
container.cradle.userService.getUser(123) | ||
// to configure lifetime for all modules loaded.. | ||
container.loadModules([ | ||
'services/*.js', | ||
'repositories/*.js', | ||
'db/db.js' | ||
], { | ||
registrationOptions: { | ||
lifetime: Lifetime.SINGLETON | ||
} | ||
}) | ||
container.cradle.userService.getUser(123) | ||
// to configure lifetime for specific globs.. | ||
container.loadModules([ | ||
['services/*.js', Lifetime.SCOPED], // all services will have scoped lifetime | ||
'repositories/*.js', | ||
'db/db.js' | ||
], { | ||
registrationOptions: { | ||
lifetime: Lifetime.SINGLETON // db and repositories will be singleton | ||
} | ||
}) | ||
container.cradle.userService.getUser(123) | ||
// to use camelCase for modules where filenames are not camelCase | ||
container.loadModules([ | ||
'repositories/account-repository.js', | ||
'db/db.js' | ||
], { | ||
formatName: 'camelCase' | ||
}) | ||
container.cradle.accountRepository.getUser(123) | ||
// to customize how modules are named in the container (and for injection) | ||
container.loadModules([ | ||
'repository/account.js', | ||
'service/email.js' | ||
], { | ||
// This formats the module name so `repository/account.js` becomes `accountRepository` | ||
formatName: (name, descriptor) => { | ||
const splat = descriptor.path.split('/') | ||
const namespace = splat[splat.length - 2] // `repository` or `service` | ||
const upperNamespace = namespace.charAt(0).toUpperCase() + namespace.substring(1) | ||
return name + upperNamespace | ||
} | ||
}) | ||
container.cradle.accountRepository.getUser(123) | ||
container.cradle.emailService.sendEmail('test@test.com', 'waddup') | ||
``` | ||
The `['glob', Lifetime.SCOPED]` syntax is a shorthand for passing in registration options like so: `['glob', { lifetime: Lifetime.SCOPED }]` | ||
### `container.createScope()` | ||
@@ -995,85 +1083,54 @@ | ||
### `container.loadModules()` | ||
### `container.build()` | ||
Given an array of globs, registers the modules and returns the container. | ||
Builds an instance of a class (or a function) by injecting dependencies, but without registering it in the container. | ||
Awilix will use `require` on the loaded modules, and register the default-exported function or class as the name of the file. | ||
It's basically a shortcut for `asClass(MyClass).resolve(container)`. | ||
**This will not work for constructor functions (`function Database{} ...`), because there is no way to determine when to use `new`. Internally, Awilix uses `is-class` which only works for ES6 classes.** | ||
Args: | ||
- `targetOrResolver`: A class, function or resolver (example: `asClass(..)`, `asFunction(..)`) | ||
- `opts`: Resolver options. | ||
* `globPatterns`: Array of glob patterns that match JS files to load. | ||
* `opts.cwd`: The `cwd` being passed to `glob`. Defaults to `process.cwd()`. | ||
* `opts.formatName`: Can be either `'camelCase'`, or a function that takes the current name as the first parameter and returns the new name. Default is to pass the name through as-is. The 2nd parameter is a full module descriptor. | ||
* `registrationOptions`: An `object` passed to the registrations. Used to configure the lifetime, resolution mode and more of the loaded modules. | ||
Returns an instance of whatever is passed in, or the result of calling the resolver. | ||
Example: | ||
**Important**: if you are doing this often for the same class/function, consider using the explicit approach and save the resolver, **especially** if you are using classic resolution because it scans the class constructor/function when calling `asClass(Class)` / `asFunction(func)`. | ||
```js | ||
// index.js | ||
container.loadModules([ | ||
'services/*.js', | ||
'repositories/*.js', | ||
'db/db.js' | ||
]) | ||
// The following are equivelant.. | ||
class MyClass { | ||
constructor ({ ping }) { | ||
this.ping = ping | ||
} | ||
container.cradle.userService.getUser(123) | ||
pong() { | ||
return this.ping | ||
} | ||
} | ||
// to configure lifetime for all modules loaded.. | ||
container.loadModules([ | ||
'services/*.js', | ||
'repositories/*.js', | ||
'db/db.js' | ||
], { | ||
registrationOptions: { | ||
lifetime: Lifetime.SINGLETON | ||
} | ||
const createMyFunc = ({ ping }) => ({ | ||
pong: () => ping | ||
}) | ||
container.cradle.userService.getUser(123) | ||
// to configure lifetime for specific globs.. | ||
container.loadModules([ | ||
['services/*.js', Lifetime.SCOPED], // all services will have scoped lifetime | ||
'repositories/*.js', | ||
'db/db.js' | ||
], { | ||
registrationOptions: { | ||
lifetime: Lifetime.SINGLETON // db and repositories will be singleton | ||
} | ||
container.registerValue({ | ||
ping: 'pong' | ||
}) | ||
container.cradle.userService.getUser(123) | ||
// Shorthand | ||
// This uses `utils.isClass()` to determine whether to | ||
// use `asClass` or `asFunction`. This is fine for | ||
// one-time resolutions. | ||
const myClass = container.build(MyClass) | ||
const myFunc = container.build(createMyFunc) | ||
// to use camelCase for modules where filenames are not camelCase | ||
container.loadModules([ | ||
'repositories/account-repository.js', | ||
'db/db.js' | ||
], { | ||
formatName: 'camelCase' | ||
}) | ||
// Explicit | ||
// Save the resolver if you are planning on invoking often. | ||
// **Especially** if you're using classic resolution. | ||
const myClassResolver = asClass(MyClass) | ||
const myFuncResolver = asFunction(MyFunc) | ||
container.cradle.accountRepository.getUser(123) | ||
const myClass = container.build(myClassResolver) | ||
const myFunc = container.build(myFuncResolver) | ||
// to customize how modules are named in the container (and for injection) | ||
container.loadModules([ | ||
'repository/account.js', | ||
'service/email.js' | ||
], { | ||
// This formats the module name so `repository/account.js` becomes `accountRepository` | ||
formatName: (name, descriptor) => { | ||
const splat = descriptor.path.split('/') | ||
const namespace = splat[splat.length - 2] // `repository` or `service` | ||
const upperNamespace = namespace.charAt(0).toUpperCase() + namespace.substring(1) | ||
return name + upperNamespace | ||
} | ||
}) | ||
container.cradle.accountRepository.getUser(123) | ||
container.cradle.emailService.sendEmail('test@test.com', 'waddup') | ||
``` | ||
The `['glob', Lifetime.SCOPED]` syntax is a shorthand for passing in registration options like so: `['glob', { lifetime: Lifetime.SCOPED }]` | ||
# Contributing | ||
@@ -1080,0 +1137,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
473151
55
2135
1146