coveo.analytics 2.27.12 → 2.28.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.
@@ -1 +1 @@
1
- export declare const libVersion = "2.27.12";
1
+ export declare const libVersion = "2.28.2";
@@ -326,7 +326,7 @@ const addPageViewToHistory = (pageViewValue) => __awaiter(void 0, void 0, void 0
326
326
  const historyElement = {
327
327
  name: 'PageView',
328
328
  value: pageViewValue,
329
- time: JSON.stringify(new Date()),
329
+ time: new Date().toISOString(),
330
330
  };
331
331
  yield store.addElementAsync(historyElement);
332
332
  });
@@ -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.27.12" ;
599
+ const libVersion = "2.28.2" ;
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
@@ -456,7 +456,7 @@ var addPageViewToHistory = function (pageViewValue) { return __awaiter(void 0, v
456
456
  historyElement = {
457
457
  name: 'PageView',
458
458
  value: pageViewValue,
459
- time: JSON.stringify(new Date()),
459
+ time: new Date().toISOString(),
460
460
  };
461
461
  return [4, store.addElementAsync(historyElement)];
462
462
  case 1:
@@ -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.27.12" ;
734
+ var libVersion = "2.28.2" ;
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);
@@ -653,12 +653,12 @@ const addPageViewToHistory = (pageViewValue) => __awaiter(void 0, void 0, void 0
653
653
  const historyElement = {
654
654
  name: 'PageView',
655
655
  value: pageViewValue,
656
- time: JSON.stringify(new Date()),
656
+ time: new Date().toISOString(),
657
657
  };
658
658
  yield store.addElementAsync(historyElement);
659
659
  });
660
660
 
661
- const libVersion = "2.27.12" ;
661
+ const libVersion = "2.28.2" ;
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.27.12",
3
+ "version": "2.28.2",
4
4
  "description": "📈 Coveo analytics client (node and browser compatible) ",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.es.js",
@@ -20,7 +20,7 @@ describe('history', () => {
20
20
  data = {
21
21
  name: 'name',
22
22
  value: 'value',
23
- time: JSON.stringify(new Date()),
23
+ time: new Date().toISOString(),
24
24
  };
25
25
  });
26
26
 
@@ -99,7 +99,7 @@ describe('history', () => {
99
99
  historyElements.push({
100
100
  name: 'name' + i,
101
101
  value: 'value' + i,
102
- time: JSON.stringify(new Date()),
102
+ time: new Date().toISOString(),
103
103
  internalTime: new Date().getTime(),
104
104
  });
105
105
  }
@@ -21,7 +21,7 @@ const addPageViewToHistory = async (pageViewValue: string) => {
21
21
  const historyElement = {
22
22
  name: 'PageView',
23
23
  value: pageViewValue,
24
- time: JSON.stringify(new Date()),
24
+ time: new Date().toISOString(),
25
25
  };
26
26
  await store.addElementAsync(historyElement);
27
27
  };