Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
server-esm: Fix the remaining compilation errors
Elian Doran1dc894e279a6
diff --git a/spec/support/etapi.ts b/spec/support/etapi.tsindex 00310d9cc3..15f32c7f3e 100644--- a/spec/support/etapi.ts+++ b/spec/support/etapi.ts@@ -210,7 +210,7 @@ function checkStatus(response: Response): void {}}-export {+export default {describeEtapi,getEtapi,getEtapiResponse,diff --git a/src/app.ts b/src/app.tsindex def1b93414..e6da1bcfee 100644--- a/src/app.ts+++ b/src/app.ts@@ -20,7 +20,7 @@ if (!utils.isElectron()) {app.use(compression()); // HTTP compression}-app.use(helmet.default({+app.use(helmet({hidePoweredBy: false, // errors out in electroncontentSecurityPolicy: false,crossOriginEmbedderPolicy: falsediff --git a/src/routes/routes.ts b/src/routes/routes.tsindex 59dd50b224..578df6cfeb 100644--- a/src/routes/routes.ts+++ b/src/routes/routes.ts@@ -106,7 +106,7 @@ function register(app: express.Application) {route(GET, '/login', [auth.checkAppInitialized, auth.checkPasswordSet], loginRoute.loginPage);route(GET, '/set-password', [auth.checkAppInitialized, auth.checkPasswordNotSet], loginRoute.setPasswordPage);- const loginRateLimiter = rateLimit.rateLimit({+ const loginRateLimiter = rateLimit({windowMs: 15 * 60 * 1000, // 15 minutesmax: 10, // limit each IP to 10 requests per windowMsskipSuccessfulRequests: true // successful auth to rate-limited ETAPI routes isn't counted. However, successful auth to /login is still counted!diff --git a/src/services/branches.ts b/src/services/branches.tsindex 1344270ff3..88454c4ab6 100644--- a/src/services/branches.ts+++ b/src/services/branches.ts@@ -1,6 +1,6 @@import treeService from "./tree.js";import sql from "./sql.js";-import BBranch from "../becca/entities/bbranch.js.js";+import BBranch from "../becca/entities/bbranch.js";function moveBranchToNote(branchToMove: BBranch, targetParentNoteId: string) {if (branchToMove.parentNoteId === targetParentNoteId) {