@glimt/record 0.0.72 → 0.0.73

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/record.cjs CHANGED
@@ -10372,6 +10372,7 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10372
10372
  if (!this.inGlobalStorm) return;
10373
10373
  this.debounceTimeout = setTimeout(() => {
10374
10374
  this.debounceTimeout = null;
10375
+ debugLog(`MutationRateLimiter, stopping storm because of debounce`);
10375
10376
  this.stormStopped();
10376
10377
  }, this.debounceTimeoutMs);
10377
10378
  }
@@ -12191,6 +12192,7 @@ function initObservers(o2, hooks = {}) {
12191
12192
  mergeHooks(o2, hooks);
12192
12193
  let mutationObserver;
12193
12194
  if (o2.recordDOM) {
12195
+ debugLog("adding mutation observer in initObservers");
12194
12196
  mutationObserver = initMutationObserver(o2, o2.doc);
12195
12197
  }
12196
12198
  const mousemoveHandler = initMoveObserver(o2);
@@ -12840,6 +12842,7 @@ class ShadowDomManager {
12840
12842
  if (!isNativeShadowDom(shadowRoot2)) return;
12841
12843
  if (this.shadowDoms.has(shadowRoot2)) return;
12842
12844
  this.shadowDoms.add(shadowRoot2);
12845
+ debugLog(`Adding mutation observer for shadowRoot ${shadowRoot2.host}`);
12843
12846
  const observer = initMutationObserver(
12844
12847
  {
12845
12848
  ...this.bypassOptions,
@@ -13419,6 +13422,7 @@ function record(options = {}) {
13419
13422
  };
13420
13423
  iframeManager.addLoadListener((iframeEl) => {
13421
13424
  try {
13425
+ debugLog("adding observers for new iframe", iframeEl);
13422
13426
  handlers.push(observe(iframeEl.contentDocument));
13423
13427
  } catch (error) {
13424
13428
  if (isDebug()) {