@amplitude/rrweb-utils
Advanced tools
Comparing version 2.0.0-alpha.26 to 2.0.0-alpha.27
@@ -38,2 +38,4 @@ declare type BasePrototypeCache = { | ||
export declare const isAngularZonePresent: () => boolean; | ||
export declare function mutationObserverCtor(): (typeof MutationObserver)['prototype']['constructor']; | ||
@@ -40,0 +42,0 @@ |
@@ -14,2 +14,5 @@ const testableAccessors = { | ||
const untaintedBasePrototype = {}; | ||
const isAngularZonePresent = () => { | ||
return !!globalThis.Zone; | ||
}; | ||
function getUntaintedPrototype(key) { | ||
@@ -42,3 +45,3 @@ if (untaintedBasePrototype[key]) | ||
); | ||
if (isUntaintedAccessors && isUntaintedMethods) { | ||
if (isUntaintedAccessors && isUntaintedMethods && !isAngularZonePresent()) { | ||
untaintedBasePrototype[key] = defaultObj.prototype; | ||
@@ -151,2 +154,3 @@ return defaultObj.prototype; | ||
host, | ||
isAngularZonePresent, | ||
mutationObserverCtor, | ||
@@ -153,0 +157,0 @@ parentElement, |
{ | ||
"name": "@amplitude/rrweb-utils", | ||
"version": "2.0.0-alpha.26", | ||
"version": "2.0.0-alpha.27", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
80136
596