coveo.analytics 2.28.2 → 2.28.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.
@@ -1 +1 @@
1
- export declare const libVersion = "2.28.2";
1
+ export declare const libVersion = "2.28.3";
@@ -117,7 +117,7 @@ function writeCookie(name, value, expirationDate, domain) {
117
117
  `${name}=${value}` +
118
118
  (expirationDate ? `;expires=${expirationDate.toUTCString()}` : '') +
119
119
  (domain ? `;domain=${domain}` : '') +
120
- ';SameSite=Lax';
120
+ ';path=/;SameSite=Lax';
121
121
  }
122
122
 
123
123
  function getAvailableStorage() {
@@ -596,7 +596,7 @@ function sha1(bytes) {
596
596
  const v5 = v35('v5', 0x50, sha1);
597
597
  var uuidv5 = v5;
598
598
 
599
- const libVersion = "2.28.2" ;
599
+ const libVersion = "2.28.3" ;
600
600
 
601
601
  const getFormattedLocation = (location) => `${location.protocol}//${location.hostname}${location.pathname.indexOf('/') === 0 ? location.pathname : `/${location.pathname}`}${location.search}`;
602
602
 
package/dist/library.js CHANGED
@@ -194,7 +194,7 @@ function writeCookie(name, value, expirationDate, domain) {
194
194
  "".concat(name, "=").concat(value) +
195
195
  (expirationDate ? ";expires=".concat(expirationDate.toUTCString()) : '') +
196
196
  (domain ? ";domain=".concat(domain) : '') +
197
- ';SameSite=Lax';
197
+ ';path=/;SameSite=Lax';
198
198
  }
199
199
 
200
200
  var preferredStorage = null;
@@ -731,7 +731,7 @@ function sha1(bytes) {
731
731
  const v5 = v35('v5', 0x50, sha1);
732
732
  var uuidv5 = v5;
733
733
 
734
- var libVersion = "2.28.2" ;
734
+ var libVersion = "2.28.3" ;
735
735
 
736
736
  var getFormattedLocation = function (location) {
737
737
  return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
@@ -444,7 +444,7 @@ function writeCookie(name, value, expirationDate, domain) {
444
444
  `${name}=${value}` +
445
445
  (expirationDate ? `;expires=${expirationDate.toUTCString()}` : '') +
446
446
  (domain ? `;domain=${domain}` : '') +
447
- ';SameSite=Lax';
447
+ ';path=/;SameSite=Lax';
448
448
  }
449
449
 
450
450
  function getAvailableStorage() {
@@ -658,7 +658,7 @@ const addPageViewToHistory = (pageViewValue) => __awaiter(void 0, void 0, void 0
658
658
  yield store.addElementAsync(historyElement);
659
659
  });
660
660
 
661
- const libVersion = "2.28.2" ;
661
+ const libVersion = "2.28.3" ;
662
662
 
663
663
  const getFormattedLocation = (location) => `${location.protocol}//${location.hostname}${location.pathname.indexOf('/') === 0 ? location.pathname : `/${location.pathname}`}${location.search}`;
664
664
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coveo.analytics",
3
- "version": "2.28.2",
3
+ "version": "2.28.3",
4
4
  "description": "📈 Coveo analytics client (node and browser compatible) ",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.es.js",
@@ -48,5 +48,5 @@ function writeCookie(name: string, value: string, expirationDate?: Date, domain?
48
48
  `${name}=${value}` +
49
49
  (expirationDate ? `;expires=${expirationDate.toUTCString()}` : '') +
50
50
  (domain ? `;domain=${domain}` : '') +
51
- ';SameSite=Lax';
51
+ ';path=/;SameSite=Lax';
52
52
  }