@tracelog/lib 2.0.0 → 2.0.1
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/browser/tracelog.esm.js +4 -4
- package/dist/browser/tracelog.esm.js.map +1 -1
- package/dist/browser/tracelog.js +1 -1
- package/dist/browser/tracelog.js.map +1 -1
- package/dist/public-api.cjs +4 -3
- package/dist/public-api.cjs.map +1 -1
- package/dist/public-api.js +4 -3
- package/dist/public-api.js.map +1 -1
- package/package.json +1 -1
|
@@ -237,7 +237,7 @@ const dt = () => {
|
|
|
237
237
|
default:
|
|
238
238
|
return Ne;
|
|
239
239
|
}
|
|
240
|
-
}, pt = 1e3, Tt = 50, _t = "
|
|
240
|
+
}, pt = 1e3, Tt = 50, _t = "2.0.0", vt = _t, It = () => {
|
|
241
241
|
if (typeof window > "u" || typeof document > "u")
|
|
242
242
|
return !1;
|
|
243
243
|
try {
|
|
@@ -2811,7 +2811,7 @@ class Bt extends p {
|
|
|
2811
2811
|
this.visibilityChangeHandler && (document.removeEventListener("visibilitychange", this.visibilityChangeHandler), this.visibilityChangeHandler = null);
|
|
2812
2812
|
}
|
|
2813
2813
|
resetSessionState() {
|
|
2814
|
-
this.clearSessionTimeout(), this.cleanupActivityListeners(), this.cleanupLifecycleListeners(), this.cleanupCrossTabSync(), this.clearStoredSession(), this.set("sessionId", null), this.isTracking = !1;
|
|
2814
|
+
this.clearSessionTimeout(), this.cleanupActivityListeners(), this.cleanupLifecycleListeners(), this.cleanupCrossTabSync(), this.clearStoredSession(), this.set("sessionId", null), this.set("hasStartSession", !1), this.isTracking = !1;
|
|
2815
2815
|
}
|
|
2816
2816
|
/**
|
|
2817
2817
|
* Stops session tracking and cleans up all resources.
|
|
@@ -2825,10 +2825,10 @@ class Bt extends p {
|
|
|
2825
2825
|
* 3. Removes lifecycle listeners (visibilitychange)
|
|
2826
2826
|
* 4. Closes BroadcastChannel
|
|
2827
2827
|
* 5. Clears session from localStorage
|
|
2828
|
-
* 6. Resets `sessionId` in global state
|
|
2828
|
+
* 6. Resets `sessionId` and `hasStartSession` in global state
|
|
2829
2829
|
* 7. Sets `isTracking` to false
|
|
2830
2830
|
*
|
|
2831
|
-
* **Called by**: `App.destroy()` during application teardown
|
|
2831
|
+
* **Called by**: `App.destroy()` during application teardown or when session times out
|
|
2832
2832
|
*
|
|
2833
2833
|
* **Important**: After calling, session tracking is terminated and cannot be resumed.
|
|
2834
2834
|
* A new session will be created on next `startTracking()` call.
|