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

Commit ecb8a7f

Browse files
committed
server-esm: Change single export to export default
1 parent 0ceae0a commit ecb8a7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+73
-73
lines changed

src/app.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import express from "express";
2-
import path from "path";
3-
import favicon from "serve-favicon";
4-
import cookieParser from "cookie-parser";
5-
import helmet from "helmet";
6-
import compression from "compression";
1+
import express = require('express');
2+
import path = require('path');
3+
import favicon = require('serve-favicon');
4+
import cookieParser = require('cookie-parser');
5+
import helmet = require('helmet');
6+
import compression = require('compression');
77
import sessionParser from "./routes/session_parser.js";
88
import utils from "./services/utils.js";
99

@@ -57,4 +57,4 @@ if (utils.isElectron()) {
5757
require('@electron/remote/main').initialize();
5858
}
5959

60-
export = app;
60+
export default app;

src/becca/becca.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import Becca from "./becca-interface";
44

55
const becca = new Becca();
66

7-
export = becca;
7+
export default becca;

src/becca/entities/abstract_becca_entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,4 +327,4 @@ abstract class AbstractBeccaEntity<T extends AbstractBeccaEntity<T>> {
327327
}
328328
}
329329

330-
export = AbstractBeccaEntity;
330+
export default AbstractBeccaEntity;

src/becca/entities/battachment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,4 @@ class BAttachment extends AbstractBeccaEntity<BAttachment> {
249249
}
250250
}
251251

252-
export = BAttachment;
252+
export default BAttachment;

src/becca/entities/battribute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,4 @@ class BAttribute extends AbstractBeccaEntity<BAttribute> {
226226
}
227227
}
228228

229-
export = BAttribute;
229+
export default BAttribute;

src/becca/entities/bblob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ class BBlob extends AbstractBeccaEntity<BBlob> {
3737
}
3838
}
3939

40-
export = BBlob;
40+
export default BBlob;

src/becca/entities/bbranch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,4 @@ class BBranch extends AbstractBeccaEntity<BBranch> {
285285
}
286286
}
287287

288-
export = BBranch;
288+
export default BBranch;

src/becca/entities/betapi_token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ class BEtapiToken extends AbstractBeccaEntity<BEtapiToken> {
8080
}
8181
}
8282

83-
export = BEtapiToken;
83+
export default BEtapiToken;

src/becca/entities/bnote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,4 +1696,4 @@ class BNote extends AbstractBeccaEntity<BNote> {
16961696
}
16971697
}
16981698

1699-
export = BNote;
1699+
export default BNote;

src/becca/entities/boption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ class BOption extends AbstractBeccaEntity<BOption> {
4848
}
4949
}
5050

51-
export = BOption;
51+
export default BOption;

0 commit comments

Comments
 (0)