@fluidframework/merge-tree 0.56.5 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  module.exports = {
7
7
  "extends": [
8
- "@fluidframework/eslint-config-fluid/eslint7"
8
+ "@fluidframework/eslint-config-fluid"
9
9
  ],
10
10
  "parserOptions": {
11
11
  "project": ["./tsconfig.json", "./src/test/tsconfig.json"]
package/dist/mergeTree.js CHANGED
@@ -96,7 +96,7 @@ function addNodeReferences(mergeTree, node, rightmostTiles, leftmostTiles, range
96
96
  }
97
97
  if (node.isLeaf()) {
98
98
  const segment = node;
99
- if ((_a = mergeTree.localNetLength(segment)) !== null && _a !== void 0 ? _a : 0 > 0) {
99
+ if (((_a = mergeTree.localNetLength(segment)) !== null && _a !== void 0 ? _a : 0) > 0) {
100
100
  if (Marker.is(segment)) {
101
101
  const markerId = segment.getId();
102
102
  // Also in insertMarker but need for reload segs case
@@ -636,7 +636,7 @@ function rangeShift(node, segpos, refSeq, clientId, offset, end, searchInfo) {
636
636
  var _a;
637
637
  if (node.isLeaf()) {
638
638
  const seg = node;
639
- if (((_a = searchInfo.mergeTree.localNetLength(seg)) !== null && _a !== void 0 ? _a : 0 > 0) && Marker.is(seg)) {
639
+ if ((((_a = searchInfo.mergeTree.localNetLength(seg)) !== null && _a !== void 0 ? _a : 0) > 0) && Marker.is(seg)) {
640
640
  if (seg.refType &
641
641
  (ops_1.ReferenceType.NestBegin | ops_1.ReferenceType.NestEnd)) {
642
642
  applyLeafRangeMarker(seg, searchInfo);
@@ -1117,7 +1117,7 @@ class MergeTree {
1117
1117
  var _a;
1118
1118
  let _segStart = segStart;
1119
1119
  let _segEnd = segEnd;
1120
- if ((_a = this.nodeLength(segment, toSeq, clientId)) !== null && _a !== void 0 ? _a : 0 > 0) {
1120
+ if (((_a = this.nodeLength(segment, toSeq, clientId)) !== null && _a !== void 0 ? _a : 0) > 0) {
1121
1121
  const position = this.getPosition(segment, toSeq, clientId);
1122
1122
  if (_segStart < 0) {
1123
1123
  _segStart = 0;