swetrix 3.7.0 → 3.7.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.
@@ -22,7 +22,7 @@ export interface TrackEventOptions {
22
22
  unique?: boolean;
23
23
  /** Event-related metadata object with string values. */
24
24
  meta?: {
25
- [key: string]: string;
25
+ [key: string]: string | number | boolean | null | undefined;
26
26
  };
27
27
  }
28
28
  export interface IPageViewPayload {
@@ -37,7 +37,7 @@ export interface IPageViewPayload {
37
37
  pg?: string | null;
38
38
  /** Pageview-related metadata object with string values. */
39
39
  meta?: {
40
- [key: string]: string;
40
+ [key: string]: string | number | boolean | null | undefined;
41
41
  };
42
42
  }
43
43
  export interface IErrorEventPayload {
@@ -48,7 +48,7 @@ export interface IErrorEventPayload {
48
48
  filename?: string | null;
49
49
  stackTrace?: string | null;
50
50
  meta?: {
51
- [key: string]: string;
51
+ [key: string]: string | number | boolean | null | undefined;
52
52
  };
53
53
  }
54
54
  export interface IInternalErrorEventPayload extends IErrorEventPayload {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swetrix",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "The JavaScript analytics client for Swetrix Analytics",
5
5
  "type": "module",
6
6
  "main": "dist/swetrix.cjs.js",
package/src/Lib.ts CHANGED
@@ -43,7 +43,7 @@ export interface TrackEventOptions {
43
43
 
44
44
  /** Event-related metadata object with string values. */
45
45
  meta?: {
46
- [key: string]: string
46
+ [key: string]: string | number | boolean | null | undefined
47
47
  }
48
48
  }
49
49
 
@@ -61,7 +61,7 @@ export interface IPageViewPayload {
61
61
 
62
62
  /** Pageview-related metadata object with string values. */
63
63
  meta?: {
64
- [key: string]: string
64
+ [key: string]: string | number | boolean | null | undefined
65
65
  }
66
66
  }
67
67
 
@@ -74,7 +74,7 @@ export interface IErrorEventPayload {
74
74
  filename?: string | null
75
75
  stackTrace?: string | null
76
76
  meta?: {
77
- [key: string]: string
77
+ [key: string]: string | number | boolean | null | undefined
78
78
  }
79
79
  }
80
80