@ohhwells/bridge 0.1.153-next.415 → 0.1.153-next.417

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.js CHANGED
@@ -17145,7 +17145,7 @@ function apiBase() {
17145
17145
  function bridgeVersion() {
17146
17146
  try {
17147
17147
  if (true) {
17148
- return "0.1.153-next.415";
17148
+ return "0.1.153-next.417";
17149
17149
  }
17150
17150
  } catch {
17151
17151
  }
@@ -17159,7 +17159,7 @@ function stampBridgeVersionOnDocument() {
17159
17159
  return;
17160
17160
  }
17161
17161
  try {
17162
- const v = true ? "0.1.153-next.415" : "";
17162
+ const v = true ? "0.1.153-next.417" : "";
17163
17163
  if (v) {
17164
17164
  document.documentElement.setAttribute("data-ohw-bridge-version", v);
17165
17165
  window.__OHW_BRIDGE_VERSION__ = v;
@@ -17167,6 +17167,7 @@ function stampBridgeVersionOnDocument() {
17167
17167
  } catch {
17168
17168
  }
17169
17169
  }
17170
+ 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;
17170
17171
  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;
17171
17172
  function isVercelPreviewHost() {
17172
17173
  if (typeof location === "undefined") {
@@ -17184,6 +17185,9 @@ function reportOutageBeacon(args) {
17184
17185
  if (args.reason === "page_error" && args.detail && RECOVERABLE_PAGE_ERROR.test(args.detail)) {
17185
17186
  return;
17186
17187
  }
17188
+ if (args.reason === "content_fetch_failed" && args.detail && TRANSIENT_CONTENT_FETCH.test(args.detail.trim())) {
17189
+ return;
17190
+ }
17187
17191
  const key = `${args.subdomain}|${args.reason}`;
17188
17192
  const now = Date.now();
17189
17193
  const prev = lastSent.get(key) || 0;
@@ -32041,7 +32045,7 @@ function OhhwellsBridge() {
32041
32045
  postToParent2({
32042
32046
  type: "ow:ready",
32043
32047
  version: "1",
32044
- bridgeVersion: "0.1.153-next.415",
32048
+ bridgeVersion: "0.1.153-next.417",
32045
32049
  path: pathname,
32046
32050
  nodes: collectEditableNodes(editContentRef.current),
32047
32051
  sections