@ohhwells/bridge 0.1.156 → 0.1.157

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/dist/index.cjs CHANGED
@@ -17212,7 +17212,7 @@ function apiBase() {
17212
17212
  function bridgeVersion() {
17213
17213
  try {
17214
17214
  if (true) {
17215
- return "0.1.156";
17215
+ return "0.1.157";
17216
17216
  }
17217
17217
  } catch {
17218
17218
  }
@@ -17226,7 +17226,7 @@ function stampBridgeVersionOnDocument() {
17226
17226
  return;
17227
17227
  }
17228
17228
  try {
17229
- const v = true ? "0.1.156" : "";
17229
+ const v = true ? "0.1.157" : "";
17230
17230
  if (v) {
17231
17231
  document.documentElement.setAttribute("data-ohw-bridge-version", v);
17232
17232
  window.__OHW_BRIDGE_VERSION__ = v;
@@ -17234,6 +17234,7 @@ function stampBridgeVersionOnDocument() {
17234
17234
  } catch {
17235
17235
  }
17236
17236
  }
17237
+ var TRANSIENT_CONTENT_FETCH = /^(Failed to fetch|Load failed|NetworkError when attempting to fetch resource\.?|fetch failed|The user aborted a request\.?|The operation was aborted\.?)$/i;
17237
17238
  var RECOVERABLE_PAGE_ERROR = /Minified React error #(?:418|419|421|422|423|425)\b|Hydration failed because the initial UI does not match|Text content does not match server-rendered HTML|There was an error while hydrating|did not match\. Server:/i;
17238
17239
  function isVercelPreviewHost() {
17239
17240
  if (typeof location === "undefined") {
@@ -17251,6 +17252,9 @@ function reportOutageBeacon(args) {
17251
17252
  if (args.reason === "page_error" && args.detail && RECOVERABLE_PAGE_ERROR.test(args.detail)) {
17252
17253
  return;
17253
17254
  }
17255
+ if (args.reason === "content_fetch_failed" && args.detail && TRANSIENT_CONTENT_FETCH.test(args.detail.trim())) {
17256
+ return;
17257
+ }
17254
17258
  const key = `${args.subdomain}|${args.reason}`;
17255
17259
  const now = Date.now();
17256
17260
  const prev = lastSent.get(key) || 0;
@@ -32040,7 +32044,7 @@ function OhhwellsBridge() {
32040
32044
  postToParent2({
32041
32045
  type: "ow:ready",
32042
32046
  version: "1",
32043
- bridgeVersion: "0.1.156",
32047
+ bridgeVersion: "0.1.157",
32044
32048
  path: pathname,
32045
32049
  nodes: collectEditableNodes(editContentRef.current),
32046
32050
  sections