userlens-session-recorder 1.0.2 → 1.0.3
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/index.cjs.js
CHANGED
|
@@ -20713,13 +20713,8 @@ _SessionRecorder_trackEventsThrottled = new WeakMap(), _SessionRecorder_handleVi
|
|
|
20713
20713
|
__classPrivateFieldGet(this, _SessionRecorder_trackEventsThrottled, "f").call(this);
|
|
20714
20714
|
}
|
|
20715
20715
|
}, _SessionRecorder_resetSession = function _SessionRecorder_resetSession() {
|
|
20716
|
-
if (this.rrwebStop) {
|
|
20717
|
-
this.rrwebStop();
|
|
20718
|
-
this.rrwebStop = null;
|
|
20719
|
-
}
|
|
20720
|
-
__classPrivateFieldGet(this, _SessionRecorder_instances, "m", _SessionRecorder_clearEvents).call(this);
|
|
20721
20716
|
__classPrivateFieldGet(this, _SessionRecorder_instances, "m", _SessionRecorder_removeLocalSessionData).call(this);
|
|
20722
|
-
__classPrivateFieldGet(this, _SessionRecorder_instances, "m",
|
|
20717
|
+
__classPrivateFieldGet(this, _SessionRecorder_instances, "m", _SessionRecorder_createSession).call(this);
|
|
20723
20718
|
}, _SessionRecorder_createSession = function _SessionRecorder_createSession() {
|
|
20724
20719
|
const lastActive = Number(localStorage.getItem("userlensSessionLastActive"));
|
|
20725
20720
|
const storedUuid = localStorage.getItem("userlensSessionUuid");
|
|
@@ -20753,7 +20748,7 @@ _SessionRecorder_trackEventsThrottled = new WeakMap(), _SessionRecorder_handleVi
|
|
|
20753
20748
|
await uploadSessionEvents(this.userId, this.sessionUuid, events, chunkTimestamp);
|
|
20754
20749
|
}
|
|
20755
20750
|
catch (_) {
|
|
20756
|
-
|
|
20751
|
+
this.stop();
|
|
20757
20752
|
}
|
|
20758
20753
|
}, _SessionRecorder_clearEvents = function _SessionRecorder_clearEvents() {
|
|
20759
20754
|
this.sessionEvents = [];
|