Skip to content

Commit 0c245f9

Browse files
committed
style(json-crdt-extensions): 💄 run Prettier
1 parent 2dd20f4 commit 0c245f9

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# [15.6.0](https://github.com/streamich/json-joy/compare/v15.5.0...v15.6.0) (2024-04-28)
22

3-
43
### Bug Fixes
54

6-
* **json-crdt:** 🐛 store golbal session in clock vector ([407c383](https://github.com/streamich/json-joy/commit/407c38321ea43916cc8ccd0ce0ff3f678e5be76e))
7-
5+
- **json-crdt:** 🐛 store golbal session in clock vector ([407c383](https://github.com/streamich/json-joy/commit/407c38321ea43916cc8ccd0ce0ff3f678e5be76e))
86

97
### Features
108

11-
* **json-crdt:** 🎸 use SESSION.GLOBAL for default value and schema setup ([4813bc9](https://github.com/streamich/json-joy/commit/4813bc99d91e5a7287fc23b51ad29b0a37a18d91))
9+
- **json-crdt:** 🎸 use SESSION.GLOBAL for default value and schema setup ([4813bc9](https://github.com/streamich/json-joy/commit/4813bc99d91e5a7287fc23b51ad29b0a37a18d91))
1210

1311
# [15.5.0](https://github.com/streamich/json-joy/compare/v15.4.1...v15.5.0) (2024-04-26)
1412

src/json-crdt-extensions/peritext/overlay/MarkerOverlayPoint.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ export class MarkerOverlayPoint extends OverlayPoint {
1212
*/
1313
public textHash: number = 0;
1414

15-
constructor(protected readonly rga: AbstractRga<string>, id: ITimestampStruct, anchor: Anchor, public readonly marker: MarkerSlice) {
15+
constructor(
16+
protected readonly rga: AbstractRga<string>,
17+
id: ITimestampStruct,
18+
anchor: Anchor,
19+
public readonly marker: MarkerSlice,
20+
) {
1621
super(rga, id, anchor);
1722
}
1823

@@ -36,11 +41,11 @@ export class MarkerOverlayPoint extends OverlayPoint {
3641

3742
public toStringName(tab: string, lite?: boolean): string {
3843
const hash = lite ? '' : `#${this.textHash.toString(36).slice(-4)}`;
39-
const tag = lite ? '' : `, type = ${JSON.stringify((this.type() as any))}`;
44+
const tag = lite ? '' : `, type = ${JSON.stringify(this.type() as any)}`;
4045
return `${super.toStringName(tab, lite)}${lite ? '' : ' '}${hash}${tag}`;
4146
}
4247

4348
public toString(tab: string = '', lite?: boolean): string {
44-
return super.toString(tab, lite) + (lite ? '' : printTree(tab, [tab => this.marker.toString(tab)]));
49+
return super.toString(tab, lite) + (lite ? '' : printTree(tab, [(tab) => this.marker.toString(tab)]));
4550
}
4651
}

src/json-crdt-extensions/peritext/slice/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const enum SliceBehavior {
2727
/**
2828
* A Split slice, which is used to mark a block split position in the document.
2929
* For example, paragraph, heading, blockquote, etc.
30-
*
30+
*
3131
* @todo Rename to `Marker`.
3232
*/
3333
Split = 0b000,

0 commit comments

Comments
 (0)