coveo.analytics 2.25.1 → 2.25.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.
@@ -43,7 +43,7 @@ export declare abstract class BasePlugin {
43
43
  userAgent: string;
44
44
  screenResolution: string;
45
45
  screenColor: string;
46
- time: string;
46
+ time: number;
47
47
  eventId: string;
48
48
  };
49
49
  private updateLocationForNextPageView;
@@ -0,0 +1 @@
1
+ export declare const getFormattedLocation: (location: Location) => string;
@@ -1 +1 @@
1
- export declare const libVersion = "2.25.1";
1
+ export declare const libVersion = "2.25.3";
@@ -593,7 +593,7 @@ function sha1(bytes) {
593
593
  const v5 = v35('v5', 0x50, sha1);
594
594
  var uuidv5 = v5;
595
595
 
596
- const libVersion = "2.25.1" ;
596
+ const libVersion = "2.25.3" ;
597
597
 
598
598
  const keysOf = Object.keys;
599
599
  function isObject(o) {
@@ -2358,7 +2358,7 @@ class BasePlugin {
2358
2358
  userAgent: navigator.userAgent,
2359
2359
  };
2360
2360
  const eventContext = {
2361
- time: Date.now().toString(),
2361
+ time: Date.now(),
2362
2362
  eventId: this.uuidGenerator(),
2363
2363
  };
2364
2364
  return Object.assign(Object.assign(Object.assign(Object.assign({}, eventContext), screenContext), navigatorContext), documentContext);
package/dist/library.js CHANGED
@@ -740,7 +740,7 @@ function sha1(bytes) {
740
740
  const v5 = v35('v5', 0x50, sha1);
741
741
  var uuidv5 = v5;
742
742
 
743
- var libVersion = "2.25.1" ;
743
+ var libVersion = "2.25.3" ;
744
744
 
745
745
  var keysOf = Object.keys;
746
746
  function isObject(o) {
@@ -83455,7 +83455,7 @@ var BasePlugin = (function () {
83455
83455
  userAgent: navigator.userAgent,
83456
83456
  };
83457
83457
  var eventContext = {
83458
- time: Date.now().toString(),
83458
+ time: Date.now(),
83459
83459
  eventId: this.uuidGenerator(),
83460
83460
  };
83461
83461
  return __assign(__assign(__assign(__assign({}, eventContext), screenContext), navigatorContext), documentContext);
@@ -82158,7 +82158,7 @@ const addPageViewToHistory = (pageViewValue) => __awaiter(void 0, void 0, void 0
82158
82158
  yield store.addElementAsync(historyElement);
82159
82159
  });
82160
82160
 
82161
- const libVersion = "2.25.1" ;
82161
+ const libVersion = "2.25.3" ;
82162
82162
 
82163
82163
  const keysOf = Object.keys;
82164
82164
  function isObject(o) {
@@ -83879,7 +83879,7 @@ class BasePlugin {
83879
83879
  userAgent: navigator.userAgent,
83880
83880
  };
83881
83881
  const eventContext = {
83882
- time: Date.now().toString(),
83882
+ time: Date.now(),
83883
83883
  eventId: this.uuidGenerator(),
83884
83884
  };
83885
83885
  return Object.assign(Object.assign(Object.assign(Object.assign({}, eventContext), screenContext), navigatorContext), documentContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coveo.analytics",
3
- "version": "2.25.1",
3
+ "version": "2.25.3",
4
4
  "description": "📈 Coveo analytics client (node and browser compatible) ",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.es.js",
@@ -77,7 +77,7 @@ export abstract class BasePlugin {
77
77
  userAgent: navigator.userAgent,
78
78
  };
79
79
  const eventContext = {
80
- time: Date.now().toString(),
80
+ time: Date.now(),
81
81
  eventId: this.uuidGenerator(),
82
82
  };
83
83
  return {
@@ -15,7 +15,7 @@ describe('EC plugin', () => {
15
15
  title: 'MAH PAGE',
16
16
  screenColor: '24-bit',
17
17
  screenResolution: '0x0',
18
- time: expect.any(String),
18
+ time: expect.any(Number),
19
19
  userAgent: navigator.userAgent,
20
20
  language: 'en-US',
21
21
  hitType: ECPluginEventTypes.event,
@@ -15,7 +15,7 @@ describe('SVC plugin', () => {
15
15
  title: 'MAH PAGE',
16
16
  screenColor: '24-bit',
17
17
  screenResolution: '0x0',
18
- time: expect.any(String),
18
+ time: expect.any(Number),
19
19
  userAgent: navigator.userAgent,
20
20
  language: 'en-US',
21
21
  hitType: SVCPluginEventTypes.event,