This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3
3
* (like consistency checks) can use this mutex to make sure sync isn't currently running.
4
4
*/
5
5
6
- const Mutex = require ( ' async-mutex' ) . Mutex ;
6
+ import { Mutex } from " async-mutex" ;
7
7
const instance = new Mutex ( ) ;
8
8
9
9
async function doExclusively < T > ( func : ( ) => T ) {
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
+ import AbstractShacaEntity from "./abstract_shaca_entity" ;
3
4
import { SAttributeRow } from "./rows" ;
4
5
import SNote from "./snote.js" ;
5
6
6
- const AbstractShacaEntity = require ( './abstract_shaca_entity' ) ;
7
-
8
7
class SAttribute extends AbstractShacaEntity {
9
8
10
9
attributeId : string ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class SNote extends AbstractShacaEntity {
27
27
parentBranches : SBranch [ ] ;
28
28
parents : SNote [ ] ;
29
29
children : SNote [ ] ;
30
- private ownedAttributes : SAttribute [ ] ;
30
+ ownedAttributes : SAttribute [ ] ;
31
31
private __attributeCache : SAttribute [ ] | null ;
32
32
private __inheritableAttributeCache : SAttribute [ ] | null ;
33
33
targetRelations : SAttribute [ ] ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default class Shaca {
8
8
notes ! : Record < string , SNote > ;
9
9
branches ! : Record < string , SBranch > ;
10
10
childParentToBranch ! : Record < string , SBranch > ;
11
- private attributes ! : Record < string , SAttribute > ;
11
+ attributes ! : Record < string , SAttribute > ;
12
12
attachments ! : Record < string , SAttachment > ;
13
13
aliasToNote ! : Record < string , SNote > ;
14
14
shareRootNote ! : SNote | null ;
You can’t perform that action at this time.
0 commit comments