server-esm: Remove two more straightforward imports

This commit is contained in:
Elian Doran 2024-07-18 22:25:03 +03:00
parent a8fd3be133
commit efdae79c10
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
const log = require('./log'); import log from "./log";
const NOTE_TITLE_CHANGED = "NOTE_TITLE_CHANGED"; const NOTE_TITLE_CHANGED = "NOTE_TITLE_CHANGED";
const ENTER_PROTECTED_SESSION = "ENTER_PROTECTED_SESSION"; const ENTER_PROTECTED_SESSION = "ENTER_PROTECTED_SESSION";

View File

@ -1,13 +1,15 @@
"use strict"; "use strict";
import crypto from "crypto"; import crypto from "crypto";
const randtoken = require('rand-token').generator({source: 'crypto'}); import { generator } from "rand-token";
import unescape from "unescape"; import unescape from "unescape";
import escape from "escape-html"; import escape from "escape-html";
import sanitize from "sanitize-filename"; import sanitize from "sanitize-filename";
import mimeTypes from "mime-types"; import mimeTypes from "mime-types";
import path from "path"; import path from "path";
const randtoken = generator({source: 'crypto'});
function newEntityId() { function newEntityId() {
return randomString(12); return randomString(12);
} }