@shware/analytics 0.1.0 → 0.1.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.
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -41,7 +41,7 @@ declare const createTrackEventSchema: z.ZodObject<{
|
|
|
41
41
|
device_type: z.ZodOptional<z.ZodString>;
|
|
42
42
|
device_vendor: z.ZodOptional<z.ZodString>;
|
|
43
43
|
device_pixel_ratio: z.ZodOptional<z.ZodString>;
|
|
44
|
-
screen_resolution: z.ZodOptional<z.ZodString
|
|
44
|
+
screen_resolution: z.ZodOptional<z.ZodEffects<z.ZodString, `${number}x${number}`, string>>;
|
|
45
45
|
release: z.ZodOptional<z.ZodString>;
|
|
46
46
|
language: z.ZodOptional<z.ZodString>;
|
|
47
47
|
timezone: z.ZodOptional<z.ZodString>;
|
|
@@ -69,7 +69,7 @@ declare const createTrackEventSchema: z.ZodObject<{
|
|
|
69
69
|
device_type?: string | undefined;
|
|
70
70
|
device_vendor?: string | undefined;
|
|
71
71
|
device_pixel_ratio?: string | undefined;
|
|
72
|
-
screen_resolution?:
|
|
72
|
+
screen_resolution?: `${number}x${number}` | undefined;
|
|
73
73
|
release?: string | undefined;
|
|
74
74
|
language?: string | undefined;
|
|
75
75
|
timezone?: string | undefined;
|
|
@@ -129,7 +129,7 @@ declare const createTrackEventSchema: z.ZodObject<{
|
|
|
129
129
|
device_type?: string | undefined;
|
|
130
130
|
device_vendor?: string | undefined;
|
|
131
131
|
device_pixel_ratio?: string | undefined;
|
|
132
|
-
screen_resolution?:
|
|
132
|
+
screen_resolution?: `${number}x${number}` | undefined;
|
|
133
133
|
release?: string | undefined;
|
|
134
134
|
language?: string | undefined;
|
|
135
135
|
timezone?: string | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -105,7 +105,7 @@ const createTrackEventSchema = z.object({
|
|
|
105
105
|
device_type: z.string().optional(),
|
|
106
106
|
device_vendor: z.string().optional(),
|
|
107
107
|
device_pixel_ratio: z.string().optional(),
|
|
108
|
-
screen_resolution: z.string().regex(/^\d+x\d+$/).optional(),
|
|
108
|
+
screen_resolution: z.string().regex(/^\d+x\d+$/).transform((v) => v).optional(),
|
|
109
109
|
release: z.string().optional(),
|
|
110
110
|
language: z.string().optional(),
|
|
111
111
|
timezone: z.string().optional(),
|