Comparing version 0.6.1 to 0.6.2
{"/home/circleci/project/src/inputParser.ts": {"path":"/home/circleci/project/src/inputParser.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":39}},"2":{"start":{"line":6,"column":17},"end":{"line":6,"column":47}},"3":{"start":{"line":7,"column":2},"end":{"line":12,"column":3}},"4":{"start":{"line":8,"column":4},"end":{"line":8,"column":40}},"5":{"start":{"line":9,"column":4},"end":{"line":11,"column":5}},"6":{"start":{"line":10,"column":6},"end":{"line":10,"column":73}},"7":{"start":{"line":13,"column":17},"end":{"line":13,"column":36}},"8":{"start":{"line":14,"column":15},"end":{"line":14,"column":36}},"9":{"start":{"line":15,"column":2},"end":{"line":27,"column":3}},"10":{"start":{"line":16,"column":18},"end":{"line":16,"column":31}},"11":{"start":{"line":17,"column":4},"end":{"line":26,"column":5}},"12":{"start":{"line":18,"column":6},"end":{"line":18,"column":37}},"13":{"start":{"line":19,"column":11},"end":{"line":26,"column":5}},"14":{"start":{"line":20,"column":6},"end":{"line":23,"column":8}},"15":{"start":{"line":25,"column":6},"end":{"line":25,"column":96}},"16":{"start":{"line":28,"column":2},"end":{"line":28,"column":16}},"17":{"start":{"line":5,"column":0},"end":{"line":29,"column":1}}},"fnMap":{"0":{"name":"parse","decl":{"start":{"line":5,"column":0},"end":{"line":5,"column":21}},"loc":{"start":{"line":5,"column":54},"end":{"line":29,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":2},"end":{"line":12,"column":3}},"type":"if","locations":[{"start":{"line":7,"column":2},"end":{"line":12,"column":3}},{"start":{"line":7,"column":2},"end":{"line":12,"column":3}}]},"1":{"loc":{"start":{"line":9,"column":4},"end":{"line":11,"column":5}},"type":"if","locations":[{"start":{"line":9,"column":4},"end":{"line":11,"column":5}},{"start":{"line":9,"column":4},"end":{"line":11,"column":5}}]},"2":{"loc":{"start":{"line":17,"column":4},"end":{"line":26,"column":5}},"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":26,"column":5}},{"start":{"line":17,"column":4},"end":{"line":26,"column":5}}]},"3":{"loc":{"start":{"line":17,"column":8},"end":{"line":17,"column":33}},"type":"binary-expr","locations":[{"start":{"line":17,"column":8},"end":{"line":17,"column":33}},{"start":{"line":17,"column":37},"end":{"line":17,"column":62}},{"start":{"line":17,"column":66},"end":{"line":17,"column":92}}]},"4":{"loc":{"start":{"line":19,"column":11},"end":{"line":26,"column":5}},"type":"if","locations":[{"start":{"line":19,"column":11},"end":{"line":26,"column":5}},{"start":{"line":19,"column":11},"end":{"line":26,"column":5}}]},"5":{"loc":{"start":{"line":19,"column":15},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":15},"end":{"line":19,"column":29}},{"start":{"line":19,"column":33},"end":{"line":19,"column":44}}]}},"s":{"0":1,"1":1,"2":6,"3":6,"4":4,"5":4,"6":2,"7":4,"8":4,"9":4,"10":7,"11":7,"12":3,"13":4,"14":2,"15":2,"16":2,"17":1},"f":{"0":6},"b":{"0":[4,2],"1":[2,2],"2":[3,4],"3":[7,4,4],"4":[2,2],"5":[4,3]}} | ||
,"/home/circleci/project/src/resolvers.ts": {"path":"/home/circleci/project/src/resolvers.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":40}},"2":{"start":{"line":5,"column":18},"end":{"line":5,"column":42}},"3":{"start":{"line":7,"column":0},"end":{"line":7,"column":36}},"4":{"start":{"line":11,"column":13},"end":{"line":57,"column":2}},"5":{"start":{"line":12,"column":50},"end":{"line":39,"column":3}},"6":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"7":{"start":{"line":14,"column":6},"end":{"line":14,"column":54}},"8":{"start":{"line":16,"column":16},"end":{"line":16,"column":36}},"9":{"start":{"line":17,"column":27},"end":{"line":17,"column":49}},"10":{"start":{"line":19,"column":4},"end":{"line":26,"column":5}},"11":{"start":{"line":20,"column":6},"end":{"line":20,"column":83}},"12":{"start":{"line":22,"column":6},"end":{"line":24,"column":8}},"13":{"start":{"line":25,"column":6},"end":{"line":25,"column":23}},"14":{"start":{"line":27,"column":4},"end":{"line":30,"column":5}},"15":{"start":{"line":28,"column":6},"end":{"line":28,"column":115}},"16":{"start":{"line":29,"column":6},"end":{"line":29,"column":23}},"17":{"start":{"line":32,"column":4},"end":{"line":36,"column":5}},"18":{"start":{"line":33,"column":6},"end":{"line":35,"column":7}},"19":{"start":{"line":34,"column":8},"end":{"line":34,"column":34}},"20":{"start":{"line":37,"column":4},"end":{"line":37,"column":95}},"21":{"start":{"line":38,"column":4},"end":{"line":38,"column":21}},"22":{"start":{"line":40,"column":34},"end":{"line":45,"column":3}},"23":{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},"24":{"start":{"line":42,"column":6},"end":{"line":42,"column":68}},"25":{"start":{"line":44,"column":4},"end":{"line":44,"column":33}},"26":{"start":{"line":46,"column":39},"end":{"line":48,"column":3}},"27":{"start":{"line":47,"column":4},"end":{"line":47,"column":20}},"28":{"start":{"line":49,"column":51},"end":{"line":56,"column":3}},"29":{"start":{"line":50,"column":22},"end":{"line":50,"column":78}},"30":{"start":{"line":51,"column":24},"end":{"line":51,"column":94}},"31":{"start":{"line":52,"column":4},"end":{"line":55,"column":7}},"32":{"start":{"line":53,"column":6},"end":{"line":53,"column":80}},"33":{"start":{"line":54,"column":6},"end":{"line":54,"column":23}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":12,"column":7},"end":{"line":12,"column":14}},"loc":{"start":{"line":12,"column":50},"end":{"line":39,"column":3}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":12,"column":50},"end":{"line":null,"column":-1}},"loc":{"start":{"line":12,"column":50},"end":{"line":39,"column":3}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":40,"column":7},"end":{"line":40,"column":14}},"loc":{"start":{"line":40,"column":34},"end":{"line":45,"column":3}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":40,"column":34},"end":{"line":null,"column":-1}},"loc":{"start":{"line":40,"column":34},"end":{"line":45,"column":3}}},"4":{"name":"(anonymous_10)","decl":{"start":{"line":46,"column":12},"end":{"line":46,"column":19}},"loc":{"start":{"line":46,"column":39},"end":{"line":48,"column":3}}},"5":{"name":"(anonymous_11)","decl":{"start":{"line":46,"column":39},"end":{"line":null,"column":-1}},"loc":{"start":{"line":46,"column":39},"end":{"line":48,"column":3}}},"6":{"name":"(anonymous_12)","decl":{"start":{"line":49,"column":8},"end":{"line":49,"column":15}},"loc":{"start":{"line":49,"column":51},"end":{"line":56,"column":3}}},"7":{"name":"(anonymous_13)","decl":{"start":{"line":49,"column":51},"end":{"line":null,"column":-1}},"loc":{"start":{"line":49,"column":51},"end":{"line":56,"column":3}}},"8":{"name":"(anonymous_14)","decl":{"start":{"line":52,"column":49},"end":{"line":52,"column":50}},"loc":{"start":{"line":52,"column":74},"end":{"line":55,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},{"start":{"line":13,"column":4},"end":{"line":15,"column":5}}]},"1":{"loc":{"start":{"line":27,"column":4},"end":{"line":30,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":30,"column":5}},{"start":{"line":27,"column":4},"end":{"line":30,"column":5}}]},"2":{"loc":{"start":{"line":33,"column":6},"end":{"line":35,"column":7}},"type":"if","locations":[{"start":{"line":33,"column":6},"end":{"line":35,"column":7}},{"start":{"line":33,"column":6},"end":{"line":35,"column":7}}]},"3":{"loc":{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},{"start":{"line":41,"column":4},"end":{"line":43,"column":5}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":9,"23":9,"24":1,"25":9,"26":1,"27":1,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0},"f":{"0":0,"1":0,"2":9,"3":9,"4":1,"5":1,"6":0,"7":0,"8":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[1,8]}} | ||
,"/home/circleci/project/src/rewriter.ts": {"path":"/home/circleci/project/src/rewriter.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":40}},"1":{"start":{"line":5,"column":22},"end":{"line":5,"column":36}},"2":{"start":{"line":8,"column":22},"end":{"line":8,"column":43}},"3":{"start":{"line":9,"column":29},"end":{"line":9,"column":31}},"4":{"start":{"line":10,"column":4},"end":{"line":13,"column":5}},"5":{"start":{"line":11,"column":20},"end":{"line":11,"column":44}},"6":{"start":{"line":12,"column":6},"end":{"line":12,"column":56}},"7":{"start":{"line":14,"column":4},"end":{"line":14,"column":18}},"8":{"start":{"line":18,"column":4},"end":{"line":51,"column":5}},"9":{"start":{"line":19,"column":19},"end":{"line":19,"column":21}},"10":{"start":{"line":20,"column":20},"end":{"line":20,"column":22}},"11":{"start":{"line":22,"column":6},"end":{"line":47,"column":7}},"12":{"start":{"line":23,"column":18},"end":{"line":23,"column":33}},"13":{"start":{"line":24,"column":8},"end":{"line":46,"column":9}},"14":{"start":{"line":25,"column":10},"end":{"line":25,"column":23}},"15":{"start":{"line":26,"column":15},"end":{"line":46,"column":9}},"16":{"start":{"line":27,"column":10},"end":{"line":27,"column":23}},"17":{"start":{"line":28,"column":24},"end":{"line":28,"column":56}},"18":{"start":{"line":29,"column":31},"end":{"line":29,"column":51}},"19":{"start":{"line":30,"column":31},"end":{"line":30,"column":62}},"20":{"start":{"line":31,"column":27},"end":{"line":31,"column":57}},"21":{"start":{"line":32,"column":10},"end":{"line":34,"column":11}},"22":{"start":{"line":33,"column":12},"end":{"line":33,"column":76}},"23":{"start":{"line":35,"column":27},"end":{"line":35,"column":65}},"24":{"start":{"line":36,"column":25},"end":{"line":36,"column":62}},"25":{"start":{"line":37,"column":33},"end":{"line":37,"column":66}},"26":{"start":{"line":38,"column":10},"end":{"line":40,"column":11}},"27":{"start":{"line":39,"column":12},"end":{"line":39,"column":37}},"28":{"start":{"line":41,"column":10},"end":{"line":41,"column":23}},"29":{"start":{"line":42,"column":15},"end":{"line":46,"column":9}},"30":{"start":{"line":43,"column":10},"end":{"line":43,"column":23}},"31":{"start":{"line":45,"column":10},"end":{"line":45,"column":22}},"32":{"start":{"line":48,"column":6},"end":{"line":48,"column":20}},"33":{"start":{"line":50,"column":6},"end":{"line":50,"column":19}},"34":{"start":{"line":55,"column":4},"end":{"line":57,"column":5}},"35":{"start":{"line":56,"column":6},"end":{"line":56,"column":47}},"36":{"start":{"line":58,"column":4},"end":{"line":58,"column":39}},"37":{"start":{"line":4,"column":0},"end":{"line":60,"column":1}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":5,"column":2},"end":{"line":5,"column":21}},"loc":{"start":{"line":5,"column":36},"end":{"line":5,"column":40}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":7,"column":8},"end":{"line":7,"column":14}},"loc":{"start":{"line":7,"column":39},"end":{"line":15,"column":3}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":27}},"loc":{"start":{"line":17,"column":45},"end":{"line":52,"column":3}}},"3":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":10},"end":{"line":54,"column":20}},"loc":{"start":{"line":54,"column":34},"end":{"line":59,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":4},"end":{"line":51,"column":5}},"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":51,"column":5}},{"start":{"line":18,"column":4},"end":{"line":51,"column":5}}]},"1":{"loc":{"start":{"line":24,"column":8},"end":{"line":46,"column":9}},"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":46,"column":9}},{"start":{"line":24,"column":8},"end":{"line":46,"column":9}}]},"2":{"loc":{"start":{"line":26,"column":15},"end":{"line":46,"column":9}},"type":"if","locations":[{"start":{"line":26,"column":15},"end":{"line":46,"column":9}},{"start":{"line":26,"column":15},"end":{"line":46,"column":9}}]},"3":{"loc":{"start":{"line":30,"column":31},"end":{"line":30,"column":43}},"type":"binary-expr","locations":[{"start":{"line":30,"column":31},"end":{"line":30,"column":43}},{"start":{"line":30,"column":47},"end":{"line":30,"column":62}}]},"4":{"loc":{"start":{"line":32,"column":10},"end":{"line":34,"column":11}},"type":"if","locations":[{"start":{"line":32,"column":10},"end":{"line":34,"column":11}},{"start":{"line":32,"column":10},"end":{"line":34,"column":11}}]},"5":{"loc":{"start":{"line":35,"column":42},"end":{"line":35,"column":57}},"type":"cond-expr","locations":[{"start":{"line":35,"column":42},"end":{"line":35,"column":57}},{"start":{"line":35,"column":60},"end":{"line":35,"column":65}}]},"6":{"loc":{"start":{"line":38,"column":10},"end":{"line":40,"column":11}},"type":"if","locations":[{"start":{"line":38,"column":10},"end":{"line":40,"column":11}},{"start":{"line":38,"column":10},"end":{"line":40,"column":11}}]},"7":{"loc":{"start":{"line":42,"column":15},"end":{"line":46,"column":9}},"type":"if","locations":[{"start":{"line":42,"column":15},"end":{"line":46,"column":9}},{"start":{"line":42,"column":15},"end":{"line":46,"column":9}}]},"8":{"loc":{"start":{"line":55,"column":4},"end":{"line":57,"column":5}},"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":57,"column":5}},{"start":{"line":55,"column":4},"end":{"line":57,"column":5}}]}},"s":{"0":1,"1":6,"2":6,"3":6,"4":6,"5":7,"6":7,"7":6,"8":17,"9":16,"10":16,"11":16,"12":244,"13":244,"14":10,"15":234,"16":10,"17":10,"18":10,"19":10,"20":10,"21":10,"22":0,"23":10,"24":10,"25":10,"26":10,"27":9,"28":10,"29":224,"30":171,"31":53,"32":16,"33":1,"34":10,"35":0,"36":10,"37":1},"f":{"0":6,"1":6,"2":17,"3":10},"b":{"0":[16,1],"1":[10,234],"2":[10,224],"3":[10,10],"4":[0,10],"5":[10,0],"6":[9,1],"7":[171,53],"8":[0,10]}} | ||
,"/home/circleci/project/src/rewriter.ts": {"path":"/home/circleci/project/src/rewriter.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":40}},"1":{"start":{"line":5,"column":22},"end":{"line":5,"column":36}},"2":{"start":{"line":8,"column":22},"end":{"line":8,"column":43}},"3":{"start":{"line":9,"column":29},"end":{"line":9,"column":31}},"4":{"start":{"line":10,"column":4},"end":{"line":13,"column":5}},"5":{"start":{"line":11,"column":20},"end":{"line":11,"column":44}},"6":{"start":{"line":12,"column":6},"end":{"line":12,"column":56}},"7":{"start":{"line":14,"column":4},"end":{"line":14,"column":18}},"8":{"start":{"line":18,"column":4},"end":{"line":55,"column":5}},"9":{"start":{"line":19,"column":19},"end":{"line":19,"column":21}},"10":{"start":{"line":20,"column":20},"end":{"line":20,"column":22}},"11":{"start":{"line":22,"column":6},"end":{"line":51,"column":7}},"12":{"start":{"line":23,"column":18},"end":{"line":23,"column":33}},"13":{"start":{"line":24,"column":8},"end":{"line":50,"column":9}},"14":{"start":{"line":25,"column":10},"end":{"line":25,"column":23}},"15":{"start":{"line":26,"column":15},"end":{"line":50,"column":9}},"16":{"start":{"line":27,"column":10},"end":{"line":27,"column":23}},"17":{"start":{"line":28,"column":24},"end":{"line":28,"column":56}},"18":{"start":{"line":29,"column":31},"end":{"line":29,"column":51}},"19":{"start":{"line":30,"column":10},"end":{"line":44,"column":11}},"20":{"start":{"line":31,"column":33},"end":{"line":31,"column":48}},"21":{"start":{"line":32,"column":29},"end":{"line":32,"column":59}},"22":{"start":{"line":33,"column":12},"end":{"line":35,"column":13}},"23":{"start":{"line":34,"column":14},"end":{"line":34,"column":78}},"24":{"start":{"line":36,"column":29},"end":{"line":36,"column":67}},"25":{"start":{"line":37,"column":27},"end":{"line":37,"column":64}},"26":{"start":{"line":38,"column":35},"end":{"line":38,"column":68}},"27":{"start":{"line":39,"column":12},"end":{"line":41,"column":13}},"28":{"start":{"line":40,"column":14},"end":{"line":40,"column":39}},"29":{"start":{"line":43,"column":12},"end":{"line":43,"column":30}},"30":{"start":{"line":45,"column":10},"end":{"line":45,"column":23}},"31":{"start":{"line":46,"column":15},"end":{"line":50,"column":9}},"32":{"start":{"line":47,"column":10},"end":{"line":47,"column":23}},"33":{"start":{"line":49,"column":10},"end":{"line":49,"column":22}},"34":{"start":{"line":52,"column":6},"end":{"line":52,"column":20}},"35":{"start":{"line":54,"column":6},"end":{"line":54,"column":19}},"36":{"start":{"line":59,"column":4},"end":{"line":61,"column":5}},"37":{"start":{"line":60,"column":6},"end":{"line":60,"column":47}},"38":{"start":{"line":62,"column":4},"end":{"line":62,"column":39}},"39":{"start":{"line":4,"column":0},"end":{"line":64,"column":1}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":5,"column":2},"end":{"line":5,"column":21}},"loc":{"start":{"line":5,"column":36},"end":{"line":5,"column":40}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":7,"column":8},"end":{"line":7,"column":14}},"loc":{"start":{"line":7,"column":39},"end":{"line":15,"column":3}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":27}},"loc":{"start":{"line":17,"column":45},"end":{"line":56,"column":3}}},"3":{"name":"(anonymous_11)","decl":{"start":{"line":58,"column":10},"end":{"line":58,"column":20}},"loc":{"start":{"line":58,"column":34},"end":{"line":63,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":4},"end":{"line":55,"column":5}},"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":55,"column":5}},{"start":{"line":18,"column":4},"end":{"line":55,"column":5}}]},"1":{"loc":{"start":{"line":24,"column":8},"end":{"line":50,"column":9}},"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":50,"column":9}},{"start":{"line":24,"column":8},"end":{"line":50,"column":9}}]},"2":{"loc":{"start":{"line":26,"column":15},"end":{"line":50,"column":9}},"type":"if","locations":[{"start":{"line":26,"column":15},"end":{"line":50,"column":9}},{"start":{"line":26,"column":15},"end":{"line":50,"column":9}}]},"3":{"loc":{"start":{"line":30,"column":10},"end":{"line":44,"column":11}},"type":"if","locations":[{"start":{"line":30,"column":10},"end":{"line":44,"column":11}},{"start":{"line":30,"column":10},"end":{"line":44,"column":11}}]},"4":{"loc":{"start":{"line":33,"column":12},"end":{"line":35,"column":13}},"type":"if","locations":[{"start":{"line":33,"column":12},"end":{"line":35,"column":13}},{"start":{"line":33,"column":12},"end":{"line":35,"column":13}}]},"5":{"loc":{"start":{"line":36,"column":44},"end":{"line":36,"column":59}},"type":"cond-expr","locations":[{"start":{"line":36,"column":44},"end":{"line":36,"column":59}},{"start":{"line":36,"column":62},"end":{"line":36,"column":67}}]},"6":{"loc":{"start":{"line":39,"column":12},"end":{"line":41,"column":13}},"type":"if","locations":[{"start":{"line":39,"column":12},"end":{"line":41,"column":13}},{"start":{"line":39,"column":12},"end":{"line":41,"column":13}}]},"7":{"loc":{"start":{"line":46,"column":15},"end":{"line":50,"column":9}},"type":"if","locations":[{"start":{"line":46,"column":15},"end":{"line":50,"column":9}},{"start":{"line":46,"column":15},"end":{"line":50,"column":9}}]},"8":{"loc":{"start":{"line":59,"column":4},"end":{"line":61,"column":5}},"type":"if","locations":[{"start":{"line":59,"column":4},"end":{"line":61,"column":5}},{"start":{"line":59,"column":4},"end":{"line":61,"column":5}}]}},"s":{"0":1,"1":7,"2":7,"3":7,"4":7,"5":11,"6":11,"7":7,"8":21,"9":20,"10":20,"11":20,"12":263,"13":263,"14":11,"15":252,"16":13,"17":13,"18":13,"19":13,"20":10,"21":10,"22":10,"23":0,"24":10,"25":10,"26":10,"27":10,"28":9,"29":3,"30":13,"31":239,"32":175,"33":64,"34":20,"35":1,"36":10,"37":0,"38":10,"39":1},"f":{"0":7,"1":7,"2":21,"3":10},"b":{"0":[20,1],"1":[11,252],"2":[13,239],"3":[10,3],"4":[0,10],"5":[10,0],"6":[9,1],"7":[175,64],"8":[0,10]}} | ||
,"/home/circleci/project/src/types.ts": {"path":"/home/circleci/project/src/types.ts","statementMap":{"0":{"start":{"line":9,"column":0},"end":{"line":14,"column":1}},"1":{"start":{"line":18,"column":4},"end":{"line":18,"column":24}},"2":{"start":{"line":19,"column":4},"end":{"line":19,"column":33}},"3":{"start":{"line":16,"column":0},"end":{"line":23,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":17,"column":2},"end":{"line":20,"column":3}}}},"branchMap":{},"s":{"0":2,"1":0,"2":0,"3":2},"f":{"0":0},"b":{}} | ||
,"/home/circleci/project/src/utils.ts": {"path":"/home/circleci/project/src/utils.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":28}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":57}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":39}},"4":{"start":{"line":8,"column":15},"end":{"line":8,"column":17}},"5":{"start":{"line":9,"column":15},"end":{"line":9,"column":36}},"6":{"start":{"line":10,"column":2},"end":{"line":14,"column":3}},"7":{"start":{"line":11,"column":4},"end":{"line":13,"column":5}},"8":{"start":{"line":12,"column":6},"end":{"line":12,"column":44}},"9":{"start":{"line":15,"column":17},"end":{"line":15,"column":23}},"10":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"11":{"start":{"line":17,"column":4},"end":{"line":17,"column":46}},"12":{"start":{"line":20,"column":2},"end":{"line":20,"column":37}},"13":{"start":{"line":7,"column":0},"end":{"line":21,"column":1}},"14":{"start":{"line":24,"column":17},"end":{"line":24,"column":19}},"15":{"start":{"line":25,"column":15},"end":{"line":25,"column":33}},"16":{"start":{"line":26,"column":2},"end":{"line":32,"column":3}},"17":{"start":{"line":27,"column":4},"end":{"line":31,"column":5}},"18":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"19":{"start":{"line":29,"column":8},"end":{"line":29,"column":84}},"20":{"start":{"line":33,"column":2},"end":{"line":33,"column":16}},"21":{"start":{"line":23,"column":0},"end":{"line":34,"column":1}},"22":{"start":{"line":37,"column":23},"end":{"line":37,"column":35}},"23":{"start":{"line":38,"column":2},"end":{"line":44,"column":3}},"24":{"start":{"line":39,"column":4},"end":{"line":39,"column":71}},"25":{"start":{"line":40,"column":4},"end":{"line":40,"column":55}},"26":{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},"27":{"start":{"line":42,"column":6},"end":{"line":42,"column":28}},"28":{"start":{"line":45,"column":2},"end":{"line":45,"column":68}},"29":{"start":{"line":46,"column":2},"end":{"line":46,"column":16}},"30":{"start":{"line":36,"column":0},"end":{"line":47,"column":1}}},"fnMap":{"0":{"name":"writeFile","decl":{"start":{"line":7,"column":0},"end":{"line":7,"column":25}},"loc":{"start":{"line":7,"column":64},"end":{"line":21,"column":1}}},"1":{"name":"validateOutput","decl":{"start":{"line":23,"column":0},"end":{"line":23,"column":30}},"loc":{"start":{"line":23,"column":69},"end":{"line":34,"column":1}}},"2":{"name":"loadConfig","decl":{"start":{"line":36,"column":0},"end":{"line":null,"column":-1}},"loc":{"start":{"line":36,"column":0},"end":{"line":47,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":4},"end":{"line":13,"column":5}},"type":"if","locations":[{"start":{"line":11,"column":4},"end":{"line":13,"column":5}},{"start":{"line":11,"column":4},"end":{"line":13,"column":5}}]},"1":{"loc":{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":18,"column":3}},{"start":{"line":16,"column":2},"end":{"line":18,"column":3}}]},"2":{"loc":{"start":{"line":27,"column":4},"end":{"line":31,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":31,"column":5}},{"start":{"line":27,"column":4},"end":{"line":31,"column":5}}]},"3":{"loc":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"type":"if","locations":[{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},{"start":{"line":28,"column":6},"end":{"line":30,"column":7}}]},"4":{"loc":{"start":{"line":28,"column":10},"end":{"line":28,"column":26}},"type":"binary-expr","locations":[{"start":{"line":28,"column":10},"end":{"line":28,"column":26}},{"start":{"line":28,"column":30},"end":{"line":28,"column":55}},{"start":{"line":28,"column":59},"end":{"line":28,"column":77}}]},"5":{"loc":{"start":{"line":38,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":38,"column":2},"end":{"line":44,"column":3}},{"start":{"line":38,"column":2},"end":{"line":44,"column":3}}]},"6":{"loc":{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},{"start":{"line":41,"column":4},"end":{"line":43,"column":5}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":1,"14":3,"15":3,"16":3,"17":4,"18":2,"19":1,"20":3,"21":1,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":1},"f":{"0":0,"1":3,"2":0},"b":{"0":[0,0],"1":[0,0],"2":[2,2],"3":[1,1],"4":[2,1,1],"5":[0,0],"6":[0,0]}} | ||
} |
@@ -41,12 +41,17 @@ "use strict"; | ||
const matchResults = capture.match(regex); | ||
const resolverName = matchResults && matchResults[1]; | ||
const resolver = this.getResolver(resolverName); | ||
if (!resolver) { | ||
throw new Error(`Could not locate resolver for value ${value}`); | ||
if (matchResults) { | ||
const resolverName = matchResults[1]; | ||
const resolver = this.getResolver(resolverName); | ||
if (!resolver) { | ||
throw new Error(`Could not locate resolver for value ${value}`); | ||
} | ||
const argument = matchResults ? matchResults[2] : value; | ||
let resolved = yield resolver(argument, this.config); | ||
const rewrittenValue = yield this.rewriteValue(resolved); | ||
if (!util_1.isNullOrUndefined(rewrittenValue)) { | ||
result += rewrittenValue; | ||
} | ||
} | ||
const argument = matchResults ? matchResults[2] : value; | ||
let resolved = yield resolver(argument, this.config); | ||
const rewrittenValue = yield this.rewriteValue(resolved); | ||
if (!util_1.isNullOrUndefined(rewrittenValue)) { | ||
result += rewrittenValue; | ||
else { | ||
result += capture; | ||
} | ||
@@ -53,0 +58,0 @@ capture = ''; |
{ | ||
"name": "dotenvi", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"author": "Ben Ross", | ||
@@ -15,3 +15,3 @@ "license": "MIT", | ||
"release": "semantic-release", | ||
"example": "pushd example && IA_ENV=test node ../dist/index.js -f env.yml -s development && popd" | ||
"example": "pushd example && IA_ENV=example node ../dist/index.js -f env.yml -s development && popd" | ||
}, | ||
@@ -18,0 +18,0 @@ "bin": { |
@@ -93,2 +93,27 @@ const { Rewriter } = require('./rewriter'); | ||
}); | ||
it("Doesn't blow up with bad references like ${FOO} or {FOO} or {FOO or FOO}", () => { | ||
process.env['BAD_REFERENCE'] = 'BAD_REFERENCE'; | ||
const document = { | ||
with_bang: { | ||
value: '${FOO}' | ||
}, | ||
without_bang: { | ||
value: '{FOO}' | ||
}, | ||
with_left_curly_only: { | ||
value: '{FOO' | ||
}, | ||
with_right_curly_only: { | ||
value: 'FOO}' | ||
} | ||
}; | ||
const rewriter = new Rewriter({ resolvers: resolvers }); | ||
return rewriter.rewrite(document).then(output => { | ||
for (key in document) { | ||
expect(output[key]).toBe(document[key]['value']); | ||
} | ||
}); | ||
}); | ||
}); |
@@ -30,13 +30,17 @@ import { Document, InputDocument, Config, Primitive } from './types'; | ||
const matchResults = capture.match(regex); | ||
const resolverName = matchResults && matchResults[1]; | ||
const resolver = this.getResolver(resolverName); | ||
if (!resolver) { | ||
throw new Error(`Could not locate resolver for value ${value}`); | ||
if (matchResults) { | ||
const resolverName = matchResults[1]; | ||
const resolver = this.getResolver(resolverName); | ||
if (!resolver) { | ||
throw new Error(`Could not locate resolver for value ${value}`); | ||
} | ||
const argument = matchResults ? matchResults[2] : value; | ||
let resolved = await resolver(argument, this.config); | ||
const rewrittenValue = await this.rewriteValue(resolved); | ||
if (!isNullOrUndefined(rewrittenValue)) { | ||
result += rewrittenValue; | ||
} | ||
} else { | ||
result += capture; | ||
} | ||
const argument = matchResults ? matchResults[2] : value; | ||
let resolved = await resolver(argument, this.config); | ||
const rewrittenValue = await this.rewriteValue(resolved); | ||
if (!isNullOrUndefined(rewrittenValue)) { | ||
result += rewrittenValue; | ||
} | ||
capture = ''; | ||
@@ -43,0 +47,0 @@ } else if (capture) { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
387414
1385
13