Comparing version 2.2.0 to 2.2.1
@@ -1,1 +0,1 @@ | ||
{"G:\\Projects\\awilix\\lib\\awilix.js":{"path":"G:\\Projects\\awilix\\lib\\awilix.js","s":{"1":1,"2":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":2,"column":0},"end":{"line":7,"column":1}},"2":{"start":{"line":10,"column":0},"end":{"line":10,"column":57}}},"branchMap":{}},"G:\\Projects\\awilix\\lib\\createContainer.js":{"path":"G:\\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":56,"13":56,"14":56,"15":56,"16":56,"17":60,"18":56,"19":56,"20":56,"21":56,"22":56,"23":61,"24":56,"25":56,"26":117,"27":56,"28":16,"29":56,"30":56,"31":67,"32":67,"33":71,"34":71,"35":67,"36":56,"37":56,"38":168,"39":20,"40":20,"41":31,"42":31,"43":31,"44":5,"45":5,"46":31,"47":20,"48":56,"49":56,"50":56,"51":56,"52":85,"53":57,"54":85,"55":85,"56":85,"57":85,"58":1,"59":84,"60":5,"61":79,"62":79,"63":79,"64":47,"65":33,"66":6,"67":6,"68":2,"69":2,"70":4,"71":6,"72":25,"73":38,"74":38,"75":14,"76":14,"77":25,"78":11,"79":11,"80":25,"81":1,"82":64,"83":64,"84":21,"85":21,"86":85,"87":71,"88":56,"89":56,"90":3,"91":3,"92":56,"93":56},"b":{"1":[16,40],"2":[56,56],"3":[117,36],"4":[5,26],"5":[57,28],"6":[1,84],"7":[5,79],"8":[47,6,25,1],"9":[2,4],"10":[14,24],"11":[11,14],"12":[71,14]},"f":{"1":56,"2":60},"fnMap":{"1":{"name":"createContainer","line":26,"loc":{"start":{"line":26,"column":17},"end":{"line":26,"column":70}}},"2":{"name":"(anonymous_2)","line":49,"loc":{"start":{"line":49,"column":21},"end":{"line":49,"column":24}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":44}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":42}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":67}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":64}},"6":{"start":{"line":6,"column":0},"end":{"line":6,"column":56}},"7":{"start":{"line":7,"column":0},"end":{"line":7,"column":38}},"8":{"start":{"line":8,"column":0},"end":{"line":8,"column":48}},"9":{"start":{"line":9,"column":0},"end":{"line":9,"column":30}},"10":{"start":{"line":15,"column":0},"end":{"line":15,"column":40}},"11":{"start":{"line":26,"column":0},"end":{"line":333,"column":1}},"12":{"start":{"line":27,"column":2},"end":{"line":27,"column":38}},"13":{"start":{"line":33,"column":2},"end":{"line":33,"column":26}},"14":{"start":{"line":37,"column":2},"end":{"line":37,"column":32}},"15":{"start":{"line":40,"column":2},"end":{"line":40,"column":26}},"16":{"start":{"line":43,"column":2},"end":{"line":52,"column":3}},"17":{"start":{"line":50,"column":6},"end":{"line":50,"column":34}},"18":{"start":{"line":55,"column":2},"end":{"line":57,"column":17}},"19":{"start":{"line":65,"column":2},"end":{"line":65,"column":37}},"20":{"start":{"line":72,"column":2},"end":{"line":72,"column":22}},"21":{"start":{"line":75,"column":2},"end":{"line":79,"column":3}},"22":{"start":{"line":86,"column":2},"end":{"line":100,"column":4}},"23":{"start":{"line":99,"column":27},"end":{"line":99,"column":40}},"24":{"start":{"line":102,"column":2},"end":{"line":102,"column":27}},"25":{"start":{"line":110,"column":2},"end":{"line":116,"column":3}},"26":{"start":{"line":111,"column":4},"end":{"line":115,"column":5}},"27":{"start":{"line":124,"column":2},"end":{"line":126,"column":3}},"28":{"start":{"line":125,"column":4},"end":{"line":125,"column":46}},"29":{"start":{"line":128,"column":2},"end":{"line":128,"column":37}},"30":{"start":{"line":139,"column":2},"end":{"line":147,"column":3}},"31":{"start":{"line":140,"column":4},"end":{"line":140,"column":53}},"32":{"start":{"line":141,"column":4},"end":{"line":144,"column":5}},"33":{"start":{"line":142,"column":6},"end":{"line":142,"column":28}},"34":{"start":{"line":143,"column":6},"end":{"line":143,"column":32}},"35":{"start":{"line":146,"column":4},"end":{"line":146,"column":20}},"36":{"start":{"line":149,"column":2},"end":{"line":149,"column":31}},"37":{"start":{"line":154,"column":2},"end":{"line":174,"column":3}},"38":{"start":{"line":154,"column":31},"end":{"line":174,"column":3}},"39":{"start":{"line":156,"column":4},"end":{"line":156,"column":46}},"40":{"start":{"line":158,"column":4},"end":{"line":170,"column":5}},"41":{"start":{"line":159,"column":6},"end":{"line":159,"column":36}},"42":{"start":{"line":162,"column":6},"end":{"line":162,"column":36}},"43":{"start":{"line":163,"column":6},"end":{"line":167,"column":7}},"44":{"start":{"line":165,"column":8},"end":{"line":165,"column":58}},"45":{"start":{"line":166,"column":8},"end":{"line":166,"column":44}},"46":{"start":{"line":169,"column":6},"end":{"line":169,"column":46}},"47":{"start":{"line":173,"column":4},"end":{"line":173,"column":20}},"48":{"start":{"line":188,"column":2},"end":{"line":188,"column":55}},"49":{"start":{"line":202,"column":2},"end":{"line":202,"column":49}},"50":{"start":{"line":216,"column":2},"end":{"line":216,"column":49}},"51":{"start":{"line":227,"column":2},"end":{"line":306,"column":3}},"52":{"start":{"line":228,"column":4},"end":{"line":230,"column":5}},"53":{"start":{"line":229,"column":6},"end":{"line":229,"column":49}},"54":{"start":{"line":234,"column":4},"end":{"line":234,"column":33}},"55":{"start":{"line":236,"column":4},"end":{"line":305,"column":5}},"56":{"start":{"line":238,"column":6},"end":{"line":238,"column":52}},"57":{"start":{"line":239,"column":6},"end":{"line":241,"column":7}},"58":{"start":{"line":240,"column":8},"end":{"line":240,"column":95}},"59":{"start":{"line":243,"column":6},"end":{"line":245,"column":7}},"60":{"start":{"line":244,"column":8},"end":{"line":244,"column":62}},"61":{"start":{"line":248,"column":6},"end":{"line":248,"column":32}},"62":{"start":{"line":251,"column":6},"end":{"line":251,"column":26}},"63":{"start":{"line":252,"column":6},"end":{"line":291,"column":7}},"64":{"start":{"line":255,"column":8},"end":{"line":255,"column":50}},"65":{"start":{"line":256,"column":8},"end":{"line":256,"column":13}},"66":{"start":{"line":259,"column":8},"end":{"line":259,"column":33}},"67":{"start":{"line":260,"column":8},"end":{"line":265,"column":9}},"68":{"start":{"line":261,"column":10},"end":{"line":261,"column":52}},"69":{"start":{"line":262,"column":10},"end":{"line":262,"column":37}},"70":{"start":{"line":264,"column":10},"end":{"line":264,"column":27}},"71":{"start":{"line":266,"column":8},"end":{"line":266,"column":13}},"72":{"start":{"line":274,"column":8},"end":{"line":281,"column":9}},"73":{"start":{"line":275,"column":10},"end":{"line":275,"column":32}},"74":{"start":{"line":276,"column":10},"end":{"line":280,"column":11}},"75":{"start":{"line":278,"column":12},"end":{"line":278,"column":29}},"76":{"start":{"line":279,"column":12},"end":{"line":279,"column":17}},"77":{"start":{"line":284,"column":8},"end":{"line":287,"column":9}},"78":{"start":{"line":285,"column":10},"end":{"line":285,"column":52}},"79":{"start":{"line":286,"column":10},"end":{"line":286,"column":42}},"80":{"start":{"line":288,"column":8},"end":{"line":288,"column":13}},"81":{"start":{"line":290,"column":8},"end":{"line":290,"column":109}},"82":{"start":{"line":293,"column":6},"end":{"line":293,"column":27}},"83":{"start":{"line":294,"column":6},"end":{"line":294,"column":21}},"84":{"start":{"line":297,"column":6},"end":{"line":297,"column":26}},"85":{"start":{"line":298,"column":6},"end":{"line":298,"column":15}},"86":{"start":{"line":302,"column":6},"end":{"line":304,"column":7}},"87":{"start":{"line":303,"column":8},"end":{"line":303,"column":34}},"88":{"start":{"line":308,"column":2},"end":{"line":308,"column":29}},"89":{"start":{"line":319,"column":2},"end":{"line":322,"column":3}},"90":{"start":{"line":320,"column":4},"end":{"line":320,"column":53}},"91":{"start":{"line":321,"column":4},"end":{"line":321,"column":20}},"92":{"start":{"line":329,"column":2},"end":{"line":329,"column":37}},"93":{"start":{"line":332,"column":2},"end":{"line":332,"column":18}}},"branchMap":{"1":{"line":55,"type":"cond-expr","locations":[{"start":{"line":56,"column":6},"end":{"line":56,"column":56}},{"start":{"line":57,"column":6},"end":{"line":57,"column":17}}]},"2":{"line":76,"type":"binary-expr","locations":[{"start":{"line":76,"column":13},"end":{"line":76,"column":28}},{"start":{"line":76,"column":32},"end":{"line":76,"column":39}}]},"3":{"line":113,"type":"binary-expr","locations":[{"start":{"line":113,"column":6},"end":{"line":113,"column":23}},{"start":{"line":113,"column":27},"end":{"line":113,"column":58}}]},"4":{"line":163,"type":"if","locations":[{"start":{"line":163,"column":6},"end":{"line":163,"column":6}},{"start":{"line":163,"column":6},"end":{"line":163,"column":6}}]},"5":{"line":228,"type":"if","locations":[{"start":{"line":228,"column":4},"end":{"line":228,"column":4}},{"start":{"line":228,"column":4},"end":{"line":228,"column":4}}]},"6":{"line":239,"type":"if","locations":[{"start":{"line":239,"column":6},"end":{"line":239,"column":6}},{"start":{"line":239,"column":6},"end":{"line":239,"column":6}}]},"7":{"line":243,"type":"if","locations":[{"start":{"line":243,"column":6},"end":{"line":243,"column":6}},{"start":{"line":243,"column":6},"end":{"line":243,"column":6}}]},"8":{"line":252,"type":"switch","locations":[{"start":{"line":253,"column":6},"end":{"line":256,"column":13}},{"start":{"line":257,"column":6},"end":{"line":266,"column":13}},{"start":{"line":267,"column":6},"end":{"line":288,"column":13}},{"start":{"line":289,"column":6},"end":{"line":290,"column":109}}]},"9":{"line":260,"type":"if","locations":[{"start":{"line":260,"column":8},"end":{"line":260,"column":8}},{"start":{"line":260,"column":8},"end":{"line":260,"column":8}}]},"10":{"line":276,"type":"if","locations":[{"start":{"line":276,"column":10},"end":{"line":276,"column":10}},{"start":{"line":276,"column":10},"end":{"line":276,"column":10}}]},"11":{"line":284,"type":"if","locations":[{"start":{"line":284,"column":8},"end":{"line":284,"column":8}},{"start":{"line":284,"column":8},"end":{"line":284,"column":8}}]},"12":{"line":302,"type":"if","locations":[{"start":{"line":302,"column":6},"end":{"line":302,"column":6}},{"start":{"line":302,"column":6},"end":{"line":302,"column":6}}]}}},"G:\\Projects\\awilix\\lib\\loadModules.js":{"path":"G:\\Projects\\awilix\\lib\\loadModules.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":10,"10":10,"11":10,"12":10,"13":10,"14":20,"15":20,"16":1,"17":19,"18":5,"19":3,"20":2,"21":14,"22":10,"23":20,"24":17,"25":17,"26":17,"27":3,"28":2,"29":3,"30":2,"31":17,"32":17,"33":17,"34":17,"35":5,"36":17,"37":17,"38":10},"b":{"1":[10,2],"2":[1,19],"3":[5,14],"4":[3,2],"5":[5,3],"6":[3,14],"7":[2,1],"8":[2,1],"9":[1,16],"10":[17,17,1],"11":[5,12]},"f":{"1":10},"fnMap":{"1":{"name":"loadModules","line":35,"loc":{"start":{"line":35,"column":17},"end":{"line":35,"column":72}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":35}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":37}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":42}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":38}},"6":{"start":{"line":6,"column":0},"end":{"line":6,"column":48}},"7":{"start":{"line":8,"column":0},"end":{"line":10,"column":1}},"8":{"start":{"line":35,"column":0},"end":{"line":94,"column":1}},"9":{"start":{"line":36,"column":2},"end":{"line":36,"column":19}},"10":{"start":{"line":37,"column":2},"end":{"line":41,"column":10}},"11":{"start":{"line":42,"column":2},"end":{"line":42,"column":42}},"12":{"start":{"line":43,"column":2},"end":{"line":43,"column":62}},"13":{"start":{"line":45,"column":2},"end":{"line":63,"column":4}},"14":{"start":{"line":46,"column":4},"end":{"line":46,"column":47}},"15":{"start":{"line":49,"column":4},"end":{"line":51,"column":5}},"16":{"start":{"line":50,"column":6},"end":{"line":50,"column":22}},"17":{"start":{"line":53,"column":4},"end":{"line":60,"column":5}},"18":{"start":{"line":54,"column":6},"end":{"line":57,"column":7}},"19":{"start":{"line":56,"column":8},"end":{"line":56,"column":68}},"20":{"start":{"line":59,"column":6},"end":{"line":59,"column":22}},"21":{"start":{"line":62,"column":4},"end":{"line":62,"column":56}},"22":{"start":{"line":64,"column":2},"end":{"line":90,"column":4}},"23":{"start":{"line":64,"column":21},"end":{"line":64,"column":22}},"24":{"start":{"line":65,"column":4},"end":{"line":65,"column":23}},"25":{"start":{"line":66,"column":4},"end":{"line":66,"column":35}},"26":{"start":{"line":67,"column":4},"end":{"line":75,"column":5}},"27":{"start":{"line":68,"column":6},"end":{"line":70,"column":7}},"28":{"start":{"line":69,"column":8},"end":{"line":69,"column":45}},"29":{"start":{"line":72,"column":6},"end":{"line":74,"column":7}},"30":{"start":{"line":73,"column":8},"end":{"line":73,"column":30}},"31":{"start":{"line":77,"column":4},"end":{"line":77,"column":85}},"32":{"start":{"line":78,"column":4},"end":{"line":78,"column":104}},"33":{"start":{"line":79,"column":4},"end":{"line":79,"column":26}},"34":{"start":{"line":81,"column":4},"end":{"line":83,"column":5}},"35":{"start":{"line":82,"column":6},"end":{"line":82,"column":37}},"36":{"start":{"line":85,"column":4},"end":{"line":85,"column":66}},"37":{"start":{"line":86,"column":4},"end":{"line":89,"column":5}},"38":{"start":{"line":91,"column":2},"end":{"line":93,"column":3}}},"branchMap":{"1":{"line":36,"type":"binary-expr","locations":[{"start":{"line":36,"column":9},"end":{"line":36,"column":13}},{"start":{"line":36,"column":17},"end":{"line":36,"column":19}}]},"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":53,"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":53,"column":4}},{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}]},"4":{"line":54,"type":"if","locations":[{"start":{"line":54,"column":6},"end":{"line":54,"column":6}},{"start":{"line":54,"column":6},"end":{"line":54,"column":6}}]},"5":{"line":54,"type":"binary-expr","locations":[{"start":{"line":54,"column":10},"end":{"line":54,"column":24}},{"start":{"line":54,"column":28},"end":{"line":54,"column":54}}]},"6":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":4},"end":{"line":67,"column":4}},{"start":{"line":67,"column":4},"end":{"line":67,"column":4}}]},"7":{"line":68,"type":"if","locations":[{"start":{"line":68,"column":6},"end":{"line":68,"column":6}},{"start":{"line":68,"column":6},"end":{"line":68,"column":6}}]},"8":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":6}},{"start":{"line":72,"column":6},"end":{"line":72,"column":6}}]},"9":{"line":77,"type":"cond-expr","locations":[{"start":{"line":77,"column":37},"end":{"line":77,"column":58}},{"start":{"line":77,"column":61},"end":{"line":77,"column":85}}]},"10":{"line":78,"type":"binary-expr","locations":[{"start":{"line":78,"column":21},"end":{"line":78,"column":45}},{"start":{"line":78,"column":49},"end":{"line":78,"column":82}},{"start":{"line":78,"column":86},"end":{"line":78,"column":104}}]},"11":{"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}}]}}},"G:\\Projects\\awilix\\lib\\isFunction.js":{"path":"G:\\Projects\\awilix\\lib\\isFunction.js","s":{"1":1,"2":29},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":10,"column":49}},"2":{"start":{"line":10,"column":24},"end":{"line":10,"column":49}}},"branchMap":{}},"G:\\Projects\\awilix\\lib\\Lifetime.js":{"path":"G:\\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":{}},"G:\\Projects\\awilix\\lib\\registrations.js":{"path":"G:\\Projects\\awilix\\lib\\registrations.js","s":{"1":1,"2":1,"3":1,"4":64,"5":1,"6":64,"7":15,"8":15,"9":64,"10":4,"11":5,"12":4,"13":1,"14":14,"15":9,"16":14,"17":1,"18":1,"19":51,"20":51,"21":51,"22":49,"23":51,"24":51,"25":51,"26":1,"27":1,"28":13,"29":13,"30":13,"31":5,"32":13,"33":13,"34":13,"35":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":38}},"3":{"start":{"line":15,"column":0},"end":{"line":17,"column":1}},"4":{"start":{"line":16,"column":2},"end":{"line":16,"column":43}},"5":{"start":{"line":32,"column":0},"end":{"line":44,"column":1}},"6":{"start":{"line":33,"column":2},"end":{"line":36,"column":3}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":24}},"8":{"start":{"line":35,"column":4},"end":{"line":35,"column":14}},"9":{"start":{"line":38,"column":2},"end":{"line":43,"column":3}},"10":{"start":{"line":40,"column":21},"end":{"line":40,"column":52}},"11":{"start":{"line":41,"column":18},"end":{"line":41,"column":46}},"12":{"start":{"line":42,"column":21},"end":{"line":42,"column":52}},"13":{"start":{"line":58,"column":0},"end":{"line":67,"column":1}},"14":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"15":{"start":{"line":60,"column":4},"end":{"line":60,"column":16}},"16":{"start":{"line":63,"column":2},"end":{"line":66,"column":3}},"17":{"start":{"line":69,"column":0},"end":{"line":69,"column":32}},"18":{"start":{"line":87,"column":0},"end":{"line":102,"column":1}},"19":{"start":{"line":88,"column":2},"end":{"line":90,"column":3}},"20":{"start":{"line":92,"column":2},"end":{"line":92,"column":36}},"21":{"start":{"line":94,"column":2},"end":{"line":94,"column":53}},"22":{"start":{"line":94,"column":33},"end":{"line":94,"column":53}},"23":{"start":{"line":96,"column":2},"end":{"line":99,"column":3}},"24":{"start":{"line":100,"column":2},"end":{"line":100,"column":51}},"25":{"start":{"line":101,"column":2},"end":{"line":101,"column":15}},"26":{"start":{"line":104,"column":0},"end":{"line":104,"column":38}},"27":{"start":{"line":121,"column":0},"end":{"line":137,"column":1}},"28":{"start":{"line":122,"column":2},"end":{"line":124,"column":3}},"29":{"start":{"line":126,"column":2},"end":{"line":126,"column":36}},"30":{"start":{"line":128,"column":2},"end":{"line":128,"column":59}},"31":{"start":{"line":128,"column":33},"end":{"line":128,"column":59}},"32":{"start":{"line":130,"column":2},"end":{"line":133,"column":3}},"33":{"start":{"line":135,"column":2},"end":{"line":135,"column":51}},"34":{"start":{"line":136,"column":2},"end":{"line":136,"column":15}},"35":{"start":{"line":139,"column":0},"end":{"line":139,"column":32}}},"branchMap":{}},"G:\\Projects\\awilix\\lib\\listModules.js":{"path":"G:\\Projects\\awilix\\lib\\listModules.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":12,"7":12,"8":12,"9":3,"10":3,"11":12,"12":12,"13":79,"14":12,"15":1,"16":9,"17":5,"18":8,"19":4},"b":{"1":[3,9],"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":36}},"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":65,"column":1}},"16":{"start":{"line":56,"column":2},"end":{"line":62,"column":3}},"17":{"start":{"line":57,"column":4},"end":{"line":61,"column":5}},"18":{"start":{"line":59,"column":13},"end":{"line":59,"column":34}},"19":{"start":{"line":64,"column":2},"end":{"line":64,"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}}]}}},"G:\\Projects\\awilix\\lib\\flatten.js":{"path":"G:\\Projects\\awilix\\lib\\flatten.js","s":{"1":1,"2":6,"3":6,"4":10,"5":37,"6":6},"b":{},"f":{"1":6},"fnMap":{"1":{"name":"flatten","line":10,"loc":{"start":{"line":10,"column":17},"end":{"line":10,"column":41}}}},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":19,"column":1}},"2":{"start":{"line":11,"column":2},"end":{"line":11,"column":19}},"3":{"start":{"line":12,"column":2},"end":{"line":16,"column":4}},"4":{"start":{"line":13,"column":4},"end":{"line":15,"column":6}},"5":{"start":{"line":14,"column":6},"end":{"line":14,"column":23}},"6":{"start":{"line":18,"column":2},"end":{"line":18,"column":15}}},"branchMap":{}},"G:\\Projects\\awilix\\lib\\AwilixResolutionError.js":{"path":"G:\\Projects\\awilix\\lib\\AwilixResolutionError.js","s":{"1":1,"2":1,"3":1,"4":1,"5":7,"6":7,"7":7,"8":7,"9":7,"10":2,"11":7,"12":7,"13":7,"14":7,"15":1},"b":{"1":[2,5]},"f":{"1":7},"fnMap":{"1":{"name":"(anonymous_1)","line":46,"loc":{"start":{"line":46,"column":13},"end":{"line":46,"column":46}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":29}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":52}},"4":{"start":{"line":17,"column":0},"end":{"line":30,"column":1}},"5":{"start":{"line":18,"column":2},"end":{"line":18,"column":43}},"6":{"start":{"line":19,"column":2},"end":{"line":19,"column":28}},"7":{"start":{"line":20,"column":2},"end":{"line":20,"column":59}},"8":{"start":{"line":21,"column":2},"end":{"line":21,"column":42}},"9":{"start":{"line":22,"column":2},"end":{"line":24,"column":3}},"10":{"start":{"line":23,"column":4},"end":{"line":23,"column":24}},"11":{"start":{"line":26,"column":2},"end":{"line":26,"column":18}},"12":{"start":{"line":27,"column":2},"end":{"line":27,"column":51}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":12}},"14":{"start":{"line":47,"column":4},"end":{"line":47,"column":61}},"15":{"start":{"line":51,"column":0},"end":{"line":51,"column":38}}},"branchMap":{"1":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":2},"end":{"line":22,"column":2}},{"start":{"line":22,"column":2},"end":{"line":22,"column":2}}]}}},"G:\\Projects\\awilix\\lib\\ExtendableError.js":{"path":"G:\\Projects\\awilix\\lib\\ExtendableError.js","s":{"1":7,"2":7,"3":7,"4":7,"5":1},"b":{},"f":{"1":7},"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":{}},"G:\\Projects\\awilix\\lib\\nameValueToObject.js":{"path":"G:\\Projects\\awilix\\lib\\nameValueToObject.js","s":{"1":1,"2":1,"3":89,"4":89,"5":60,"6":89,"7":1},"b":{"1":[60,29]},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}},"2":{"start":{"line":14,"column":0},"end":{"line":21,"column":1}},"3":{"start":{"line":15,"column":2},"end":{"line":15,"column":16}},"4":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":12}},"7":{"start":{"line":23,"column":0},"end":{"line":23,"column":34}}},"branchMap":{"1":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":16,"column":2}},{"start":{"line":16,"column":2},"end":{"line":16,"column":2}}]}}},"G:\\Projects\\awilix\\lib\\last.js":{"path":"G:\\Projects\\awilix\\lib\\last.js","s":{"1":1,"2":86},"b":{},"f":{"1":86},"fnMap":{"1":{"name":"last","line":10,"loc":{"start":{"line":10,"column":17},"end":{"line":10,"column":36}}}},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":12,"column":1}},"2":{"start":{"line":11,"column":2},"end":{"line":11,"column":28}}},"branchMap":{}}} | ||
{"G:\\Projects\\awilix\\lib\\awilix.js":{"path":"G:\\Projects\\awilix\\lib\\awilix.js","s":{"1":1,"2":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":2,"column":0},"end":{"line":7,"column":1}},"2":{"start":{"line":10,"column":0},"end":{"line":10,"column":57}}},"branchMap":{}},"G:\\Projects\\awilix\\lib\\createContainer.js":{"path":"G:\\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":57,"11":57,"12":57,"13":57,"14":57,"15":60,"16":57,"17":57,"18":57,"19":57,"20":57,"21":61,"22":1,"23":57,"24":57,"25":117,"26":57,"27":16,"28":57,"29":57,"30":67,"31":67,"32":71,"33":71,"34":67,"35":57,"36":57,"37":171,"38":20,"39":20,"40":31,"41":31,"42":31,"43":5,"44":5,"45":31,"46":20,"47":57,"48":57,"49":57,"50":57,"51":85,"52":57,"53":85,"54":85,"55":85,"56":85,"57":1,"58":84,"59":5,"60":79,"61":79,"62":79,"63":47,"64":33,"65":6,"66":6,"67":2,"68":2,"69":4,"70":6,"71":25,"72":38,"73":38,"74":14,"75":14,"76":25,"77":11,"78":11,"79":25,"80":1,"81":64,"82":64,"83":21,"84":21,"85":85,"86":71,"87":57,"88":57,"89":3,"90":3,"91":57,"92":57},"b":{"1":[16,41],"2":[57,57],"3":[117,36],"4":[5,26],"5":[57,28],"6":[1,84],"7":[5,79],"8":[47,6,25,1],"9":[2,4],"10":[14,24],"11":[11,14],"12":[71,14]},"f":{"1":57,"2":60},"fnMap":{"1":{"name":"createContainer","line":24,"loc":{"start":{"line":24,"column":17},"end":{"line":24,"column":71}}},"2":{"name":"(anonymous_2)","line":47,"loc":{"start":{"line":47,"column":22},"end":{"line":47,"column":25}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":44}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":67}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":64}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":56}},"6":{"start":{"line":6,"column":0},"end":{"line":6,"column":38}},"7":{"start":{"line":7,"column":0},"end":{"line":7,"column":30}},"8":{"start":{"line":13,"column":0},"end":{"line":13,"column":40}},"9":{"start":{"line":24,"column":0},"end":{"line":341,"column":1}},"10":{"start":{"line":25,"column":2},"end":{"line":25,"column":38}},"11":{"start":{"line":31,"column":2},"end":{"line":31,"column":26}},"12":{"start":{"line":35,"column":2},"end":{"line":35,"column":32}},"13":{"start":{"line":38,"column":2},"end":{"line":38,"column":26}},"14":{"start":{"line":41,"column":2},"end":{"line":50,"column":3}},"15":{"start":{"line":48,"column":6},"end":{"line":48,"column":34}},"16":{"start":{"line":53,"column":2},"end":{"line":55,"column":17}},"17":{"start":{"line":63,"column":2},"end":{"line":63,"column":37}},"18":{"start":{"line":70,"column":2},"end":{"line":70,"column":22}},"19":{"start":{"line":73,"column":2},"end":{"line":77,"column":3}},"20":{"start":{"line":84,"column":2},"end":{"line":108,"column":4}},"21":{"start":{"line":97,"column":27},"end":{"line":97,"column":40}},"22":{"start":{"line":106,"column":6},"end":{"line":106,"column":104}},"23":{"start":{"line":110,"column":2},"end":{"line":110,"column":27}},"24":{"start":{"line":118,"column":2},"end":{"line":124,"column":3}},"25":{"start":{"line":119,"column":4},"end":{"line":123,"column":5}},"26":{"start":{"line":132,"column":2},"end":{"line":134,"column":3}},"27":{"start":{"line":133,"column":4},"end":{"line":133,"column":46}},"28":{"start":{"line":136,"column":2},"end":{"line":136,"column":37}},"29":{"start":{"line":147,"column":2},"end":{"line":155,"column":3}},"30":{"start":{"line":148,"column":4},"end":{"line":148,"column":53}},"31":{"start":{"line":149,"column":4},"end":{"line":152,"column":5}},"32":{"start":{"line":150,"column":6},"end":{"line":150,"column":28}},"33":{"start":{"line":151,"column":6},"end":{"line":151,"column":32}},"34":{"start":{"line":154,"column":4},"end":{"line":154,"column":20}},"35":{"start":{"line":157,"column":2},"end":{"line":157,"column":31}},"36":{"start":{"line":162,"column":2},"end":{"line":182,"column":3}},"37":{"start":{"line":162,"column":31},"end":{"line":182,"column":3}},"38":{"start":{"line":164,"column":4},"end":{"line":164,"column":46}},"39":{"start":{"line":166,"column":4},"end":{"line":178,"column":5}},"40":{"start":{"line":167,"column":6},"end":{"line":167,"column":36}},"41":{"start":{"line":170,"column":6},"end":{"line":170,"column":36}},"42":{"start":{"line":171,"column":6},"end":{"line":175,"column":7}},"43":{"start":{"line":173,"column":8},"end":{"line":173,"column":58}},"44":{"start":{"line":174,"column":8},"end":{"line":174,"column":44}},"45":{"start":{"line":177,"column":6},"end":{"line":177,"column":46}},"46":{"start":{"line":181,"column":4},"end":{"line":181,"column":20}},"47":{"start":{"line":196,"column":2},"end":{"line":196,"column":55}},"48":{"start":{"line":210,"column":2},"end":{"line":210,"column":49}},"49":{"start":{"line":224,"column":2},"end":{"line":224,"column":49}},"50":{"start":{"line":235,"column":2},"end":{"line":314,"column":3}},"51":{"start":{"line":236,"column":4},"end":{"line":238,"column":5}},"52":{"start":{"line":237,"column":6},"end":{"line":237,"column":49}},"53":{"start":{"line":242,"column":4},"end":{"line":242,"column":33}},"54":{"start":{"line":244,"column":4},"end":{"line":313,"column":5}},"55":{"start":{"line":246,"column":6},"end":{"line":246,"column":52}},"56":{"start":{"line":247,"column":6},"end":{"line":249,"column":7}},"57":{"start":{"line":248,"column":8},"end":{"line":248,"column":95}},"58":{"start":{"line":251,"column":6},"end":{"line":253,"column":7}},"59":{"start":{"line":252,"column":8},"end":{"line":252,"column":62}},"60":{"start":{"line":256,"column":6},"end":{"line":256,"column":32}},"61":{"start":{"line":259,"column":6},"end":{"line":259,"column":26}},"62":{"start":{"line":260,"column":6},"end":{"line":299,"column":7}},"63":{"start":{"line":263,"column":10},"end":{"line":263,"column":52}},"64":{"start":{"line":264,"column":10},"end":{"line":264,"column":15}},"65":{"start":{"line":267,"column":10},"end":{"line":267,"column":35}},"66":{"start":{"line":268,"column":10},"end":{"line":273,"column":11}},"67":{"start":{"line":269,"column":12},"end":{"line":269,"column":54}},"68":{"start":{"line":270,"column":12},"end":{"line":270,"column":39}},"69":{"start":{"line":272,"column":12},"end":{"line":272,"column":29}},"70":{"start":{"line":274,"column":10},"end":{"line":274,"column":15}},"71":{"start":{"line":282,"column":10},"end":{"line":289,"column":11}},"72":{"start":{"line":283,"column":12},"end":{"line":283,"column":34}},"73":{"start":{"line":284,"column":12},"end":{"line":288,"column":13}},"74":{"start":{"line":286,"column":14},"end":{"line":286,"column":31}},"75":{"start":{"line":287,"column":14},"end":{"line":287,"column":19}},"76":{"start":{"line":292,"column":10},"end":{"line":295,"column":11}},"77":{"start":{"line":293,"column":12},"end":{"line":293,"column":54}},"78":{"start":{"line":294,"column":12},"end":{"line":294,"column":44}},"79":{"start":{"line":296,"column":10},"end":{"line":296,"column":15}},"80":{"start":{"line":298,"column":10},"end":{"line":298,"column":111}},"81":{"start":{"line":301,"column":6},"end":{"line":301,"column":27}},"82":{"start":{"line":302,"column":6},"end":{"line":302,"column":21}},"83":{"start":{"line":305,"column":6},"end":{"line":305,"column":26}},"84":{"start":{"line":306,"column":6},"end":{"line":306,"column":15}},"85":{"start":{"line":310,"column":6},"end":{"line":312,"column":7}},"86":{"start":{"line":311,"column":8},"end":{"line":311,"column":34}},"87":{"start":{"line":316,"column":2},"end":{"line":316,"column":29}},"88":{"start":{"line":327,"column":2},"end":{"line":330,"column":3}},"89":{"start":{"line":328,"column":4},"end":{"line":328,"column":53}},"90":{"start":{"line":329,"column":4},"end":{"line":329,"column":20}},"91":{"start":{"line":337,"column":2},"end":{"line":337,"column":37}},"92":{"start":{"line":340,"column":2},"end":{"line":340,"column":18}}},"branchMap":{"1":{"line":53,"type":"cond-expr","locations":[{"start":{"line":54,"column":6},"end":{"line":54,"column":56}},{"start":{"line":55,"column":6},"end":{"line":55,"column":17}}]},"2":{"line":74,"type":"binary-expr","locations":[{"start":{"line":74,"column":13},"end":{"line":74,"column":28}},{"start":{"line":74,"column":32},"end":{"line":74,"column":39}}]},"3":{"line":121,"type":"binary-expr","locations":[{"start":{"line":121,"column":6},"end":{"line":121,"column":23}},{"start":{"line":121,"column":27},"end":{"line":121,"column":58}}]},"4":{"line":171,"type":"if","locations":[{"start":{"line":171,"column":6},"end":{"line":171,"column":6}},{"start":{"line":171,"column":6},"end":{"line":171,"column":6}}]},"5":{"line":236,"type":"if","locations":[{"start":{"line":236,"column":4},"end":{"line":236,"column":4}},{"start":{"line":236,"column":4},"end":{"line":236,"column":4}}]},"6":{"line":247,"type":"if","locations":[{"start":{"line":247,"column":6},"end":{"line":247,"column":6}},{"start":{"line":247,"column":6},"end":{"line":247,"column":6}}]},"7":{"line":251,"type":"if","locations":[{"start":{"line":251,"column":6},"end":{"line":251,"column":6}},{"start":{"line":251,"column":6},"end":{"line":251,"column":6}}]},"8":{"line":260,"type":"switch","locations":[{"start":{"line":261,"column":8},"end":{"line":264,"column":15}},{"start":{"line":265,"column":8},"end":{"line":274,"column":15}},{"start":{"line":275,"column":8},"end":{"line":296,"column":15}},{"start":{"line":297,"column":8},"end":{"line":298,"column":111}}]},"9":{"line":268,"type":"if","locations":[{"start":{"line":268,"column":10},"end":{"line":268,"column":10}},{"start":{"line":268,"column":10},"end":{"line":268,"column":10}}]},"10":{"line":284,"type":"if","locations":[{"start":{"line":284,"column":12},"end":{"line":284,"column":12}},{"start":{"line":284,"column":12},"end":{"line":284,"column":12}}]},"11":{"line":292,"type":"if","locations":[{"start":{"line":292,"column":10},"end":{"line":292,"column":10}},{"start":{"line":292,"column":10},"end":{"line":292,"column":10}}]},"12":{"line":310,"type":"if","locations":[{"start":{"line":310,"column":6},"end":{"line":310,"column":6}},{"start":{"line":310,"column":6},"end":{"line":310,"column":6}}]}}},"G:\\Projects\\awilix\\lib\\loadModules.js":{"path":"G:\\Projects\\awilix\\lib\\loadModules.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":10,"10":10,"11":10,"12":10,"13":10,"14":20,"15":20,"16":1,"17":19,"18":5,"19":3,"20":2,"21":14,"22":10,"23":20,"24":17,"25":17,"26":17,"27":3,"28":2,"29":3,"30":2,"31":17,"32":17,"33":17,"34":17,"35":5,"36":17,"37":17,"38":10},"b":{"1":[10,2],"2":[1,19],"3":[5,14],"4":[3,2],"5":[5,3],"6":[3,14],"7":[2,1],"8":[2,1],"9":[1,16],"10":[17,17,1],"11":[5,12]},"f":{"1":10},"fnMap":{"1":{"name":"loadModules","line":35,"loc":{"start":{"line":35,"column":17},"end":{"line":35,"column":73}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":35}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":37}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":42}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":38}},"6":{"start":{"line":6,"column":0},"end":{"line":6,"column":48}},"7":{"start":{"line":8,"column":0},"end":{"line":10,"column":1}},"8":{"start":{"line":35,"column":0},"end":{"line":94,"column":1}},"9":{"start":{"line":36,"column":2},"end":{"line":36,"column":19}},"10":{"start":{"line":37,"column":2},"end":{"line":41,"column":10}},"11":{"start":{"line":42,"column":2},"end":{"line":42,"column":42}},"12":{"start":{"line":43,"column":2},"end":{"line":43,"column":62}},"13":{"start":{"line":45,"column":2},"end":{"line":63,"column":4}},"14":{"start":{"line":46,"column":4},"end":{"line":46,"column":47}},"15":{"start":{"line":49,"column":4},"end":{"line":51,"column":5}},"16":{"start":{"line":50,"column":6},"end":{"line":50,"column":22}},"17":{"start":{"line":53,"column":4},"end":{"line":60,"column":5}},"18":{"start":{"line":54,"column":6},"end":{"line":57,"column":7}},"19":{"start":{"line":56,"column":8},"end":{"line":56,"column":68}},"20":{"start":{"line":59,"column":6},"end":{"line":59,"column":22}},"21":{"start":{"line":62,"column":4},"end":{"line":62,"column":56}},"22":{"start":{"line":64,"column":2},"end":{"line":90,"column":4}},"23":{"start":{"line":64,"column":21},"end":{"line":64,"column":22}},"24":{"start":{"line":65,"column":4},"end":{"line":65,"column":23}},"25":{"start":{"line":66,"column":4},"end":{"line":66,"column":35}},"26":{"start":{"line":67,"column":4},"end":{"line":75,"column":5}},"27":{"start":{"line":68,"column":6},"end":{"line":70,"column":7}},"28":{"start":{"line":69,"column":8},"end":{"line":69,"column":45}},"29":{"start":{"line":72,"column":6},"end":{"line":74,"column":7}},"30":{"start":{"line":73,"column":8},"end":{"line":73,"column":30}},"31":{"start":{"line":77,"column":4},"end":{"line":77,"column":85}},"32":{"start":{"line":78,"column":4},"end":{"line":78,"column":104}},"33":{"start":{"line":79,"column":4},"end":{"line":79,"column":26}},"34":{"start":{"line":81,"column":4},"end":{"line":83,"column":5}},"35":{"start":{"line":82,"column":6},"end":{"line":82,"column":37}},"36":{"start":{"line":85,"column":4},"end":{"line":85,"column":66}},"37":{"start":{"line":86,"column":4},"end":{"line":89,"column":5}},"38":{"start":{"line":91,"column":2},"end":{"line":93,"column":3}}},"branchMap":{"1":{"line":36,"type":"binary-expr","locations":[{"start":{"line":36,"column":9},"end":{"line":36,"column":13}},{"start":{"line":36,"column":17},"end":{"line":36,"column":19}}]},"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":53,"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":53,"column":4}},{"start":{"line":53,"column":4},"end":{"line":53,"column":4}}]},"4":{"line":54,"type":"if","locations":[{"start":{"line":54,"column":6},"end":{"line":54,"column":6}},{"start":{"line":54,"column":6},"end":{"line":54,"column":6}}]},"5":{"line":54,"type":"binary-expr","locations":[{"start":{"line":54,"column":10},"end":{"line":54,"column":24}},{"start":{"line":54,"column":28},"end":{"line":54,"column":54}}]},"6":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":4},"end":{"line":67,"column":4}},{"start":{"line":67,"column":4},"end":{"line":67,"column":4}}]},"7":{"line":68,"type":"if","locations":[{"start":{"line":68,"column":6},"end":{"line":68,"column":6}},{"start":{"line":68,"column":6},"end":{"line":68,"column":6}}]},"8":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":6}},{"start":{"line":72,"column":6},"end":{"line":72,"column":6}}]},"9":{"line":77,"type":"cond-expr","locations":[{"start":{"line":77,"column":37},"end":{"line":77,"column":58}},{"start":{"line":77,"column":61},"end":{"line":77,"column":85}}]},"10":{"line":78,"type":"binary-expr","locations":[{"start":{"line":78,"column":21},"end":{"line":78,"column":45}},{"start":{"line":78,"column":49},"end":{"line":78,"column":82}},{"start":{"line":78,"column":86},"end":{"line":78,"column":104}}]},"11":{"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}}]}}},"G:\\Projects\\awilix\\lib\\isFunction.js":{"path":"G:\\Projects\\awilix\\lib\\isFunction.js","s":{"1":1,"2":29},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":10,"column":49}},"2":{"start":{"line":10,"column":24},"end":{"line":10,"column":49}}},"branchMap":{}},"G:\\Projects\\awilix\\lib\\Lifetime.js":{"path":"G:\\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":{}},"G:\\Projects\\awilix\\lib\\registrations.js":{"path":"G:\\Projects\\awilix\\lib\\registrations.js","s":{"1":1,"2":1,"3":64,"4":1,"5":64,"6":15,"7":15,"8":64,"9":4,"10":5,"11":4,"12":1,"13":14,"14":9,"15":14,"16":1,"17":1,"18":51,"19":51,"20":51,"21":49,"22":51,"23":51,"24":51,"25":1,"26":1,"27":13,"28":13,"29":13,"30":5,"31":13,"32":13,"33":13,"34":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},"2":{"start":{"line":14,"column":0},"end":{"line":16,"column":1}},"3":{"start":{"line":15,"column":2},"end":{"line":15,"column":43}},"4":{"start":{"line":31,"column":0},"end":{"line":43,"column":1}},"5":{"start":{"line":32,"column":2},"end":{"line":35,"column":3}},"6":{"start":{"line":33,"column":4},"end":{"line":33,"column":24}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":14}},"8":{"start":{"line":37,"column":2},"end":{"line":42,"column":3}},"9":{"start":{"line":39,"column":21},"end":{"line":39,"column":52}},"10":{"start":{"line":40,"column":18},"end":{"line":40,"column":46}},"11":{"start":{"line":41,"column":21},"end":{"line":41,"column":52}},"12":{"start":{"line":57,"column":0},"end":{"line":66,"column":1}},"13":{"start":{"line":58,"column":2},"end":{"line":60,"column":3}},"14":{"start":{"line":59,"column":4},"end":{"line":59,"column":16}},"15":{"start":{"line":62,"column":2},"end":{"line":65,"column":3}},"16":{"start":{"line":68,"column":0},"end":{"line":68,"column":32}},"17":{"start":{"line":86,"column":0},"end":{"line":101,"column":1}},"18":{"start":{"line":87,"column":2},"end":{"line":89,"column":3}},"19":{"start":{"line":91,"column":2},"end":{"line":91,"column":36}},"20":{"start":{"line":93,"column":2},"end":{"line":93,"column":53}},"21":{"start":{"line":93,"column":33},"end":{"line":93,"column":53}},"22":{"start":{"line":95,"column":2},"end":{"line":98,"column":3}},"23":{"start":{"line":99,"column":2},"end":{"line":99,"column":51}},"24":{"start":{"line":100,"column":2},"end":{"line":100,"column":15}},"25":{"start":{"line":103,"column":0},"end":{"line":103,"column":38}},"26":{"start":{"line":120,"column":0},"end":{"line":136,"column":1}},"27":{"start":{"line":121,"column":2},"end":{"line":123,"column":3}},"28":{"start":{"line":125,"column":2},"end":{"line":125,"column":36}},"29":{"start":{"line":127,"column":2},"end":{"line":127,"column":59}},"30":{"start":{"line":127,"column":33},"end":{"line":127,"column":59}},"31":{"start":{"line":129,"column":2},"end":{"line":132,"column":3}},"32":{"start":{"line":134,"column":2},"end":{"line":134,"column":51}},"33":{"start":{"line":135,"column":2},"end":{"line":135,"column":15}},"34":{"start":{"line":138,"column":0},"end":{"line":138,"column":32}}},"branchMap":{}},"G:\\Projects\\awilix\\lib\\listModules.js":{"path":"G:\\Projects\\awilix\\lib\\listModules.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":12,"7":12,"8":12,"9":3,"10":3,"11":12,"12":12,"13":79,"14":12,"15":1,"16":9,"17":5,"18":8,"19":4},"b":{"1":[3,9],"2":[5,4]},"f":{"1":12,"2":9},"fnMap":{"1":{"name":"_listModules","line":23,"loc":{"start":{"line":23,"column":0},"end":{"line":23,"column":42}}},"2":{"name":"listModules","line":55,"loc":{"start":{"line":55,"column":17},"end":{"line":55,"column":59}}}},"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":36}},"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":65,"column":1}},"16":{"start":{"line":56,"column":2},"end":{"line":62,"column":3}},"17":{"start":{"line":57,"column":4},"end":{"line":61,"column":5}},"18":{"start":{"line":59,"column":13},"end":{"line":59,"column":34}},"19":{"start":{"line":64,"column":2},"end":{"line":64,"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}}]}}},"G:\\Projects\\awilix\\lib\\flatten.js":{"path":"G:\\Projects\\awilix\\lib\\flatten.js","s":{"1":1,"2":6,"3":6,"4":10,"5":37,"6":6},"b":{},"f":{"1":6},"fnMap":{"1":{"name":"flatten","line":10,"loc":{"start":{"line":10,"column":17},"end":{"line":10,"column":42}}}},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":19,"column":1}},"2":{"start":{"line":11,"column":2},"end":{"line":11,"column":19}},"3":{"start":{"line":12,"column":2},"end":{"line":16,"column":4}},"4":{"start":{"line":13,"column":4},"end":{"line":15,"column":6}},"5":{"start":{"line":14,"column":6},"end":{"line":14,"column":23}},"6":{"start":{"line":18,"column":2},"end":{"line":18,"column":15}}},"branchMap":{}},"G:\\Projects\\awilix\\lib\\AwilixResolutionError.js":{"path":"G:\\Projects\\awilix\\lib\\AwilixResolutionError.js","s":{"1":1,"2":1,"3":1,"4":7,"5":7,"6":7,"7":7,"8":7,"9":2,"10":7,"11":7,"12":7,"13":7,"14":1},"b":{"1":[2,5]},"f":{"1":7},"fnMap":{"1":{"name":"(anonymous_1)","line":45,"loc":{"start":{"line":45,"column":14},"end":{"line":45,"column":47}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":52}},"3":{"start":{"line":16,"column":0},"end":{"line":29,"column":1}},"4":{"start":{"line":17,"column":2},"end":{"line":17,"column":43}},"5":{"start":{"line":18,"column":2},"end":{"line":18,"column":28}},"6":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"7":{"start":{"line":20,"column":2},"end":{"line":20,"column":42}},"8":{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},"9":{"start":{"line":22,"column":4},"end":{"line":22,"column":24}},"10":{"start":{"line":25,"column":2},"end":{"line":25,"column":18}},"11":{"start":{"line":26,"column":2},"end":{"line":26,"column":51}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":12}},"13":{"start":{"line":46,"column":4},"end":{"line":46,"column":61}},"14":{"start":{"line":50,"column":0},"end":{"line":50,"column":38}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":21,"column":2}},{"start":{"line":21,"column":2},"end":{"line":21,"column":2}}]}}},"G:\\Projects\\awilix\\lib\\ExtendableError.js":{"path":"G:\\Projects\\awilix\\lib\\ExtendableError.js","s":{"1":7,"2":7,"3":7,"4":7,"5":1},"b":{},"f":{"1":7},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":14},"end":{"line":12,"column":24}}}},"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":{}},"G:\\Projects\\awilix\\lib\\nameValueToObject.js":{"path":"G:\\Projects\\awilix\\lib\\nameValueToObject.js","s":{"1":1,"2":1,"3":89,"4":89,"5":60,"6":89,"7":1},"b":{"1":[60,29]},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}},"2":{"start":{"line":14,"column":0},"end":{"line":21,"column":1}},"3":{"start":{"line":15,"column":2},"end":{"line":15,"column":16}},"4":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":12}},"7":{"start":{"line":23,"column":0},"end":{"line":23,"column":34}}},"branchMap":{"1":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":16,"column":2}},{"start":{"line":16,"column":2},"end":{"line":16,"column":2}}]}}},"G:\\Projects\\awilix\\lib\\last.js":{"path":"G:\\Projects\\awilix\\lib\\last.js","s":{"1":1,"2":86},"b":{},"f":{"1":86},"fnMap":{"1":{"name":"last","line":10,"loc":{"start":{"line":10,"column":17},"end":{"line":10,"column":37}}}},"statementMap":{"1":{"start":{"line":10,"column":0},"end":{"line":12,"column":1}},"2":{"start":{"line":11,"column":2},"end":{"line":11,"column":28}}},"branchMap":{}}} |
@@ -10,2 +10,2 @@ // Export the public API. | ||
// Assigns registrations | ||
Object.assign(module.exports, require('./registrations')) | ||
Object.assign(module.exports, require('./registrations')) |
@@ -1,2 +0,1 @@ | ||
const flatten = require('./flatten') | ||
const EOL = require('os').EOL | ||
@@ -46,3 +45,3 @@ const ExtendableError = require('./ExtendableError') | ||
*/ | ||
constructor(name, resolutionStack, message) { | ||
constructor (name, resolutionStack, message) { | ||
super(createErrorMessage(name, resolutionStack, message)) | ||
@@ -52,2 +51,2 @@ } | ||
module.exports = AwilixResolutionError | ||
module.exports = AwilixResolutionError |
const loadModules = require('./loadModules') | ||
const listModules = require('./listModules') | ||
const isFunction = require('./isFunction') | ||
const { asClass, asFunction, asValue } = require('./registrations') | ||
@@ -8,3 +7,2 @@ const AwilixResolutionError = require('./AwilixResolutionError') | ||
const Lifetime = require('./Lifetime') | ||
const isPlainObject = require('is-plain-object') | ||
const last = require('./last') | ||
@@ -27,3 +25,3 @@ | ||
*/ | ||
module.exports = function createContainer(options, __parentContainer) { | ||
module.exports = function createContainer (options, __parentContainer) { | ||
options = Object.assign({}, options) | ||
@@ -51,3 +49,3 @@ | ||
*/ | ||
get registrations() { | ||
get registrations () { | ||
return rollUpRegistrations() | ||
@@ -102,3 +100,13 @@ } | ||
*/ | ||
get: (target, name) => resolve(name) | ||
get: (target, name) => resolve(name), | ||
/** | ||
* Setting things on the cradle throws an error. | ||
* | ||
* @param {object} target | ||
* @param {string} name | ||
*/ | ||
set: (target, name, value) => { | ||
throw new Error(`Attempted setting property "${name}" on container cradle - this is not allowed.`) | ||
} | ||
}) | ||
@@ -257,17 +265,17 @@ | ||
switch (registration.lifetime) { | ||
case Lifetime.TRANSIENT: | ||
case Lifetime.TRANSIENT: | ||
// Transient lifetime means resolve every time. | ||
resolved = registration.resolve(container) | ||
break | ||
case Lifetime.SINGLETON: | ||
resolved = registration.resolve(container) | ||
break | ||
case Lifetime.SINGLETON: | ||
// Singleton lifetime means cache at all times, regardless of scope. | ||
cached = root.cache[name] | ||
if (cached === undefined) { | ||
resolved = registration.resolve(container) | ||
root.cache[name] = resolved | ||
} else { | ||
resolved = cached | ||
} | ||
break | ||
case Lifetime.SCOPED: | ||
cached = root.cache[name] | ||
if (cached === undefined) { | ||
resolved = registration.resolve(container) | ||
root.cache[name] = resolved | ||
} else { | ||
resolved = cached | ||
} | ||
break | ||
case Lifetime.SCOPED: | ||
// Scoped lifetime means that the container | ||
@@ -279,19 +287,19 @@ // that resolves the registration also caches it. | ||
// Note: The first element in the family tree is this container. | ||
for (const c of familyTree) { | ||
cached = c.cache[name] | ||
if (cached !== undefined) { | ||
for (const c of familyTree) { | ||
cached = c.cache[name] | ||
if (cached !== undefined) { | ||
// We found one! | ||
resolved = cached | ||
break | ||
resolved = cached | ||
break | ||
} | ||
} | ||
} | ||
// If we still have not found one, we need to resolve and cache it. | ||
if (cached === undefined) { | ||
resolved = registration.resolve(container) | ||
container.cache[name] = resolved | ||
} | ||
break | ||
default: | ||
throw new AwilixResolutionError(name, resolutionStack, `Unknown lifetime "${registration.lifetime}"`) | ||
if (cached === undefined) { | ||
resolved = registration.resolve(container) | ||
container.cache[name] = resolved | ||
} | ||
break | ||
default: | ||
throw new AwilixResolutionError(name, resolutionStack, `Unknown lifetime "${registration.lifetime}"`) | ||
} | ||
@@ -339,2 +347,2 @@ // Pop it from the stack again, ready for the next resolution | ||
return container | ||
} | ||
} |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
constructor(message) { | ||
constructor (message) { | ||
super(message) | ||
@@ -18,9 +18,9 @@ | ||
Object.defineProperty(this, 'message', { | ||
enumerable : false, | ||
value : message | ||
enumerable: false, | ||
value: message | ||
}) | ||
Object.defineProperty(this, 'name', { | ||
enumerable : false, | ||
value : this.constructor.name | ||
enumerable: false, | ||
value: this.constructor.name | ||
}) | ||
@@ -32,2 +32,2 @@ | ||
module.exports = ExtendableError | ||
module.exports = ExtendableError |
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
module.exports = function flatten(array) { | ||
module.exports = function flatten (array) { | ||
const result = [] | ||
@@ -20,2 +20,2 @@ array.forEach(arr => { | ||
return result | ||
} | ||
} |
@@ -10,2 +10,2 @@ /** | ||
*/ | ||
module.exports = val => typeof val === 'function' | ||
module.exports = val => typeof val === 'function' |
@@ -10,4 +10,4 @@ /** | ||
*/ | ||
module.exports = function last(arr) { | ||
module.exports = function last (arr) { | ||
return arr[arr.length - 1] | ||
} | ||
} |
@@ -17,2 +17,2 @@ /** | ||
*/ | ||
module.exports.SCOPED = 'SCOPED' | ||
module.exports.SCOPED = 'SCOPED' |
@@ -23,3 +23,3 @@ const glob = require('glob') | ||
*/ | ||
function _listModules(globPattern, opts) { | ||
function _listModules (globPattern, opts) { | ||
opts = Object.assign({ cwd: process.cwd(), glob: glob.sync }, opts) | ||
@@ -56,3 +56,3 @@ let patternOpts = null | ||
*/ | ||
module.exports = function listModules(globPatterns, opts) { | ||
module.exports = function listModules (globPatterns, opts) { | ||
if (globPatterns instanceof Array) { | ||
@@ -67,2 +67,2 @@ return flatten( | ||
return _listModules(globPatterns, opts) | ||
} | ||
} |
@@ -35,3 +35,3 @@ const camelCase = require('camel-case') | ||
*/ | ||
module.exports = function loadModules(dependencies, globPatterns, opts) { | ||
module.exports = function loadModules (dependencies, globPatterns, opts) { | ||
opts = opts || {} | ||
@@ -38,0 +38,0 @@ opts = Object.assign({}, { |
@@ -23,2 +23,2 @@ const isPlainObject = require('is-plain-object') | ||
module.exports = nameValueToObject | ||
module.exports = nameValueToObject |
@@ -1,2 +0,1 @@ | ||
const isPlainObject = require('is-plain-object') | ||
const Lifetime = require('./Lifetime') | ||
@@ -112,3 +111,3 @@ | ||
* | ||
* @param {Class} type | ||
* @param {Class} Type | ||
* The function to register. | ||
@@ -122,3 +121,3 @@ * | ||
*/ | ||
const asClass = (type, opts) => { | ||
const asClass = (Type, opts) => { | ||
const defaults = { | ||
@@ -130,3 +129,3 @@ lifetime: Lifetime.TRANSIENT | ||
const resolve = (container) => new type(container.cradle) | ||
const resolve = (container) => new Type(container.cradle) | ||
@@ -142,2 +141,2 @@ const result = { | ||
module.exports.asClass = asClass | ||
module.exports.asClass = asClass |
{ | ||
"name": "awilix", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Simple dependency injection container + helper utilities to facilitate wiring of modules", | ||
@@ -39,2 +39,5 @@ "main": "lib/awilix.js", | ||
"eslint": "^3.3.1", | ||
"eslint-config-standard": "^6.0.0-beta.3", | ||
"eslint-plugin-promise": "^2.0.1", | ||
"eslint-plugin-standard": "^2.0.0", | ||
"eslint-watch": "^2.1.14", | ||
@@ -41,0 +44,0 @@ "istanbul": "^0.4.5", |
@@ -12,2 +12,3 @@ # Awilix | ||
[![node](https://img.shields.io/node/v/awilix.svg?maxAge=1000)](https://www.npmjs.com/package/awilix) | ||
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) | ||
@@ -14,0 +15,0 @@ Simple **Inversion of Control** (IoC) container for Node with dependency resolution support powered by ES6 Proxies. Make IoC great again! |
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
1139
719
209709
11