Closed josh-sachs-epic closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Got the alert that this issue was being flagged as stale, however the approved PR with the fix doesn't look like it has been merged yet. Any updates on if this can make it in?
Thanks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Noticed a few issues when vetting this adapter for a project I'm working on.
the read line delegate did not attempt to catch and surface errors thrown by it's call to JSON.parse (notice the safe implementation already existed in loadNextCollection).
the fstat delegate did not correctly evaluate the returned error code before assuming the error was "file not exists." Additionally, in cases where stats.isFile() returned false, it was incorrectly reporting back "file not exists" when, in fact, the issue could be that something else exists at the path (e.g. a directory)... which should be an error condition.
I've submitted a PR to address the issue here: https://github.com/techfort/LokiJS/pull/799