@sentry/replay 7.73.0 → 7.74.1
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/cjs/index.js +6 -6
- package/cjs/index.js.map +1 -1
- package/esm/index.js +6 -6
- package/esm/index.js.map +1 -1
- package/package.json +7 -7
- package/types/integration.d.ts.map +1 -1
package/esm/index.js
CHANGED
|
@@ -2718,7 +2718,9 @@ function initAdoptedStyleSheetObserver({ mirror, stylesheetManager, }, host) {
|
|
|
2718
2718
|
const patchTarget = host.nodeName === '#document'
|
|
2719
2719
|
? (_a = host.defaultView) === null || _a === void 0 ? void 0 : _a.Document
|
|
2720
2720
|
: (_c = (_b = host.ownerDocument) === null || _b === void 0 ? void 0 : _b.defaultView) === null || _c === void 0 ? void 0 : _c.ShadowRoot;
|
|
2721
|
-
const originalPropertyDescriptor =
|
|
2721
|
+
const originalPropertyDescriptor = (patchTarget === null || patchTarget === void 0 ? void 0 : patchTarget.prototype)
|
|
2722
|
+
? Object.getOwnPropertyDescriptor(patchTarget === null || patchTarget === void 0 ? void 0 : patchTarget.prototype, 'adoptedStyleSheets')
|
|
2723
|
+
: undefined;
|
|
2722
2724
|
if (hostId === null ||
|
|
2723
2725
|
hostId === -1 ||
|
|
2724
2726
|
!patchTarget ||
|
|
@@ -9835,13 +9837,11 @@ class Replay {
|
|
|
9835
9837
|
collectFonts: true,
|
|
9836
9838
|
errorHandler: (err) => {
|
|
9837
9839
|
try {
|
|
9838
|
-
// @ts-expect-error Set this so that replay SDK can ignore errors originating from rrweb
|
|
9839
9840
|
err.__rrweb__ = true;
|
|
9840
|
-
} catch (
|
|
9841
|
-
//
|
|
9841
|
+
} catch (error) {
|
|
9842
|
+
// ignore errors here
|
|
9843
|
+
// this can happen if the error is frozen or does not allow mutation for other reasons
|
|
9842
9844
|
}
|
|
9843
|
-
// return true to suppress throwing the error inside of rrweb
|
|
9844
|
-
return true;
|
|
9845
9845
|
},
|
|
9846
9846
|
};
|
|
9847
9847
|
|