server-esm: Solve a few straightforward imports

This commit is contained in:
Elian Doran 2024-07-18 22:11:38 +03:00
parent 5d3e54ee9c
commit 20c729e62b
No known key found for this signature in database
4 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
* (like consistency checks) can use this mutex to make sure sync isn't currently running. * (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(); const instance = new Mutex();
async function doExclusively<T>(func: () => T) { async function doExclusively<T>(func: () => T) {

View File

@ -1,10 +1,9 @@
"use strict"; "use strict";
import AbstractShacaEntity from "./abstract_shaca_entity";
import { SAttributeRow } from "./rows"; import { SAttributeRow } from "./rows";
import SNote from "./snote.js"; import SNote from "./snote.js";
const AbstractShacaEntity = require('./abstract_shaca_entity');
class SAttribute extends AbstractShacaEntity { class SAttribute extends AbstractShacaEntity {
attributeId: string; attributeId: string;

View File

@ -27,7 +27,7 @@ class SNote extends AbstractShacaEntity {
parentBranches: SBranch[]; parentBranches: SBranch[];
parents: SNote[]; parents: SNote[];
children: SNote[]; children: SNote[];
private ownedAttributes: SAttribute[]; ownedAttributes: SAttribute[];
private __attributeCache: SAttribute[] | null; private __attributeCache: SAttribute[] | null;
private __inheritableAttributeCache: SAttribute[] | null; private __inheritableAttributeCache: SAttribute[] | null;
targetRelations: SAttribute[]; targetRelations: SAttribute[];

View File

@ -8,7 +8,7 @@ export default class Shaca {
notes!: Record<string, SNote>; notes!: Record<string, SNote>;
branches!: Record<string, SBranch>; branches!: Record<string, SBranch>;
childParentToBranch!: Record<string, SBranch>; childParentToBranch!: Record<string, SBranch>;
private attributes!: Record<string, SAttribute>; attributes!: Record<string, SAttribute>;
attachments!: Record<string, SAttachment>; attachments!: Record<string, SAttachment>;
aliasToNote!: Record<string, SNote>; aliasToNote!: Record<string, SNote>;
shareRootNote!: SNote | null; shareRootNote!: SNote | null;