inibase 1.0.0-rc.112 → 1.0.0-rc.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/file.js +3 -0
- package/package.json +1 -1
package/dist/file.js
CHANGED
|
@@ -553,6 +553,9 @@ export const search = async (filePath, operator, comparedAtValue, logicalOperato
|
|
|
553
553
|
? [matchingLines, linesNumbers.size, linesNumbers]
|
|
554
554
|
: [null, 0, null];
|
|
555
555
|
}
|
|
556
|
+
catch {
|
|
557
|
+
return [null, 0, null];
|
|
558
|
+
}
|
|
556
559
|
finally {
|
|
557
560
|
// Close the file handle in the finally block to ensure it is closed even if an error occurs.
|
|
558
561
|
await fileHandle?.close();
|