mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
perf: treeshakable import of jshashes
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import Hashes from "jshashes";
|
import { MD5 } from "jshashes";
|
||||||
import Migrator from "./migrator.js";
|
import Migrator from "./migrator.js";
|
||||||
import {
|
import {
|
||||||
CHECK_IDS,
|
CHECK_IDS,
|
||||||
sendCheckUserStatusEvent,
|
sendCheckUserStatusEvent,
|
||||||
CURRENT_DATABASE_VERSION,
|
CURRENT_DATABASE_VERSION,
|
||||||
} from "../common.js";
|
} from "../common.js";
|
||||||
const md5 = new Hashes.MD5();
|
const md5 = new MD5();
|
||||||
|
|
||||||
const invalidKeys = ["user", "t", "lastBackupTime"];
|
const invalidKeys = ["user", "t", "lastBackupTime"];
|
||||||
const validTypes = ["mobile", "web", "node"];
|
const validTypes = ["mobile", "web", "node"];
|
||||||
|
|||||||
Reference in New Issue
Block a user