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

Commit 0ceae0a

Browse files
committed
server-esm: Change some more export object to export default object
1 parent 55eecb0 commit 0ceae0a

Some content is hidden

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

90 files changed

+90
-90
lines changed

spec/search/becca_mocking.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function note(title: string, extraParams = {}) {
8080
return new NoteBuilder(note);
8181
}
8282

83-
export = {
83+
export default {
8484
NoteBuilder,
8585
findNoteByTitle,
8686
note,

src/becca/becca_loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ eventService.subscribeBeccaLoader(eventService.ENTER_PROTECTED_SESSION, () => {
286286

287287
eventService.subscribeBeccaLoader(eventService.LEAVE_PROTECTED_SESSION, load);
288288

289-
export = {
289+
export default {
290290
load,
291291
reload,
292292
beccaLoaded

src/becca/becca_service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function getNoteTitleForPath(notePathArray: string[]) {
8282
return titles.join(' / ');
8383
}
8484

85-
export = {
85+
export default {
8686
getNoteTitle,
8787
getNoteTitleForPath,
8888
isNotePathArchived

src/etapi/etapi_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function validateAndPatch(target: any, source: any, allowedProperties: Validator
146146
}
147147
}
148148

149-
export = {
149+
export default {
150150
EtapiError,
151151
sendError,
152152
route,

src/etapi/mappers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function mapAttachmentToPojo(attachment: BAttachment) {
6464
};
6565
}
6666

67-
export = {
67+
export default {
6868
mapNoteToPojo,
6969
mapBranchToPojo,
7070
mapAttributeToPojo,

src/etapi/validators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function isValidEntityId(obj: unknown) {
107107
}
108108
}
109109

110-
export = {
110+
export default {
111111
mandatory,
112112
notNull,
113113
isString,

src/routes/api/attachments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function convertAttachmentToNote(req: Request) {
9797
return attachment.convertToNote();
9898
}
9999

100-
export = {
100+
export default {
101101
getAttachmentBlob,
102102
getAttachments,
103103
getAttachment,

src/routes/api/attributes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function deleteRelation(req: Request) {
238238
}
239239
}
240240

241-
export = {
241+
export default {
242242
updateNoteAttributes,
243243
updateNoteAttribute,
244244
setNoteAttribute,

src/routes/api/branches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function setPrefix(req: Request) {
224224
branch.save();
225225
}
226226

227-
export = {
227+
export default {
228228
moveBranchToParent,
229229
moveBranchBeforeNote,
230230
moveBranchAfterNote,

src/routes/api/bulk_action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getAffectedNoteIds(noteIds: string[], includeDescendants: boolean) {
4343
return affectedNoteIds;
4444
}
4545

46-
export = {
46+
export default {
4747
execute,
4848
getAffectedNoteCount
4949
};

0 commit comments

Comments
 (0)