Skip to content

Commit 6ad5f67

Browse files
committed
remove @sentry-internal, bad pasta
1 parent 7f322d7 commit 6ad5f67

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/rrweb-player/src/utils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export function typeOf(
146146
}
147147

148148
/**
149-
* Forked from '@sentry-internal/rrweb' replay/index.ts. The original function is not exported.
149+
* Forked from 'rrweb' replay/index.ts. The original function is not exported.
150150
* Determine whether the event is a user interaction event
151151
* @param event - event to be determined
152152
* @returns true if the event is a user interaction event
@@ -156,12 +156,14 @@ function isUserInteraction(event: eventWithTime): boolean {
156156
return false;
157157
}
158158
return (
159+
// @ts-expect-error source does not exist on data
159160
event.data.source > IncrementalSource.Mutation &&
161+
// @ts-expect-error source does not exist on data
160162
event.data.source <= IncrementalSource.Input
161163
);
162164
}
163165

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

167169
/**

0 commit comments

Comments
 (0)