* fix: Release lock only when stream has ended reading or an error occurs
* refactor: Refactor code and tests
* refactor: Move function mock to onBefore and remove unnecessary data drain
* fix: Make functions protected, add extra listener and add extra tests
* fix: Add extra TSDoc comment
* fix: Adjust tests to expect both end and close event
* refactor: Move test to other file
* refactor: make lockedRun method-independent
* fix: ensure lock release happens only once
* fix: make locked resources time out
* fix: destroy readable on error
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
* feat: Add file resource store
* test: Write some tests for FileResourceStore
* fix: Reformat code and fix various small things from reviews
* fix: Change constants to just be the corresponding URL
* fix: Remove extra unnecessary wrap in a Promise
* fix: Write some more tests and fix related bugs
* fix: Use old way to import fs promises to support older Node versions
* refactor: Refactor code and tests
* refactor: Refactor and better document code
* fix: Change comparison with undefined by typeof check
* fix: Invert typeof check