1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-30 15:13:32 +00:00
Commit Graph

14 Commits

Author SHA1 Message Date
Matt Gibson
36089fd68f Write backup before deleting lowdb database (#291)
* Write backup before deleting lowdb database

* Const for unchanged variables
2021-03-02 11:25:45 -06:00
Matt Gibson
fc1275aeb2 Do not lock until after the file is created (#274)
Proper-lockfile throws if the file it's locking does not exist.
Lock around adapter creation rather than file creation.
2021-02-16 22:29:57 -06:00
Matt Gibson
7941664a59 Lock lowdb storage file to avoid dirty data collisions (#273)
* Lock lowdb storage file to avoid dirty data collisions

* Retry lock acquire rather than immediately fail

* Add proper-lockfile types to dev dependencies

* remove proper-lockfile from jslib.

This package is incompatible with Browser implementations.

* await lock on create
2021-02-15 10:16:12 -06:00
Chad Scharf
4cd20f0fa8 Add logging to lowdb storage service (#188) 2020-10-20 09:33:30 -04:00
Kyle Spearrin
9216a8ead7 pre-create and chmod 600 data file (#182) 2020-10-01 14:13:51 -04:00
Kyle Spearrin
dcef50bd8f just use adapter 2018-10-09 15:31:52 -04:00
Kyle Spearrin
2870b7472b re-write data file if malformed json 2018-10-09 15:18:25 -04:00
Kyle Spearrin
3c43265878 change to 700 perms 2018-08-27 22:59:50 -04:00
Kyle Spearrin
0f68f0507e use string mode 2018-08-27 22:54:51 -04:00
Kyle Spearrin
476d21e9f0 alloe cache on lowdb 2018-06-05 14:44:13 -04:00
Kyle Spearrin
22c12cf5c4 always read before writing 2018-06-04 12:05:43 -04:00
Kyle Spearrin
9b3fddbd33 always read from source 2018-06-01 12:33:38 -04:00
Kyle Spearrin
c512b9b3ce return null for undefined storage key 2018-06-01 11:51:48 -04:00
Kyle Spearrin
f618c0b5ee replace electron store with lowdb 2018-05-31 09:07:56 -04:00