@spotlightjs/overlay 2.4.0-next.1 → 2.4.0-next.2

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.
@@ -2206,6 +2206,7 @@ class Np {
2206
2206
  t.forEach((n) => this.pushEvent(n));
2207
2207
  }
2208
2208
  setSidecarUrl(t) {
2209
+ t || (this.contextLinesProvider = null);
2209
2210
  const { origin: n } = new URL(t);
2210
2211
  this.contextLinesProvider = n + bu;
2211
2212
  }
@@ -2354,18 +2355,18 @@ class Np {
2354
2355
  ee("Skipping contextlines request for", n);
2355
2356
  return;
2356
2357
  }
2357
- n.stacktrace.frames.reverse();
2358
- try {
2359
- const s = await cR()(this.contextLinesProvider, {
2360
- method: "PUT",
2361
- body: JSON.stringify(n.stacktrace)
2362
- });
2363
- if (!s.ok || s.status !== 200)
2364
- return;
2365
- const a = await s.json();
2366
- n.stacktrace = a;
2367
- } catch {
2368
- }
2358
+ if (n.stacktrace.frames.reverse(), this.contextLinesProvider)
2359
+ try {
2360
+ const s = await cR()(this.contextLinesProvider, {
2361
+ method: "PUT",
2362
+ body: JSON.stringify(n.stacktrace)
2363
+ });
2364
+ if (!s.ok || s.status !== 200)
2365
+ return;
2366
+ const a = await s.json();
2367
+ n.stacktrace = a;
2368
+ } catch {
2369
+ }
2369
2370
  })
2370
2371
  );
2371
2372
  }
@@ -3220,7 +3221,7 @@ function hl(e) {
3220
3221
  }
3221
3222
  );
3222
3223
  }
3223
- const oO = P.lazy(() => import("./main-fb88ae23.js").then((e) => e.m)), EO = () => {
3224
+ const oO = P.lazy(() => import("./main-3ec58c54.js").then((e) => e.m)), EO = () => {
3224
3225
  };
3225
3226
  function Eo({
3226
3227
  data: e,
@@ -27248,4 +27249,4 @@ export {
27248
27249
  lR as t,
27249
27250
  zP as v
27250
27251
  };
27251
- //# sourceMappingURL=index-047a72e8.js.map
27252
+ //# sourceMappingURL=index-dcda5286.js.map