@kameleoon/javascript-sdk-core 5.17.0 → 5.17.1

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.
@@ -10,22 +10,22 @@ interface IVisitProcessor {
10
10
  processVisitsData(visit: VisitType): void;
11
11
  }
12
12
  export declare class VisitProcessor implements IVisitProcessor {
13
- private visitsData;
14
- private visitorData;
15
- private storageVisitorData;
13
+ private readonly visitsData;
14
+ private readonly visitorData;
15
+ private readonly storageVisitorData;
16
16
  private experimentData;
17
- private filters;
18
- private visitorDataTypes;
19
- private dataManager;
17
+ private readonly filters;
18
+ private readonly visitorDataTypes;
19
+ private readonly dataManager;
20
20
  private singleDataTypes;
21
- private multipleDataTypes;
21
+ private readonly multipleDataTypes;
22
22
  constructor({ filters, dataManager, visitorCode, }: VisitorProcessorParametersType);
23
23
  get data(): VisitProcessorDataType;
24
24
  processVisit(visit: VisitType): void;
25
25
  processMultipleDataTypes(): void;
26
26
  processKcs(kcsData?: KCSType): void;
27
27
  processVisitsData(visit: VisitType): void;
28
- processVisitNumber(visit: VisitType, isCurrentVisit: boolean): void;
28
+ processVisitNumber(visit: VisitType, visitOffset: number): void;
29
29
  processCbs(cbsData?: CBSType): void;
30
30
  private processBrowser;
31
31
  private processDevice;
@@ -5,13 +5,14 @@ import { TrackingStatus } from '../types';
5
5
  * Visits - a class for creating an instance of a stored visits data
6
6
  * */
7
7
  export declare class VisitsData implements IKameleoonData {
8
- private visits;
9
- private visitNumber;
8
+ private readonly visits;
9
+ private _visitNumber;
10
10
  status: TrackingStatus;
11
11
  /**
12
12
  * @param {number[]} visits - a list of visits
13
13
  * */
14
14
  constructor(visits: VisitDataType[]);
15
+ get visitNumber(): number;
15
16
  get url(): string;
16
17
  get data(): VisitsDataType;
17
18
  get isSent(): boolean;
@@ -105,8 +105,8 @@ export type PersonalizationEventType = {
105
105
  };
106
106
  export type StaticDataEventType = {
107
107
  data: {
108
- visitNumber: number;
109
- timeSincePreviousVisit: number;
108
+ visitNumber: number | null | undefined;
109
+ timeSincePreviousVisit: number | null | undefined;
110
110
  firstReferrerHref: string | null;
111
111
  browser: BrowserType | null;
112
112
  browserIndex: BrowserIndexType | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kameleoon/javascript-sdk-core",
3
- "version": "5.17.0",
3
+ "version": "5.17.1",
4
4
  "description": "Kameleoon JS SDK Core",
5
5
  "main": "dist/javascript-sdk-core.cjs.js",
6
6
  "module": "dist/javascript-sdk-core.es.js",