@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.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17044,7 +17044,7 @@ function apiBase() {
|
|
|
17044
17044
|
function bridgeVersion() {
|
|
17045
17045
|
try {
|
|
17046
17046
|
if (true) {
|
|
17047
|
-
return "0.1.
|
|
17047
|
+
return "0.1.155";
|
|
17048
17048
|
}
|
|
17049
17049
|
} catch {
|
|
17050
17050
|
}
|
|
@@ -17058,7 +17058,7 @@ function stampBridgeVersionOnDocument() {
|
|
|
17058
17058
|
return;
|
|
17059
17059
|
}
|
|
17060
17060
|
try {
|
|
17061
|
-
const v = true ? "0.1.
|
|
17061
|
+
const v = true ? "0.1.155" : "";
|
|
17062
17062
|
if (v) {
|
|
17063
17063
|
document.documentElement.setAttribute("data-ohw-bridge-version", v);
|
|
17064
17064
|
window.__OHW_BRIDGE_VERSION__ = v;
|
|
@@ -17067,10 +17067,19 @@ function stampBridgeVersionOnDocument() {
|
|
|
17067
17067
|
}
|
|
17068
17068
|
}
|
|
17069
17069
|
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;
|
|
17070
|
+
function isVercelPreviewHost() {
|
|
17071
|
+
if (typeof location === "undefined") {
|
|
17072
|
+
return false;
|
|
17073
|
+
}
|
|
17074
|
+
return location.hostname.toLowerCase().endsWith(".vercel.ohhwells.site");
|
|
17075
|
+
}
|
|
17070
17076
|
function reportOutageBeacon(args) {
|
|
17071
17077
|
if (typeof window === "undefined" || !args.subdomain) {
|
|
17072
17078
|
return;
|
|
17073
17079
|
}
|
|
17080
|
+
if (isVercelPreviewHost()) {
|
|
17081
|
+
return;
|
|
17082
|
+
}
|
|
17074
17083
|
if (args.reason === "page_error" && args.detail && RECOVERABLE_PAGE_ERROR.test(args.detail)) {
|
|
17075
17084
|
return;
|
|
17076
17085
|
}
|
|
@@ -31984,7 +31993,7 @@ function OhhwellsBridge() {
|
|
|
31984
31993
|
postToParent2({
|
|
31985
31994
|
type: "ow:ready",
|
|
31986
31995
|
version: "1",
|
|
31987
|
-
bridgeVersion: "0.1.
|
|
31996
|
+
bridgeVersion: "0.1.155",
|
|
31988
31997
|
path: pathname,
|
|
31989
31998
|
nodes: collectEditableNodes(editContentRef.current),
|
|
31990
31999
|
sections
|