@ohhwells/bridge 0.1.154 → 0.1.155

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
@@ -16934,7 +16934,7 @@ function apiBase() {
16934
16934
  function bridgeVersion() {
16935
16935
  try {
16936
16936
  if (true) {
16937
- return "0.1.154";
16937
+ return "0.1.155";
16938
16938
  }
16939
16939
  } catch {
16940
16940
  }
@@ -16948,7 +16948,7 @@ function stampBridgeVersionOnDocument() {
16948
16948
  return;
16949
16949
  }
16950
16950
  try {
16951
- const v = true ? "0.1.154" : "";
16951
+ const v = true ? "0.1.155" : "";
16952
16952
  if (v) {
16953
16953
  document.documentElement.setAttribute("data-ohw-bridge-version", v);
16954
16954
  window.__OHW_BRIDGE_VERSION__ = v;
@@ -16957,10 +16957,19 @@ function stampBridgeVersionOnDocument() {
16957
16957
  }
16958
16958
  }
16959
16959
  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;
16960
+ function isVercelPreviewHost() {
16961
+ if (typeof location === "undefined") {
16962
+ return false;
16963
+ }
16964
+ return location.hostname.toLowerCase().endsWith(".vercel.ohhwells.site");
16965
+ }
16960
16966
  function reportOutageBeacon(args) {
16961
16967
  if (typeof window === "undefined" || !args.subdomain) {
16962
16968
  return;
16963
16969
  }
16970
+ if (isVercelPreviewHost()) {
16971
+ return;
16972
+ }
16964
16973
  if (args.reason === "page_error" && args.detail && RECOVERABLE_PAGE_ERROR.test(args.detail)) {
16965
16974
  return;
16966
16975
  }
@@ -31880,7 +31889,7 @@ function OhhwellsBridge() {
31880
31889
  postToParent2({
31881
31890
  type: "ow:ready",
31882
31891
  version: "1",
31883
- bridgeVersion: "0.1.154",
31892
+ bridgeVersion: "0.1.155",
31884
31893
  path: pathname,
31885
31894
  nodes: collectEditableNodes(editContentRef.current),
31886
31895
  sections