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.
- package/dist/esnext/Lib.d.ts +1 -1
- package/package.json +1 -1
- package/src/Lib.ts +2 -2
package/dist/esnext/Lib.d.ts
CHANGED
package/package.json
CHANGED
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 = {
|