perf: treeshakable import of jshashes

This commit is contained in:
thecodrr
2020-12-24 09:40:34 +05:00
parent 5d6f8e6712
commit 96e2335aa6

View File

@@ -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"];