datx-utils
Advanced tools
Comparing version 0.15.2 to 0.15.4
{"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/consts.ts": {"path":"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/consts.ts","statementMap":{"0":{"start":{"line":1,"column":13},"end":{"line":1,"column":47}},"1":{"start":{"line":2,"column":13},"end":{"line":2,"column":37}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1},"f":{},"b":{}} | ||
,"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/helpers.ts": {"path":"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/helpers.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":57}},"1":{"start":{"line":16,"column":2},"end":{"line":19,"column":3}},"2":{"start":{"line":18,"column":4},"end":{"line":18,"column":40}},"3":{"start":{"line":18,"column":30},"end":{"line":18,"column":38}},"4":{"start":{"line":21,"column":2},"end":{"line":21,"column":41}},"5":{"start":{"line":15,"column":0},"end":{"line":22,"column":1}},"6":{"start":{"line":33,"column":2},"end":{"line":33,"column":42}},"7":{"start":{"line":32,"column":0},"end":{"line":34,"column":1}},"8":{"start":{"line":45,"column":2},"end":{"line":45,"column":35}},"9":{"start":{"line":44,"column":0},"end":{"line":46,"column":1}},"10":{"start":{"line":56,"column":2},"end":{"line":56,"column":57}},"11":{"start":{"line":55,"column":0},"end":{"line":57,"column":1}},"12":{"start":{"line":75,"column":2},"end":{"line":78,"column":3}},"13":{"start":{"line":76,"column":4},"end":{"line":76,"column":21}},"14":{"start":{"line":77,"column":4},"end":{"line":77,"column":20}},"15":{"start":{"line":80,"column":2},"end":{"line":97,"column":3}},"16":{"start":{"line":81,"column":4},"end":{"line":90,"column":7}},"17":{"start":{"line":83,"column":8},"end":{"line":83,"column":24}},"18":{"start":{"line":86,"column":8},"end":{"line":88,"column":9}},"19":{"start":{"line":87,"column":10},"end":{"line":87,"column":22}},"20":{"start":{"line":92,"column":4},"end":{"line":96,"column":7}},"21":{"start":{"line":94,"column":8},"end":{"line":94,"column":24}},"22":{"start":{"line":99,"column":2},"end":{"line":101,"column":3}},"23":{"start":{"line":100,"column":4},"end":{"line":100,"column":21}},"24":{"start":{"line":68,"column":0},"end":{"line":102,"column":1}},"25":{"start":{"line":104,"column":22},"end":{"line":104,"column":28}},"26":{"start":{"line":104,"column":22},"end":{"line":104,"column":29}},"27":{"start":{"line":106,"column":2},"end":{"line":106,"column":41}},"28":{"start":{"line":104,"column":0},"end":{"line":107,"column":1}},"29":{"start":{"line":109,"column":21},"end":{"line":109,"column":27}},"30":{"start":{"line":109,"column":21},"end":{"line":109,"column":28}},"31":{"start":{"line":110,"column":2},"end":{"line":112,"column":3}},"32":{"start":{"line":111,"column":4},"end":{"line":111,"column":11}},"33":{"start":{"line":115,"column":2},"end":{"line":115,"column":42}},"34":{"start":{"line":109,"column":0},"end":{"line":116,"column":1}},"35":{"start":{"line":118,"column":27},"end":{"line":118,"column":33}},"36":{"start":{"line":118,"column":27},"end":{"line":118,"column":34}},"37":{"start":{"line":119,"column":2},"end":{"line":121,"column":3}},"38":{"start":{"line":120,"column":4},"end":{"line":120,"column":11}},"39":{"start":{"line":124,"column":2},"end":{"line":124,"column":45}},"40":{"start":{"line":118,"column":0},"end":{"line":125,"column":1}},"41":{"start":{"line":127,"column":21},"end":{"line":127,"column":27}},"42":{"start":{"line":127,"column":21},"end":{"line":127,"column":28}},"43":{"start":{"line":128,"column":2},"end":{"line":130,"column":3}},"44":{"start":{"line":129,"column":4},"end":{"line":129,"column":11}},"45":{"start":{"line":133,"column":2},"end":{"line":133,"column":39}},"46":{"start":{"line":127,"column":0},"end":{"line":134,"column":1}}},"fnMap":{"0":{"name":"mapItems","decl":{"start":{"line":15,"column":16},"end":{"line":15,"column":24}},"loc":{"start":{"line":15,"column":67},"end":{"line":22,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":20},"end":{"line":18,"column":20}},"loc":{"start":{"line":18,"column":25},"end":{"line":18,"column":38}}},"2":{"name":"flatten","decl":{"start":{"line":32,"column":16},"end":{"line":32,"column":23}},"loc":{"start":{"line":32,"column":48},"end":{"line":34,"column":1}}},"3":{"name":"uniq","decl":{"start":{"line":44,"column":16},"end":{"line":44,"column":20}},"loc":{"start":{"line":44,"column":38},"end":{"line":46,"column":1}}},"4":{"name":"isFalsyArray","decl":{"start":{"line":55,"column":16},"end":{"line":55,"column":28}},"loc":{"start":{"line":55,"column":39},"end":{"line":57,"column":1}}},"5":{"name":"assignComputed","decl":{"start":{"line":68,"column":16},"end":{"line":68,"column":30}},"loc":{"start":{"line":72,"column":29},"end":{"line":102,"column":1}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":82,"column":6},"end":{"line":null,"column":-1}},"loc":{"start":{"line":82,"column":6},"end":{"line":84,"column":7}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":6},"end":{"line":85,"column":15}},"loc":{"start":{"line":85,"column":19},"end":{"line":89,"column":7}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":93,"column":6},"end":{"line":null,"column":-1}},"loc":{"start":{"line":93,"column":6},"end":{"line":95,"column":7}}},"9":{"name":"error","decl":{"start":{"line":104,"column":16},"end":{"line":104,"column":21}},"loc":{"start":{"line":104,"column":21},"end":{"line":107,"column":1}}},"10":{"name":"warn","decl":{"start":{"line":109,"column":16},"end":{"line":109,"column":20}},"loc":{"start":{"line":109,"column":20},"end":{"line":116,"column":1}}},"11":{"name":"deprecated","decl":{"start":{"line":118,"column":16},"end":{"line":118,"column":26}},"loc":{"start":{"line":118,"column":26},"end":{"line":125,"column":1}}},"12":{"name":"info","decl":{"start":{"line":127,"column":16},"end":{"line":127,"column":20}},"loc":{"start":{"line":127,"column":20},"end":{"line":134,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":19,"column":3}},{"start":{"line":16,"column":2},"end":{"line":19,"column":3}}]},"1":{"loc":{"start":{"line":21,"column":25},"end":{"line":21,"column":29}},"type":"cond-expr","locations":[{"start":{"line":21,"column":25},"end":{"line":21,"column":29}},{"start":{"line":21,"column":32},"end":{"line":21,"column":40}}]},"2":{"loc":{"start":{"line":56,"column":9},"end":{"line":56,"column":31}},"type":"binary-expr","locations":[{"start":{"line":56,"column":9},"end":{"line":56,"column":31}},{"start":{"line":56,"column":35},"end":{"line":56,"column":56}}]},"3":{"loc":{"start":{"line":75,"column":2},"end":{"line":78,"column":3}},"type":"if","locations":[{"start":{"line":75,"column":2},"end":{"line":78,"column":3}},{"start":{"line":75,"column":2},"end":{"line":78,"column":3}}]},"4":{"loc":{"start":{"line":80,"column":2},"end":{"line":97,"column":3}},"type":"if","locations":[{"start":{"line":80,"column":2},"end":{"line":97,"column":3}},{"start":{"line":80,"column":2},"end":{"line":97,"column":3}}]},"5":{"loc":{"start":{"line":86,"column":8},"end":{"line":88,"column":9}},"type":"if","locations":[{"start":{"line":86,"column":8},"end":{"line":88,"column":9}},{"start":{"line":86,"column":8},"end":{"line":88,"column":9}}]},"6":{"loc":{"start":{"line":99,"column":2},"end":{"line":101,"column":3}},"type":"if","locations":[{"start":{"line":99,"column":2},"end":{"line":101,"column":3}},{"start":{"line":99,"column":2},"end":{"line":101,"column":3}}]},"7":{"loc":{"start":{"line":110,"column":2},"end":{"line":112,"column":3}},"type":"if","locations":[{"start":{"line":110,"column":2},"end":{"line":112,"column":3}},{"start":{"line":110,"column":2},"end":{"line":112,"column":3}}]},"8":{"loc":{"start":{"line":110,"column":6},"end":{"line":110,"column":43}},"type":"binary-expr","locations":[{"start":{"line":110,"column":6},"end":{"line":110,"column":43}},{"start":{"line":110,"column":47},"end":{"line":110,"column":78}}]},"9":{"loc":{"start":{"line":119,"column":2},"end":{"line":121,"column":3}},"type":"if","locations":[{"start":{"line":119,"column":2},"end":{"line":121,"column":3}},{"start":{"line":119,"column":2},"end":{"line":121,"column":3}}]},"10":{"loc":{"start":{"line":119,"column":6},"end":{"line":119,"column":43}},"type":"binary-expr","locations":[{"start":{"line":119,"column":6},"end":{"line":119,"column":43}},{"start":{"line":119,"column":47},"end":{"line":119,"column":78}}]},"11":{"loc":{"start":{"line":128,"column":2},"end":{"line":130,"column":3}},"type":"if","locations":[{"start":{"line":128,"column":2},"end":{"line":130,"column":3}},{"start":{"line":128,"column":2},"end":{"line":130,"column":3}}]},"12":{"loc":{"start":{"line":128,"column":6},"end":{"line":128,"column":43}},"type":"binary-expr","locations":[{"start":{"line":128,"column":6},"end":{"line":128,"column":43}},{"start":{"line":128,"column":47},"end":{"line":128,"column":78}}]}},"s":{"0":1,"1":3,"2":1,"3":2,"4":2,"5":1,"6":2,"7":1,"8":3,"9":1,"10":3,"11":1,"12":7,"13":0,"14":0,"15":7,"16":5,"17":9,"18":3,"19":3,"20":2,"21":2,"22":7,"23":0,"24":1,"25":0,"26":0,"27":0,"28":1,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":1,"41":0,"42":0,"43":0,"44":0,"45":0,"46":1},"f":{"0":3,"1":2,"2":2,"3":3,"4":3,"5":7,"6":9,"7":3,"8":2,"9":0,"10":0,"11":0,"12":0},"b":{"0":[1,2],"1":[1,1],"2":[3,3],"3":[0,7],"4":[5,2],"5":[3,0],"6":[0,7],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0]}} | ||
,"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/index.ts": {"path":"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},"1":{"start":{"line":1,"column":8},"end":{"line":1,"column":20}},"2":{"start":{"line":1,"column":22},"end":{"line":1,"column":32}},"3":{"start":{"line":6,"column":0},"end":{"line":16,"column":18}},"4":{"start":{"line":7,"column":2},"end":{"line":7,"column":16}},"5":{"start":{"line":8,"column":2},"end":{"line":8,"column":10}},"6":{"start":{"line":9,"column":2},"end":{"line":9,"column":9}},"7":{"start":{"line":10,"column":2},"end":{"line":10,"column":6}},"8":{"start":{"line":11,"column":2},"end":{"line":11,"column":14}},"9":{"start":{"line":12,"column":2},"end":{"line":12,"column":7}},"10":{"start":{"line":13,"column":2},"end":{"line":13,"column":6}},"11":{"start":{"line":14,"column":2},"end":{"line":14,"column":12}},"12":{"start":{"line":15,"column":2},"end":{"line":15,"column":6}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1},"f":{},"b":{}} | ||
,"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/helpers.ts": {"path":"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/helpers.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},"1":{"start":{"line":16,"column":2},"end":{"line":19,"column":3}},"2":{"start":{"line":18,"column":4},"end":{"line":18,"column":40}},"3":{"start":{"line":18,"column":30},"end":{"line":18,"column":38}},"4":{"start":{"line":21,"column":2},"end":{"line":21,"column":41}},"5":{"start":{"line":15,"column":0},"end":{"line":22,"column":1}},"6":{"start":{"line":33,"column":2},"end":{"line":33,"column":42}},"7":{"start":{"line":32,"column":0},"end":{"line":34,"column":1}},"8":{"start":{"line":45,"column":2},"end":{"line":45,"column":35}},"9":{"start":{"line":44,"column":0},"end":{"line":46,"column":1}},"10":{"start":{"line":56,"column":2},"end":{"line":56,"column":57}},"11":{"start":{"line":55,"column":0},"end":{"line":57,"column":1}},"12":{"start":{"line":75,"column":2},"end":{"line":79,"column":3}},"13":{"start":{"line":76,"column":4},"end":{"line":76,"column":21}},"14":{"start":{"line":78,"column":4},"end":{"line":78,"column":20}},"15":{"start":{"line":81,"column":2},"end":{"line":98,"column":3}},"16":{"start":{"line":82,"column":4},"end":{"line":91,"column":7}},"17":{"start":{"line":84,"column":8},"end":{"line":84,"column":24}},"18":{"start":{"line":87,"column":8},"end":{"line":89,"column":9}},"19":{"start":{"line":88,"column":10},"end":{"line":88,"column":22}},"20":{"start":{"line":93,"column":4},"end":{"line":97,"column":7}},"21":{"start":{"line":95,"column":8},"end":{"line":95,"column":24}},"22":{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},"23":{"start":{"line":101,"column":4},"end":{"line":101,"column":21}},"24":{"start":{"line":68,"column":0},"end":{"line":103,"column":1}},"25":{"start":{"line":105,"column":22},"end":{"line":105,"column":40}},"26":{"start":{"line":105,"column":22},"end":{"line":105,"column":41}},"27":{"start":{"line":107,"column":2},"end":{"line":107,"column":41}},"28":{"start":{"line":105,"column":0},"end":{"line":108,"column":1}},"29":{"start":{"line":110,"column":21},"end":{"line":110,"column":39}},"30":{"start":{"line":110,"column":21},"end":{"line":110,"column":40}},"31":{"start":{"line":111,"column":2},"end":{"line":113,"column":3}},"32":{"start":{"line":112,"column":4},"end":{"line":112,"column":11}},"33":{"start":{"line":116,"column":2},"end":{"line":116,"column":42}},"34":{"start":{"line":110,"column":0},"end":{"line":117,"column":1}},"35":{"start":{"line":119,"column":27},"end":{"line":119,"column":45}},"36":{"start":{"line":119,"column":27},"end":{"line":119,"column":46}},"37":{"start":{"line":120,"column":2},"end":{"line":122,"column":3}},"38":{"start":{"line":121,"column":4},"end":{"line":121,"column":11}},"39":{"start":{"line":125,"column":2},"end":{"line":125,"column":45}},"40":{"start":{"line":119,"column":0},"end":{"line":126,"column":1}},"41":{"start":{"line":128,"column":21},"end":{"line":128,"column":39}},"42":{"start":{"line":128,"column":21},"end":{"line":128,"column":40}},"43":{"start":{"line":129,"column":2},"end":{"line":131,"column":3}},"44":{"start":{"line":130,"column":4},"end":{"line":130,"column":11}},"45":{"start":{"line":134,"column":2},"end":{"line":134,"column":39}},"46":{"start":{"line":128,"column":0},"end":{"line":135,"column":1}}},"fnMap":{"0":{"name":"mapItems","decl":{"start":{"line":15,"column":16},"end":{"line":15,"column":24}},"loc":{"start":{"line":15,"column":67},"end":{"line":22,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":20},"end":{"line":18,"column":20}},"loc":{"start":{"line":18,"column":25},"end":{"line":18,"column":38}}},"2":{"name":"flatten","decl":{"start":{"line":32,"column":16},"end":{"line":32,"column":23}},"loc":{"start":{"line":32,"column":48},"end":{"line":34,"column":1}}},"3":{"name":"uniq","decl":{"start":{"line":44,"column":16},"end":{"line":44,"column":20}},"loc":{"start":{"line":44,"column":38},"end":{"line":46,"column":1}}},"4":{"name":"isFalsyArray","decl":{"start":{"line":55,"column":16},"end":{"line":55,"column":28}},"loc":{"start":{"line":55,"column":39},"end":{"line":57,"column":1}}},"5":{"name":"assignComputed","decl":{"start":{"line":68,"column":16},"end":{"line":68,"column":30}},"loc":{"start":{"line":72,"column":29},"end":{"line":103,"column":1}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":83,"column":6},"end":{"line":null,"column":-1}},"loc":{"start":{"line":83,"column":6},"end":{"line":85,"column":7}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":86,"column":6},"end":{"line":86,"column":15}},"loc":{"start":{"line":86,"column":19},"end":{"line":90,"column":7}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":94,"column":6},"end":{"line":null,"column":-1}},"loc":{"start":{"line":94,"column":6},"end":{"line":96,"column":7}}},"9":{"name":"error","decl":{"start":{"line":105,"column":16},"end":{"line":105,"column":21}},"loc":{"start":{"line":105,"column":21},"end":{"line":108,"column":1}}},"10":{"name":"warn","decl":{"start":{"line":110,"column":16},"end":{"line":110,"column":20}},"loc":{"start":{"line":110,"column":20},"end":{"line":117,"column":1}}},"11":{"name":"deprecated","decl":{"start":{"line":119,"column":16},"end":{"line":119,"column":26}},"loc":{"start":{"line":119,"column":26},"end":{"line":126,"column":1}}},"12":{"name":"info","decl":{"start":{"line":128,"column":16},"end":{"line":128,"column":20}},"loc":{"start":{"line":128,"column":20},"end":{"line":135,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":19,"column":3}},{"start":{"line":16,"column":2},"end":{"line":19,"column":3}}]},"1":{"loc":{"start":{"line":21,"column":25},"end":{"line":21,"column":29}},"type":"cond-expr","locations":[{"start":{"line":21,"column":25},"end":{"line":21,"column":29}},{"start":{"line":21,"column":32},"end":{"line":21,"column":40}}]},"2":{"loc":{"start":{"line":56,"column":9},"end":{"line":56,"column":31}},"type":"binary-expr","locations":[{"start":{"line":56,"column":9},"end":{"line":56,"column":31}},{"start":{"line":56,"column":35},"end":{"line":56,"column":56}}]},"3":{"loc":{"start":{"line":75,"column":2},"end":{"line":79,"column":3}},"type":"if","locations":[{"start":{"line":75,"column":2},"end":{"line":79,"column":3}},{"start":{"line":75,"column":2},"end":{"line":79,"column":3}}]},"4":{"loc":{"start":{"line":81,"column":2},"end":{"line":98,"column":3}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":98,"column":3}},{"start":{"line":81,"column":2},"end":{"line":98,"column":3}}]},"5":{"loc":{"start":{"line":87,"column":8},"end":{"line":89,"column":9}},"type":"if","locations":[{"start":{"line":87,"column":8},"end":{"line":89,"column":9}},{"start":{"line":87,"column":8},"end":{"line":89,"column":9}}]},"6":{"loc":{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},{"start":{"line":100,"column":2},"end":{"line":102,"column":3}}]},"7":{"loc":{"start":{"line":111,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":111,"column":2},"end":{"line":113,"column":3}},{"start":{"line":111,"column":2},"end":{"line":113,"column":3}}]},"8":{"loc":{"start":{"line":111,"column":6},"end":{"line":111,"column":43}},"type":"binary-expr","locations":[{"start":{"line":111,"column":6},"end":{"line":111,"column":43}},{"start":{"line":111,"column":47},"end":{"line":111,"column":78}}]},"9":{"loc":{"start":{"line":120,"column":2},"end":{"line":122,"column":3}},"type":"if","locations":[{"start":{"line":120,"column":2},"end":{"line":122,"column":3}},{"start":{"line":120,"column":2},"end":{"line":122,"column":3}}]},"10":{"loc":{"start":{"line":120,"column":6},"end":{"line":120,"column":43}},"type":"binary-expr","locations":[{"start":{"line":120,"column":6},"end":{"line":120,"column":43}},{"start":{"line":120,"column":47},"end":{"line":120,"column":78}}]},"11":{"loc":{"start":{"line":129,"column":2},"end":{"line":131,"column":3}},"type":"if","locations":[{"start":{"line":129,"column":2},"end":{"line":131,"column":3}},{"start":{"line":129,"column":2},"end":{"line":131,"column":3}}]},"12":{"loc":{"start":{"line":129,"column":6},"end":{"line":129,"column":43}},"type":"binary-expr","locations":[{"start":{"line":129,"column":6},"end":{"line":129,"column":43}},{"start":{"line":129,"column":47},"end":{"line":129,"column":78}}]}},"s":{"0":1,"1":3,"2":1,"3":2,"4":2,"5":1,"6":2,"7":1,"8":3,"9":1,"10":3,"11":1,"12":7,"13":0,"14":0,"15":7,"16":5,"17":9,"18":3,"19":3,"20":2,"21":2,"22":7,"23":0,"24":1,"25":0,"26":0,"27":0,"28":1,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":1,"41":0,"42":0,"43":0,"44":0,"45":0,"46":1},"f":{"0":3,"1":2,"2":2,"3":3,"4":3,"5":7,"6":9,"7":3,"8":2,"9":0,"10":0,"11":0,"12":0},"b":{"0":[1,2],"1":[1,1],"2":[3,3],"3":[0,7],"4":[5,2],"5":[3,0],"6":[0,7],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0]}} | ||
,"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/index.ts": {"path":"/Users/darko/Projects/mobx/datx/packages/datx-utils/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}},"1":{"start":{"line":1,"column":9},"end":{"line":1,"column":21}},"2":{"start":{"line":1,"column":23},"end":{"line":1,"column":33}},"3":{"start":{"line":6,"column":0},"end":{"line":16,"column":18}},"4":{"start":{"line":7,"column":2},"end":{"line":7,"column":16}},"5":{"start":{"line":8,"column":2},"end":{"line":8,"column":10}},"6":{"start":{"line":9,"column":2},"end":{"line":9,"column":9}},"7":{"start":{"line":10,"column":2},"end":{"line":10,"column":6}},"8":{"start":{"line":11,"column":2},"end":{"line":11,"column":14}},"9":{"start":{"line":12,"column":2},"end":{"line":12,"column":7}},"10":{"start":{"line":13,"column":2},"end":{"line":13,"column":6}},"11":{"start":{"line":14,"column":2},"end":{"line":14,"column":12}},"12":{"start":{"line":15,"column":2},"end":{"line":15,"column":6}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1},"f":{},"b":{}} | ||
} |
@@ -49,5 +49,5 @@ /** | ||
export declare function assignComputed<T = any>(obj: object, key: string, getter: () => T, setter?: (value: T) => void): void; | ||
export declare function error(...args: any[]): void; | ||
export declare function warn(...args: any[]): void; | ||
export declare function deprecated(...args: any[]): void; | ||
export declare function info(...args: any[]): void; | ||
export declare function error(...args: Array<any>): void; | ||
export declare function warn(...args: Array<any>): void; | ||
export declare function deprecated(...args: Array<any>): void; | ||
export declare function info(...args: Array<any>): void; |
@@ -60,2 +60,3 @@ import { extendObservable } from 'mobx'; | ||
value = obj[key]; | ||
// tslint:disable-next-line:no-dynamic-delete | ||
delete obj[key]; | ||
@@ -62,0 +63,0 @@ } |
{ | ||
"name": "datx-utils", | ||
"version": "0.15.2", | ||
"version": "0.15.4", | ||
"description": "DatX lib utils for mixins", | ||
@@ -24,13 +24,13 @@ "main": "dist/index.cjs.js", | ||
"devDependencies": { | ||
"@infinumjs/tslint-config": "^2.0.0-beta.5", | ||
"@types/jest": "^23.3.2", | ||
"@types/node": "^10.11.3", | ||
"@infinumjs/tslint-config": "^2.0.0-beta.6", | ||
"@types/jest": "^23.3.13", | ||
"@types/node": "^10.12.18", | ||
"jest": "^23.6.0", | ||
"mobx": "^5.5.0", | ||
"rollup": "^1.0.0", | ||
"rollup-plugin-typescript2": "^0.18.0", | ||
"rollup-plugin-uglify": "^6.0.0", | ||
"ts-jest": "^23.10.2", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.1.1" | ||
"mobx": "^5.8.0", | ||
"rollup": "^1.1.0", | ||
"rollup-plugin-typescript2": "^0.19.2", | ||
"rollup-plugin-uglify": "^6.0.1", | ||
"ts-jest": "^23.10.5", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.2.4" | ||
}, | ||
@@ -37,0 +37,0 @@ "peerDependencies": { |
@@ -21,4 +21,4 @@ # datx-utils | ||
datx-utils is maintained and sponsored by | ||
[Infinum](http://www.infinum.co). | ||
[Infinum](https://www.infinum.co). | ||
<img src="https://infinum.co/infinum.png" width="264"> |
@@ -1,2 +0,2 @@ | ||
import {computed, decorate, extendObservable} from 'mobx'; | ||
import { extendObservable } from 'mobx'; | ||
@@ -74,5 +74,6 @@ /** | ||
) { | ||
let value; | ||
let value: any; | ||
if (key in obj) { | ||
value = obj[key]; | ||
// tslint:disable-next-line:no-dynamic-delete | ||
delete obj[key]; | ||
@@ -105,3 +106,3 @@ } | ||
export function error(...args) { | ||
export function error(...args: Array<any>) { | ||
// tslint:disable-next-line:no-console | ||
@@ -111,3 +112,3 @@ console.error(`[datx error]`, ...args); | ||
export function warn(...args) { | ||
export function warn(...args: Array<any>) { | ||
if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') { | ||
@@ -121,3 +122,3 @@ return; | ||
export function deprecated(...args) { | ||
export function deprecated(...args: Array<any>) { | ||
if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') { | ||
@@ -131,3 +132,3 @@ return; | ||
export function info(...args) { | ||
export function info(...args: Array<any>) { | ||
if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') { | ||
@@ -134,0 +135,0 @@ return; |
@@ -1,5 +0,5 @@ | ||
export {DEFAULT_TYPE, META_FIELD} from './consts'; | ||
export { DEFAULT_TYPE, META_FIELD } from './consts'; | ||
export {IDictionary} from './interfaces/IDictionary'; | ||
export {IRawModel} from './interfaces/IRawModel'; | ||
export { IDictionary } from './interfaces/IDictionary'; | ||
export { IRawModel } from './interfaces/IRawModel'; | ||
@@ -6,0 +6,0 @@ export { |
@@ -1,2 +0,2 @@ | ||
import {IDictionary} from './IDictionary'; | ||
import { IDictionary } from './IDictionary'; | ||
@@ -3,0 +3,0 @@ export interface IRawModel extends IDictionary { |
@@ -1,6 +0,6 @@ | ||
import {autorun, configure, isComputedProp, isObservableProp, observable} from 'mobx'; | ||
import { autorun, configure, isComputedProp, isObservableProp, observable } from 'mobx'; | ||
import {assignComputed, flatten, isFalsyArray, mapItems, uniq} from '../src'; | ||
import { assignComputed, flatten, isFalsyArray, mapItems, uniq } from '../src'; | ||
configure({enforceActions: 'observed'}); | ||
configure({ enforceActions: 'observed' }); | ||
@@ -52,3 +52,3 @@ describe('datx-utils', () => { | ||
it('should work for truthy arrays', () => { | ||
expect(isFalsyArray([1, 2, 3, {}, [], '123'])).toBe(false); | ||
expect(isFalsyArray([1, 2, 3, { }, [], '123'])).toBe(false); | ||
}); | ||
@@ -63,4 +63,4 @@ | ||
it('should set a computed prop', () => { | ||
const obj1 = observable({}); | ||
const obj2 = observable.object({}); | ||
const obj1 = observable({ }); | ||
const obj2 = observable.object({ }); | ||
@@ -74,5 +74,5 @@ const data = observable({ | ||
// tslint:disable-next-line:no-empty | ||
assignComputed(obj1, 'bar', () => obj2, () => {}); | ||
assignComputed(obj1, 'bar', () => obj2, () => { }); | ||
// tslint:disable-next-line:no-empty | ||
assignComputed(obj2, 'bar', () => obj1, () => {}); | ||
assignComputed(obj2, 'bar', () => obj1, () => { }); | ||
assignComputed(obj1, 'baz', () => data.data, (a) => { | ||
@@ -137,2 +137,3 @@ data.data = a; | ||
autorun(() => { | ||
// @ts-ignore | ||
const tmp = data.foo; | ||
@@ -139,0 +140,0 @@ }); |
@@ -8,4 +8,5 @@ { | ||
"compilerOptions": { | ||
"moduleResolution": "node" | ||
"moduleResolution": "node", | ||
"noUnusedLocals": true | ||
} | ||
} |
@@ -5,3 +5,5 @@ { | ||
"completed-docs": false, | ||
"newline-per-chained-call": false, | ||
"no-implicit-dependencies": [true, "dev"], | ||
"no-null-keyword": false, | ||
"no-redundant-jsdoc": false, | ||
@@ -12,4 +14,12 @@ "no-reserved-keywords": false, | ||
"promise-function-async": false, | ||
"strict-boolean-expressions": false | ||
"strict-boolean-expressions": false, | ||
"whitespace": [ | ||
true, | ||
"check-branch", | ||
"check-operator", | ||
"check-typecast", | ||
"check-postbrace", | ||
"check-module" | ||
] | ||
} | ||
} |
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
294522
240
1084