@financial-times/o-tracking
Advanced tools
Comparing version 4.5.2 to 4.5.3
# Changelog | ||
## [4.5.3](https://github.com/Financial-Times/origami/compare/o-tracking-v4.5.2...o-tracking-v4.5.3) (2024-04-30) | ||
### Bug Fixes | ||
* fix new session behavior for o-tracking ([16a798c](https://github.com/Financial-Times/origami/commit/16a798c8095329d94d46a180ad7076f109bfceaa)) | ||
## [4.5.2](https://github.com/Financial-Times/origami/compare/o-tracking-v4.5.1...o-tracking-v4.5.2) (2024-02-26) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@financial-times/o-tracking", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"description": "Provides tracking for a product. Tracking requests are sent to the Spoor API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -46,6 +46,10 @@ import {is, merge, isUndefined, guid} from '../utils.js'; | ||
const exp = parseInt(s.expiry, 10); | ||
// If current session is active. | ||
if (exp >= d) { | ||
session = s.value; | ||
} else { | ||
// session has expired, generate a new one | ||
session = guid(); | ||
isNew = true; | ||
} | ||
@@ -52,0 +56,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154461
2687