@sentry/replay 7.66.0-alpha.0 → 7.67.0-beta.0
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/cjs/index.js +8 -2
- package/cjs/index.js.map +1 -1
- package/esm/index.js +8 -2
- package/esm/index.js.map +1 -1
- package/package.json +5 -5
- package/types/coreHandlers/handleClick.d.ts.map +1 -1
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/replay.d.ts.map +1 -1
- package/types/types/deprecated.d.ts +16 -0
- package/types/types/deprecated.d.ts.map +1 -0
- package/types/types/replay.d.ts +3 -3
- package/types/types/replay.d.ts.map +1 -1
- package/types/types/replayFrame.d.ts +45 -45
- package/types/types/replayFrame.d.ts.map +1 -1
- package/types/types/rrweb.d.ts +14 -16
- package/types/types/rrweb.d.ts.map +1 -1
- package/types/util/createBreadcrumb.d.ts +2 -2
- package/types/util/createBreadcrumb.d.ts.map +1 -1
- package/types/util/handleRecordingEmit.d.ts +2 -2
- package/types/util/handleRecordingEmit.d.ts.map +1 -1
package/cjs/index.js
CHANGED
|
@@ -5887,6 +5887,8 @@ function loadOrCreateSession(
|
|
|
5887
5887
|
return createSession(sessionOptions, { previousSessionId: existingSession.id });
|
|
5888
5888
|
}
|
|
5889
5889
|
|
|
5890
|
+
const ReplayEventTypeCustom = 5;
|
|
5891
|
+
|
|
5890
5892
|
function isCustomEvent(event) {
|
|
5891
5893
|
return event.type === EventType.Custom;
|
|
5892
5894
|
}
|
|
@@ -8894,7 +8896,11 @@ class ReplayContainer {
|
|
|
8894
8896
|
}
|
|
8895
8897
|
|
|
8896
8898
|
// Session is expired, trigger a full snapshot (which will create a new session)
|
|
8897
|
-
this.
|
|
8899
|
+
if (this.isPaused()) {
|
|
8900
|
+
this.resume();
|
|
8901
|
+
} else {
|
|
8902
|
+
this._triggerFullSnapshot();
|
|
8903
|
+
}
|
|
8898
8904
|
|
|
8899
8905
|
return false;
|
|
8900
8906
|
}
|
|
@@ -8937,7 +8943,7 @@ class ReplayContainer {
|
|
|
8937
8943
|
|
|
8938
8944
|
this.addUpdate(() => {
|
|
8939
8945
|
void addEvent(this, {
|
|
8940
|
-
type:
|
|
8946
|
+
type: ReplayEventTypeCustom,
|
|
8941
8947
|
timestamp: breadcrumb.timestamp || 0,
|
|
8942
8948
|
data: {
|
|
8943
8949
|
tag: 'breadcrumb',
|