swetrix 3.0.0 → 3.0.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.
@@ -32,7 +32,7 @@ export interface IPageViewPayload {
32
32
  so: string | undefined;
33
33
  me: string | undefined;
34
34
  ca: string | undefined;
35
- pg: string;
35
+ pg: string | null | undefined;
36
36
  prev: string | null | undefined;
37
37
  }
38
38
  interface IPerfPayload {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swetrix",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "The JavaScript analytics client for Swetrix Analytics",
5
5
  "main": "dist/swetrix.cjs.js",
6
6
  "module": "dist/swetrix.es5.js",
package/src/Lib.ts CHANGED
@@ -53,7 +53,7 @@ export interface IPageViewPayload {
53
53
  so: string | undefined
54
54
  me: string | undefined
55
55
  ca: string | undefined
56
- pg: string
56
+ pg: string | null | undefined
57
57
  prev: string | null | undefined
58
58
  }
59
59
 
@@ -112,7 +112,7 @@ export interface PageViewsOptions {
112
112
  * @param payload - The pageview payload.
113
113
  * @returns The edited payload or `false` to prevent sending the pageview. If `true` is returned, the payload will be sent as-is.
114
114
  */
115
- callback?: (payload: IPageViewPayload) => IPageViewPayload | boolean
115
+ callback?: (payload: IPageViewPayload) => Partial<IPageViewPayload> | boolean
116
116
  }
117
117
 
118
118
  export const defaultPageActions = {