@ht-sdks/events-sdk-js-browser 1.3.1 → 1.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ht-sdks/events-sdk-js-browser",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ht-sdks/events-sdk-js-mono",
@@ -101,7 +101,8 @@ export const generateManualTrackingSession = (id?: number): SessionInfo => {
101
101
  export const updateSessionExpiration = (session: SessionInfo): SessionInfo => {
102
102
  session.sessionStart = false
103
103
  if (session.autoTrack) {
104
- session.expiresAt = session.expiresAt! + session.timeout!
104
+ // extend session by `timeout`
105
+ session.expiresAt = Date.now() + session.timeout!
105
106
  }
106
107
  return session
107
108
  }
@@ -1,2 +1,2 @@
1
1
  // This file is generated.
2
- export const version = '1.3.1'
2
+ export const version = '1.3.2'