* Return chunk even if range is greater than filesize
* Allow range.start or range.end to not be defined
Examples:
bytes=-300
bytes=300-
bytes=-300- (negative start)
* Make expression lazy instead of greedy
Fix CodeQL "Polynomial regular expression used on uncontrolled data"
* Improve checks readability
* Show proper range in case of failure
* Fix compare falsy values vs zero values
* replace regex
* Handle range validation in a single place
* Clean validation
* Use range object for exception
* Resolve range undefined check
* Prefer strict equality checks
* Cleanup
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This fixes not being able to build the repo due to type issues
introduced by the Typescript 4.4 option "useUnknownInCatchVariables",
which is enabled by default in strict mode.
* Declare return types on functions
And a very few other type related minor fixes
* Minor syntax fixes
* Remove unnecessary escape chars in regexes
* Remove unnecessary awaits
* Replace deprecated req.connection with req.socket
* Replace deprecated upload with uploadOne
* Remove unnecessary eslint-disable-next-line comments
* Comment empty functions / catch or finally clauses
* Fix irregular whitespaces
* Add missing returns (null)
* Remove unreachable code
* A few logical fixes
* Remove / Handle non-null assertions which are certainly unnecessary (e.g. in
tests)
* Add new packages
* Update docs
* Update linked packages
* Setup file pointers
* Don't require getStream to be async
* List credits
* Load azure in storage
* Fix typo in docs
* Fix another typo
* Remove not about raising an issue