We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed00d30 commit 0e7dcccCopy full SHA for 0e7dccc
.changeset/old-beers-melt.md
@@ -0,0 +1,5 @@
1
+---
2
+"get-uri": patch
3
4
+
5
+Close the file descriptor handle when there is a cache hit for `file:` protocol
packages/get-uri/src/file.ts
@@ -50,6 +50,7 @@ export const file: GetUriProtocol<FileOptions> = async (
50
51
// if a `cache` was provided, check if the file has not been modified
52
if (cache && cache.stat && stat && isNotModified(cache.stat, stat)) {
53
+ await fdHandle.close();
54
throw new NotModifiedError();
55
}
56
0 commit comments