refactor: rename core, theme, and logger

This commit is contained in:
Abdullah Atta
2022-08-29 23:30:48 +05:00
parent a1834b15c1
commit f6b6a0af06
49 changed files with 8907 additions and 24451 deletions

View File

@@ -3,15 +3,13 @@ import { NNStorage } from "../interfaces/storage";
import { logger } from "../utils/logger";
/**
* @type {import("@streetwriters/notesnook-core/api").default}
* @type {import("@notesnook/core/api").default}
*/
var db;
async function initializeDatabase(persistence) {
logger.measure("Database initialization");
const { default: Database } = await import(
"@streetwriters/notesnook-core/api"
);
const { default: Database } = await import("@notesnook/core/api");
const { default: FS } = await import("../interfaces/fs");
db = new Database(new NNStorage("Notesnook", persistence), EventSource, FS);