@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.js CHANGED
@@ -17100,7 +17100,7 @@ function apiBase() {
17100
17100
  function bridgeVersion() {
17101
17101
  try {
17102
17102
  if (true) {
17103
- return "0.1.156";
17103
+ return "0.1.157";
17104
17104
  }
17105
17105
  } catch {
17106
17106
  }
@@ -17114,7 +17114,7 @@ function stampBridgeVersionOnDocument() {
17114
17114
  return;
17115
17115
  }
17116
17116
  try {
17117
- const v = true ? "0.1.156" : "";
17117
+ const v = true ? "0.1.157" : "";
17118
17118
  if (v) {
17119
17119
  document.documentElement.setAttribute("data-ohw-bridge-version", v);
17120
17120
  window.__OHW_BRIDGE_VERSION__ = v;
@@ -17122,6 +17122,7 @@ function stampBridgeVersionOnDocument() {
17122
17122
  } catch {
17123
17123
  }
17124
17124
  }
17125
+ 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;
17125
17126
  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;
17126
17127
  function isVercelPreviewHost() {
17127
17128
  if (typeof location === "undefined") {
@@ -17139,6 +17140,9 @@ function reportOutageBeacon(args) {
17139
17140
  if (args.reason === "page_error" && args.detail && RECOVERABLE_PAGE_ERROR.test(args.detail)) {
17140
17141
  return;
17141
17142
  }
17143
+ if (args.reason === "content_fetch_failed" && args.detail && TRANSIENT_CONTENT_FETCH.test(args.detail.trim())) {
17144
+ return;
17145
+ }
17142
17146
  const key = `${args.subdomain}|${args.reason}`;
17143
17147
  const now = Date.now();
17144
17148
  const prev = lastSent.get(key) || 0;
@@ -31934,7 +31938,7 @@ function OhhwellsBridge() {
31934
31938
  postToParent2({
31935
31939
  type: "ow:ready",
31936
31940
  version: "1",
31937
- bridgeVersion: "0.1.156",
31941
+ bridgeVersion: "0.1.157",
31938
31942
  path: pathname,
31939
31943
  nodes: collectEditableNodes(editContentRef.current),
31940
31944
  sections