@ohhwells/bridge 0.1.152-next.409 → 0.1.152-next.410
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 +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17089,7 +17089,7 @@ function apiBase() {
|
|
|
17089
17089
|
function bridgeVersion() {
|
|
17090
17090
|
try {
|
|
17091
17091
|
if (true) {
|
|
17092
|
-
return "0.1.152-next.
|
|
17092
|
+
return "0.1.152-next.410";
|
|
17093
17093
|
}
|
|
17094
17094
|
} catch {
|
|
17095
17095
|
}
|
|
@@ -17103,7 +17103,7 @@ function stampBridgeVersionOnDocument() {
|
|
|
17103
17103
|
return;
|
|
17104
17104
|
}
|
|
17105
17105
|
try {
|
|
17106
|
-
const v = true ? "0.1.152-next.
|
|
17106
|
+
const v = true ? "0.1.152-next.410" : "";
|
|
17107
17107
|
if (v) {
|
|
17108
17108
|
document.documentElement.setAttribute("data-ohw-bridge-version", v);
|
|
17109
17109
|
window.__OHW_BRIDGE_VERSION__ = v;
|
|
@@ -17111,10 +17111,14 @@ function stampBridgeVersionOnDocument() {
|
|
|
17111
17111
|
} catch {
|
|
17112
17112
|
}
|
|
17113
17113
|
}
|
|
17114
|
+
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;
|
|
17114
17115
|
function reportOutageBeacon(args) {
|
|
17115
17116
|
if (typeof window === "undefined" || !args.subdomain) {
|
|
17116
17117
|
return;
|
|
17117
17118
|
}
|
|
17119
|
+
if (args.reason === "page_error" && args.detail && RECOVERABLE_PAGE_ERROR.test(args.detail)) {
|
|
17120
|
+
return;
|
|
17121
|
+
}
|
|
17118
17122
|
const key = `${args.subdomain}|${args.reason}`;
|
|
17119
17123
|
const now = Date.now();
|
|
17120
17124
|
const prev = lastSent.get(key) || 0;
|
|
@@ -32071,7 +32075,7 @@ function OhhwellsBridge() {
|
|
|
32071
32075
|
postToParent2({
|
|
32072
32076
|
type: "ow:ready",
|
|
32073
32077
|
version: "1",
|
|
32074
|
-
bridgeVersion: "0.1.152-next.
|
|
32078
|
+
bridgeVersion: "0.1.152-next.410",
|
|
32075
32079
|
path: pathname,
|
|
32076
32080
|
nodes: collectEditableNodes(editContentRef.current),
|
|
32077
32081
|
sections
|