Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 1dc894e

Browse files
committed
server-esm: Fix the remaining compilation errors
1 parent 46f76d7 commit 1dc894e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spec/support/etapi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function checkStatus(response: Response): void {
210210
}
211211
}
212212

213-
export {
213+
export default {
214214
describeEtapi,
215215
getEtapi,
216216
getEtapiResponse,

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (!utils.isElectron()) {
2020
app.use(compression()); // HTTP compression
2121
}
2222

23-
app.use(helmet.default({
23+
app.use(helmet({
2424
hidePoweredBy: false, // errors out in electron
2525
contentSecurityPolicy: false,
2626
crossOriginEmbedderPolicy: false

src/routes/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function register(app: express.Application) {
106106
route(GET, '/login', [auth.checkAppInitialized, auth.checkPasswordSet], loginRoute.loginPage);
107107
route(GET, '/set-password', [auth.checkAppInitialized, auth.checkPasswordNotSet], loginRoute.setPasswordPage);
108108

109-
const loginRateLimiter = rateLimit.rateLimit({
109+
const loginRateLimiter = rateLimit({
110110
windowMs: 15 * 60 * 1000, // 15 minutes
111111
max: 10, // limit each IP to 10 requests per windowMs
112112
skipSuccessfulRequests: true // successful auth to rate-limited ETAPI routes isn't counted. However, successful auth to /login is still counted!

src/services/branches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import treeService from "./tree.js";
22
import sql from "./sql.js";
3-
import BBranch from "../becca/entities/bbranch.js.js";
3+
import BBranch from "../becca/entities/bbranch.js";
44

55
function moveBranchToNote(branchToMove: BBranch, targetParentNoteId: string) {
66
if (branchToMove.parentNoteId === targetParentNoteId) {

0 commit comments

Comments
 (0)