@amplitude/rrweb-player 2.0.0-alpha.31 → 2.0.0-alpha.32
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/rrweb-player.cjs +15 -9
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +15 -9
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +15 -9
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +17 -17
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +4 -4
package/dist/rrweb-player.cjs
CHANGED
|
@@ -9366,14 +9366,20 @@ const testableMethods = {
|
|
|
9366
9366
|
MutationObserver: ["constructor"]
|
|
9367
9367
|
};
|
|
9368
9368
|
const untaintedBasePrototype = {};
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9369
|
+
function angularZoneUnpatchedAlternative(key) {
|
|
9370
|
+
var _a2, _b2;
|
|
9371
|
+
const angularUnpatchedVersionSymbol = (_b2 = (_a2 = globalThis == null ? void 0 : globalThis.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b2.call(_a2, key);
|
|
9372
|
+
if (angularUnpatchedVersionSymbol && globalThis[angularUnpatchedVersionSymbol]) {
|
|
9373
|
+
return globalThis[angularUnpatchedVersionSymbol];
|
|
9374
|
+
} else {
|
|
9375
|
+
return void 0;
|
|
9376
|
+
}
|
|
9377
|
+
}
|
|
9372
9378
|
function getUntaintedPrototype(key) {
|
|
9373
9379
|
if (untaintedBasePrototype[key])
|
|
9374
9380
|
return untaintedBasePrototype[key];
|
|
9375
|
-
const
|
|
9376
|
-
const defaultPrototype =
|
|
9381
|
+
const candidate = angularZoneUnpatchedAlternative(key) || globalThis[key];
|
|
9382
|
+
const defaultPrototype = candidate.prototype;
|
|
9377
9383
|
const accessorNames = key in testableAccessors ? testableAccessors[key] : void 0;
|
|
9378
9384
|
const isUntaintedAccessors = Boolean(
|
|
9379
9385
|
accessorNames && // @ts-expect-error 2345
|
|
@@ -9396,15 +9402,15 @@ function getUntaintedPrototype(key) {
|
|
|
9396
9402
|
}
|
|
9397
9403
|
)
|
|
9398
9404
|
);
|
|
9399
|
-
if (isUntaintedAccessors && isUntaintedMethods
|
|
9400
|
-
untaintedBasePrototype[key] =
|
|
9401
|
-
return
|
|
9405
|
+
if (isUntaintedAccessors && isUntaintedMethods) {
|
|
9406
|
+
untaintedBasePrototype[key] = candidate.prototype;
|
|
9407
|
+
return candidate.prototype;
|
|
9402
9408
|
}
|
|
9403
9409
|
try {
|
|
9404
9410
|
const iframeEl = document.createElement("iframe");
|
|
9405
9411
|
document.body.appendChild(iframeEl);
|
|
9406
9412
|
const win = iframeEl.contentWindow;
|
|
9407
|
-
if (!win) return
|
|
9413
|
+
if (!win) return candidate.prototype;
|
|
9408
9414
|
const untaintedObject = win[key].prototype;
|
|
9409
9415
|
document.body.removeChild(iframeEl);
|
|
9410
9416
|
if (!untaintedObject) return defaultPrototype;
|