@sentry/utils
Advanced tools
Comparing version 0.4.0-beta.5 to 0.4.0-beta.6
@@ -1,3 +0,6 @@ | ||
{"/Users/haza/Projects/raven-js/packages/utils/src/lib/fs.ts": {"path":"/Users/haza/Projects/raven-js/packages/utils/src/lib/fs.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":39}},"2":{"start":{"line":4,"column":14},"end":{"line":4,"column":33}},"3":{"start":{"line":16,"column":2},"end":{"line":24,"column":5}},"4":{"start":{"line":17,"column":4},"end":{"line":23,"column":7}},"5":{"start":{"line":18,"column":6},"end":{"line":22,"column":7}},"6":{"start":{"line":19,"column":8},"end":{"line":19,"column":20}},"7":{"start":{"line":21,"column":8},"end":{"line":21,"column":14}},"8":{"start":{"line":35,"column":8},"end":{"line":35,"column":40}},"9":{"start":{"line":36,"column":8},"end":{"line":36,"column":33}},"10":{"start":{"line":39,"column":4},"end":{"line":39,"column":38}},"11":{"start":{"line":41,"column":10},"end":{"line":41,"column":42}},"12":{"start":{"line":42,"column":8},"end":{"line":42,"column":40}},"13":{"start":{"line":43,"column":6},"end":{"line":43,"column":37}},"14":{"start":{"line":43,"column":6},"end":{"line":43,"column":38}},"15":{"start":{"line":44,"column":6},"end":{"line":44,"column":40}},"16":{"start":{"line":46,"column":6},"end":{"line":52,"column":7}},"17":{"start":{"line":47,"column":8},"end":{"line":49,"column":9}},"18":{"start":{"line":48,"column":10},"end":{"line":48,"column":20}},"19":{"start":{"line":51,"column":8},"end":{"line":51,"column":18}},"20":{"start":{"line":33,"column":0},"end":{"line":55,"column":1}},"21":{"start":{"line":64,"column":15},"end":{"line":64,"column":39}},"22":{"start":{"line":65,"column":19},"end":{"line":65,"column":32}},"23":{"start":{"line":67,"column":2},"end":{"line":83,"column":3}},"24":{"start":{"line":68,"column":4},"end":{"line":68,"column":30}},"25":{"start":{"line":70,"column":18},"end":{"line":70,"column":41}},"26":{"start":{"line":71,"column":4},"end":{"line":82,"column":5}},"27":{"start":{"line":72,"column":6},"end":{"line":72,"column":36}},"28":{"start":{"line":73,"column":6},"end":{"line":73,"column":32}},"29":{"start":{"line":75,"column":6},"end":{"line":81,"column":7}},"30":{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},"31":{"start":{"line":77,"column":10},"end":{"line":77,"column":20}},"32":{"start":{"line":80,"column":8},"end":{"line":80,"column":18}},"33":{"start":{"line":62,"column":0},"end":{"line":84,"column":1}}},"fnMap":{"0":{"name":"mkdirAsync","decl":{"start":{"line":13,"column":0},"end":{"line":13,"column":25}},"loc":{"start":{"line":13,"column":52},"end":{"line":25,"column":1}}},"1":{"name":"(anonymous_15)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":27}},"loc":{"start":{"line":16,"column":39},"end":{"line":24,"column":3}}},"2":{"name":"(anonymous_16)","decl":{"start":{"line":17,"column":22},"end":{"line":17,"column":21}},"loc":{"start":{"line":17,"column":25},"end":{"line":23,"column":5}}},"3":{"name":"mkdirp","decl":{"start":{"line":33,"column":0},"end":{"line":33,"column":28}},"loc":{"start":{"line":33,"column":41},"end":{"line":55,"column":1}}},"4":{"name":"mkdirpSync","decl":{"start":{"line":62,"column":0},"end":{"line":62,"column":26}},"loc":{"start":{"line":62,"column":39},"end":{"line":84,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":6},"end":{"line":22,"column":7}},"type":"if","locations":[{"start":{"line":18,"column":6},"end":{"line":22,"column":7}},{"start":{"line":18,"column":6},"end":{"line":22,"column":7}}]},"1":{"loc":{"start":{"line":42,"column":8},"end":{"line":42,"column":13}},"type":"binary-expr","locations":[{"start":{"line":42,"column":8},"end":{"line":42,"column":13}},{"start":{"line":42,"column":17},"end":{"line":42,"column":40}}]},"2":{"loc":{"start":{"line":47,"column":8},"end":{"line":49,"column":9}},"type":"if","locations":[{"start":{"line":47,"column":8},"end":{"line":49,"column":9}},{"start":{"line":47,"column":8},"end":{"line":49,"column":9}}]},"3":{"loc":{"start":{"line":71,"column":4},"end":{"line":82,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":82,"column":5}},{"start":{"line":71,"column":4},"end":{"line":82,"column":5}}]},"4":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":13}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":13}},{"start":{"line":71,"column":17},"end":{"line":71,"column":40}}]},"5":{"loc":{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},"type":"if","locations":[{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},{"start":{"line":76,"column":8},"end":{"line":78,"column":9}}]}},"s":{"0":1,"1":1,"2":1,"3":0,"4":0,"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":1,"21":5,"22":5,"23":5,"24":5,"25":2,"26":2,"27":1,"28":1,"29":1,"30":1,"31":0,"32":0,"33":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":5},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[1,1],"4":[2,2],"5":[0,1]}} | ||
,"/Users/haza/Projects/raven-js/packages/utils/src/lib/store.ts": {"path":"/Users/haza/Projects/raven-js/packages/utils/src/lib/store.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":60}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":36}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":33}},"3":{"start":{"line":9,"column":0},"end":{"line":83,"column":0}},"4":{"start":{"line":27,"column":4},"end":{"line":27,"column":41}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":27}},"6":{"start":{"line":29,"column":4},"end":{"line":29,"column":26}},"7":{"start":{"line":36,"column":9},"end":{"line":45,"column":3}},"8":{"start":{"line":36,"column":2},"end":{"line":45,"column":2}},"9":{"start":{"line":37,"column":4},"end":{"line":37,"column":21}},"10":{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},"11":{"start":{"line":40,"column":6},"end":{"line":40,"column":27}},"12":{"start":{"line":41,"column":6},"end":{"line":43,"column":9}},"13":{"start":{"line":42,"column":8},"end":{"line":42,"column":21}},"14":{"start":{"line":51,"column":9},"end":{"line":53,"column":3}},"15":{"start":{"line":52,"column":4},"end":{"line":52,"column":29}},"16":{"start":{"line":62,"column":9},"end":{"line":70,"column":3}},"17":{"start":{"line":63,"column":4},"end":{"line":67,"column":5}},"18":{"start":{"line":64,"column":6},"end":{"line":66,"column":23}},"19":{"start":{"line":69,"column":4},"end":{"line":69,"column":21}},"20":{"start":{"line":73,"column":9},"end":{"line":75,"column":3}},"21":{"start":{"line":74,"column":4},"end":{"line":74,"column":27}},"22":{"start":{"line":78,"column":10},"end":{"line":82,"column":3}},"23":{"start":{"line":79,"column":4},"end":{"line":79,"column":35}},"24":{"start":{"line":80,"column":4},"end":{"line":80,"column":56}},"25":{"start":{"line":81,"column":4},"end":{"line":81,"column":26}},"26":{"start":{"line":83,"column":0},"end":{"line":83,"column":1}},"27":{"start":{"line":9,"column":13},"end":{"line":9,"column":18}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":0},"end":{"line":null,"column":-1}},"loc":{"start":{"line":9,"column":0},"end":{"line":9,"column":-1}}},"1":{"name":"Store","decl":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"loc":{"start":{"line":26,"column":57},"end":{"line":30,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":36,"column":2},"end":{"line":36,"column":12}},"loc":{"start":{"line":36,"column":20},"end":{"line":45,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":41,"column":19},"end":{"line":null,"column":-1}},"loc":{"start":{"line":41,"column":19},"end":{"line":43,"column":7}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":51,"column":2},"end":{"line":51,"column":15}},"loc":{"start":{"line":51,"column":37},"end":{"line":53,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":62,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":62,"column":2},"end":{"line":70,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":73,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":73,"column":2},"end":{"line":75,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":78,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":78,"column":2},"end":{"line":82,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},{"start":{"line":39,"column":4},"end":{"line":44,"column":5}}]},"1":{"loc":{"start":{"line":63,"column":4},"end":{"line":67,"column":5}},"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":67,"column":5}},{"start":{"line":63,"column":4},"end":{"line":67,"column":5}}]},"2":{"loc":{"start":{"line":65,"column":11},"end":{"line":65,"column":60}},"type":"cond-expr","locations":[{"start":{"line":65,"column":11},"end":{"line":65,"column":60}},{"start":{"line":66,"column":10},"end":{"line":66,"column":22}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":6,"5":6,"6":6,"7":1,"8":6,"9":6,"10":6,"11":4,"12":4,"13":4,"14":1,"15":4,"16":1,"17":10,"18":4,"19":10,"20":1,"21":1,"22":1,"23":4,"24":4,"25":4,"26":1,"27":1},"f":{"0":1,"1":6,"2":6,"3":4,"4":4,"5":10,"6":1,"7":4},"b":{"0":[4,2],"1":[4,6],"2":[0,4]}} | ||
{"/Users/haza/Projects/raven-js/packages/utils/src/index.ts": {"path":"/Users/haza/Projects/raven-js/packages/utils/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":25}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":28}}},"fnMap":{},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2},"f":{},"b":{}} | ||
,"/Users/haza/Projects/raven-js/packages/utils/src/lib/async.ts": {"path":"/Users/haza/Projects/raven-js/packages/utils/src/lib/async.ts","statementMap":{"0":{"start":{"line":6,"column":2},"end":{"line":9,"column":5}},"1":{"start":{"line":8,"column":4},"end":{"line":8,"column":21}},"2":{"start":{"line":5,"column":0},"end":{"line":10,"column":1}},"3":{"start":{"line":25,"column":19},"end":{"line":25,"column":67}},"4":{"start":{"line":25,"column":8},"end":{"line":25,"column":67}},"5":{"start":{"line":26,"column":2},"end":{"line":26,"column":53}},"6":{"start":{"line":26,"column":36},"end":{"line":26,"column":51}},"7":{"start":{"line":20,"column":0},"end":{"line":27,"column":1}}},"fnMap":{"0":{"name":"forget","decl":{"start":{"line":5,"column":0},"end":{"line":5,"column":22}},"loc":{"start":{"line":5,"column":44},"end":{"line":10,"column":1}}},"1":{"name":"(anonymous_13)","decl":{"start":{"line":6,"column":16},"end":{"line":6,"column":15}},"loc":{"start":{"line":6,"column":17},"end":{"line":9,"column":3}}},"2":{"name":"filterAsync","decl":{"start":{"line":20,"column":0},"end":{"line":21,"column":1}},"loc":{"start":{"line":23,"column":15},"end":{"line":27,"column":1}}},"3":{"name":"(anonymous_17)","decl":{"start":{"line":26,"column":22},"end":{"line":26,"column":22}},"loc":{"start":{"line":26,"column":31},"end":{"line":26,"column":51}}}},"branchMap":{},"s":{"0":1,"1":1,"2":2,"3":4,"4":4,"5":4,"6":10,"7":2},"f":{"0":1,"1":1,"2":4,"3":10},"b":{}} | ||
,"/Users/haza/Projects/raven-js/packages/utils/src/lib/fs.ts": {"path":"/Users/haza/Projects/raven-js/packages/utils/src/lib/fs.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":39}},"2":{"start":{"line":4,"column":14},"end":{"line":4,"column":33}},"3":{"start":{"line":16,"column":2},"end":{"line":24,"column":5}},"4":{"start":{"line":17,"column":4},"end":{"line":23,"column":7}},"5":{"start":{"line":18,"column":6},"end":{"line":22,"column":7}},"6":{"start":{"line":19,"column":8},"end":{"line":19,"column":20}},"7":{"start":{"line":21,"column":8},"end":{"line":21,"column":14}},"8":{"start":{"line":35,"column":8},"end":{"line":35,"column":40}},"9":{"start":{"line":36,"column":8},"end":{"line":36,"column":33}},"10":{"start":{"line":39,"column":4},"end":{"line":39,"column":38}},"11":{"start":{"line":41,"column":10},"end":{"line":41,"column":42}},"12":{"start":{"line":42,"column":8},"end":{"line":42,"column":40}},"13":{"start":{"line":43,"column":6},"end":{"line":43,"column":37}},"14":{"start":{"line":43,"column":6},"end":{"line":43,"column":38}},"15":{"start":{"line":44,"column":6},"end":{"line":44,"column":40}},"16":{"start":{"line":46,"column":6},"end":{"line":52,"column":7}},"17":{"start":{"line":47,"column":8},"end":{"line":49,"column":9}},"18":{"start":{"line":48,"column":10},"end":{"line":48,"column":20}},"19":{"start":{"line":51,"column":8},"end":{"line":51,"column":18}},"20":{"start":{"line":33,"column":0},"end":{"line":55,"column":1}},"21":{"start":{"line":64,"column":15},"end":{"line":64,"column":39}},"22":{"start":{"line":65,"column":19},"end":{"line":65,"column":32}},"23":{"start":{"line":67,"column":2},"end":{"line":83,"column":3}},"24":{"start":{"line":68,"column":4},"end":{"line":68,"column":30}},"25":{"start":{"line":70,"column":18},"end":{"line":70,"column":41}},"26":{"start":{"line":71,"column":4},"end":{"line":82,"column":5}},"27":{"start":{"line":72,"column":6},"end":{"line":72,"column":36}},"28":{"start":{"line":73,"column":6},"end":{"line":73,"column":32}},"29":{"start":{"line":75,"column":6},"end":{"line":81,"column":7}},"30":{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},"31":{"start":{"line":77,"column":10},"end":{"line":77,"column":20}},"32":{"start":{"line":80,"column":8},"end":{"line":80,"column":18}},"33":{"start":{"line":62,"column":0},"end":{"line":84,"column":1}}},"fnMap":{"0":{"name":"mkdirAsync","decl":{"start":{"line":13,"column":0},"end":{"line":13,"column":25}},"loc":{"start":{"line":13,"column":52},"end":{"line":25,"column":1}}},"1":{"name":"(anonymous_15)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":27}},"loc":{"start":{"line":16,"column":39},"end":{"line":24,"column":3}}},"2":{"name":"(anonymous_16)","decl":{"start":{"line":17,"column":22},"end":{"line":17,"column":21}},"loc":{"start":{"line":17,"column":25},"end":{"line":23,"column":5}}},"3":{"name":"mkdirp","decl":{"start":{"line":33,"column":0},"end":{"line":33,"column":28}},"loc":{"start":{"line":33,"column":41},"end":{"line":55,"column":1}}},"4":{"name":"mkdirpSync","decl":{"start":{"line":62,"column":0},"end":{"line":62,"column":26}},"loc":{"start":{"line":62,"column":39},"end":{"line":84,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":6},"end":{"line":22,"column":7}},"type":"if","locations":[{"start":{"line":18,"column":6},"end":{"line":22,"column":7}},{"start":{"line":18,"column":6},"end":{"line":22,"column":7}}]},"1":{"loc":{"start":{"line":42,"column":8},"end":{"line":42,"column":13}},"type":"binary-expr","locations":[{"start":{"line":42,"column":8},"end":{"line":42,"column":13}},{"start":{"line":42,"column":17},"end":{"line":42,"column":40}}]},"2":{"loc":{"start":{"line":47,"column":8},"end":{"line":49,"column":9}},"type":"if","locations":[{"start":{"line":47,"column":8},"end":{"line":49,"column":9}},{"start":{"line":47,"column":8},"end":{"line":49,"column":9}}]},"3":{"loc":{"start":{"line":71,"column":4},"end":{"line":82,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":82,"column":5}},{"start":{"line":71,"column":4},"end":{"line":82,"column":5}}]},"4":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":13}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":13}},{"start":{"line":71,"column":17},"end":{"line":71,"column":40}}]},"5":{"loc":{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},"type":"if","locations":[{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},{"start":{"line":76,"column":8},"end":{"line":78,"column":9}}]}},"s":{"0":3,"1":3,"2":3,"3":0,"4":0,"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":3,"21":5,"22":5,"23":5,"24":5,"25":2,"26":2,"27":1,"28":1,"29":1,"30":1,"31":0,"32":0,"33":3},"f":{"0":0,"1":0,"2":0,"3":0,"4":5},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[1,1],"4":[2,2],"5":[0,1]}} | ||
,"/Users/haza/Projects/raven-js/packages/utils/src/lib/object.ts": {"path":"/Users/haza/Projects/raven-js/packages/utils/src/lib/object.ts","statementMap":{"0":{"start":{"line":13,"column":2},"end":{"line":13,"column":32}},"1":{"start":{"line":11,"column":0},"end":{"line":14,"column":1}},"2":{"start":{"line":25,"column":2},"end":{"line":25,"column":30}},"3":{"start":{"line":23,"column":0},"end":{"line":26,"column":1}},"4":{"start":{"line":40,"column":2},"end":{"line":40,"column":40}},"5":{"start":{"line":39,"column":0},"end":{"line":41,"column":1}}},"fnMap":{"0":{"name":"serialize","decl":{"start":{"line":11,"column":0},"end":{"line":11,"column":28}},"loc":{"start":{"line":11,"column":38},"end":{"line":14,"column":1}}},"1":{"name":"deserialize","decl":{"start":{"line":23,"column":0},"end":{"line":23,"column":30}},"loc":{"start":{"line":23,"column":42},"end":{"line":26,"column":1}}},"2":{"name":"clone","decl":{"start":{"line":39,"column":0},"end":{"line":39,"column":24}},"loc":{"start":{"line":39,"column":34},"end":{"line":41,"column":1}}}},"branchMap":{},"s":{"0":10,"1":2,"2":10,"3":2,"4":5,"5":2},"f":{"0":10,"1":10,"2":5},"b":{}} | ||
,"/Users/haza/Projects/raven-js/packages/utils/src/lib/store.ts": {"path":"/Users/haza/Projects/raven-js/packages/utils/src/lib/store.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":60}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":36}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":33}},"3":{"start":{"line":9,"column":0},"end":{"line":83,"column":0}},"4":{"start":{"line":27,"column":4},"end":{"line":27,"column":41}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":27}},"6":{"start":{"line":29,"column":4},"end":{"line":29,"column":26}},"7":{"start":{"line":36,"column":9},"end":{"line":45,"column":3}},"8":{"start":{"line":36,"column":2},"end":{"line":45,"column":2}},"9":{"start":{"line":37,"column":4},"end":{"line":37,"column":21}},"10":{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},"11":{"start":{"line":40,"column":6},"end":{"line":40,"column":27}},"12":{"start":{"line":41,"column":6},"end":{"line":43,"column":9}},"13":{"start":{"line":42,"column":8},"end":{"line":42,"column":21}},"14":{"start":{"line":51,"column":9},"end":{"line":53,"column":3}},"15":{"start":{"line":52,"column":4},"end":{"line":52,"column":29}},"16":{"start":{"line":62,"column":9},"end":{"line":70,"column":3}},"17":{"start":{"line":63,"column":4},"end":{"line":67,"column":5}},"18":{"start":{"line":64,"column":6},"end":{"line":66,"column":23}},"19":{"start":{"line":69,"column":4},"end":{"line":69,"column":21}},"20":{"start":{"line":73,"column":9},"end":{"line":75,"column":3}},"21":{"start":{"line":74,"column":4},"end":{"line":74,"column":27}},"22":{"start":{"line":78,"column":10},"end":{"line":82,"column":3}},"23":{"start":{"line":79,"column":4},"end":{"line":79,"column":35}},"24":{"start":{"line":80,"column":4},"end":{"line":80,"column":56}},"25":{"start":{"line":81,"column":4},"end":{"line":81,"column":26}},"26":{"start":{"line":83,"column":0},"end":{"line":83,"column":1}},"27":{"start":{"line":9,"column":13},"end":{"line":9,"column":18}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":0},"end":{"line":null,"column":-1}},"loc":{"start":{"line":9,"column":0},"end":{"line":9,"column":-1}}},"1":{"name":"Store","decl":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"loc":{"start":{"line":26,"column":57},"end":{"line":30,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":36,"column":2},"end":{"line":36,"column":12}},"loc":{"start":{"line":36,"column":20},"end":{"line":45,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":41,"column":19},"end":{"line":null,"column":-1}},"loc":{"start":{"line":41,"column":19},"end":{"line":43,"column":7}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":51,"column":2},"end":{"line":51,"column":15}},"loc":{"start":{"line":51,"column":37},"end":{"line":53,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":62,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":62,"column":2},"end":{"line":70,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":73,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":73,"column":2},"end":{"line":75,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":78,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":78,"column":2},"end":{"line":82,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":44,"column":5}},{"start":{"line":39,"column":4},"end":{"line":44,"column":5}}]},"1":{"loc":{"start":{"line":63,"column":4},"end":{"line":67,"column":5}},"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":67,"column":5}},{"start":{"line":63,"column":4},"end":{"line":67,"column":5}}]},"2":{"loc":{"start":{"line":65,"column":11},"end":{"line":65,"column":60}},"type":"cond-expr","locations":[{"start":{"line":65,"column":11},"end":{"line":65,"column":60}},{"start":{"line":66,"column":10},"end":{"line":66,"column":22}}]}},"s":{"0":3,"1":3,"2":3,"3":3,"4":6,"5":6,"6":6,"7":3,"8":6,"9":6,"10":6,"11":4,"12":4,"13":4,"14":3,"15":4,"16":3,"17":10,"18":4,"19":10,"20":3,"21":1,"22":3,"23":4,"24":4,"25":4,"26":3,"27":3},"f":{"0":3,"1":6,"2":6,"3":4,"4":4,"5":10,"6":1,"7":4},"b":{"0":[4,2],"1":[4,6],"2":[0,4]}} | ||
} |
export * from './lib/async'; | ||
export * from './lib/fs'; | ||
export * from './lib/object'; | ||
export * from './lib/store'; |
@@ -8,3 +8,4 @@ "use strict"; | ||
__export(require("./lib/fs")); | ||
__export(require("./lib/object")); | ||
__export(require("./lib/store")); | ||
//# sourceMappingURL=index.js.map |
@@ -6,1 +6,10 @@ /** | ||
export declare function forget(promise: Promise<any>): void; | ||
/** | ||
* Helper to filter an array with asynchronous callbacks. | ||
* | ||
* @param array An array containing items to filter. | ||
* @param predicate An async predicate evaluated on every item. | ||
* @param thisArg Optional value passed as "this" into the callback. | ||
* @returns An array containing only values where the callback returned true. | ||
*/ | ||
export declare function filterAsync<T>(array: T[], predicate: (item: T) => Promise<boolean> | boolean, thisArg?: any): Promise<T[]>; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [0, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -14,2 +49,24 @@ /** | ||
exports.forget = forget; | ||
/** | ||
* Helper to filter an array with asynchronous callbacks. | ||
* | ||
* @param array An array containing items to filter. | ||
* @param predicate An async predicate evaluated on every item. | ||
* @param thisArg Optional value passed as "this" into the callback. | ||
* @returns An array containing only values where the callback returned true. | ||
*/ | ||
function filterAsync(array, predicate, thisArg) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var verdicts; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, Promise.all(array.map(predicate, thisArg))]; | ||
case 1: | ||
verdicts = _a.sent(); | ||
return [2 /*return*/, array.filter(function (_, index) { return verdicts[index]; })]; | ||
} | ||
}); | ||
}); | ||
} | ||
exports.filterAsync = filterAsync; | ||
//# sourceMappingURL=async.js.map |
{ | ||
"name": "@sentry/utils", | ||
"version": "0.4.0-beta.5", | ||
"version": "0.4.0-beta.6", | ||
"description": "Utilities for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/getsentry/raven-js", |
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
388653
47
1313