pi-hashline-edit-pro 0.17.8 → 0.17.9
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/package.json +1 -1
- package/src/hash-store.ts +5 -2
package/package.json
CHANGED
package/src/hash-store.ts
CHANGED
|
@@ -215,8 +215,11 @@ export async function loadHashStore(): Promise<HashStore> {
|
|
|
215
215
|
if (BetterDatabase) {
|
|
216
216
|
try {
|
|
217
217
|
handle = openBetterDb(storePath);
|
|
218
|
-
} catch
|
|
219
|
-
|
|
218
|
+
} catch {
|
|
219
|
+
const debug = process.env.PI_HASHLINE_DEBUG === "1" || process.env.PI_HASHLINE_DEBUG === "true";
|
|
220
|
+
if (debug) {
|
|
221
|
+
console.error('better-sqlite3 native binding failed, falling back to sql.js');
|
|
222
|
+
}
|
|
220
223
|
BetterDatabase = null;
|
|
221
224
|
await ensureSqlJs();
|
|
222
225
|
handle = openSqlJsDb(storePath);
|