@picgo/store
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,10 @@ | ||
## :tada: 1.0.1 (2021-07-31) | ||
### :sparkles: Features | ||
* find with key to improve performance ([e6b93a6](https://github.com/Molunerfinn/typescript-node-template/commit/e6b93a6)) | ||
# :tada: 1.0.0 (2021-07-31) | ||
@@ -2,0 +11,0 @@ |
@@ -1,6 +0,6 @@ | ||
{"/home/runner/work/store/store/src/DBStore.ts": {"path":"/home/runner/work/store/store/src/DBStore.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":52}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":55}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":57}},"4":{"start":{"line":11,"column":4},"end":{"line":13,"column":null}},"5":{"start":{"line":12,"column":6},"end":{"line":12,"column":null}},"6":{"start":{"line":14,"column":4},"end":{"line":14,"column":null}},"7":{"start":{"line":15,"column":4},"end":{"line":15,"column":null}},"8":{"start":{"line":16,"column":20},"end":{"line":16,"column":59}},"9":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"10":{"start":{"line":21,"column":4},"end":{"line":21,"column":null}},"11":{"start":{"line":25,"column":4},"end":{"line":25,"column":null}},"12":{"start":{"line":30,"column":16},"end":{"line":30,"column":39}},"13":{"start":{"line":32,"column":23},"end":{"line":32,"column":67}},"14":{"start":{"line":34,"column":19},"end":{"line":36,"column":14}},"15":{"start":{"line":37,"column":4},"end":{"line":40,"column":null}},"16":{"start":{"line":38,"column":6},"end":{"line":38,"column":null}},"17":{"start":{"line":39,"column":6},"end":{"line":39,"column":null}},"18":{"start":{"line":42,"column":4},"end":{"line":42,"column":null}},"19":{"start":{"line":43,"column":4},"end":{"line":43,"column":null}},"20":{"start":{"line":44,"column":4},"end":{"line":44,"column":null}},"21":{"start":{"line":49,"column":4},"end":{"line":51,"column":null}},"22":{"start":{"line":50,"column":6},"end":{"line":50,"column":null}},"23":{"start":{"line":52,"column":4},"end":{"line":52,"column":null}},"24":{"start":{"line":57,"column":23},"end":{"line":57,"column":67}},"25":{"start":{"line":59,"column":19},"end":{"line":61,"column":14}},"26":{"start":{"line":62,"column":4},"end":{"line":68,"column":null}},"27":{"start":{"line":64,"column":6},"end":{"line":64,"column":null}},"28":{"start":{"line":65,"column":6},"end":{"line":65,"column":null}},"29":{"start":{"line":67,"column":6},"end":{"line":67,"column":null}},"30":{"start":{"line":72,"column":4},"end":{"line":76,"column":null}},"31":{"start":{"line":80,"column":23},"end":{"line":80,"column":67}},"32":{"start":{"line":82,"column":4},"end":{"line":82,"column":null}},"33":{"start":{"line":83,"column":4},"end":{"line":83,"column":null}},"34":{"start":{"line":29,"column":2},"end":{"line":45,"column":null}},"35":{"start":{"line":48,"column":2},"end":{"line":53,"column":null}},"36":{"start":{"line":56,"column":2},"end":{"line":69,"column":null}},"37":{"start":{"line":88,"column":2},"end":{"line":88,"column":9}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":2},"end":{"line":9,"column":15}},"loc":{"start":{"line":9,"column":53},"end":{"line":18,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":20,"column":2},"end":{"line":20,"column":7}},"loc":{"start":{"line":20,"column":12},"end":{"line":22,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":24,"column":2},"end":{"line":24,"column":7}},"loc":{"start":{"line":24,"column":11},"end":{"line":26,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":29,"column":2},"end":{"line":29,"column":7}},"loc":{"start":{"line":29,"column":27},"end":{"line":45,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":48,"column":2},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":33},"end":{"line":53,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":56,"column":2},"end":{"line":56,"column":7}},"loc":{"start":{"line":56,"column":46},"end":{"line":69,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":2},"end":{"line":71,"column":7}},"loc":{"start":{"line":71,"column":30},"end":{"line":77,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":79,"column":2},"end":{"line":79,"column":7}},"loc":{"start":{"line":79,"column":30},"end":{"line":84,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":4},"end":{"line":13,"column":null}},"type":"if","locations":[{"start":{"line":11,"column":4},"end":{"line":13,"column":null}},{"start":{"line":11,"column":4},"end":{"line":13,"column":null}}]},"1":{"loc":{"start":{"line":11,"column":8},"end":{"line":11,"column":15}},"type":"binary-expr","locations":[{"start":{"line":11,"column":8},"end":{"line":11,"column":15}},{"start":{"line":11,"column":19},"end":{"line":11,"column":34}}]},"2":{"loc":{"start":{"line":37,"column":4},"end":{"line":40,"column":null}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":40,"column":null}},{"start":{"line":37,"column":4},"end":{"line":40,"column":null}}]},"3":{"loc":{"start":{"line":62,"column":4},"end":{"line":68,"column":null}},"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":68,"column":null}},{"start":{"line":62,"column":4},"end":{"line":68,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":10,"5":2,"6":8,"7":8,"8":8,"9":8,"10":22,"11":3,"12":6,"13":6,"14":6,"15":6,"16":1,"17":1,"18":5,"19":5,"20":5,"21":1,"22":2,"23":1,"24":3,"25":3,"26":3,"27":2,"28":2,"29":1,"30":3,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1},"f":{"0":10,"1":22,"2":3,"3":6,"4":1,"5":3,"6":3,"7":1},"b":{"0":[2,8],"1":[10,9],"2":[1,5],"3":[2,1]}} | ||
{"/home/runner/work/store/store/src/DBStore.ts": {"path":"/home/runner/work/store/store/src/DBStore.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":52}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":55}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":57}},"4":{"start":{"line":9,"column":10},"end":{"line":9,"column":null}},"5":{"start":{"line":12,"column":4},"end":{"line":14,"column":null}},"6":{"start":{"line":13,"column":6},"end":{"line":13,"column":null}},"7":{"start":{"line":15,"column":4},"end":{"line":15,"column":null}},"8":{"start":{"line":16,"column":4},"end":{"line":16,"column":null}},"9":{"start":{"line":17,"column":20},"end":{"line":17,"column":59}},"10":{"start":{"line":18,"column":4},"end":{"line":18,"column":null}},"11":{"start":{"line":22,"column":4},"end":{"line":24,"column":null}},"12":{"start":{"line":23,"column":6},"end":{"line":23,"column":null}},"13":{"start":{"line":25,"column":4},"end":{"line":25,"column":null}},"14":{"start":{"line":29,"column":4},"end":{"line":29,"column":null}},"15":{"start":{"line":34,"column":16},"end":{"line":34,"column":39}},"16":{"start":{"line":36,"column":19},"end":{"line":36,"column":81}},"17":{"start":{"line":38,"column":4},"end":{"line":41,"column":null}},"18":{"start":{"line":39,"column":6},"end":{"line":39,"column":null}},"19":{"start":{"line":40,"column":6},"end":{"line":40,"column":null}},"20":{"start":{"line":42,"column":23},"end":{"line":42,"column":67}},"21":{"start":{"line":44,"column":4},"end":{"line":44,"column":null}},"22":{"start":{"line":45,"column":4},"end":{"line":45,"column":null}},"23":{"start":{"line":46,"column":4},"end":{"line":46,"column":null}},"24":{"start":{"line":51,"column":4},"end":{"line":53,"column":null}},"25":{"start":{"line":52,"column":6},"end":{"line":52,"column":null}},"26":{"start":{"line":54,"column":4},"end":{"line":54,"column":null}},"27":{"start":{"line":59,"column":23},"end":{"line":59,"column":67}},"28":{"start":{"line":60,"column":19},"end":{"line":60,"column":81}},"29":{"start":{"line":61,"column":4},"end":{"line":67,"column":null}},"30":{"start":{"line":63,"column":6},"end":{"line":63,"column":null}},"31":{"start":{"line":64,"column":6},"end":{"line":64,"column":null}},"32":{"start":{"line":66,"column":6},"end":{"line":66,"column":null}},"33":{"start":{"line":71,"column":4},"end":{"line":75,"column":null}},"34":{"start":{"line":79,"column":23},"end":{"line":79,"column":67}},"35":{"start":{"line":81,"column":4},"end":{"line":81,"column":null}},"36":{"start":{"line":82,"column":4},"end":{"line":82,"column":null}},"37":{"start":{"line":33,"column":2},"end":{"line":47,"column":null}},"38":{"start":{"line":50,"column":2},"end":{"line":55,"column":null}},"39":{"start":{"line":58,"column":2},"end":{"line":68,"column":null}},"40":{"start":{"line":87,"column":2},"end":{"line":87,"column":9}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":2},"end":{"line":10,"column":15}},"loc":{"start":{"line":10,"column":53},"end":{"line":19,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":21,"column":2},"end":{"line":21,"column":7}},"loc":{"start":{"line":21,"column":27},"end":{"line":26,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":28,"column":2},"end":{"line":28,"column":7}},"loc":{"start":{"line":28,"column":11},"end":{"line":30,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":33,"column":2},"end":{"line":33,"column":7}},"loc":{"start":{"line":33,"column":27},"end":{"line":47,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":50,"column":2},"end":{"line":50,"column":7}},"loc":{"start":{"line":50,"column":33},"end":{"line":55,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":2},"end":{"line":58,"column":7}},"loc":{"start":{"line":58,"column":46},"end":{"line":68,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":70,"column":2},"end":{"line":70,"column":7}},"loc":{"start":{"line":70,"column":30},"end":{"line":76,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":78,"column":2},"end":{"line":78,"column":7}},"loc":{"start":{"line":78,"column":30},"end":{"line":83,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":4},"end":{"line":14,"column":null}},"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":14,"column":null}},{"start":{"line":12,"column":4},"end":{"line":14,"column":null}}]},"1":{"loc":{"start":{"line":12,"column":8},"end":{"line":12,"column":15}},"type":"binary-expr","locations":[{"start":{"line":12,"column":8},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":34}}]},"2":{"loc":{"start":{"line":21,"column":22},"end":{"line":21,"column":27}},"type":"default-arg","locations":[{"start":{"line":21,"column":22},"end":{"line":21,"column":27}}]},"3":{"loc":{"start":{"line":22,"column":4},"end":{"line":24,"column":null}},"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":24,"column":null}},{"start":{"line":22,"column":4},"end":{"line":24,"column":null}}]},"4":{"loc":{"start":{"line":22,"column":8},"end":{"line":22,"column":13}},"type":"binary-expr","locations":[{"start":{"line":22,"column":8},"end":{"line":22,"column":13}},{"start":{"line":22,"column":17},"end":{"line":22,"column":30}}]},"5":{"loc":{"start":{"line":38,"column":4},"end":{"line":41,"column":null}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":41,"column":null}},{"start":{"line":38,"column":4},"end":{"line":41,"column":null}}]},"6":{"loc":{"start":{"line":61,"column":4},"end":{"line":67,"column":null}},"type":"if","locations":[{"start":{"line":61,"column":4},"end":{"line":67,"column":null}},{"start":{"line":61,"column":4},"end":{"line":67,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":10,"5":10,"6":2,"7":8,"8":8,"9":8,"10":8,"11":30,"12":8,"13":30,"14":3,"15":6,"16":6,"17":6,"18":1,"19":1,"20":5,"21":5,"22":5,"23":5,"24":1,"25":2,"26":1,"27":3,"28":3,"29":3,"30":2,"31":2,"32":1,"33":3,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1},"f":{"0":10,"1":30,"2":3,"3":6,"4":1,"5":3,"6":3,"7":1},"b":{"0":[2,8],"1":[10,9],"2":[30],"3":[8,22],"4":[30,30],"5":[1,5],"6":[2,1]}} | ||
,"/home/runner/work/store/store/src/JSONStore.ts": {"path":"/home/runner/work/store/store/src/JSONStore.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":46}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"3":{"start":{"line":7,"column":4},"end":{"line":9,"column":null}},"4":{"start":{"line":8,"column":6},"end":{"line":8,"column":null}},"5":{"start":{"line":10,"column":20},"end":{"line":15,"column":6}},"6":{"start":{"line":12,"column":8},"end":{"line":12,"column":null}},"7":{"start":{"line":16,"column":4},"end":{"line":16,"column":null}},"8":{"start":{"line":20,"column":4},"end":{"line":20,"column":null}},"9":{"start":{"line":24,"column":4},"end":{"line":24,"column":null}},"10":{"start":{"line":28,"column":4},"end":{"line":28,"column":null}},"11":{"start":{"line":32,"column":4},"end":{"line":32,"column":null}},"12":{"start":{"line":36,"column":4},"end":{"line":36,"column":null}},"13":{"start":{"line":41,"column":2},"end":{"line":41,"column":11}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":2},"end":{"line":6,"column":15}},"loc":{"start":{"line":6,"column":29},"end":{"line":17,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":11,"column":6},"end":{"line":11,"column":15}},"loc":{"start":{"line":11,"column":25},"end":{"line":13,"column":7}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":19,"column":2},"end":{"line":19,"column":6}},"loc":{"start":{"line":19,"column":6},"end":{"line":21,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":23,"column":2},"end":{"line":23,"column":5}},"loc":{"start":{"line":23,"column":15},"end":{"line":25,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":27,"column":2},"end":{"line":27,"column":5}},"loc":{"start":{"line":27,"column":30},"end":{"line":29,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":5}},"loc":{"start":{"line":31,"column":18},"end":{"line":33,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":35,"column":2},"end":{"line":35,"column":7}},"loc":{"start":{"line":35,"column":32},"end":{"line":37,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":4},"end":{"line":9,"column":null}},"type":"if","locations":[{"start":{"line":7,"column":4},"end":{"line":9,"column":null}},{"start":{"line":7,"column":4},"end":{"line":9,"column":null}}]},"1":{"loc":{"start":{"line":23,"column":13},"end":{"line":23,"column":15}},"type":"default-arg","locations":[{"start":{"line":23,"column":13},"end":{"line":23,"column":15}}]}},"s":{"0":1,"1":1,"2":1,"3":5,"4":1,"5":4,"6":3,"7":4,"8":6,"9":3,"10":1,"11":1,"12":1,"13":1},"f":{"0":5,"1":3,"2":6,"3":3,"4":1,"5":1,"6":1},"b":{"0":[1,4],"1":[1]}} | ||
,"/home/runner/work/store/store/src/adapters/ZlibAdapter.ts": {"path":"/home/runner/work/store/store/src/adapters/ZlibAdapter.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":28}},"1":{"start":{"line":4,"column":0},"end":{"line":4,"column":32}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":23}},"3":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"4":{"start":{"line":14,"column":4},"end":{"line":14,"column":null}},"5":{"start":{"line":15,"column":4},"end":{"line":15,"column":null}},"6":{"start":{"line":19,"column":4},"end":{"line":46,"column":null}},"7":{"start":{"line":20,"column":6},"end":{"line":45,"column":null}},"8":{"start":{"line":22,"column":23},"end":{"line":22,"column":42}},"9":{"start":{"line":23,"column":29},"end":{"line":23,"column":31}},"10":{"start":{"line":24,"column":8},"end":{"line":25,"column":null}},"11":{"start":{"line":26,"column":8},"end":{"line":30,"column":null}},"12":{"start":{"line":27,"column":10},"end":{"line":27,"column":null}},"13":{"start":{"line":29,"column":10},"end":{"line":29,"column":null}},"14":{"start":{"line":32,"column":21},"end":{"line":35,"column":10}},"15":{"start":{"line":36,"column":8},"end":{"line":44,"column":null}},"16":{"start":{"line":39,"column":10},"end":{"line":39,"column":null}},"17":{"start":{"line":40,"column":10},"end":{"line":43,"column":null}},"18":{"start":{"line":50,"column":4},"end":{"line":58,"column":null}},"19":{"start":{"line":51,"column":6},"end":{"line":51,"column":null}},"20":{"start":{"line":52,"column":6},"end":{"line":57,"column":null}},"21":{"start":{"line":55,"column":8},"end":{"line":55,"column":null}},"22":{"start":{"line":56,"column":8},"end":{"line":56,"column":null}},"23":{"start":{"line":63,"column":2},"end":{"line":63,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":13,"column":2},"end":{"line":13,"column":15}},"loc":{"start":{"line":13,"column":53},"end":{"line":16,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":2},"end":{"line":18,"column":7}},"loc":{"start":{"line":18,"column":12},"end":{"line":47,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":19,"column":23},"end":{"line":19,"column":24}},"loc":{"start":{"line":19,"column":43},"end":{"line":46,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":26,"column":26},"end":{"line":26,"column":27}},"loc":{"start":{"line":26,"column":43},"end":{"line":28,"column":9}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":28,"column":21},"end":{"line":28,"column":24}},"loc":{"start":{"line":28,"column":26},"end":{"line":30,"column":9}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":36,"column":24},"end":{"line":36,"column":29}},"loc":{"start":{"line":36,"column":61},"end":{"line":44,"column":9}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":49,"column":2},"end":{"line":49,"column":7}},"loc":{"start":{"line":49,"column":24},"end":{"line":59,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":50,"column":23},"end":{"line":50,"column":24}},"loc":{"start":{"line":50,"column":43},"end":{"line":58,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":52,"column":22},"end":{"line":52,"column":27}},"loc":{"start":{"line":52,"column":59},"end":{"line":57,"column":7}}}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":6},"end":{"line":45,"column":null}},"type":"if","locations":[{"start":{"line":20,"column":6},"end":{"line":45,"column":null}},{"start":{"line":20,"column":6},"end":{"line":45,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":8,"5":8,"6":30,"7":30,"8":29,"9":29,"10":29,"11":29,"12":29,"13":29,"14":1,"15":1,"16":1,"17":1,"18":14,"19":14,"20":14,"21":14,"22":14,"23":1},"f":{"0":8,"1":30,"2":30,"3":29,"4":29,"5":1,"6":14,"7":14,"8":14},"b":{"0":[29,1]}} | ||
,"/home/runner/work/store/store/src/adapters/ZlibAdapter.ts": {"path":"/home/runner/work/store/store/src/adapters/ZlibAdapter.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":28}},"1":{"start":{"line":4,"column":0},"end":{"line":4,"column":32}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":23}},"3":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"4":{"start":{"line":14,"column":4},"end":{"line":14,"column":null}},"5":{"start":{"line":15,"column":4},"end":{"line":15,"column":null}},"6":{"start":{"line":19,"column":4},"end":{"line":46,"column":null}},"7":{"start":{"line":20,"column":6},"end":{"line":45,"column":null}},"8":{"start":{"line":22,"column":23},"end":{"line":22,"column":42}},"9":{"start":{"line":23,"column":29},"end":{"line":23,"column":31}},"10":{"start":{"line":24,"column":8},"end":{"line":25,"column":null}},"11":{"start":{"line":26,"column":8},"end":{"line":30,"column":null}},"12":{"start":{"line":27,"column":10},"end":{"line":27,"column":null}},"13":{"start":{"line":29,"column":10},"end":{"line":29,"column":null}},"14":{"start":{"line":32,"column":21},"end":{"line":35,"column":10}},"15":{"start":{"line":36,"column":8},"end":{"line":44,"column":null}},"16":{"start":{"line":39,"column":10},"end":{"line":39,"column":null}},"17":{"start":{"line":40,"column":10},"end":{"line":43,"column":null}},"18":{"start":{"line":50,"column":4},"end":{"line":58,"column":null}},"19":{"start":{"line":51,"column":6},"end":{"line":51,"column":null}},"20":{"start":{"line":52,"column":6},"end":{"line":57,"column":null}},"21":{"start":{"line":55,"column":8},"end":{"line":55,"column":null}},"22":{"start":{"line":56,"column":8},"end":{"line":56,"column":null}},"23":{"start":{"line":63,"column":2},"end":{"line":63,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":13,"column":2},"end":{"line":13,"column":15}},"loc":{"start":{"line":13,"column":53},"end":{"line":16,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":2},"end":{"line":18,"column":7}},"loc":{"start":{"line":18,"column":12},"end":{"line":47,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":19,"column":23},"end":{"line":19,"column":24}},"loc":{"start":{"line":19,"column":43},"end":{"line":46,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":26,"column":26},"end":{"line":26,"column":27}},"loc":{"start":{"line":26,"column":43},"end":{"line":28,"column":9}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":28,"column":21},"end":{"line":28,"column":24}},"loc":{"start":{"line":28,"column":26},"end":{"line":30,"column":9}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":36,"column":24},"end":{"line":36,"column":29}},"loc":{"start":{"line":36,"column":61},"end":{"line":44,"column":9}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":49,"column":2},"end":{"line":49,"column":7}},"loc":{"start":{"line":49,"column":24},"end":{"line":59,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":50,"column":23},"end":{"line":50,"column":24}},"loc":{"start":{"line":50,"column":43},"end":{"line":58,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":52,"column":22},"end":{"line":52,"column":27}},"loc":{"start":{"line":52,"column":59},"end":{"line":57,"column":7}}}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":6},"end":{"line":45,"column":null}},"type":"if","locations":[{"start":{"line":20,"column":6},"end":{"line":45,"column":null}},{"start":{"line":20,"column":6},"end":{"line":45,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":8,"5":8,"6":16,"7":16,"8":15,"9":15,"10":15,"11":15,"12":15,"13":15,"14":1,"15":1,"16":1,"17":1,"18":14,"19":14,"20":14,"21":14,"22":14,"23":1},"f":{"0":8,"1":16,"2":16,"3":15,"4":15,"5":1,"6":14,"7":14,"8":14},"b":{"0":[15,1]}} | ||
,"/home/runner/work/store/store/src/types/index.ts": {"path":"/home/runner/work/store/store/src/types/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":null}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":null}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":null}},"4":{"start":{"line":5,"column":2},"end":{"line":5,"column":null}},"5":{"start":{"line":15,"column":0},"end":{"line":15,"column":null}},"6":{"start":{"line":16,"column":2},"end":{"line":16,"column":null}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}},"loc":{"start":{"line":1,"column":21},"end":{"line":6,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":0},"end":{"line":15,"column":12}},"loc":{"start":{"line":15,"column":25},"end":{"line":18,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":21}},"type":"binary-expr","locations":[{"start":{"line":1,"column":12},"end":{"line":1,"column":21}},{"start":{"line":1,"column":12},"end":{"line":1,"column":null}}]},"1":{"loc":{"start":{"line":15,"column":12},"end":{"line":15,"column":25}},"type":"binary-expr","locations":[{"start":{"line":15,"column":12},"end":{"line":15,"column":25}},{"start":{"line":15,"column":12},"end":{"line":15,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1,"1":1},"b":{"0":[1,1],"1":[1,1]}} | ||
,"/home/runner/work/store/store/src/utils/metaInfoHelper.ts": {"path":"/home/runner/work/store/store/src/utils/metaInfoHelper.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":62}},"1":{"start":{"line":4,"column":2},"end":{"line":23,"column":null}},"2":{"start":{"line":5,"column":19},"end":{"line":5,"column":35}},"3":{"start":{"line":6,"column":4},"end":{"line":22,"column":null}},"4":{"start":{"line":7,"column":25},"end":{"line":7,"column":30}},"5":{"start":{"line":8,"column":6},"end":{"line":19,"column":null}},"6":{"start":{"line":9,"column":8},"end":{"line":12,"column":null}},"7":{"start":{"line":10,"column":10},"end":{"line":10,"column":null}},"8":{"start":{"line":11,"column":10},"end":{"line":11,"column":null}},"9":{"start":{"line":13,"column":8},"end":{"line":13,"column":null}},"10":{"start":{"line":13,"column":47},"end":{"line":13,"column":70}},"11":{"start":{"line":14,"column":8},"end":{"line":16,"column":null}},"12":{"start":{"line":15,"column":10},"end":{"line":15,"column":null}},"13":{"start":{"line":18,"column":8},"end":{"line":18,"column":null}},"14":{"start":{"line":20,"column":21},"end":{"line":20,"column":53}},"15":{"start":{"line":21,"column":6},"end":{"line":21,"column":null}},"16":{"start":{"line":46,"column":2},"end":{"line":46,"column":16}},"17":{"start":{"line":27,"column":51},"end":{"line":27,"column":170}},"18":{"start":{"line":27,"column":170},"end":{"line":27,"column":179}},"19":{"start":{"line":30,"column":2},"end":{"line":32,"column":null}},"20":{"start":{"line":31,"column":4},"end":{"line":31,"column":null}},"21":{"start":{"line":33,"column":2},"end":{"line":36,"column":null}},"22":{"start":{"line":34,"column":4},"end":{"line":34,"column":null}},"23":{"start":{"line":35,"column":4},"end":{"line":35,"column":null}},"24":{"start":{"line":37,"column":2},"end":{"line":37,"column":null}},"25":{"start":{"line":41,"column":2},"end":{"line":41,"column":null}},"26":{"start":{"line":42,"column":2},"end":{"line":42,"column":null}}},"fnMap":{"0":{"name":"metaInfoHelper","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":23}},"loc":{"start":{"line":3,"column":44},"end":{"line":24,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":4,"column":9},"end":{"line":4,"column":19}},"loc":{"start":{"line":4,"column":82},"end":{"line":23,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":6,"column":23},"end":{"line":6,"column":28}},"loc":{"start":{"line":6,"column":59},"end":{"line":22,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":39},"end":{"line":13,"column":43}},"loc":{"start":{"line":13,"column":47},"end":{"line":13,"column":70}}},"4":{"name":"uuid","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":13}},"loc":{"start":{"line":27,"column":39},"end":{"line":27,"column":180}}},"5":{"name":"metaInfoGenerator","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":26}},"loc":{"start":{"line":29,"column":42},"end":{"line":38,"column":1}}},"6":{"name":"metaInfoUpdater","decl":{"start":{"line":40,"column":9},"end":{"line":40,"column":24}},"loc":{"start":{"line":40,"column":40},"end":{"line":43,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":6},"end":{"line":19,"column":null}},"type":"if","locations":[{"start":{"line":8,"column":6},"end":{"line":19,"column":null}},{"start":{"line":8,"column":6},"end":{"line":19,"column":null}}]},"1":{"loc":{"start":{"line":9,"column":8},"end":{"line":12,"column":null}},"type":"if","locations":[{"start":{"line":9,"column":8},"end":{"line":12,"column":null}},{"start":{"line":9,"column":8},"end":{"line":12,"column":null}}]},"2":{"loc":{"start":{"line":14,"column":8},"end":{"line":16,"column":null}},"type":"if","locations":[{"start":{"line":14,"column":8},"end":{"line":16,"column":null}},{"start":{"line":14,"column":8},"end":{"line":16,"column":null}}]},"3":{"loc":{"start":{"line":27,"column":24},"end":{"line":27,"column":26}},"type":"default-arg","locations":[{"start":{"line":27,"column":24},"end":{"line":27,"column":26}}]},"4":{"loc":{"start":{"line":27,"column":37},"end":{"line":27,"column":39}},"type":"default-arg","locations":[{"start":{"line":27,"column":37},"end":{"line":27,"column":39}}]},"5":{"loc":{"start":{"line":27,"column":97},"end":{"line":27,"column":162}},"type":"cond-expr","locations":[{"start":{"line":27,"column":97},"end":{"line":27,"column":162}},{"start":{"line":27,"column":165},"end":{"line":27,"column":168}}]},"6":{"loc":{"start":{"line":27,"column":107},"end":{"line":27,"column":144}},"type":"cond-expr","locations":[{"start":{"line":27,"column":107},"end":{"line":27,"column":144}},{"start":{"line":27,"column":147},"end":{"line":27,"column":148}}]},"7":{"loc":{"start":{"line":27,"column":137},"end":{"line":27,"column":139}},"type":"cond-expr","locations":[{"start":{"line":27,"column":137},"end":{"line":27,"column":139}},{"start":{"line":27,"column":142},"end":{"line":27,"column":143}}]},"8":{"loc":{"start":{"line":30,"column":2},"end":{"line":32,"column":null}},"type":"if","locations":[{"start":{"line":30,"column":2},"end":{"line":32,"column":null}},{"start":{"line":30,"column":2},"end":{"line":32,"column":null}}]},"9":{"loc":{"start":{"line":33,"column":2},"end":{"line":36,"column":null}},"type":"if","locations":[{"start":{"line":33,"column":2},"end":{"line":36,"column":null}},{"start":{"line":33,"column":2},"end":{"line":36,"column":null}}]}},"s":{"0":1,"1":3,"2":3,"3":3,"4":10,"5":10,"6":7,"7":1,"8":1,"9":7,"10":8,"11":7,"12":1,"13":3,"14":10,"15":10,"16":1,"17":1,"18":1,"19":8,"20":1,"21":8,"22":5,"23":5,"24":8,"25":3,"26":3},"f":{"0":3,"1":3,"2":10,"3":8,"4":1,"5":8,"6":3},"b":{"0":[7,3],"1":[1,6],"2":[1,6],"3":[1],"4":[1],"5":[32,4],"6":[31,1],"7":[30,1],"8":[1,7],"9":[5,3]}} | ||
} |
@@ -7,4 +7,5 @@ import Lowdb from 'lowdb'; | ||
private readonly collectionKey; | ||
private reading; | ||
constructor(dbPath: string, collectionName: string); | ||
read(): Promise<Lowdb.LowdbAsync<any>>; | ||
read(flush?: boolean): Promise<Lowdb.LowdbAsync<any>>; | ||
get(): Promise<IObject[]>; | ||
@@ -11,0 +12,0 @@ insert<T>(value: T): Promise<IResult<T>>; |
@@ -16,3 +16,3 @@ "use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=t(require("lowdb")),i=t(require("graceful-fs")),r=require("util"),a=t(require("zlib")),n=t(require("lowdb/adapters/FileSync")),s=t(require("comment-json")); | ||
***************************************************************************** */ | ||
function o(t,e,i,r){var a,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(n<3?a(s):n>3?a(e,i,s):a(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}const c=r.promisify(i.writeFile);class d{constructor(t,e){this.dbPath=t,this.collectionName=e}async read(){return new Promise((t,e)=>{if(i.existsSync(this.dbPath)){const e=a.createGunzip();let r="";i.createReadStream(this.dbPath).pipe(e),e.on("data",t=>{r+=t.toString()}).on("end",()=>{t(JSON.parse(r))})}else{const i=JSON.stringify({[this.collectionName]:[],[`__${this.collectionName}_KEY__`]:{}});a.gzip(i,async(i,r)=>{if(i)return e(i);await c(this.dbPath,r),t({[this.collectionName]:[],[`__${this.collectionName}_KEY__`]:{}})})}})}async write(t){return new Promise((e,i)=>{t=JSON.stringify(t),a.gzip(t,async(t,r)=>{if(t)return i(t);await c(this.dbPath,r),e()})})}}var l,u;function h(t){return function(e,i,r){const a=r.value;r.value=async function(...e){let i=!1;t===u.create?(Array.isArray(e[0])&&(e=e[0],i=!0),e=e.map(t=>function(t){t.id||(t.id=function(t="",e=""){for(e=t="";t++<36;e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-");return e}());t.createdAt||(t.createdAt=Date.now(),t.updatedAt=Date.now());return t}(t)),i&&(e=[e])):e[1].updatedAt=Date.now();return await a.call(this,...e)}}}!function(t){t.inited="inited",t.loaded="loaded",t.started="started",t.stopped="stopped"}(l||(l={})),function(t){t[t.create=0]="create",t[t.update=1]="update"}(u||(u={}));class p{constructor(t,i){if(!t||!i)throw Error("Please provide valid dbPath or collectionName");this.collectionName=i,this.collectionKey=`__${i}_KEY__`;const r=new d(t,i);this.db=e(r)}async read(){return(await this.db).read()}async get(){return(await this.read()).get(this.collectionName).value()}async insert(t){const e=t.id,i=(await this.read()).get(this.collectionName);return await i.find({id:e}).value()?(await this.updateById(e,t),t):(await i.push(t).write(),await(await this.read()).set(`${this.collectionKey}.${e}`,!0).write(),t)}async insertMany(t){for(const e of t)await this.insert(e);return t}async updateById(t,e){const i=(await this.read()).get(this.collectionName),r=await i.find({id:t}).value();return!!r&&(await i.find({id:t}).assign(r,e,{id:t}).write(),!0)}async getById(t){return(await this.read()).get(this.collectionName).find({id:t}).value()}async removeById(t){const e=(await this.read()).get(this.collectionName);await e.remove({id:t}).write(),await(await this.read()).get(this.collectionKey).unset(t).write()}}o([h(u.create)],p.prototype,"insert",null),o([h(u.create)],p.prototype,"insertMany",null),o([h(u.update)],p.prototype,"updateById",null);exports.DBStore=p,exports.JSONStore=class{constructor(t){if(!t)throw Error("Please provide valid dbPath");const i=new n(t,{serialize:t=>s.stringify(t,null,2),deserialize:s.parse});this.db=e(i)}read(){return this.db.read()}get(t=""){return this.read().get(t).value()}set(t,e){return this.read().set(t,e).write()}has(t){return this.read().has(t).value()}unset(t,e){return this.read().get(t).unset(e).write()}}; | ||
function o(t,e,i,r){var a,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(n<3?a(s):n>3?a(e,i,s):a(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}const c=r.promisify(i.writeFile);class d{constructor(t,e){this.dbPath=t,this.collectionName=e}async read(){return new Promise((t,e)=>{if(i.existsSync(this.dbPath)){const e=a.createGunzip();let r="";i.createReadStream(this.dbPath).pipe(e),e.on("data",t=>{r+=t.toString()}).on("end",()=>{t(JSON.parse(r))})}else{const i=JSON.stringify({[this.collectionName]:[],[`__${this.collectionName}_KEY__`]:{}});a.gzip(i,async(i,r)=>{if(i)return e(i);await c(this.dbPath,r),t({[this.collectionName]:[],[`__${this.collectionName}_KEY__`]:{}})})}})}async write(t){return new Promise((e,i)=>{t=JSON.stringify(t),a.gzip(t,async(t,r)=>{if(t)return i(t);await c(this.dbPath,r),e()})})}}var l,u;function h(t){return function(e,i,r){const a=r.value;r.value=async function(...e){let i=!1;t===u.create?(Array.isArray(e[0])&&(e=e[0],i=!0),e=e.map(t=>function(t){t.id||(t.id=function(t="",e=""){for(e=t="";t++<36;e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-");return e}());t.createdAt||(t.createdAt=Date.now(),t.updatedAt=Date.now());return t}(t)),i&&(e=[e])):e[1].updatedAt=Date.now();return await a.call(this,...e)}}}!function(t){t.inited="inited",t.loaded="loaded",t.started="started",t.stopped="stopped"}(l||(l={})),function(t){t[t.create=0]="create",t[t.update=1]="update"}(u||(u={}));class p{constructor(t,i){if(this.reading=null,!t||!i)throw Error("Please provide valid dbPath or collectionName");this.collectionName=i,this.collectionKey=`__${i}_KEY__`;const r=new d(t,i);this.db=e(r)}async read(t=!1){return!t&&this.reading||(this.reading=(await this.db).read()),this.reading}async get(){return(await this.read()).get(this.collectionName).value()}async insert(t){const e=t.id;if((await this.read()).get(`${this.collectionKey}.${e}`).value())return await this.updateById(e,t),t;const i=(await this.read()).get(this.collectionName);return await i.push(t).write(),await(await this.read()).set(`${this.collectionKey}.${e}`,1).write(),t}async insertMany(t){for(const e of t)await this.insert(e);return t}async updateById(t,e){const i=(await this.read()).get(this.collectionName);return!!(await this.read()).get(`${this.collectionKey}.${t}`).value()&&(await i.find({id:t}).assign(e).write(),!0)}async getById(t){return(await this.read()).get(this.collectionName).find({id:t}).value()}async removeById(t){const e=(await this.read()).get(this.collectionName);await e.remove({id:t}).write(),await(await this.read()).get(this.collectionKey).unset(t).write()}}o([h(u.create)],p.prototype,"insert",null),o([h(u.create)],p.prototype,"insertMany",null),o([h(u.update)],p.prototype,"updateById",null);exports.DBStore=p,exports.JSONStore=class{constructor(t){if(!t)throw Error("Please provide valid dbPath");const i=new n(t,{serialize:t=>s.stringify(t,null,2),deserialize:s.parse});this.db=e(i)}read(){return this.db.read()}get(t=""){return this.read().get(t).value()}set(t,e){return this.read().set(t,e).write()}has(t){return this.read().has(t).value()}unset(t,e){return this.read().get(t).unset(e).write()}}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@picgo/store", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -11,3 +11,3 @@ "main": "dist/index.js", | ||
"lint": "eslint src/**", | ||
"test": "jest --coverage", | ||
"test": "jest --coverage --runInBand", | ||
"cz": "git-cz", | ||
@@ -14,0 +14,0 @@ "release": "bump-version", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148530
730