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

Commit 20c729e

Browse files
committed
server-esm: Solve a few straightforward imports
1 parent 5d3e54e commit 20c729e

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/services/sync_mutex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* (like consistency checks) can use this mutex to make sure sync isn't currently running.
44
*/
55

6-
const Mutex = require('async-mutex').Mutex;
6+
import { Mutex } from "async-mutex";
77
const instance = new Mutex();
88

99
async function doExclusively<T>(func: () => T) {

src/share/shaca/entities/sattribute.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"use strict";
22

3+
import AbstractShacaEntity from "./abstract_shaca_entity";
34
import { SAttributeRow } from "./rows";
45
import SNote from "./snote.js";
56

6-
const AbstractShacaEntity = require('./abstract_shaca_entity');
7-
87
class SAttribute extends AbstractShacaEntity {
98

109
attributeId: string;

src/share/shaca/entities/snote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SNote extends AbstractShacaEntity {
2727
parentBranches: SBranch[];
2828
parents: SNote[];
2929
children: SNote[];
30-
private ownedAttributes: SAttribute[];
30+
ownedAttributes: SAttribute[];
3131
private __attributeCache: SAttribute[] | null;
3232
private __inheritableAttributeCache: SAttribute[] | null;
3333
targetRelations: SAttribute[];

src/share/shaca/shaca-interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default class Shaca {
88
notes!: Record<string, SNote>;
99
branches!: Record<string, SBranch>;
1010
childParentToBranch!: Record<string, SBranch>;
11-
private attributes!: Record<string, SAttribute>;
11+
attributes!: Record<string, SAttribute>;
1212
attachments!: Record<string, SAttachment>;
1313
aliasToNote!: Record<string, SNote>;
1414
shareRootNote!: SNote | null;

0 commit comments

Comments
 (0)