electron-json-storage
electron-json-storage copied to clipboard
getall
get all is not releasing the file lock after it's used
Can you better explain what you observed? .getAll() doesn't use any lock mechanism (see https://github.com/electron-userland/electron-json-storage/blob/master/lib/storage.js#L210). The only function that performs locking is .set() (see https://github.com/electron-userland/electron-json-storage/blob/master/lib/storage.js#L272), but the lock is released after fs.writeFile completes, even if an error happened.