From 550a1d0e3f02f72ae21cb6741e3e70f64907e1d0 Mon Sep 17 00:00:00 2001 From: eoghanmurray Date: Mon, 14 Oct 2024 15:25:46 +0000 Subject: [PATCH] Apply formatting changes --- packages/rrdom/src/diff.ts | 2 +- packages/rrweb/src/record/observers/asset-manager.ts | 5 +---- packages/rrweb/src/replay/machine.ts | 8 +++----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/rrdom/src/diff.ts b/packages/rrdom/src/diff.ts index 59b7545e43..981560c98b 100644 --- a/packages/rrdom/src/diff.ts +++ b/packages/rrdom/src/diff.ts @@ -360,7 +360,7 @@ function diffProps( name.startsWith('rr_captured_') && newValue && typeof newValue === 'string' - ) + ) // can possibly remove the attribute again if it hasn't loaded yet assetManager.manageAttribute( oldTree, diff --git a/packages/rrweb/src/record/observers/asset-manager.ts b/packages/rrweb/src/record/observers/asset-manager.ts index 055167f359..825e5b9670 100644 --- a/packages/rrweb/src/record/observers/asset-manager.ts +++ b/packages/rrweb/src/record/observers/asset-manager.ts @@ -13,10 +13,7 @@ import { encode } from 'base64-arraybuffer'; import { patch } from '../../utils'; -import type { - recordOptions, - ProcessingStyleElement, -} from '../../types'; +import type { recordOptions, ProcessingStyleElement } from '../../types'; import { getSourcesFromSrcset, shouldCaptureAsset, diff --git a/packages/rrweb/src/replay/machine.ts b/packages/rrweb/src/replay/machine.ts index 00f452d2b2..f7969560a5 100644 --- a/packages/rrweb/src/replay/machine.ts +++ b/packages/rrweb/src/replay/machine.ts @@ -60,8 +60,6 @@ export type PlayerState = context: PlayerContext; }; - - type metaEventWithTime = metaEvent & { timestamp: number; delay?: number; @@ -323,9 +321,9 @@ export function createPlayerService( event.data.capturedAssetStatuses ) { awaitAssetsHref = ''; - const earlierMetas: metaEvent[] = events.filter(isMetaEvent).filter( - (e) => e.timestamp <= event.timestamp, - ); + const earlierMetas: metaEvent[] = events + .filter(isMetaEvent) + .filter((e) => e.timestamp <= event.timestamp); if (earlierMetas.length) { awaitAssetsHref = earlierMetas[earlierMetas.length - 1].data.href;