chain-commander
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "chain-commander", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
{ | ||
"name": "chain-commander", | ||
"repo": "pocesar/js-chain-commander", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Chain commander is a library based on Bluebird library, to encapsulate business rules logic in form of javascript objects or JSON.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -1,1 +0,1 @@ | ||
{"C:\\Inetpub\\js-chain-commander\\lib\\chain-commander.js":{"path":"C:\\Inetpub\\js-chain-commander\\lib\\chain-commander.js","s":{"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":1,"12":59,"13":1,"14":59,"15":1,"16":32,"17":1,"18":376,"19":0,"20":0,"21":0,"22":0,"23":32,"24":32,"25":32,"26":0,"27":32,"28":32,"29":1,"30":44,"31":44,"32":42,"33":42,"34":42,"35":42,"36":1,"37":41,"38":41,"39":2,"40":41,"41":41,"42":9,"43":9,"44":1,"45":8,"46":42,"47":42,"48":16,"49":26,"50":42,"51":1,"52":21,"53":21,"54":20,"55":20,"56":20,"57":18,"58":18,"59":21,"60":21,"61":21,"62":21,"63":21,"64":1,"65":20,"66":20,"67":20,"68":2,"69":1,"70":19,"71":19,"72":1,"73":19,"74":2,"75":2,"76":1,"77":1,"78":20,"79":20,"80":21,"81":18,"82":6,"83":6,"84":6,"85":6,"86":6,"87":6,"88":6,"89":6,"90":6,"91":18,"92":21,"93":18,"94":17,"95":17,"96":17,"97":9,"98":9,"99":8,"100":6,"101":17,"102":2,"103":1,"104":1,"105":20,"106":32,"107":52,"108":52,"109":21,"110":21,"111":52,"112":33,"113":35,"114":35,"115":32,"116":1,"117":41,"118":13,"119":28,"120":28,"121":28,"122":28,"123":28,"124":1,"125":27,"126":1,"127":1,"128":26,"129":1,"130":2,"131":14,"132":14,"133":14,"134":2,"135":2,"136":4,"137":2,"138":12,"139":10,"140":2,"141":2,"142":10,"143":2,"144":1,"145":26,"146":1},"b":{"1":[1,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,0],"6":[1,58],"7":[0,376],"8":[0,0],"9":[0,0],"10":[1,41],"11":[42,3],"12":[2,39],"13":[1,8],"14":[16,26],"15":[18,2],"16":[1,20],"17":[2,18],"18":[1,1],"19":[1,18],"20":[1,1],"21":[9,8],"22":[17,9],"23":[6,2],"24":[8,8],"25":[1,1],"26":[21,31],"27":[33,19],"28":[13,28],"29":[28,23],"30":[0,28],"31":[5,23],"32":[1,27],"33":[28,27,2],"34":[1,27],"35":[28,5,5,2],"36":[1,26],"37":[14,2],"38":[2,12],"39":[10,2]},"f":{"1":1,"2":1,"3":0,"4":59,"5":32,"6":376,"7":0,"8":44,"9":42,"10":42,"11":9,"12":42,"13":21,"14":20,"15":21,"16":21,"17":20,"18":2,"19":20,"20":6,"21":6,"22":6,"23":17,"24":41,"25":2,"26":14,"27":14,"28":26},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":28}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":9},"end":{"line":18,"column":21}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":33},"end":{"line":22,"column":46}},"skip":true},"4":{"name":"convert","line":26,"loc":{"start":{"line":26,"column":2},"end":{"line":26,"column":23}}},"5":{"name":"parser","line":35,"loc":{"start":{"line":35,"column":2},"end":{"line":35,"column":40}}},"6":{"name":"log","line":39,"loc":{"start":{"line":39,"column":4},"end":{"line":39,"column":19}}},"7":{"name":"(anonymous_7)","line":55,"loc":{"start":{"line":55,"column":18},"end":{"line":55,"column":28}},"skip":true},"8":{"name":"exec","line":64,"loc":{"start":{"line":64,"column":4},"end":{"line":64,"column":26}}},"9":{"name":"execPromise","line":67,"loc":{"start":{"line":67,"column":13},"end":{"line":67,"column":48}}},"10":{"name":"(anonymous_10)","line":74,"loc":{"start":{"line":74,"column":14},"end":{"line":74,"column":25}}},"11":{"name":"(anonymous_11)","line":90,"loc":{"start":{"line":90,"column":15},"end":{"line":90,"column":29}}},"12":{"name":"(anonymous_12)","line":99,"loc":{"start":{"line":99,"column":14},"end":{"line":99,"column":27}}},"13":{"name":"ifblock","line":115,"loc":{"start":{"line":115,"column":4},"end":{"line":115,"column":29}}},"14":{"name":"ifblockPromise","line":118,"loc":{"start":{"line":118,"column":13},"end":{"line":118,"column":50}}},"15":{"name":"(anonymous_15)","line":126,"loc":{"start":{"line":126,"column":28},"end":{"line":126,"column":47}}},"16":{"name":"conditionalPromise","line":128,"loc":{"start":{"line":128,"column":19},"end":{"line":128,"column":52}}},"17":{"name":"(anonymous_17)","line":137,"loc":{"start":{"line":137,"column":22},"end":{"line":137,"column":32}}},"18":{"name":"(anonymous_18)","line":154,"loc":{"start":{"line":154,"column":23},"end":{"line":154,"column":36}}},"19":{"name":"(anonymous_19)","line":163,"loc":{"start":{"line":163,"column":22},"end":{"line":163,"column":35}}},"20":{"name":"(anonymous_20)","line":174,"loc":{"start":{"line":174,"column":32},"end":{"line":174,"column":48}}},"21":{"name":"conditionalelsePromise","line":176,"loc":{"start":{"line":176,"column":19},"end":{"line":176,"column":64}}},"22":{"name":"(anonymous_22)","line":185,"loc":{"start":{"line":185,"column":20},"end":{"line":185,"column":33}}},"23":{"name":"(anonymous_23)","line":201,"loc":{"start":{"line":201,"column":26},"end":{"line":201,"column":39}}},"24":{"name":"ChainCommander","line":253,"loc":{"start":{"line":253,"column":2},"end":{"line":253,"column":36}}},"25":{"name":"(anonymous_25)","line":288,"loc":{"start":{"line":288,"column":23},"end":{"line":288,"column":52}}},"26":{"name":"(anonymous_26)","line":291,"loc":{"start":{"line":291,"column":14},"end":{"line":291,"column":28}}},"27":{"name":"allFn","line":294,"loc":{"start":{"line":294,"column":15},"end":{"line":294,"column":35}}},"28":{"name":"(anonymous_28)","line":323,"loc":{"start":{"line":323,"column":37},"end":{"line":323,"column":63}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":328,"column":3}},"2":{"start":{"line":4,"column":2},"end":{"line":16,"column":3}},"3":{"start":{"line":6,"column":4},"end":{"line":6,"column":32}},"4":{"start":{"line":7,"column":9},"end":{"line":16,"column":3},"skip":true},"5":{"start":{"line":9,"column":4},"end":{"line":9,"column":42},"skip":true},"6":{"start":{"line":12,"column":4},"end":{"line":14,"column":5},"skip":true},"7":{"start":{"line":13,"column":6},"end":{"line":13,"column":53},"skip":true},"8":{"start":{"line":15,"column":4},"end":{"line":15,"column":51},"skip":true},"9":{"start":{"line":22,"column":2},"end":{"line":24,"column":4},"skip":true},"10":{"start":{"line":23,"column":4},"end":{"line":23,"column":68},"skip":true},"11":{"start":{"line":26,"column":2},"end":{"line":33,"column":3}},"12":{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},"13":{"start":{"line":28,"column":6},"end":{"line":28,"column":28}},"14":{"start":{"line":32,"column":4},"end":{"line":32,"column":44}},"15":{"start":{"line":35,"column":2},"end":{"line":244,"column":3}},"16":{"start":{"line":37,"column":4},"end":{"line":37,"column":52}},"17":{"start":{"line":39,"column":4},"end":{"line":48,"column":5}},"18":{"start":{"line":41,"column":6},"end":{"line":47,"column":7},"skip":true},"19":{"start":{"line":42,"column":8},"end":{"line":42,"column":57},"skip":true},"20":{"start":{"line":43,"column":8},"end":{"line":45,"column":9},"skip":true},"21":{"start":{"line":44,"column":10},"end":{"line":44,"column":30},"skip":true},"22":{"start":{"line":46,"column":8},"end":{"line":46,"column":41},"skip":true},"23":{"start":{"line":50,"column":4},"end":{"line":50,"column":23}},"24":{"start":{"line":52,"column":4},"end":{"line":52,"column":33}},"25":{"start":{"line":55,"column":4},"end":{"line":57,"column":6},"skip":true},"26":{"start":{"line":56,"column":6},"end":{"line":56,"column":31},"skip":true},"27":{"start":{"line":59,"column":4},"end":{"line":59,"column":27}},"28":{"start":{"line":62,"column":4},"end":{"line":62,"column":42},"skip":true},"29":{"start":{"line":64,"column":4},"end":{"line":113,"column":5}},"30":{"start":{"line":65,"column":6},"end":{"line":65,"column":22}},"31":{"start":{"line":67,"column":6},"end":{"line":112,"column":8}},"32":{"start":{"line":68,"column":8},"end":{"line":68,"column":26}},"33":{"start":{"line":69,"column":8},"end":{"line":69,"column":23}},"34":{"start":{"line":74,"column":8},"end":{"line":109,"column":11}},"35":{"start":{"line":77,"column":10},"end":{"line":79,"column":11}},"36":{"start":{"line":78,"column":12},"end":{"line":78,"column":82}},"37":{"start":{"line":80,"column":10},"end":{"line":80,"column":59}},"38":{"start":{"line":82,"column":10},"end":{"line":84,"column":11}},"39":{"start":{"line":83,"column":12},"end":{"line":83,"column":36}},"40":{"start":{"line":86,"column":10},"end":{"line":86,"column":62}},"41":{"start":{"line":88,"column":10},"end":{"line":88,"column":58}},"42":{"start":{"line":91,"column":10},"end":{"line":91,"column":32}},"43":{"start":{"line":93,"column":10},"end":{"line":97,"column":11}},"44":{"start":{"line":94,"column":12},"end":{"line":94,"column":26}},"45":{"start":{"line":96,"column":12},"end":{"line":96,"column":36}},"46":{"start":{"line":100,"column":10},"end":{"line":100,"column":32}},"47":{"start":{"line":102,"column":10},"end":{"line":108,"column":11}},"48":{"start":{"line":104,"column":12},"end":{"line":104,"column":36}},"49":{"start":{"line":107,"column":12},"end":{"line":107,"column":27}},"50":{"start":{"line":111,"column":8},"end":{"line":111,"column":25}},"51":{"start":{"line":115,"column":4},"end":{"line":227,"column":5}},"52":{"start":{"line":116,"column":6},"end":{"line":116,"column":20}},"53":{"start":{"line":118,"column":6},"end":{"line":226,"column":8}},"54":{"start":{"line":119,"column":8},"end":{"line":119,"column":35}},"55":{"start":{"line":120,"column":8},"end":{"line":120,"column":34}},"56":{"start":{"line":122,"column":8},"end":{"line":223,"column":9}},"57":{"start":{"line":124,"column":10},"end":{"line":124,"column":43}},"58":{"start":{"line":126,"column":10},"end":{"line":172,"column":12}},"59":{"start":{"line":127,"column":12},"end":{"line":127,"column":35}},"60":{"start":{"line":128,"column":12},"end":{"line":171,"column":14}},"61":{"start":{"line":129,"column":14},"end":{"line":129,"column":42}},"62":{"start":{"line":131,"column":14},"end":{"line":131,"column":32}},"63":{"start":{"line":133,"column":14},"end":{"line":168,"column":15}},"64":{"start":{"line":135,"column":16},"end":{"line":135,"column":33}},"65":{"start":{"line":137,"column":16},"end":{"line":167,"column":19}},"66":{"start":{"line":139,"column":18},"end":{"line":139,"column":55}},"67":{"start":{"line":140,"column":18},"end":{"line":145,"column":19}},"68":{"start":{"line":142,"column":20},"end":{"line":144,"column":21}},"69":{"start":{"line":143,"column":22},"end":{"line":143,"column":92}},"70":{"start":{"line":146,"column":18},"end":{"line":146,"column":69}},"71":{"start":{"line":148,"column":18},"end":{"line":150,"column":19}},"72":{"start":{"line":149,"column":20},"end":{"line":149,"column":44}},"73":{"start":{"line":152,"column":18},"end":{"line":152,"column":68}},"74":{"start":{"line":156,"column":18},"end":{"line":156,"column":42}},"75":{"start":{"line":157,"column":18},"end":{"line":161,"column":19}},"76":{"start":{"line":158,"column":20},"end":{"line":158,"column":34}},"77":{"start":{"line":160,"column":20},"end":{"line":160,"column":37}},"78":{"start":{"line":165,"column":18},"end":{"line":165,"column":49}},"79":{"start":{"line":166,"column":18},"end":{"line":166,"column":35}},"80":{"start":{"line":170,"column":14},"end":{"line":170,"column":31}},"81":{"start":{"line":174,"column":10},"end":{"line":195,"column":12}},"82":{"start":{"line":175,"column":12},"end":{"line":175,"column":39}},"83":{"start":{"line":176,"column":12},"end":{"line":194,"column":14}},"84":{"start":{"line":177,"column":14},"end":{"line":177,"column":40}},"85":{"start":{"line":178,"column":14},"end":{"line":178,"column":32}},"86":{"start":{"line":181,"column":14},"end":{"line":181,"column":48}},"87":{"start":{"line":183,"column":14},"end":{"line":191,"column":17}},"88":{"start":{"line":188,"column":16},"end":{"line":188,"column":49}},"89":{"start":{"line":190,"column":16},"end":{"line":190,"column":31}},"90":{"start":{"line":193,"column":14},"end":{"line":193,"column":31}},"91":{"start":{"line":197,"column":10},"end":{"line":199,"column":11}},"92":{"start":{"line":198,"column":12},"end":{"line":198,"column":75}},"93":{"start":{"line":201,"column":10},"end":{"line":216,"column":13}},"94":{"start":{"line":202,"column":12},"end":{"line":202,"column":30}},"95":{"start":{"line":204,"column":12},"end":{"line":204,"column":52}},"96":{"start":{"line":207,"column":12},"end":{"line":213,"column":13}},"97":{"start":{"line":208,"column":14},"end":{"line":210,"column":15}},"98":{"start":{"line":209,"column":16},"end":{"line":209,"column":69}},"99":{"start":{"line":211,"column":19},"end":{"line":213,"column":13}},"100":{"start":{"line":212,"column":14},"end":{"line":212,"column":75}},"101":{"start":{"line":215,"column":12},"end":{"line":215,"column":33}},"102":{"start":{"line":218,"column":10},"end":{"line":222,"column":11}},"103":{"start":{"line":219,"column":12},"end":{"line":219,"column":59}},"104":{"start":{"line":221,"column":12},"end":{"line":221,"column":36}},"105":{"start":{"line":225,"column":8},"end":{"line":225,"column":25}},"106":{"start":{"line":229,"column":4},"end":{"line":241,"column":5}},"107":{"start":{"line":230,"column":6},"end":{"line":230,"column":20}},"108":{"start":{"line":231,"column":6},"end":{"line":234,"column":7}},"109":{"start":{"line":232,"column":8},"end":{"line":232,"column":28}},"110":{"start":{"line":233,"column":8},"end":{"line":233,"column":48}},"111":{"start":{"line":235,"column":6},"end":{"line":240,"column":7}},"112":{"start":{"line":236,"column":8},"end":{"line":239,"column":9}},"113":{"start":{"line":237,"column":10},"end":{"line":237,"column":35}},"114":{"start":{"line":238,"column":10},"end":{"line":238,"column":47}},"115":{"start":{"line":243,"column":4},"end":{"line":243,"column":19}},"116":{"start":{"line":253,"column":2},"end":{"line":277,"column":3}},"117":{"start":{"line":254,"column":4},"end":{"line":256,"column":5}},"118":{"start":{"line":255,"column":6},"end":{"line":255,"column":43}},"119":{"start":{"line":258,"column":4},"end":{"line":258,"column":22}},"120":{"start":{"line":261,"column":4},"end":{"line":261,"column":60},"skip":true},"121":{"start":{"line":262,"column":4},"end":{"line":262,"column":63}},"122":{"start":{"line":263,"column":4},"end":{"line":265,"column":80}},"123":{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},"124":{"start":{"line":268,"column":6},"end":{"line":268,"column":82}},"125":{"start":{"line":271,"column":4},"end":{"line":276,"column":5}},"126":{"start":{"line":272,"column":6},"end":{"line":272,"column":25}},"127":{"start":{"line":273,"column":6},"end":{"line":273,"column":53}},"128":{"start":{"line":275,"column":6},"end":{"line":275,"column":31}},"129":{"start":{"line":288,"column":2},"end":{"line":314,"column":4}},"130":{"start":{"line":289,"column":4},"end":{"line":307,"column":8}},"131":{"start":{"line":292,"column":8},"end":{"line":292,"column":47}},"132":{"start":{"line":294,"column":8},"end":{"line":306,"column":10}},"133":{"start":{"line":295,"column":10},"end":{"line":305,"column":11}},"134":{"start":{"line":296,"column":12},"end":{"line":296,"column":35}},"135":{"start":{"line":297,"column":12},"end":{"line":299,"column":13}},"136":{"start":{"line":298,"column":14},"end":{"line":298,"column":41}},"137":{"start":{"line":300,"column":12},"end":{"line":300,"column":21}},"138":{"start":{"line":301,"column":17},"end":{"line":305,"column":11}},"139":{"start":{"line":302,"column":12},"end":{"line":302,"column":46}},"140":{"start":{"line":304,"column":12},"end":{"line":304,"column":23}},"141":{"start":{"line":309,"column":4},"end":{"line":311,"column":5}},"142":{"start":{"line":310,"column":6},"end":{"line":310,"column":42}},"143":{"start":{"line":313,"column":4},"end":{"line":313,"column":18}},"144":{"start":{"line":323,"column":2},"end":{"line":325,"column":4}},"145":{"start":{"line":324,"column":4},"end":{"line":324,"column":58}},"146":{"start":{"line":327,"column":2},"end":{"line":327,"column":24}}},"branchMap":{"1":{"line":4,"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":4,"column":2}},{"start":{"line":4,"column":2},"end":{"line":4,"column":2},"skip":true}]},"2":{"line":7,"type":"if","locations":[{"start":{"line":7,"column":9},"end":{"line":7,"column":9},"skip":true},{"start":{"line":7,"column":9},"end":{"line":7,"column":9},"skip":true}]},"3":{"line":7,"type":"binary-expr","locations":[{"start":{"line":7,"column":13},"end":{"line":7,"column":46},"skip":true},{"start":{"line":7,"column":50},"end":{"line":7,"column":65},"skip":true}]},"4":{"line":12,"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":12,"column":4},"skip":true},{"start":{"line":12,"column":4},"end":{"line":12,"column":4},"skip":true}]},"5":{"line":22,"type":"binary-expr","locations":[{"start":{"line":22,"column":16},"end":{"line":22,"column":29},"skip":true},{"start":{"line":22,"column":33},"end":{"line":24,"column":3},"skip":true}]},"6":{"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}}]},"7":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":41,"column":6},"skip":true},{"start":{"line":41,"column":6},"end":{"line":41,"column":6},"skip":true}]},"8":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":8},"end":{"line":43,"column":8},"skip":true},{"start":{"line":43,"column":8},"end":{"line":43,"column":8},"skip":true}]},"9":{"line":43,"type":"binary-expr","locations":[{"start":{"line":43,"column":12},"end":{"line":43,"column":41},"skip":true},{"start":{"line":43,"column":45},"end":{"line":43,"column":83},"skip":true}]},"10":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":10},"end":{"line":77,"column":10}},{"start":{"line":77,"column":10},"end":{"line":77,"column":10}}]},"11":{"line":77,"type":"binary-expr","locations":[{"start":{"line":77,"column":14},"end":{"line":77,"column":34}},{"start":{"line":77,"column":38},"end":{"line":77,"column":79}}]},"12":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":10},"end":{"line":82,"column":10}},{"start":{"line":82,"column":10},"end":{"line":82,"column":10}}]},"13":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":10},"end":{"line":93,"column":10}},{"start":{"line":93,"column":10},"end":{"line":93,"column":10}}]},"14":{"line":102,"type":"if","locations":[{"start":{"line":102,"column":10},"end":{"line":102,"column":10}},{"start":{"line":102,"column":10},"end":{"line":102,"column":10}}]},"15":{"line":122,"type":"if","locations":[{"start":{"line":122,"column":8},"end":{"line":122,"column":8}},{"start":{"line":122,"column":8},"end":{"line":122,"column":8}}]},"16":{"line":133,"type":"if","locations":[{"start":{"line":133,"column":14},"end":{"line":133,"column":14}},{"start":{"line":133,"column":14},"end":{"line":133,"column":14}}]},"17":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":18},"end":{"line":140,"column":18}},{"start":{"line":140,"column":18},"end":{"line":140,"column":18}}]},"18":{"line":142,"type":"if","locations":[{"start":{"line":142,"column":20},"end":{"line":142,"column":20}},{"start":{"line":142,"column":20},"end":{"line":142,"column":20},"skip":true}]},"19":{"line":148,"type":"if","locations":[{"start":{"line":148,"column":18},"end":{"line":148,"column":18}},{"start":{"line":148,"column":18},"end":{"line":148,"column":18}}]},"20":{"line":157,"type":"if","locations":[{"start":{"line":157,"column":18},"end":{"line":157,"column":18}},{"start":{"line":157,"column":18},"end":{"line":157,"column":18}}]},"21":{"line":207,"type":"if","locations":[{"start":{"line":207,"column":12},"end":{"line":207,"column":12}},{"start":{"line":207,"column":12},"end":{"line":207,"column":12}}]},"22":{"line":207,"type":"binary-expr","locations":[{"start":{"line":207,"column":16},"end":{"line":207,"column":28}},{"start":{"line":207,"column":32},"end":{"line":207,"column":70}}]},"23":{"line":211,"type":"if","locations":[{"start":{"line":211,"column":19},"end":{"line":211,"column":19}},{"start":{"line":211,"column":19},"end":{"line":211,"column":19}}]},"24":{"line":211,"type":"binary-expr","locations":[{"start":{"line":211,"column":23},"end":{"line":211,"column":36}},{"start":{"line":211,"column":40},"end":{"line":211,"column":78}}]},"25":{"line":218,"type":"if","locations":[{"start":{"line":218,"column":10},"end":{"line":218,"column":10}},{"start":{"line":218,"column":10},"end":{"line":218,"column":10}}]},"26":{"line":231,"type":"if","locations":[{"start":{"line":231,"column":6},"end":{"line":231,"column":6}},{"start":{"line":231,"column":6},"end":{"line":231,"column":6}}]},"27":{"line":235,"type":"if","locations":[{"start":{"line":235,"column":6},"end":{"line":235,"column":6}},{"start":{"line":235,"column":6},"end":{"line":235,"column":6}}]},"28":{"line":254,"type":"if","locations":[{"start":{"line":254,"column":4},"end":{"line":254,"column":4}},{"start":{"line":254,"column":4},"end":{"line":254,"column":4}}]},"29":{"line":258,"type":"binary-expr","locations":[{"start":{"line":258,"column":11},"end":{"line":258,"column":15}},{"start":{"line":258,"column":19},"end":{"line":258,"column":21}}]},"30":{"line":261,"type":"cond-expr","locations":[{"start":{"line":261,"column":41},"end":{"line":261,"column":51},"skip":true},{"start":{"line":261,"column":54},"end":{"line":261,"column":59},"skip":true}]},"31":{"line":262,"type":"cond-expr","locations":[{"start":{"line":262,"column":43},"end":{"line":262,"column":54}},{"start":{"line":262,"column":57},"end":{"line":262,"column":62}}]},"32":{"line":263,"type":"cond-expr","locations":[{"start":{"line":265,"column":60},"end":{"line":265,"column":71}},{"start":{"line":265,"column":74},"end":{"line":265,"column":79}}]},"33":{"line":263,"type":"binary-expr","locations":[{"start":{"line":263,"column":18},"end":{"line":263,"column":41}},{"start":{"line":264,"column":18},"end":{"line":264,"column":49}},{"start":{"line":265,"column":18},"end":{"line":265,"column":57}}]},"34":{"line":267,"type":"if","locations":[{"start":{"line":267,"column":4},"end":{"line":267,"column":4}},{"start":{"line":267,"column":4},"end":{"line":267,"column":4}}]},"35":{"line":267,"type":"binary-expr","locations":[{"start":{"line":267,"column":8},"end":{"line":267,"column":19}},{"start":{"line":267,"column":23},"end":{"line":267,"column":46}},{"start":{"line":267,"column":50},"end":{"line":267,"column":81}},{"start":{"line":267,"column":85},"end":{"line":267,"column":106}}]},"36":{"line":271,"type":"if","locations":[{"start":{"line":271,"column":4},"end":{"line":271,"column":4}},{"start":{"line":271,"column":4},"end":{"line":271,"column":4}}]},"37":{"line":292,"type":"binary-expr","locations":[{"start":{"line":292,"column":18},"end":{"line":292,"column":31}},{"start":{"line":292,"column":35},"end":{"line":292,"column":46}}]},"38":{"line":295,"type":"if","locations":[{"start":{"line":295,"column":10},"end":{"line":295,"column":10}},{"start":{"line":295,"column":10},"end":{"line":295,"column":10}}]},"39":{"line":301,"type":"if","locations":[{"start":{"line":301,"column":17},"end":{"line":301,"column":17}},{"start":{"line":301,"column":17},"end":{"line":301,"column":17}}]}}}} | ||
{"C:\\Users\\Webdev\\Inetpub\\js-chain-commander\\lib\\chain-commander.js":{"path":"C:\\Users\\Webdev\\Inetpub\\js-chain-commander\\lib\\chain-commander.js","s":{"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":1,"12":67,"13":1,"14":67,"15":1,"16":36,"17":1,"18":441,"19":0,"20":0,"21":0,"22":0,"23":36,"24":36,"25":36,"26":0,"27":36,"28":36,"29":1,"30":52,"31":52,"32":50,"33":50,"34":50,"35":50,"36":1,"37":49,"38":49,"39":8,"40":49,"41":49,"42":10,"43":10,"44":1,"45":9,"46":50,"47":50,"48":20,"49":30,"50":50,"51":1,"52":25,"53":25,"54":24,"55":24,"56":24,"57":22,"58":22,"59":25,"60":25,"61":25,"62":25,"63":25,"64":1,"65":24,"66":24,"67":24,"68":2,"69":1,"70":23,"71":23,"72":4,"73":23,"74":2,"75":2,"76":1,"77":1,"78":24,"79":24,"80":25,"81":22,"82":6,"83":6,"84":6,"85":6,"86":6,"87":6,"88":6,"89":6,"90":6,"91":22,"92":25,"93":22,"94":21,"95":21,"96":21,"97":13,"98":13,"99":8,"100":6,"101":21,"102":2,"103":1,"104":1,"105":24,"106":36,"107":60,"108":60,"109":25,"110":25,"111":60,"112":37,"113":39,"114":39,"115":36,"116":1,"117":45,"118":13,"119":32,"120":32,"121":32,"122":32,"123":32,"124":1,"125":31,"126":4,"127":4,"128":27,"129":1,"130":3,"131":19,"132":19,"133":14,"134":4,"135":4,"136":14,"137":19,"138":19,"139":19,"140":3,"141":3,"142":6,"143":3,"144":16,"145":14,"146":2,"147":3,"148":13,"149":3,"150":1,"151":30,"152":1},"b":{"1":[1,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,0],"6":[1,66],"7":[0,441],"8":[0,0],"9":[0,0],"10":[1,49],"11":[50,3],"12":[8,41],"13":[1,9],"14":[20,30],"15":[22,2],"16":[1,24],"17":[2,22],"18":[1,1],"19":[4,19],"20":[1,1],"21":[13,8],"22":[21,13],"23":[6,2],"24":[8,8],"25":[1,1],"26":[25,35],"27":[37,23],"28":[13,32],"29":[32,24],"30":[0,32],"31":[5,27],"32":[4,28],"33":[32,31,5],"34":[1,31],"35":[32,5,5,2],"36":[4,27],"37":[19,3],"38":[4,10],"39":[3,16],"40":[14,2]},"f":{"1":1,"2":1,"3":0,"4":67,"5":36,"6":441,"7":0,"8":52,"9":50,"10":50,"11":10,"12":50,"13":25,"14":24,"15":25,"16":25,"17":24,"18":2,"19":24,"20":6,"21":6,"22":6,"23":21,"24":45,"25":3,"26":19,"27":14,"28":4,"29":19,"30":30},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":28}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":9},"end":{"line":18,"column":21}}},"3":{"name":"(anonymous_3)","line":22,"loc":{"start":{"line":22,"column":33},"end":{"line":22,"column":46}},"skip":true},"4":{"name":"convert","line":26,"loc":{"start":{"line":26,"column":2},"end":{"line":26,"column":23}}},"5":{"name":"parser","line":35,"loc":{"start":{"line":35,"column":2},"end":{"line":35,"column":40}}},"6":{"name":"log","line":39,"loc":{"start":{"line":39,"column":4},"end":{"line":39,"column":19}}},"7":{"name":"(anonymous_7)","line":55,"loc":{"start":{"line":55,"column":18},"end":{"line":55,"column":28}},"skip":true},"8":{"name":"exec","line":64,"loc":{"start":{"line":64,"column":4},"end":{"line":64,"column":26}}},"9":{"name":"execPromise","line":67,"loc":{"start":{"line":67,"column":13},"end":{"line":67,"column":48}}},"10":{"name":"(anonymous_10)","line":74,"loc":{"start":{"line":74,"column":14},"end":{"line":74,"column":25}}},"11":{"name":"(anonymous_11)","line":90,"loc":{"start":{"line":90,"column":15},"end":{"line":90,"column":29}}},"12":{"name":"(anonymous_12)","line":99,"loc":{"start":{"line":99,"column":14},"end":{"line":99,"column":27}}},"13":{"name":"ifblock","line":115,"loc":{"start":{"line":115,"column":4},"end":{"line":115,"column":29}}},"14":{"name":"ifblockPromise","line":118,"loc":{"start":{"line":118,"column":13},"end":{"line":118,"column":50}}},"15":{"name":"(anonymous_15)","line":126,"loc":{"start":{"line":126,"column":28},"end":{"line":126,"column":47}}},"16":{"name":"conditionalPromise","line":128,"loc":{"start":{"line":128,"column":19},"end":{"line":128,"column":52}}},"17":{"name":"(anonymous_17)","line":137,"loc":{"start":{"line":137,"column":22},"end":{"line":137,"column":32}}},"18":{"name":"(anonymous_18)","line":154,"loc":{"start":{"line":154,"column":23},"end":{"line":154,"column":36}}},"19":{"name":"(anonymous_19)","line":163,"loc":{"start":{"line":163,"column":22},"end":{"line":163,"column":35}}},"20":{"name":"(anonymous_20)","line":174,"loc":{"start":{"line":174,"column":32},"end":{"line":174,"column":48}}},"21":{"name":"conditionalelsePromise","line":176,"loc":{"start":{"line":176,"column":19},"end":{"line":176,"column":64}}},"22":{"name":"(anonymous_22)","line":185,"loc":{"start":{"line":185,"column":20},"end":{"line":185,"column":33}}},"23":{"name":"(anonymous_23)","line":201,"loc":{"start":{"line":201,"column":26},"end":{"line":201,"column":39}}},"24":{"name":"ChainCommander","line":253,"loc":{"start":{"line":253,"column":2},"end":{"line":253,"column":36}}},"25":{"name":"(anonymous_25)","line":289,"loc":{"start":{"line":289,"column":23},"end":{"line":289,"column":57}}},"26":{"name":"(anonymous_26)","line":293,"loc":{"start":{"line":293,"column":14},"end":{"line":293,"column":28}}},"27":{"name":"(anonymous_27)","line":296,"loc":{"start":{"line":296,"column":21},"end":{"line":296,"column":32}}},"28":{"name":"(anonymous_28)","line":298,"loc":{"start":{"line":298,"column":19},"end":{"line":298,"column":30}}},"29":{"name":"allFn","line":305,"loc":{"start":{"line":305,"column":15},"end":{"line":305,"column":35}}},"30":{"name":"(anonymous_30)","line":335,"loc":{"start":{"line":335,"column":37},"end":{"line":335,"column":63}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":340,"column":3}},"2":{"start":{"line":4,"column":2},"end":{"line":16,"column":3}},"3":{"start":{"line":6,"column":4},"end":{"line":6,"column":32}},"4":{"start":{"line":7,"column":9},"end":{"line":16,"column":3},"skip":true},"5":{"start":{"line":9,"column":4},"end":{"line":9,"column":42},"skip":true},"6":{"start":{"line":12,"column":4},"end":{"line":14,"column":5},"skip":true},"7":{"start":{"line":13,"column":6},"end":{"line":13,"column":53},"skip":true},"8":{"start":{"line":15,"column":4},"end":{"line":15,"column":51},"skip":true},"9":{"start":{"line":22,"column":2},"end":{"line":24,"column":4},"skip":true},"10":{"start":{"line":23,"column":4},"end":{"line":23,"column":68},"skip":true},"11":{"start":{"line":26,"column":2},"end":{"line":33,"column":3}},"12":{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},"13":{"start":{"line":28,"column":6},"end":{"line":28,"column":28}},"14":{"start":{"line":32,"column":4},"end":{"line":32,"column":44}},"15":{"start":{"line":35,"column":2},"end":{"line":244,"column":3}},"16":{"start":{"line":37,"column":4},"end":{"line":37,"column":52}},"17":{"start":{"line":39,"column":4},"end":{"line":48,"column":5}},"18":{"start":{"line":41,"column":6},"end":{"line":47,"column":7},"skip":true},"19":{"start":{"line":42,"column":8},"end":{"line":42,"column":57},"skip":true},"20":{"start":{"line":43,"column":8},"end":{"line":45,"column":9},"skip":true},"21":{"start":{"line":44,"column":10},"end":{"line":44,"column":30},"skip":true},"22":{"start":{"line":46,"column":8},"end":{"line":46,"column":41},"skip":true},"23":{"start":{"line":50,"column":4},"end":{"line":50,"column":23}},"24":{"start":{"line":52,"column":4},"end":{"line":52,"column":33}},"25":{"start":{"line":55,"column":4},"end":{"line":57,"column":6},"skip":true},"26":{"start":{"line":56,"column":6},"end":{"line":56,"column":31},"skip":true},"27":{"start":{"line":59,"column":4},"end":{"line":59,"column":27}},"28":{"start":{"line":62,"column":4},"end":{"line":62,"column":42},"skip":true},"29":{"start":{"line":64,"column":4},"end":{"line":113,"column":5}},"30":{"start":{"line":65,"column":6},"end":{"line":65,"column":22}},"31":{"start":{"line":67,"column":6},"end":{"line":112,"column":8}},"32":{"start":{"line":68,"column":8},"end":{"line":68,"column":26}},"33":{"start":{"line":69,"column":8},"end":{"line":69,"column":23}},"34":{"start":{"line":74,"column":8},"end":{"line":109,"column":11}},"35":{"start":{"line":77,"column":10},"end":{"line":79,"column":11}},"36":{"start":{"line":78,"column":12},"end":{"line":78,"column":82}},"37":{"start":{"line":80,"column":10},"end":{"line":80,"column":59}},"38":{"start":{"line":82,"column":10},"end":{"line":84,"column":11}},"39":{"start":{"line":83,"column":12},"end":{"line":83,"column":36}},"40":{"start":{"line":86,"column":10},"end":{"line":86,"column":62}},"41":{"start":{"line":88,"column":10},"end":{"line":88,"column":58}},"42":{"start":{"line":91,"column":10},"end":{"line":91,"column":32}},"43":{"start":{"line":93,"column":10},"end":{"line":97,"column":11}},"44":{"start":{"line":94,"column":12},"end":{"line":94,"column":26}},"45":{"start":{"line":96,"column":12},"end":{"line":96,"column":36}},"46":{"start":{"line":100,"column":10},"end":{"line":100,"column":32}},"47":{"start":{"line":102,"column":10},"end":{"line":108,"column":11}},"48":{"start":{"line":104,"column":12},"end":{"line":104,"column":36}},"49":{"start":{"line":107,"column":12},"end":{"line":107,"column":27}},"50":{"start":{"line":111,"column":8},"end":{"line":111,"column":25}},"51":{"start":{"line":115,"column":4},"end":{"line":227,"column":5}},"52":{"start":{"line":116,"column":6},"end":{"line":116,"column":20}},"53":{"start":{"line":118,"column":6},"end":{"line":226,"column":8}},"54":{"start":{"line":119,"column":8},"end":{"line":119,"column":35}},"55":{"start":{"line":120,"column":8},"end":{"line":120,"column":34}},"56":{"start":{"line":122,"column":8},"end":{"line":223,"column":9}},"57":{"start":{"line":124,"column":10},"end":{"line":124,"column":43}},"58":{"start":{"line":126,"column":10},"end":{"line":172,"column":12}},"59":{"start":{"line":127,"column":12},"end":{"line":127,"column":35}},"60":{"start":{"line":128,"column":12},"end":{"line":171,"column":14}},"61":{"start":{"line":129,"column":14},"end":{"line":129,"column":42}},"62":{"start":{"line":131,"column":14},"end":{"line":131,"column":32}},"63":{"start":{"line":133,"column":14},"end":{"line":168,"column":15}},"64":{"start":{"line":135,"column":16},"end":{"line":135,"column":33}},"65":{"start":{"line":137,"column":16},"end":{"line":167,"column":19}},"66":{"start":{"line":139,"column":18},"end":{"line":139,"column":55}},"67":{"start":{"line":140,"column":18},"end":{"line":145,"column":19}},"68":{"start":{"line":142,"column":20},"end":{"line":144,"column":21}},"69":{"start":{"line":143,"column":22},"end":{"line":143,"column":92}},"70":{"start":{"line":146,"column":18},"end":{"line":146,"column":69}},"71":{"start":{"line":148,"column":18},"end":{"line":150,"column":19}},"72":{"start":{"line":149,"column":20},"end":{"line":149,"column":44}},"73":{"start":{"line":152,"column":18},"end":{"line":152,"column":68}},"74":{"start":{"line":156,"column":18},"end":{"line":156,"column":42}},"75":{"start":{"line":157,"column":18},"end":{"line":161,"column":19}},"76":{"start":{"line":158,"column":20},"end":{"line":158,"column":34}},"77":{"start":{"line":160,"column":20},"end":{"line":160,"column":37}},"78":{"start":{"line":165,"column":18},"end":{"line":165,"column":49}},"79":{"start":{"line":166,"column":18},"end":{"line":166,"column":35}},"80":{"start":{"line":170,"column":14},"end":{"line":170,"column":31}},"81":{"start":{"line":174,"column":10},"end":{"line":195,"column":12}},"82":{"start":{"line":175,"column":12},"end":{"line":175,"column":39}},"83":{"start":{"line":176,"column":12},"end":{"line":194,"column":14}},"84":{"start":{"line":177,"column":14},"end":{"line":177,"column":40}},"85":{"start":{"line":178,"column":14},"end":{"line":178,"column":32}},"86":{"start":{"line":181,"column":14},"end":{"line":181,"column":48}},"87":{"start":{"line":183,"column":14},"end":{"line":191,"column":17}},"88":{"start":{"line":188,"column":16},"end":{"line":188,"column":49}},"89":{"start":{"line":190,"column":16},"end":{"line":190,"column":31}},"90":{"start":{"line":193,"column":14},"end":{"line":193,"column":31}},"91":{"start":{"line":197,"column":10},"end":{"line":199,"column":11}},"92":{"start":{"line":198,"column":12},"end":{"line":198,"column":75}},"93":{"start":{"line":201,"column":10},"end":{"line":216,"column":13}},"94":{"start":{"line":202,"column":12},"end":{"line":202,"column":30}},"95":{"start":{"line":204,"column":12},"end":{"line":204,"column":52}},"96":{"start":{"line":207,"column":12},"end":{"line":213,"column":13}},"97":{"start":{"line":208,"column":14},"end":{"line":210,"column":15}},"98":{"start":{"line":209,"column":16},"end":{"line":209,"column":69}},"99":{"start":{"line":211,"column":19},"end":{"line":213,"column":13}},"100":{"start":{"line":212,"column":14},"end":{"line":212,"column":75}},"101":{"start":{"line":215,"column":12},"end":{"line":215,"column":33}},"102":{"start":{"line":218,"column":10},"end":{"line":222,"column":11}},"103":{"start":{"line":219,"column":12},"end":{"line":219,"column":59}},"104":{"start":{"line":221,"column":12},"end":{"line":221,"column":36}},"105":{"start":{"line":225,"column":8},"end":{"line":225,"column":25}},"106":{"start":{"line":229,"column":4},"end":{"line":241,"column":5}},"107":{"start":{"line":230,"column":6},"end":{"line":230,"column":20}},"108":{"start":{"line":231,"column":6},"end":{"line":234,"column":7}},"109":{"start":{"line":232,"column":8},"end":{"line":232,"column":28}},"110":{"start":{"line":233,"column":8},"end":{"line":233,"column":48}},"111":{"start":{"line":235,"column":6},"end":{"line":240,"column":7}},"112":{"start":{"line":236,"column":8},"end":{"line":239,"column":9}},"113":{"start":{"line":237,"column":10},"end":{"line":237,"column":35}},"114":{"start":{"line":238,"column":10},"end":{"line":238,"column":47}},"115":{"start":{"line":243,"column":4},"end":{"line":243,"column":19}},"116":{"start":{"line":253,"column":2},"end":{"line":277,"column":3}},"117":{"start":{"line":254,"column":4},"end":{"line":256,"column":5}},"118":{"start":{"line":255,"column":6},"end":{"line":255,"column":43}},"119":{"start":{"line":258,"column":4},"end":{"line":258,"column":22}},"120":{"start":{"line":261,"column":4},"end":{"line":261,"column":60},"skip":true},"121":{"start":{"line":262,"column":4},"end":{"line":262,"column":63}},"122":{"start":{"line":263,"column":4},"end":{"line":265,"column":80}},"123":{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},"124":{"start":{"line":268,"column":6},"end":{"line":268,"column":82}},"125":{"start":{"line":271,"column":4},"end":{"line":276,"column":5}},"126":{"start":{"line":272,"column":6},"end":{"line":272,"column":25}},"127":{"start":{"line":273,"column":6},"end":{"line":273,"column":53}},"128":{"start":{"line":275,"column":6},"end":{"line":275,"column":31}},"129":{"start":{"line":289,"column":2},"end":{"line":326,"column":4}},"130":{"start":{"line":291,"column":4},"end":{"line":319,"column":8}},"131":{"start":{"line":294,"column":8},"end":{"line":294,"column":47}},"132":{"start":{"line":296,"column":8},"end":{"line":303,"column":10}},"133":{"start":{"line":297,"column":10},"end":{"line":301,"column":11}},"134":{"start":{"line":298,"column":12},"end":{"line":300,"column":15}},"135":{"start":{"line":299,"column":14},"end":{"line":299,"column":35}},"136":{"start":{"line":302,"column":10},"end":{"line":302,"column":19}},"137":{"start":{"line":305,"column":8},"end":{"line":318,"column":10}},"138":{"start":{"line":306,"column":10},"end":{"line":306,"column":16}},"139":{"start":{"line":307,"column":10},"end":{"line":317,"column":11}},"140":{"start":{"line":308,"column":12},"end":{"line":308,"column":31}},"141":{"start":{"line":309,"column":12},"end":{"line":311,"column":13}},"142":{"start":{"line":310,"column":14},"end":{"line":310,"column":41}},"143":{"start":{"line":312,"column":12},"end":{"line":312,"column":21}},"144":{"start":{"line":313,"column":17},"end":{"line":317,"column":11}},"145":{"start":{"line":314,"column":12},"end":{"line":314,"column":60}},"146":{"start":{"line":316,"column":12},"end":{"line":316,"column":23}},"147":{"start":{"line":321,"column":4},"end":{"line":323,"column":5}},"148":{"start":{"line":322,"column":6},"end":{"line":322,"column":42}},"149":{"start":{"line":325,"column":4},"end":{"line":325,"column":18}},"150":{"start":{"line":335,"column":2},"end":{"line":337,"column":4}},"151":{"start":{"line":336,"column":4},"end":{"line":336,"column":58}},"152":{"start":{"line":339,"column":2},"end":{"line":339,"column":24}}},"branchMap":{"1":{"line":4,"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":4,"column":2}},{"start":{"line":4,"column":2},"end":{"line":4,"column":2},"skip":true}]},"2":{"line":7,"type":"if","locations":[{"start":{"line":7,"column":9},"end":{"line":7,"column":9},"skip":true},{"start":{"line":7,"column":9},"end":{"line":7,"column":9},"skip":true}]},"3":{"line":7,"type":"binary-expr","locations":[{"start":{"line":7,"column":13},"end":{"line":7,"column":46},"skip":true},{"start":{"line":7,"column":50},"end":{"line":7,"column":65},"skip":true}]},"4":{"line":12,"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":12,"column":4},"skip":true},{"start":{"line":12,"column":4},"end":{"line":12,"column":4},"skip":true}]},"5":{"line":22,"type":"binary-expr","locations":[{"start":{"line":22,"column":16},"end":{"line":22,"column":29},"skip":true},{"start":{"line":22,"column":33},"end":{"line":24,"column":3},"skip":true}]},"6":{"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}}]},"7":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":41,"column":6},"skip":true},{"start":{"line":41,"column":6},"end":{"line":41,"column":6},"skip":true}]},"8":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":8},"end":{"line":43,"column":8},"skip":true},{"start":{"line":43,"column":8},"end":{"line":43,"column":8},"skip":true}]},"9":{"line":43,"type":"binary-expr","locations":[{"start":{"line":43,"column":12},"end":{"line":43,"column":41},"skip":true},{"start":{"line":43,"column":45},"end":{"line":43,"column":83},"skip":true}]},"10":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":10},"end":{"line":77,"column":10}},{"start":{"line":77,"column":10},"end":{"line":77,"column":10}}]},"11":{"line":77,"type":"binary-expr","locations":[{"start":{"line":77,"column":14},"end":{"line":77,"column":34}},{"start":{"line":77,"column":38},"end":{"line":77,"column":79}}]},"12":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":10},"end":{"line":82,"column":10}},{"start":{"line":82,"column":10},"end":{"line":82,"column":10}}]},"13":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":10},"end":{"line":93,"column":10}},{"start":{"line":93,"column":10},"end":{"line":93,"column":10}}]},"14":{"line":102,"type":"if","locations":[{"start":{"line":102,"column":10},"end":{"line":102,"column":10}},{"start":{"line":102,"column":10},"end":{"line":102,"column":10}}]},"15":{"line":122,"type":"if","locations":[{"start":{"line":122,"column":8},"end":{"line":122,"column":8}},{"start":{"line":122,"column":8},"end":{"line":122,"column":8}}]},"16":{"line":133,"type":"if","locations":[{"start":{"line":133,"column":14},"end":{"line":133,"column":14}},{"start":{"line":133,"column":14},"end":{"line":133,"column":14}}]},"17":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":18},"end":{"line":140,"column":18}},{"start":{"line":140,"column":18},"end":{"line":140,"column":18}}]},"18":{"line":142,"type":"if","locations":[{"start":{"line":142,"column":20},"end":{"line":142,"column":20}},{"start":{"line":142,"column":20},"end":{"line":142,"column":20},"skip":true}]},"19":{"line":148,"type":"if","locations":[{"start":{"line":148,"column":18},"end":{"line":148,"column":18}},{"start":{"line":148,"column":18},"end":{"line":148,"column":18}}]},"20":{"line":157,"type":"if","locations":[{"start":{"line":157,"column":18},"end":{"line":157,"column":18}},{"start":{"line":157,"column":18},"end":{"line":157,"column":18}}]},"21":{"line":207,"type":"if","locations":[{"start":{"line":207,"column":12},"end":{"line":207,"column":12}},{"start":{"line":207,"column":12},"end":{"line":207,"column":12}}]},"22":{"line":207,"type":"binary-expr","locations":[{"start":{"line":207,"column":16},"end":{"line":207,"column":28}},{"start":{"line":207,"column":32},"end":{"line":207,"column":70}}]},"23":{"line":211,"type":"if","locations":[{"start":{"line":211,"column":19},"end":{"line":211,"column":19}},{"start":{"line":211,"column":19},"end":{"line":211,"column":19}}]},"24":{"line":211,"type":"binary-expr","locations":[{"start":{"line":211,"column":23},"end":{"line":211,"column":36}},{"start":{"line":211,"column":40},"end":{"line":211,"column":78}}]},"25":{"line":218,"type":"if","locations":[{"start":{"line":218,"column":10},"end":{"line":218,"column":10}},{"start":{"line":218,"column":10},"end":{"line":218,"column":10}}]},"26":{"line":231,"type":"if","locations":[{"start":{"line":231,"column":6},"end":{"line":231,"column":6}},{"start":{"line":231,"column":6},"end":{"line":231,"column":6}}]},"27":{"line":235,"type":"if","locations":[{"start":{"line":235,"column":6},"end":{"line":235,"column":6}},{"start":{"line":235,"column":6},"end":{"line":235,"column":6}}]},"28":{"line":254,"type":"if","locations":[{"start":{"line":254,"column":4},"end":{"line":254,"column":4}},{"start":{"line":254,"column":4},"end":{"line":254,"column":4}}]},"29":{"line":258,"type":"binary-expr","locations":[{"start":{"line":258,"column":11},"end":{"line":258,"column":15}},{"start":{"line":258,"column":19},"end":{"line":258,"column":21}}]},"30":{"line":261,"type":"cond-expr","locations":[{"start":{"line":261,"column":41},"end":{"line":261,"column":51},"skip":true},{"start":{"line":261,"column":54},"end":{"line":261,"column":59},"skip":true}]},"31":{"line":262,"type":"cond-expr","locations":[{"start":{"line":262,"column":43},"end":{"line":262,"column":54}},{"start":{"line":262,"column":57},"end":{"line":262,"column":62}}]},"32":{"line":263,"type":"cond-expr","locations":[{"start":{"line":265,"column":60},"end":{"line":265,"column":71}},{"start":{"line":265,"column":74},"end":{"line":265,"column":79}}]},"33":{"line":263,"type":"binary-expr","locations":[{"start":{"line":263,"column":18},"end":{"line":263,"column":41}},{"start":{"line":264,"column":18},"end":{"line":264,"column":49}},{"start":{"line":265,"column":18},"end":{"line":265,"column":57}}]},"34":{"line":267,"type":"if","locations":[{"start":{"line":267,"column":4},"end":{"line":267,"column":4}},{"start":{"line":267,"column":4},"end":{"line":267,"column":4}}]},"35":{"line":267,"type":"binary-expr","locations":[{"start":{"line":267,"column":8},"end":{"line":267,"column":19}},{"start":{"line":267,"column":23},"end":{"line":267,"column":46}},{"start":{"line":267,"column":50},"end":{"line":267,"column":81}},{"start":{"line":267,"column":85},"end":{"line":267,"column":106}}]},"36":{"line":271,"type":"if","locations":[{"start":{"line":271,"column":4},"end":{"line":271,"column":4}},{"start":{"line":271,"column":4},"end":{"line":271,"column":4}}]},"37":{"line":294,"type":"binary-expr","locations":[{"start":{"line":294,"column":18},"end":{"line":294,"column":31}},{"start":{"line":294,"column":35},"end":{"line":294,"column":46}}]},"38":{"line":297,"type":"if","locations":[{"start":{"line":297,"column":10},"end":{"line":297,"column":10}},{"start":{"line":297,"column":10},"end":{"line":297,"column":10}}]},"39":{"line":307,"type":"if","locations":[{"start":{"line":307,"column":10},"end":{"line":307,"column":10}},{"start":{"line":307,"column":10},"end":{"line":307,"column":10}}]},"40":{"line":313,"type":"if","locations":[{"start":{"line":313,"column":17},"end":{"line":313,"column":17}},{"start":{"line":313,"column":17},"end":{"line":313,"column":17}}]}}}} |
@@ -250,3 +250,3 @@ (function (root, definition){ | ||
* @param {Array|String|Object} obj JSON string or array | ||
* @param {Object} opts {{debug: Boolean, throws: Boolean, member: String}} | ||
* @param {Object} [opts] {{debug: Boolean, throws: Boolean, member: String}} | ||
* @constructor | ||
@@ -286,6 +286,8 @@ */ | ||
* @param {Object} context | ||
* @param {Function} [tap] Optional array of functions that are executed in order as a side-effect | ||
* | ||
* @returns {Promise} | ||
*/ | ||
ChainCommander.all = function(value, arr, context){ | ||
ChainCommander.all = function(value, arr, context, tap){ | ||
var | ||
@@ -296,5 +298,15 @@ result = Q.resolve(value), | ||
var tapped = function(r){ | ||
if (tap) { | ||
r.then(function(v){ | ||
tap(v, item.context); | ||
}); | ||
} | ||
return r; | ||
}; | ||
return function allFn(val) { | ||
var r; | ||
if (arr) { | ||
var r = Q.resolve(val); | ||
r = Q.resolve(val); | ||
for (var i = 0; i < arr; i++) { | ||
@@ -305,3 +317,3 @@ r = r.then(curry(item[i])); | ||
} else if (item instanceof ChainCommander) { | ||
return item.execute(val, context); | ||
return tapped(item.execute(val, context), item); | ||
} else { | ||
@@ -308,0 +320,0 @@ return val; |
{ | ||
"name" : "chain-commander", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"main": "./lib/chain-commander.js", | ||
@@ -5,0 +5,0 @@ "description":"Chain commander is a library based on Bluebird promise library, to encapsulate business rules logic in form of javascript objects or JSON.", |
@@ -189,3 +189,3 @@ [![Build Status](https://travis-ci.org/pocesar/js-chain-commander.png?branch=master)](https://travis-ci.org/pocesar/js-chain-commander) [![Coverage Status](https://coveralls.io/repos/pocesar/js-chain-commander/badge.png)](https://coveralls.io/r/pocesar/js-chain-commander) | ||
#### `new ChainCommander(Array|String definitions, Object options)` | ||
#### `new ChainCommander(Array|String definitions [, Object options])` | ||
@@ -195,3 +195,3 @@ Creates a new predefined chain that will execute your code when you call `execute` | ||
```js | ||
var cc = new ChainCommander([{"exec":[["oops"]]}], {debug: true, throws: true, member: 'memberOfTheObject'}); | ||
var cc = new ChainCommander([{"exec":[["oops"]]}]); | ||
``` | ||
@@ -235,3 +235,3 @@ | ||
#### `ChainCommander.all(* value, Array arr, Object|Function context)` | ||
#### `ChainCommander.all(* value, Array arr, Object|Function context [, Function tap])` | ||
@@ -266,2 +266,9 @@ Taking that you have an array with many Chain Commanders, that you want to execute in order, with the same context | ||
The optional `tap` parameter is a functions that after each item, will be called. It's a side effect | ||
callback and you can use it to "spy" on the current commands being executed | ||
```js | ||
ChainCommander.all('initial value', arrayofcmds, context, console.log); // spits out the current value (and the item in the last parameter if you used member) | ||
``` | ||
## Debug | ||
@@ -268,0 +275,0 @@ |
@@ -0,0 +0,0 @@ Q = require('bluebird'); |
@@ -557,2 +557,46 @@ describe('Chain Commander', function (){ | ||
it('taps to function', function(done){ | ||
var context = { | ||
val: function(add, value, obj) { | ||
if (obj) { | ||
expect(obj.exists).to.be(true); | ||
return value + add + obj.add; | ||
} else { | ||
return value + add; | ||
} | ||
}, | ||
conditional: function(value, _obj) { | ||
if (_obj) { | ||
expect(_obj).to.be(obj); | ||
return _obj.exists; | ||
} else { | ||
return true; | ||
} | ||
}, | ||
success: function(){ | ||
expect(arguments).to.have.length(2); | ||
} | ||
}, calls = 0, ccs = [], obj = {add: '2', exists: true, defs: [{'exec':[['val','1']]},{'if':{'check':[['conditional']],'exec':[['success']]}}]}; | ||
ccs.push(new ChainCommander(obj, {member:'defs'})); | ||
ccs.push([ | ||
new ChainCommander(obj, {member:'defs'}), | ||
new ChainCommander(obj.defs) | ||
]); | ||
ccs.push(new ChainCommander(obj, {member:'defs'})); | ||
ChainCommander.all('a', ccs, context, function(val, _obj){ | ||
calls++; | ||
if (_obj) { | ||
expect(_obj).to.be(obj); | ||
_obj.chumba = true; | ||
} | ||
}).done(function(d){ | ||
expect(d).to.be('a1212112'); | ||
expect(obj.chumba).to.be(true); | ||
expect(calls).to.be(4); | ||
done(); | ||
}); | ||
}); | ||
it('execute array of arrays of chain commanders and ignore non-instances', function (done){ | ||
@@ -559,0 +603,0 @@ var context, cmds = [ |
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
167444
1494
285