Skip to content

Commit

Permalink
remove @sentry-internal, bad pasta
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Aug 9, 2023
1 parent 7f322d7 commit 6ad5f67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/rrweb-player/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export function typeOf(
}

/**
* Forked from '@sentry-internal/rrweb' replay/index.ts. The original function is not exported.
* Forked from 'rrweb' replay/index.ts. The original function is not exported.
* Determine whether the event is a user interaction event
* @param event - event to be determined
* @returns true if the event is a user interaction event
Expand All @@ -156,12 +156,14 @@ function isUserInteraction(event: eventWithTime): boolean {
return false;
}
return (
// @ts-expect-error source does not exist on data
event.data.source > IncrementalSource.Mutation &&
// @ts-expect-error source does not exist on data
event.data.source <= IncrementalSource.Input
);
}

// Forked from '@sentry-internal/rrweb' replay/index.ts. A const threshold of inactive time.
// Forked from 'rrweb' replay/index.ts. A const threshold of inactive time.
const SKIP_TIME_THRESHOLD = 10 * 1000;

/**
Expand Down

0 comments on commit 6ad5f67

Please sign in to comment.