Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@picgo/store

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@picgo/store - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## :tada: 2.0.3 (2022-08-20)
### :bug: Bug Fixes
* comment-json broken case ([477aaec](https://github.com/Molunerfinn/typescript-node-template/commit/477aaec))
## :tada: 2.0.2 (2022-07-31)

@@ -2,0 +11,0 @@

6

coverage/coverage-final.json

@@ -1,4 +0,4 @@

{"/home/runner/work/store/store/src/DBStore.ts": {"path":"/home/runner/work/store/store/src/DBStore.ts","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":38}},"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":52}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":55}},"3":{"start":{"line":7,"column":0},"end":{"line":7,"column":104}},"4":{"start":{"line":13,"column":10},"end":{"line":13,"column":null}},"5":{"start":{"line":14,"column":9},"end":{"line":14,"column":null}},"6":{"start":{"line":18,"column":4},"end":{"line":20,"column":null}},"7":{"start":{"line":19,"column":6},"end":{"line":19,"column":null}},"8":{"start":{"line":21,"column":4},"end":{"line":21,"column":null}},"9":{"start":{"line":22,"column":4},"end":{"line":22,"column":null}},"10":{"start":{"line":23,"column":4},"end":{"line":23,"column":null}},"11":{"start":{"line":24,"column":4},"end":{"line":24,"column":null}},"12":{"start":{"line":28,"column":4},"end":{"line":28,"column":null}},"13":{"start":{"line":32,"column":4},"end":{"line":35,"column":null}},"14":{"start":{"line":33,"column":6},"end":{"line":33,"column":null}},"15":{"start":{"line":34,"column":6},"end":{"line":34,"column":null}},"16":{"start":{"line":36,"column":4},"end":{"line":36,"column":null}},"17":{"start":{"line":40,"column":40},"end":{"line":40,"column":76}},"18":{"start":{"line":41,"column":18},"end":{"line":41,"column":29}},"19":{"start":{"line":42,"column":4},"end":{"line":52,"column":null}},"20":{"start":{"line":43,"column":6},"end":{"line":45,"column":null}},"21":{"start":{"line":44,"column":8},"end":{"line":44,"column":null}},"22":{"start":{"line":46,"column":6},"end":{"line":48,"column":null}},"23":{"start":{"line":47,"column":8},"end":{"line":47,"column":null}},"24":{"start":{"line":49,"column":6},"end":{"line":51,"column":null}},"25":{"start":{"line":50,"column":8},"end":{"line":50,"column":null}},"26":{"start":{"line":53,"column":4},"end":{"line":56,"column":null}},"27":{"start":{"line":60,"column":4},"end":{"line":60,"column":null}},"28":{"start":{"line":64,"column":4},"end":{"line":64,"column":null}},"29":{"start":{"line":68,"column":4},"end":{"line":68,"column":null}},"30":{"start":{"line":72,"column":4},"end":{"line":72,"column":null}},"31":{"start":{"line":73,"column":17},"end":{"line":73,"column":30}},"32":{"start":{"line":74,"column":29},"end":{"line":74,"column":71}},"33":{"start":{"line":75,"column":4},"end":{"line":75,"column":null}},"34":{"start":{"line":80,"column":16},"end":{"line":80,"column":39}},"35":{"start":{"line":81,"column":19},"end":{"line":81,"column":50}},"36":{"start":{"line":83,"column":4},"end":{"line":86,"column":null}},"37":{"start":{"line":84,"column":6},"end":{"line":84,"column":null}},"38":{"start":{"line":85,"column":6},"end":{"line":85,"column":null}},"39":{"start":{"line":87,"column":4},"end":{"line":87,"column":null}},"40":{"start":{"line":88,"column":4},"end":{"line":88,"column":null}},"41":{"start":{"line":89,"column":4},"end":{"line":91,"column":null}},"42":{"start":{"line":90,"column":6},"end":{"line":90,"column":null}},"43":{"start":{"line":92,"column":4},"end":{"line":92,"column":null}},"44":{"start":{"line":97,"column":4},"end":{"line":99,"column":null}},"45":{"start":{"line":98,"column":6},"end":{"line":98,"column":null}},"46":{"start":{"line":100,"column":4},"end":{"line":100,"column":null}},"47":{"start":{"line":101,"column":4},"end":{"line":101,"column":null}},"48":{"start":{"line":106,"column":23},"end":{"line":106,"column":49}},"49":{"start":{"line":107,"column":19},"end":{"line":107,"column":50}},"50":{"start":{"line":108,"column":4},"end":{"line":115,"column":null}},"51":{"start":{"line":109,"column":19},"end":{"line":109,"column":58}},"52":{"start":{"line":109,"column":43},"end":{"line":109,"column":57}},"53":{"start":{"line":110,"column":6},"end":{"line":110,"column":null}},"54":{"start":{"line":111,"column":6},"end":{"line":111,"column":null}},"55":{"start":{"line":112,"column":6},"end":{"line":112,"column":null}},"56":{"start":{"line":114,"column":6},"end":{"line":114,"column":null}},"57":{"start":{"line":119,"column":4},"end":{"line":119,"column":null}},"58":{"start":{"line":119,"column":53},"end":{"line":119,"column":67}},"59":{"start":{"line":123,"column":23},"end":{"line":123,"column":49}},"60":{"start":{"line":124,"column":29},"end":{"line":124,"column":61}},"61":{"start":{"line":125,"column":18},"end":{"line":125,"column":62}},"62":{"start":{"line":125,"column":47},"end":{"line":125,"column":61}},"63":{"start":{"line":126,"column":4},"end":{"line":130,"column":null}},"64":{"start":{"line":127,"column":6},"end":{"line":127,"column":null}},"65":{"start":{"line":128,"column":6},"end":{"line":128,"column":null}},"66":{"start":{"line":129,"column":6},"end":{"line":129,"column":null}},"67":{"start":{"line":134,"column":4},"end":{"line":134,"column":22}},"68":{"start":{"line":135,"column":5},"end":{"line":135,"column":57}},"69":{"start":{"line":136,"column":5},"end":{"line":136,"column":null}},"70":{"start":{"line":137,"column":4},"end":{"line":137,"column":null}},"71":{"start":{"line":79,"column":2},"end":{"line":93,"column":null}},"72":{"start":{"line":96,"column":2},"end":{"line":102,"column":null}},"73":{"start":{"line":105,"column":2},"end":{"line":116,"column":null}},"74":{"start":{"line":142,"column":2},"end":{"line":142,"column":9}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":2},"end":{"line":16,"column":15}},"loc":{"start":{"line":16,"column":53},"end":{"line":25,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":27,"column":2},"end":{"line":27,"column":12}},"loc":{"start":{"line":27,"column":12},"end":{"line":29,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":7}},"loc":{"start":{"line":31,"column":27},"end":{"line":37,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":39,"column":2},"end":{"line":39,"column":7}},"loc":{"start":{"line":39,"column":29},"end":{"line":57,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":59,"column":10},"end":{"line":59,"column":15}},"loc":{"start":{"line":59,"column":29},"end":{"line":61,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":10},"end":{"line":63,"column":15}},"loc":{"start":{"line":63,"column":44},"end":{"line":65,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":10},"end":{"line":67,"column":15}},"loc":{"start":{"line":67,"column":35},"end":{"line":69,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":71,"column":10},"end":{"line":71,"column":15}},"loc":{"start":{"line":71,"column":44},"end":{"line":76,"column":3}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":79,"column":2},"end":{"line":79,"column":7}},"loc":{"start":{"line":79,"column":44},"end":{"line":93,"column":3}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":2},"end":{"line":96,"column":7}},"loc":{"start":{"line":96,"column":33},"end":{"line":102,"column":3}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":105,"column":2},"end":{"line":105,"column":7}},"loc":{"start":{"line":105,"column":46},"end":{"line":116,"column":3}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":109,"column":35},"end":{"line":109,"column":39}},"loc":{"start":{"line":109,"column":43},"end":{"line":109,"column":57}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":118,"column":2},"end":{"line":118,"column":7}},"loc":{"start":{"line":118,"column":30},"end":{"line":120,"column":3}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":119,"column":45},"end":{"line":119,"column":49}},"loc":{"start":{"line":119,"column":53},"end":{"line":119,"column":67}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":122,"column":2},"end":{"line":122,"column":7}},"loc":{"start":{"line":122,"column":30},"end":{"line":131,"column":3}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":125,"column":39},"end":{"line":125,"column":43}},"loc":{"start":{"line":125,"column":47},"end":{"line":125,"column":61}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":133,"column":2},"end":{"line":133,"column":7}},"loc":{"start":{"line":133,"column":32},"end":{"line":138,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":4},"end":{"line":20,"column":null}},"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":20,"column":null}},{"start":{"line":18,"column":4},"end":{"line":20,"column":null}}]},"1":{"loc":{"start":{"line":18,"column":8},"end":{"line":18,"column":15}},"type":"binary-expr","locations":[{"start":{"line":18,"column":8},"end":{"line":18,"column":15}},{"start":{"line":18,"column":19},"end":{"line":18,"column":34}}]},"2":{"loc":{"start":{"line":31,"column":22},"end":{"line":31,"column":27}},"type":"default-arg","locations":[{"start":{"line":31,"column":22},"end":{"line":31,"column":27}}]},"3":{"loc":{"start":{"line":32,"column":4},"end":{"line":35,"column":null}},"type":"if","locations":[{"start":{"line":32,"column":4},"end":{"line":35,"column":null}},{"start":{"line":32,"column":4},"end":{"line":35,"column":null}}]},"4":{"loc":{"start":{"line":32,"column":8},"end":{"line":32,"column":13}},"type":"binary-expr","locations":[{"start":{"line":32,"column":8},"end":{"line":32,"column":13}},{"start":{"line":32,"column":17},"end":{"line":32,"column":30}}]},"5":{"loc":{"start":{"line":42,"column":4},"end":{"line":52,"column":null}},"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":52,"column":null}},{"start":{"line":42,"column":4},"end":{"line":52,"column":null}}]},"6":{"loc":{"start":{"line":43,"column":6},"end":{"line":45,"column":null}},"type":"if","locations":[{"start":{"line":43,"column":6},"end":{"line":45,"column":null}},{"start":{"line":43,"column":6},"end":{"line":45,"column":null}}]},"7":{"loc":{"start":{"line":46,"column":6},"end":{"line":48,"column":null}},"type":"if","locations":[{"start":{"line":46,"column":6},"end":{"line":48,"column":null}},{"start":{"line":46,"column":6},"end":{"line":48,"column":null}}]},"8":{"loc":{"start":{"line":46,"column":10},"end":{"line":46,"column":43}},"type":"binary-expr","locations":[{"start":{"line":46,"column":10},"end":{"line":46,"column":43}},{"start":{"line":46,"column":47},"end":{"line":46,"column":65}}]},"9":{"loc":{"start":{"line":49,"column":6},"end":{"line":51,"column":null}},"type":"if","locations":[{"start":{"line":49,"column":6},"end":{"line":51,"column":null}},{"start":{"line":49,"column":6},"end":{"line":51,"column":null}}]},"10":{"loc":{"start":{"line":49,"column":10},"end":{"line":49,"column":42}},"type":"binary-expr","locations":[{"start":{"line":49,"column":10},"end":{"line":49,"column":42}},{"start":{"line":49,"column":46},"end":{"line":49,"column":62}}]},"11":{"loc":{"start":{"line":60,"column":31},"end":{"line":60,"column":34}},"type":"cond-expr","locations":[{"start":{"line":60,"column":31},"end":{"line":60,"column":34}},{"start":{"line":60,"column":31},"end":{"line":60,"column":82}}]},"12":{"loc":{"start":{"line":60,"column":11},"end":{"line":60,"column":34}},"type":"binary-expr","locations":[{"start":{"line":60,"column":11},"end":{"line":60,"column":34}},{"start":{"line":60,"column":31},"end":{"line":60,"column":34}}]},"13":{"loc":{"start":{"line":68,"column":32},"end":{"line":68,"column":35}},"type":"cond-expr","locations":[{"start":{"line":68,"column":32},"end":{"line":68,"column":35}},{"start":{"line":68,"column":32},"end":{"line":68,"column":74}}]},"14":{"loc":{"start":{"line":68,"column":12},"end":{"line":68,"column":35}},"type":"binary-expr","locations":[{"start":{"line":68,"column":12},"end":{"line":68,"column":35}},{"start":{"line":68,"column":32},"end":{"line":68,"column":35}}]},"15":{"loc":{"start":{"line":79,"column":40},"end":{"line":79,"column":44}},"type":"default-arg","locations":[{"start":{"line":79,"column":40},"end":{"line":79,"column":44}}]},"16":{"loc":{"start":{"line":83,"column":4},"end":{"line":86,"column":null}},"type":"if","locations":[{"start":{"line":83,"column":4},"end":{"line":86,"column":null}},{"start":{"line":83,"column":4},"end":{"line":86,"column":null}}]},"17":{"loc":{"start":{"line":89,"column":4},"end":{"line":91,"column":null}},"type":"if","locations":[{"start":{"line":89,"column":4},"end":{"line":91,"column":null}},{"start":{"line":89,"column":4},"end":{"line":91,"column":null}}]},"18":{"loc":{"start":{"line":108,"column":4},"end":{"line":115,"column":null}},"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":115,"column":null}},{"start":{"line":108,"column":4},"end":{"line":115,"column":null}}]},"19":{"loc":{"start":{"line":126,"column":4},"end":{"line":130,"column":null}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":130,"column":null}},{"start":{"line":126,"column":4},"end":{"line":130,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":18,"5":18,"6":18,"7":2,"8":16,"9":16,"10":16,"11":16,"12":1,"13":56,"14":16,"15":16,"16":56,"17":18,"18":18,"19":18,"20":6,"21":1,"22":6,"23":1,"24":6,"25":1,"26":18,"27":33,"28":12,"29":13,"30":8,"31":8,"32":8,"33":8,"34":9,"35":9,"36":9,"37":1,"38":1,"39":8,"40":8,"41":8,"42":3,"43":8,"44":2,"45":5,"46":2,"47":2,"48":3,"49":3,"50":3,"51":2,"52":5,"53":2,"54":2,"55":2,"56":1,"57":3,"58":4,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1},"f":{"0":18,"1":1,"2":56,"3":18,"4":33,"5":12,"6":13,"7":8,"8":9,"9":2,"10":3,"11":5,"12":3,"13":4,"14":1,"15":1,"16":1},"b":{"0":[2,16],"1":[18,17],"2":[56],"3":[16,40],"4":[56,56],"5":[6,12],"6":[1,5],"7":[1,5],"8":[6,2],"9":[1,5],"10":[6,2],"11":[0,33],"12":[33,33],"13":[0,13],"14":[13,13],"15":[4],"16":[1,8],"17":[3,5],"18":[2,1],"19":[1,0]}}
,"/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":42}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":52}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":27}},"3":{"start":{"line":7,"column":2},"end":{"line":7,"column":null}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":null}},"5":{"start":{"line":13,"column":4},"end":{"line":15,"column":null}},"6":{"start":{"line":14,"column":6},"end":{"line":14,"column":null}},"7":{"start":{"line":16,"column":20},"end":{"line":16,"column":43}},"8":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"9":{"start":{"line":18,"column":4},"end":{"line":18,"column":null}},"10":{"start":{"line":23,"column":4},"end":{"line":26,"column":null}},"11":{"start":{"line":24,"column":6},"end":{"line":24,"column":null}},"12":{"start":{"line":25,"column":6},"end":{"line":25,"column":null}},"13":{"start":{"line":27,"column":4},"end":{"line":27,"column":null}},"14":{"start":{"line":31,"column":4},"end":{"line":31,"column":null}},"15":{"start":{"line":35,"column":4},"end":{"line":35,"column":null}},"16":{"start":{"line":36,"column":4},"end":{"line":36,"column":null}},"17":{"start":{"line":40,"column":4},"end":{"line":40,"column":null}},"18":{"start":{"line":44,"column":16},"end":{"line":44,"column":59}},"19":{"start":{"line":45,"column":4},"end":{"line":45,"column":null}},"20":{"start":{"line":46,"column":4},"end":{"line":46,"column":null}},"21":{"start":{"line":51,"column":2},"end":{"line":51,"column":11}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":0},"end":{"line":6,"column":6}},"loc":{"start":{"line":6,"column":0},"end":{"line":8,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":2},"end":{"line":12,"column":15}},"loc":{"start":{"line":12,"column":29},"end":{"line":19,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":21,"column":2},"end":{"line":21,"column":6}},"loc":{"start":{"line":21,"column":21},"end":{"line":28,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":30,"column":2},"end":{"line":30,"column":5}},"loc":{"start":{"line":30,"column":15},"end":{"line":32,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":34,"column":2},"end":{"line":34,"column":5}},"loc":{"start":{"line":34,"column":30},"end":{"line":37,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":39,"column":2},"end":{"line":39,"column":5}},"loc":{"start":{"line":39,"column":18},"end":{"line":41,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":43,"column":2},"end":{"line":43,"column":7}},"loc":{"start":{"line":43,"column":32},"end":{"line":47,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":4},"end":{"line":15,"column":null}},"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":15,"column":null}},{"start":{"line":13,"column":4},"end":{"line":15,"column":null}}]},"1":{"loc":{"start":{"line":21,"column":16},"end":{"line":21,"column":21}},"type":"default-arg","locations":[{"start":{"line":21,"column":16},"end":{"line":21,"column":21}}]},"2":{"loc":{"start":{"line":23,"column":4},"end":{"line":26,"column":null}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":26,"column":null}}]},"3":{"loc":{"start":{"line":23,"column":8},"end":{"line":23,"column":13}},"type":"binary-expr","locations":[{"start":{"line":23,"column":8},"end":{"line":23,"column":13}},{"start":{"line":23,"column":17},"end":{"line":23,"column":30}}]},"4":{"loc":{"start":{"line":30,"column":13},"end":{"line":30,"column":15}},"type":"default-arg","locations":[{"start":{"line":30,"column":13},"end":{"line":30,"column":15}}]}},"s":{"0":1,"1":1,"2":1,"3":6,"4":7,"5":7,"6":1,"7":6,"8":6,"9":6,"10":8,"11":8,"12":8,"13":8,"14":4,"15":2,"16":2,"17":1,"18":1,"19":1,"20":1,"21":1},"f":{"0":6,"1":7,"2":8,"3":4,"4":2,"5":1,"6":1},"b":{"0":[1,6],"1":[6],"2":[8],"3":[8,6],"4":[1]}}
,"/home/runner/work/store/store/src/adapters/JSONAdapter.ts": {"path":"/home/runner/work/store/store/src/adapters/JSONAdapter.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":31}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":41}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":null}},"4":{"start":{"line":10,"column":4},"end":{"line":10,"column":null}},"5":{"start":{"line":14,"column":17},"end":{"line":14,"column":36}},"6":{"start":{"line":16,"column":4},"end":{"line":20,"column":null}},"7":{"start":{"line":19,"column":6},"end":{"line":19,"column":null}},"8":{"start":{"line":24,"column":4},"end":{"line":24,"column":null}},"9":{"start":{"line":5,"column":0},"end":{"line":5,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":2},"end":{"line":8,"column":15}},"loc":{"start":{"line":8,"column":29},"end":{"line":11,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":2},"end":{"line":13,"column":6}},"loc":{"start":{"line":13,"column":6},"end":{"line":21,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":23,"column":2},"end":{"line":23,"column":7}},"loc":{"start":{"line":23,"column":17},"end":{"line":25,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":4},"end":{"line":20,"column":null}},"type":"if","locations":[{"start":{"line":16,"column":4},"end":{"line":20,"column":null}}]},"1":{"loc":{"start":{"line":19,"column":24},"end":{"line":19,"column":28}},"type":"binary-expr","locations":[{"start":{"line":19,"column":24},"end":{"line":19,"column":28}},{"start":{"line":19,"column":32},"end":{"line":19,"column":36}}]}},"s":{"0":1,"1":1,"2":1,"3":6,"4":6,"5":8,"6":8,"7":7,"8":3,"9":1},"f":{"0":6,"1":8,"2":3},"b":{"0":[7],"1":[7,2]}}
{"/home/runner/work/store/store/src/DBStore.ts": {"path":"/home/runner/work/store/store/src/DBStore.ts","statementMap":{"0":{"start":{"line":5,"column":0},"end":{"line":5,"column":38}},"1":{"start":{"line":6,"column":0},"end":{"line":6,"column":52}},"2":{"start":{"line":7,"column":0},"end":{"line":7,"column":55}},"3":{"start":{"line":8,"column":0},"end":{"line":8,"column":104}},"4":{"start":{"line":14,"column":10},"end":{"line":14,"column":null}},"5":{"start":{"line":15,"column":9},"end":{"line":15,"column":null}},"6":{"start":{"line":19,"column":4},"end":{"line":21,"column":null}},"7":{"start":{"line":20,"column":6},"end":{"line":20,"column":null}},"8":{"start":{"line":22,"column":4},"end":{"line":22,"column":null}},"9":{"start":{"line":23,"column":4},"end":{"line":23,"column":null}},"10":{"start":{"line":24,"column":4},"end":{"line":24,"column":null}},"11":{"start":{"line":25,"column":4},"end":{"line":25,"column":null}},"12":{"start":{"line":29,"column":4},"end":{"line":29,"column":null}},"13":{"start":{"line":33,"column":4},"end":{"line":36,"column":null}},"14":{"start":{"line":34,"column":6},"end":{"line":34,"column":null}},"15":{"start":{"line":35,"column":6},"end":{"line":35,"column":null}},"16":{"start":{"line":37,"column":4},"end":{"line":37,"column":null}},"17":{"start":{"line":41,"column":40},"end":{"line":41,"column":76}},"18":{"start":{"line":42,"column":18},"end":{"line":42,"column":29}},"19":{"start":{"line":43,"column":4},"end":{"line":53,"column":null}},"20":{"start":{"line":44,"column":6},"end":{"line":46,"column":null}},"21":{"start":{"line":45,"column":8},"end":{"line":45,"column":null}},"22":{"start":{"line":47,"column":6},"end":{"line":49,"column":null}},"23":{"start":{"line":48,"column":8},"end":{"line":48,"column":null}},"24":{"start":{"line":50,"column":6},"end":{"line":52,"column":null}},"25":{"start":{"line":51,"column":8},"end":{"line":51,"column":null}},"26":{"start":{"line":54,"column":4},"end":{"line":57,"column":null}},"27":{"start":{"line":61,"column":4},"end":{"line":61,"column":null}},"28":{"start":{"line":65,"column":4},"end":{"line":65,"column":null}},"29":{"start":{"line":69,"column":4},"end":{"line":69,"column":null}},"30":{"start":{"line":73,"column":4},"end":{"line":73,"column":null}},"31":{"start":{"line":74,"column":17},"end":{"line":74,"column":30}},"32":{"start":{"line":75,"column":29},"end":{"line":75,"column":71}},"33":{"start":{"line":76,"column":4},"end":{"line":76,"column":null}},"34":{"start":{"line":81,"column":16},"end":{"line":81,"column":39}},"35":{"start":{"line":82,"column":19},"end":{"line":82,"column":50}},"36":{"start":{"line":84,"column":4},"end":{"line":87,"column":null}},"37":{"start":{"line":85,"column":6},"end":{"line":85,"column":null}},"38":{"start":{"line":86,"column":6},"end":{"line":86,"column":null}},"39":{"start":{"line":88,"column":4},"end":{"line":88,"column":null}},"40":{"start":{"line":89,"column":4},"end":{"line":89,"column":null}},"41":{"start":{"line":90,"column":4},"end":{"line":92,"column":null}},"42":{"start":{"line":91,"column":6},"end":{"line":91,"column":null}},"43":{"start":{"line":93,"column":4},"end":{"line":93,"column":null}},"44":{"start":{"line":98,"column":4},"end":{"line":100,"column":null}},"45":{"start":{"line":99,"column":6},"end":{"line":99,"column":null}},"46":{"start":{"line":101,"column":4},"end":{"line":101,"column":null}},"47":{"start":{"line":102,"column":4},"end":{"line":102,"column":null}},"48":{"start":{"line":107,"column":23},"end":{"line":107,"column":49}},"49":{"start":{"line":108,"column":19},"end":{"line":108,"column":50}},"50":{"start":{"line":109,"column":4},"end":{"line":116,"column":null}},"51":{"start":{"line":110,"column":19},"end":{"line":110,"column":64}},"52":{"start":{"line":110,"column":43},"end":{"line":110,"column":57}},"53":{"start":{"line":111,"column":6},"end":{"line":111,"column":null}},"54":{"start":{"line":112,"column":6},"end":{"line":112,"column":null}},"55":{"start":{"line":113,"column":6},"end":{"line":113,"column":null}},"56":{"start":{"line":115,"column":6},"end":{"line":115,"column":null}},"57":{"start":{"line":120,"column":4},"end":{"line":120,"column":null}},"58":{"start":{"line":120,"column":53},"end":{"line":120,"column":67}},"59":{"start":{"line":124,"column":23},"end":{"line":124,"column":49}},"60":{"start":{"line":125,"column":29},"end":{"line":125,"column":61}},"61":{"start":{"line":126,"column":18},"end":{"line":126,"column":62}},"62":{"start":{"line":126,"column":47},"end":{"line":126,"column":61}},"63":{"start":{"line":127,"column":4},"end":{"line":131,"column":null}},"64":{"start":{"line":128,"column":6},"end":{"line":128,"column":null}},"65":{"start":{"line":129,"column":6},"end":{"line":129,"column":null}},"66":{"start":{"line":130,"column":6},"end":{"line":130,"column":null}},"67":{"start":{"line":135,"column":4},"end":{"line":135,"column":22}},"68":{"start":{"line":136,"column":5},"end":{"line":136,"column":57}},"69":{"start":{"line":137,"column":5},"end":{"line":137,"column":null}},"70":{"start":{"line":138,"column":4},"end":{"line":138,"column":null}},"71":{"start":{"line":80,"column":2},"end":{"line":94,"column":null}},"72":{"start":{"line":97,"column":2},"end":{"line":103,"column":null}},"73":{"start":{"line":106,"column":2},"end":{"line":117,"column":null}},"74":{"start":{"line":143,"column":2},"end":{"line":143,"column":9}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":2},"end":{"line":17,"column":15}},"loc":{"start":{"line":17,"column":53},"end":{"line":26,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":2},"end":{"line":28,"column":12}},"loc":{"start":{"line":28,"column":12},"end":{"line":30,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":7}},"loc":{"start":{"line":32,"column":27},"end":{"line":38,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":7}},"loc":{"start":{"line":40,"column":29},"end":{"line":58,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":60,"column":10},"end":{"line":60,"column":15}},"loc":{"start":{"line":60,"column":29},"end":{"line":62,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":64,"column":10},"end":{"line":64,"column":15}},"loc":{"start":{"line":64,"column":44},"end":{"line":66,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":68,"column":10},"end":{"line":68,"column":15}},"loc":{"start":{"line":68,"column":35},"end":{"line":70,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":72,"column":10},"end":{"line":72,"column":15}},"loc":{"start":{"line":72,"column":44},"end":{"line":77,"column":3}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":80,"column":2},"end":{"line":80,"column":7}},"loc":{"start":{"line":80,"column":44},"end":{"line":94,"column":3}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":97,"column":2},"end":{"line":97,"column":7}},"loc":{"start":{"line":97,"column":33},"end":{"line":103,"column":3}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":106,"column":2},"end":{"line":106,"column":7}},"loc":{"start":{"line":106,"column":46},"end":{"line":117,"column":3}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":110,"column":35},"end":{"line":110,"column":39}},"loc":{"start":{"line":110,"column":43},"end":{"line":110,"column":57}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":119,"column":2},"end":{"line":119,"column":7}},"loc":{"start":{"line":119,"column":30},"end":{"line":121,"column":3}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":120,"column":45},"end":{"line":120,"column":49}},"loc":{"start":{"line":120,"column":53},"end":{"line":120,"column":67}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":123,"column":2},"end":{"line":123,"column":7}},"loc":{"start":{"line":123,"column":30},"end":{"line":132,"column":3}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":126,"column":39},"end":{"line":126,"column":43}},"loc":{"start":{"line":126,"column":47},"end":{"line":126,"column":61}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":134,"column":2},"end":{"line":134,"column":7}},"loc":{"start":{"line":134,"column":32},"end":{"line":139,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":4},"end":{"line":21,"column":null}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":21,"column":null}},{"start":{"line":19,"column":4},"end":{"line":21,"column":null}}]},"1":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":15}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":15}},{"start":{"line":19,"column":19},"end":{"line":19,"column":34}}]},"2":{"loc":{"start":{"line":32,"column":22},"end":{"line":32,"column":27}},"type":"default-arg","locations":[{"start":{"line":32,"column":22},"end":{"line":32,"column":27}}]},"3":{"loc":{"start":{"line":33,"column":4},"end":{"line":36,"column":null}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":36,"column":null}},{"start":{"line":33,"column":4},"end":{"line":36,"column":null}}]},"4":{"loc":{"start":{"line":33,"column":8},"end":{"line":33,"column":13}},"type":"binary-expr","locations":[{"start":{"line":33,"column":8},"end":{"line":33,"column":13}},{"start":{"line":33,"column":17},"end":{"line":33,"column":30}}]},"5":{"loc":{"start":{"line":43,"column":4},"end":{"line":53,"column":null}},"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":53,"column":null}},{"start":{"line":43,"column":4},"end":{"line":53,"column":null}}]},"6":{"loc":{"start":{"line":44,"column":6},"end":{"line":46,"column":null}},"type":"if","locations":[{"start":{"line":44,"column":6},"end":{"line":46,"column":null}},{"start":{"line":44,"column":6},"end":{"line":46,"column":null}}]},"7":{"loc":{"start":{"line":47,"column":6},"end":{"line":49,"column":null}},"type":"if","locations":[{"start":{"line":47,"column":6},"end":{"line":49,"column":null}},{"start":{"line":47,"column":6},"end":{"line":49,"column":null}}]},"8":{"loc":{"start":{"line":47,"column":10},"end":{"line":47,"column":43}},"type":"binary-expr","locations":[{"start":{"line":47,"column":10},"end":{"line":47,"column":43}},{"start":{"line":47,"column":47},"end":{"line":47,"column":65}}]},"9":{"loc":{"start":{"line":50,"column":6},"end":{"line":52,"column":null}},"type":"if","locations":[{"start":{"line":50,"column":6},"end":{"line":52,"column":null}},{"start":{"line":50,"column":6},"end":{"line":52,"column":null}}]},"10":{"loc":{"start":{"line":50,"column":10},"end":{"line":50,"column":42}},"type":"binary-expr","locations":[{"start":{"line":50,"column":10},"end":{"line":50,"column":42}},{"start":{"line":50,"column":46},"end":{"line":50,"column":62}}]},"11":{"loc":{"start":{"line":80,"column":40},"end":{"line":80,"column":44}},"type":"default-arg","locations":[{"start":{"line":80,"column":40},"end":{"line":80,"column":44}}]},"12":{"loc":{"start":{"line":84,"column":4},"end":{"line":87,"column":null}},"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":87,"column":null}},{"start":{"line":84,"column":4},"end":{"line":87,"column":null}}]},"13":{"loc":{"start":{"line":90,"column":4},"end":{"line":92,"column":null}},"type":"if","locations":[{"start":{"line":90,"column":4},"end":{"line":92,"column":null}},{"start":{"line":90,"column":4},"end":{"line":92,"column":null}}]},"14":{"loc":{"start":{"line":109,"column":4},"end":{"line":116,"column":null}},"type":"if","locations":[{"start":{"line":109,"column":4},"end":{"line":116,"column":null}},{"start":{"line":109,"column":4},"end":{"line":116,"column":null}}]},"15":{"loc":{"start":{"line":110,"column":19},"end":{"line":110,"column":58}},"type":"binary-expr","locations":[{"start":{"line":110,"column":19},"end":{"line":110,"column":58}},{"start":{"line":110,"column":62},"end":{"line":110,"column":64}}]},"16":{"loc":{"start":{"line":127,"column":4},"end":{"line":131,"column":null}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":131,"column":null}},{"start":{"line":127,"column":4},"end":{"line":131,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":18,"5":18,"6":18,"7":2,"8":16,"9":16,"10":16,"11":16,"12":1,"13":56,"14":16,"15":16,"16":56,"17":18,"18":18,"19":18,"20":6,"21":1,"22":6,"23":1,"24":6,"25":1,"26":18,"27":33,"28":12,"29":13,"30":8,"31":8,"32":8,"33":8,"34":9,"35":9,"36":9,"37":1,"38":1,"39":8,"40":8,"41":8,"42":3,"43":8,"44":2,"45":5,"46":2,"47":2,"48":3,"49":3,"50":3,"51":2,"52":5,"53":2,"54":2,"55":2,"56":1,"57":3,"58":4,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1},"f":{"0":18,"1":1,"2":56,"3":18,"4":33,"5":12,"6":13,"7":8,"8":9,"9":2,"10":3,"11":5,"12":3,"13":4,"14":1,"15":1,"16":1},"b":{"0":[2,16],"1":[18,17],"2":[56],"3":[16,40],"4":[56,56],"5":[6,12],"6":[1,5],"7":[1,5],"8":[6,2],"9":[1,5],"10":[6,2],"11":[4],"12":[1,8],"13":[3,5],"14":[2,1],"15":[2,0],"16":[1,0]}}
,"/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":42}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":52}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":27}},"3":{"start":{"line":7,"column":2},"end":{"line":7,"column":null}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":null}},"5":{"start":{"line":13,"column":4},"end":{"line":15,"column":null}},"6":{"start":{"line":14,"column":6},"end":{"line":14,"column":null}},"7":{"start":{"line":16,"column":20},"end":{"line":16,"column":43}},"8":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"9":{"start":{"line":18,"column":4},"end":{"line":18,"column":null}},"10":{"start":{"line":23,"column":4},"end":{"line":26,"column":null}},"11":{"start":{"line":24,"column":6},"end":{"line":24,"column":null}},"12":{"start":{"line":25,"column":6},"end":{"line":25,"column":null}},"13":{"start":{"line":27,"column":4},"end":{"line":27,"column":null}},"14":{"start":{"line":31,"column":4},"end":{"line":31,"column":null}},"15":{"start":{"line":35,"column":4},"end":{"line":35,"column":null}},"16":{"start":{"line":36,"column":4},"end":{"line":36,"column":null}},"17":{"start":{"line":40,"column":4},"end":{"line":40,"column":null}},"18":{"start":{"line":44,"column":16},"end":{"line":44,"column":59}},"19":{"start":{"line":45,"column":4},"end":{"line":45,"column":null}},"20":{"start":{"line":46,"column":4},"end":{"line":46,"column":null}},"21":{"start":{"line":51,"column":2},"end":{"line":51,"column":11}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":0},"end":{"line":6,"column":6}},"loc":{"start":{"line":6,"column":0},"end":{"line":8,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":2},"end":{"line":12,"column":15}},"loc":{"start":{"line":12,"column":29},"end":{"line":19,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":21,"column":2},"end":{"line":21,"column":6}},"loc":{"start":{"line":21,"column":21},"end":{"line":28,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":30,"column":2},"end":{"line":30,"column":5}},"loc":{"start":{"line":30,"column":15},"end":{"line":32,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":34,"column":2},"end":{"line":34,"column":5}},"loc":{"start":{"line":34,"column":30},"end":{"line":37,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":39,"column":2},"end":{"line":39,"column":5}},"loc":{"start":{"line":39,"column":18},"end":{"line":41,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":43,"column":2},"end":{"line":43,"column":7}},"loc":{"start":{"line":43,"column":32},"end":{"line":47,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":4},"end":{"line":15,"column":null}},"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":15,"column":null}},{"start":{"line":13,"column":4},"end":{"line":15,"column":null}}]},"1":{"loc":{"start":{"line":21,"column":16},"end":{"line":21,"column":21}},"type":"default-arg","locations":[{"start":{"line":21,"column":16},"end":{"line":21,"column":21}}]},"2":{"loc":{"start":{"line":23,"column":4},"end":{"line":26,"column":null}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":26,"column":null}}]},"3":{"loc":{"start":{"line":23,"column":8},"end":{"line":23,"column":13}},"type":"binary-expr","locations":[{"start":{"line":23,"column":8},"end":{"line":23,"column":13}},{"start":{"line":23,"column":17},"end":{"line":23,"column":30}}]},"4":{"loc":{"start":{"line":30,"column":13},"end":{"line":30,"column":15}},"type":"default-arg","locations":[{"start":{"line":30,"column":13},"end":{"line":30,"column":15}}]}},"s":{"0":1,"1":1,"2":1,"3":7,"4":8,"5":8,"6":1,"7":7,"8":7,"9":7,"10":10,"11":10,"12":10,"13":10,"14":4,"15":2,"16":2,"17":1,"18":1,"19":1,"20":1,"21":1},"f":{"0":7,"1":8,"2":10,"3":4,"4":2,"5":1,"6":1},"b":{"0":[1,7],"1":[7],"2":[10],"3":[10,7],"4":[1]}}
,"/home/runner/work/store/store/src/adapters/JSONAdapter.ts": {"path":"/home/runner/work/store/store/src/adapters/JSONAdapter.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":31}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":41}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":null}},"4":{"start":{"line":10,"column":4},"end":{"line":10,"column":null}},"5":{"start":{"line":14,"column":17},"end":{"line":14,"column":36}},"6":{"start":{"line":16,"column":4},"end":{"line":29,"column":null}},"7":{"start":{"line":19,"column":6},"end":{"line":28,"column":null}},"8":{"start":{"line":21,"column":8},"end":{"line":21,"column":null}},"9":{"start":{"line":23,"column":8},"end":{"line":27,"column":null}},"10":{"start":{"line":24,"column":10},"end":{"line":24,"column":null}},"11":{"start":{"line":26,"column":10},"end":{"line":26,"column":null}},"12":{"start":{"line":33,"column":4},"end":{"line":33,"column":null}},"13":{"start":{"line":5,"column":0},"end":{"line":5,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":2},"end":{"line":8,"column":15}},"loc":{"start":{"line":8,"column":29},"end":{"line":11,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":2},"end":{"line":13,"column":6}},"loc":{"start":{"line":13,"column":6},"end":{"line":30,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":7}},"loc":{"start":{"line":32,"column":17},"end":{"line":34,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":4},"end":{"line":29,"column":null}},"type":"if","locations":[{"start":{"line":16,"column":4},"end":{"line":29,"column":null}}]},"1":{"loc":{"start":{"line":21,"column":26},"end":{"line":21,"column":30}},"type":"binary-expr","locations":[{"start":{"line":21,"column":26},"end":{"line":21,"column":30}},{"start":{"line":21,"column":34},"end":{"line":21,"column":38}}]},"2":{"loc":{"start":{"line":24,"column":28},"end":{"line":24,"column":32}},"type":"binary-expr","locations":[{"start":{"line":24,"column":28},"end":{"line":24,"column":32}},{"start":{"line":24,"column":36},"end":{"line":24,"column":40}}]}},"s":{"0":1,"1":1,"2":1,"3":7,"4":7,"5":10,"6":10,"7":9,"8":9,"9":4,"10":4,"11":4,"12":3,"13":1},"f":{"0":7,"1":10,"2":3},"b":{"0":[9],"1":[9,0],"2":[4,0]}}
,"/home/runner/work/store/store/src/adapters/ZlibAdapter.ts": {"path":"/home/runner/work/store/store/src/adapters/ZlibAdapter.ts","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":19}},"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":32}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":48}},"3":{"start":{"line":7,"column":0},"end":{"line":7,"column":41}},"4":{"start":{"line":9,"column":17},"end":{"line":9,"column":39}},"5":{"start":{"line":15,"column":9},"end":{"line":15,"column":null}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":null}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"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":25,"column":24},"end":{"line":28,"column":null}},"11":{"start":{"line":29,"column":4},"end":{"line":60,"column":null}},"12":{"start":{"line":30,"column":6},"end":{"line":59,"column":null}},"13":{"start":{"line":31,"column":24},"end":{"line":31,"column":51}},"14":{"start":{"line":32,"column":8},"end":{"line":50,"column":null}},"15":{"start":{"line":33,"column":10},"end":{"line":37,"column":null}},"16":{"start":{"line":34,"column":12},"end":{"line":34,"column":null}},"17":{"start":{"line":35,"column":12},"end":{"line":35,"column":null}},"18":{"start":{"line":36,"column":12},"end":{"line":36,"column":null}},"19":{"start":{"line":38,"column":22},"end":{"line":38,"column":37}},"20":{"start":{"line":39,"column":10},"end":{"line":49,"column":null}},"21":{"start":{"line":40,"column":25},"end":{"line":40,"column":40}},"22":{"start":{"line":41,"column":12},"end":{"line":41,"column":null}},"23":{"start":{"line":52,"column":21},"end":{"line":52,"column":61}},"24":{"start":{"line":53,"column":8},"end":{"line":58,"column":null}},"25":{"start":{"line":56,"column":10},"end":{"line":56,"column":null}},"26":{"start":{"line":57,"column":10},"end":{"line":57,"column":null}},"27":{"start":{"line":64,"column":4},"end":{"line":72,"column":null}},"28":{"start":{"line":65,"column":6},"end":{"line":65,"column":null}},"29":{"start":{"line":66,"column":6},"end":{"line":71,"column":null}},"30":{"start":{"line":69,"column":8},"end":{"line":69,"column":null}},"31":{"start":{"line":70,"column":8},"end":{"line":70,"column":null}},"32":{"start":{"line":77,"column":2},"end":{"line":77,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":2},"end":{"line":17,"column":15}},"loc":{"start":{"line":17,"column":87},"end":{"line":21,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":23,"column":2},"end":{"line":23,"column":7}},"loc":{"start":{"line":23,"column":12},"end":{"line":61,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":29,"column":23},"end":{"line":29,"column":28}},"loc":{"start":{"line":29,"column":49},"end":{"line":60,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":32,"column":23},"end":{"line":32,"column":24}},"loc":{"start":{"line":32,"column":37},"end":{"line":50,"column":9}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":19},"end":{"line":53,"column":24}},"loc":{"start":{"line":53,"column":56},"end":{"line":58,"column":9}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":2},"end":{"line":63,"column":7}},"loc":{"start":{"line":63,"column":24},"end":{"line":73,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":64,"column":23},"end":{"line":64,"column":24}},"loc":{"start":{"line":64,"column":43},"end":{"line":72,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":66,"column":17},"end":{"line":66,"column":22}},"loc":{"start":{"line":66,"column":54},"end":{"line":71,"column":7}}}},"branchMap":{"0":{"loc":{"start":{"line":30,"column":6},"end":{"line":59,"column":null}},"type":"if","locations":[{"start":{"line":30,"column":6},"end":{"line":59,"column":null}},{"start":{"line":30,"column":6},"end":{"line":59,"column":null}}]},"1":{"loc":{"start":{"line":33,"column":10},"end":{"line":37,"column":null}},"type":"if","locations":[{"start":{"line":33,"column":10},"end":{"line":37,"column":null}},{"start":{"line":33,"column":10},"end":{"line":37,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":16,"6":16,"7":16,"8":16,"9":16,"10":16,"11":16,"12":16,"13":15,"14":15,"15":15,"16":1,"17":1,"18":1,"19":14,"20":14,"21":14,"22":14,"23":1,"24":1,"25":1,"26":1,"27":8,"28":8,"29":8,"30":8,"31":8,"32":1},"f":{"0":16,"1":16,"2":16,"3":15,"4":1,"5":8,"6":8,"7":8},"b":{"0":[15,1],"1":[1,14]}}

@@ -5,0 +5,0 @@ ,"/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":25,"column":0},"end":{"line":25,"column":null}},"6":{"start":{"line":26,"column":2},"end":{"line":26,"column":null}},"7":{"start":{"line":27,"column":2},"end":{"line":27,"column":null}},"8":{"start":{"line":28,"column":2},"end":{"line":28,"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":25,"column":0},"end":{"line":25,"column":12}},"loc":{"start":{"line":25,"column":25},"end":{"line":29,"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":25,"column":12},"end":{"line":25,"column":25}},"type":"binary-expr","locations":[{"start":{"line":25,"column":12},"end":{"line":25,"column":25}},{"start":{"line":25,"column":12},"end":{"line":25,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1},"f":{"0":1,"1":1},"b":{"0":[1,1],"1":[1,1]}}

@@ -1,17 +0,2 @@

"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@commonify/lowdb"),i=t(require("fs")),r=require("util"),a=require("fflate"),s=t(require("write-file-atomic")),n=t(require("comment-json")),o=t(require("lodash"));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
function c(t,e,i,r){var a,s=arguments.length,n=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(n=(s<3?a(n):s>3?a(e,i,n):a(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n}const d=r.promisify(i.readFile);class l{constructor(t,e,i){this.readCount=0,this.dbPath=t,this.collectionName=e,this.errorList=i}async read(){this.readCount++;const t={[this.collectionName]:[],[`__${this.collectionName}_KEY__`]:{}};return new Promise(async(e,r)=>{if(i.existsSync(this.dbPath)){const i=await d(this.dbPath);a.gunzip(i,(i,r)=>{if(i)return console.error(i),this.errorList.push(i),e(t);const s=a.strFromU8(r);try{const t=JSON.parse(s);return e(t)}catch(i){return console.error(i),this.errorList.push(i),e(t)}})}else{const i=Buffer.from(JSON.stringify(t));a.gzip(i,async(i,a)=>{if(i)return r(i);await s(this.dbPath,Buffer.from(a)),e(t)})}})}async write(t){return new Promise((e,i)=>{t=Buffer.from(JSON.stringify(t)),a.gzip(t,async(t,r)=>{if(t)return i(t);await s(this.dbPath,Buffer.from(r)),e()})})}}var h,u;function f(t){return function(e,i,r){const a=r.value;r.value=async function(...e){t===u.createMany?e=[e=(e=e[0]).map(t=>y(t))]:t===u.create?e[0]=y(e[0]):e[1].updatedAt=Date.now();return await a.call(this,...e)}}}function y(t){return 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()),t}!function(t){t.inited="inited",t.loaded="loaded",t.started="started",t.stopped="stopped"}(h||(h={})),function(t){t[t.createMany=0]="createMany",t[t.create=1]="create",t[t.update=2]="update"}(u||(u={}));class p{constructor(t,i){if(this.hasRead=!1,this.errorList=[],!t||!i)throw Error("Please provide valid dbPath or collectionName");this.collectionName=i,this.collectionKey=`__${i}_KEY__`,this.adapter=new l(t,i,this.errorList),this.db=new e.Low(this.adapter)}getAdapter(){return this.adapter}async read(t=!1){return!t&&this.hasRead||(this.hasRead=!0,await this.db.read()),this.db.data}async get(t){let e=(await this.getCollection()).slice();const i=e.length;return void 0!==t&&("desc"===t.orderBy&&(e=e.reverse()),"number"==typeof t.offset&&t.offset>=0&&(e=e.slice(t.offset)),"number"==typeof t.limit&&t.limit>0&&(e=e.slice(0,t.limit))),{total:i,data:e}}async getCollection(){var t;return null===(t=await this.read())||void 0===t?void 0:t[this.collectionName]}async getCollectionKey(t){return(await this.getCollectionKeyMap())[t]}async getCollectionKeyMap(){var t;return null===(t=await this.read())||void 0===t?void 0:t[this.collectionKey]}async setCollectionKey(t){await this.read();this.db.data[this.collectionKey][t]=1}async insert(t,e=!0){const i=t.id;return await this.getCollectionKey(i)?(await this.updateById(i,t),t):((await this.getCollection()).push(t),await this.setCollectionKey(i),e&&await this.db.write(),t)}async insertMany(t){for(const e of t)await this.insert(e,!1);return await this.db.write(),t}async updateById(t,e){const i=await this.getCollection();if(await this.getCollectionKey(t)){const r=i.find(e=>e.id===t);return Object.assign(r,e),await this.db.write(),!0}return!1}async getById(t){return(await this.getCollection()).find(e=>e.id===t)}async removeById(t){const e=await this.getCollection(),i=await this.getCollectionKeyMap(),r=e.findIndex(e=>e.id===t);-1!==r&&(e.splice(r,1),delete i[t],await this.db.write())}async overwrite(t){return await this.read(),this.db.data[this.collectionName]=[],this.db.data[this.collectionKey]={},await this.insertMany(t)}}c([f(u.create)],p.prototype,"insert",null),c([f(u.createMany)],p.prototype,"insertMany",null),c([f(u.update)],p.prototype,"updateById",null);class w{constructor(t){this.dbPath=t,this.adapter=new e.TextFileSync(t)}read(){const t=this.adapter.read();return null===t?{}:n.parse(t||"{}")}write(t){s.sync(this.dbPath,Buffer.from(n.stringify(t,null,2)))}}class b extends e.LowSync{constructor(){super(...arguments),this.chain=o.chain(this).get("data")}}exports.DBStore=p,exports.JSONStore=class{constructor(t){if(this.hasRead=!1,!t)throw Error("Please provide valid dbPath");const e=new w(t);this.db=new b(e),this.read()}read(t=!1){return!t&&this.hasRead||(this.hasRead=!0,this.db.read()),this.db.data}get(t=""){return this.db.chain.get(t).value()}set(t,e){this.db.chain.set(t,e).value(),this.db.write()}has(t){return this.db.chain.has(t).value()}unset(t,e){const i=this.db.chain.get(t).unset(e).value();return this.db.write(),i}};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@commonify/lowdb"),e=require("fs"),i=require("util"),r=require("fflate"),a=require("write-file-atomic"),s=require("comment-json"),n=require("lodash");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=o(e),d=o(a),l=o(s),h=o(n);function u(t,e,i,r){var a,s=arguments.length,n=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(n=(s<3?a(n):s>3?a(e,i,n):a(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n}const f=i.promisify(c.default.readFile);class y{constructor(t,e,i){this.readCount=0,this.dbPath=t,this.collectionName=e,this.errorList=i}async read(){this.readCount++;const t={[this.collectionName]:[],[`__${this.collectionName}_KEY__`]:{}};return new Promise((async(e,i)=>{if(c.default.existsSync(this.dbPath)){const i=await f(this.dbPath);r.gunzip(i,((i,a)=>{if(i)return console.error(i),this.errorList.push(i),e(t);const s=r.strFromU8(a);try{const t=JSON.parse(s);return e(t)}catch(i){return console.error(i),this.errorList.push(i),e(t)}}))}else{const a=Buffer.from(JSON.stringify(t));r.gzip(a,(async(r,a)=>{if(r)return i(r);await d.default(this.dbPath,Buffer.from(a)),e(t)}))}}))}async write(t){return new Promise(((e,i)=>{t=Buffer.from(JSON.stringify(t)),r.gzip(t,(async(t,r)=>{if(t)return i(t);await d.default(this.dbPath,Buffer.from(r)),e()}))}))}}var p,w;function b(t){return function(e,i,r){const a=r.value;r.value=async function(...e){t===w.createMany?e=[e=(e=e[0]).map((t=>g(t)))]:t===w.create?e[0]=g(e[0]):e[1].updatedAt=Date.now();return await a.call(this,...e)}}}function g(t){return 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()),t}!function(t){t.inited="inited",t.loaded="loaded",t.started="started",t.stopped="stopped"}(p||(p={})),function(t){t[t.createMany=0]="createMany",t[t.create=1]="create",t[t.update=2]="update"}(w||(w={}));class m{constructor(e,i){if(this.hasRead=!1,this.errorList=[],!e||!i)throw Error("Please provide valid dbPath or collectionName");this.collectionName=i,this.collectionKey=`__${i}_KEY__`,this.adapter=new y(e,i,this.errorList),this.db=new t.Low(this.adapter)}getAdapter(){return this.adapter}async read(t=!1){return!t&&this.hasRead||(this.hasRead=!0,await this.db.read()),this.db.data}async get(t){let e=(await this.getCollection()).slice();const i=e.length;return void 0!==t&&("desc"===t.orderBy&&(e=e.reverse()),"number"==typeof t.offset&&t.offset>=0&&(e=e.slice(t.offset)),"number"==typeof t.limit&&t.limit>0&&(e=e.slice(0,t.limit))),{total:i,data:e}}async getCollection(){return(await this.read())?.[this.collectionName]}async getCollectionKey(t){return(await this.getCollectionKeyMap())[t]}async getCollectionKeyMap(){return(await this.read())?.[this.collectionKey]}async setCollectionKey(t){await this.read();this.db.data[this.collectionKey][t]=1}async insert(t,e=!0){const i=t.id;return await this.getCollectionKey(i)?(await this.updateById(i,t),t):((await this.getCollection()).push(t),await this.setCollectionKey(i),e&&await this.db.write(),t)}async insertMany(t){for(const e of t)await this.insert(e,!1);return await this.db.write(),t}async updateById(t,e){const i=await this.getCollection();if(await this.getCollectionKey(t)){const r=i.find((e=>e.id===t))||{};return Object.assign(r,e),await this.db.write(),!0}return!1}async getById(t){return(await this.getCollection()).find((e=>e.id===t))}async removeById(t){const e=await this.getCollection(),i=await this.getCollectionKeyMap(),r=e.findIndex((e=>e.id===t));-1!==r&&(e.splice(r,1),delete i[t],await this.db.write())}async overwrite(t){return await this.read(),this.db.data[this.collectionName]=[],this.db.data[this.collectionKey]={},await this.insertMany(t)}}u([b(w.create)],m.prototype,"insert",null),u([b(w.createMany)],m.prototype,"insertMany",null),u([b(w.update)],m.prototype,"updateById",null);class v{constructor(e){this.dbPath=e,this.adapter=new t.TextFileSync(e)}read(){const t=this.adapter.read();if(null===t)return{};try{return l.default.parse(t||"{}")}catch(e){try{return JSON.parse(t||"{}")}catch(t){return{}}}}write(t){d.default.sync(this.dbPath,l.default.stringify(t,null,2))}}class C extends t.LowSync{constructor(){super(...arguments),this.chain=h.default.chain(this).get("data")}}exports.DBStore=m,exports.JSONStore=class{constructor(t){if(this.hasRead=!1,!t)throw Error("Please provide valid dbPath");const e=new v(t);this.db=new C(e),this.read()}read(t=!1){return!t&&this.hasRead||(this.hasRead=!0,this.db.read()),this.db.data}get(t=""){return this.db.chain.get(t).value()}set(t,e){this.db.chain.set(t,e).value(),this.db.write()}has(t){return this.db.chain.has(t).value()}unset(t,e){const i=this.db.chain.get(t).unset(e).value();return this.db.write(),i}};
//# sourceMappingURL=index.js.map
{
"name": "@picgo/store",
"version": "2.0.2",
"version": "2.0.3",
"description": "",

@@ -65,8 +65,8 @@ "main": "dist/index.js",

"rimraf": "^3.0.2",
"rollup": "^1.29.0",
"rollup": "^2.78.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.2.0",
"rollup-plugin-typescript2": "^0.25.3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.33.0",
"ts-jest": "^24.3.0",
"typescript": "^3.7.4"
"typescript": "^4.7.4"
},

@@ -73,0 +73,0 @@ "dependencies": {

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc