@metrevals/inspect-log-viewer 0.3.151-beta.1764339753 → 0.3.151-beta.1764376508

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/lib/index.js CHANGED
@@ -105145,7 +105145,7 @@ const ViewerOptionsPopover = ({
105145
105145
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.fullWidth, styles$1s.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1s.logDir, children: logDir2 }) }),
105146
105146
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.spacer) }),
105147
105147
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
105148
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.150-17-g464563733" }),
105148
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.150-18-gb54776383" }),
105149
105149
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
105150
105150
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
105151
105151
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.spacer) }),
@@ -143913,7 +143913,7 @@ class LintState {
143913
143913
  diagnostics = diagnosticFilter(diagnostics, state);
143914
143914
  let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to);
143915
143915
  let deco = new RangeSetBuilder(), active = [], pos2 = 0;
143916
- let scan = state.doc.iter(), scanPos = 0;
143916
+ let scan = state.doc.iter(), scanPos = 0, docLen = state.doc.length;
143917
143917
  for (let i = 0; ; ) {
143918
143918
  let next = i == sorted.length ? null : sorted[i];
143919
143919
  if (!next && !active.length)
@@ -143924,6 +143924,8 @@ class LintState {
143924
143924
  to2 = active.reduce((p, d) => Math.min(p, d.to), next && next.from > from ? next.from : 1e8);
143925
143925
  } else {
143926
143926
  from = next.from;
143927
+ if (from > docLen)
143928
+ break;
143927
143929
  to2 = next.to;
143928
143930
  active.push(next);
143929
143931
  i++;
@@ -143939,8 +143941,9 @@ class LintState {
143939
143941
  break;
143940
143942
  }
143941
143943
  }
143944
+ to2 = Math.min(to2, docLen);
143942
143945
  let widget = false;
143943
- if (active.some((d) => d.from == from && d.to == to2)) {
143946
+ if (active.some((d) => d.from == from && (d.to == to2 || to2 == docLen))) {
143944
143947
  widget = from == to2;
143945
143948
  if (!widget && to2 - from < 10) {
143946
143949
  let behind = from - (scanPos + scan.value.length);
@@ -143976,6 +143979,8 @@ class LintState {
143976
143979
  }));
143977
143980
  }
143978
143981
  pos2 = to2;
143982
+ if (pos2 == docLen)
143983
+ break;
143979
143984
  for (let i2 = 0; i2 < active.length; i2++)
143980
143985
  if (active[i2].to <= pos2)
143981
143986
  active.splice(i2--, 1);