diff --git a/src/services/sync_mutex.ts b/src/services/sync_mutex.ts index 60bb1ba4f..5bdbaa36f 100644 --- a/src/services/sync_mutex.ts +++ b/src/services/sync_mutex.ts @@ -3,7 +3,7 @@ * (like consistency checks) can use this mutex to make sure sync isn't currently running. */ -const Mutex = require('async-mutex').Mutex; +import { Mutex } from "async-mutex"; const instance = new Mutex(); async function doExclusively(func: () => T) { diff --git a/src/share/shaca/entities/sattribute.ts b/src/share/shaca/entities/sattribute.ts index 73298ef2e..189d9e6a6 100644 --- a/src/share/shaca/entities/sattribute.ts +++ b/src/share/shaca/entities/sattribute.ts @@ -1,10 +1,9 @@ "use strict"; +import AbstractShacaEntity from "./abstract_shaca_entity"; import { SAttributeRow } from "./rows"; import SNote from "./snote.js"; -const AbstractShacaEntity = require('./abstract_shaca_entity'); - class SAttribute extends AbstractShacaEntity { attributeId: string; diff --git a/src/share/shaca/entities/snote.ts b/src/share/shaca/entities/snote.ts index 923e35a29..755404b40 100644 --- a/src/share/shaca/entities/snote.ts +++ b/src/share/shaca/entities/snote.ts @@ -27,7 +27,7 @@ class SNote extends AbstractShacaEntity { parentBranches: SBranch[]; parents: SNote[]; children: SNote[]; - private ownedAttributes: SAttribute[]; + ownedAttributes: SAttribute[]; private __attributeCache: SAttribute[] | null; private __inheritableAttributeCache: SAttribute[] | null; targetRelations: SAttribute[]; diff --git a/src/share/shaca/shaca-interface.ts b/src/share/shaca/shaca-interface.ts index 43fbf9dfa..f568e9cec 100644 --- a/src/share/shaca/shaca-interface.ts +++ b/src/share/shaca/shaca-interface.ts @@ -8,7 +8,7 @@ export default class Shaca { notes!: Record; branches!: Record; childParentToBranch!: Record; - private attributes!: Record; + attributes!: Record; attachments!: Record; aliasToNote!: Record; shareRootNote!: SNote | null;