Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

perf: treeshakable import of jshashes

thecodrr96e2335aa66f
diff --git a/packages/core/database/backup.js b/packages/core/database/backup.js
index 77d568343..9d59005f2 100644
--- a/packages/core/database/backup.js
+++ b/packages/core/database/backup.js
@@ -1,11 +1,11 @@
-import Hashes from "jshashes";
+import { MD5 } from "jshashes";
import Migrator from "./migrator.js";
import {
CHECK_IDS,
sendCheckUserStatusEvent,
CURRENT_DATABASE_VERSION,
} from "../common.js";
-const md5 = new Hashes.MD5();
+const md5 = new MD5();
const invalidKeys = ["user", "t", "lastBackupTime"];
const validTypes = ["mobile", "web", "node"];