@ninetailed/experience.js-plugin-analytics
Advanced tools
+3
-1
@@ -36,3 +36,5 @@ 'use strict'; | ||
| const ElementSeenPayloadSchema = BaseElementInteractionPayloadSchema.extend({ | ||
| seenFor: zod.z.number().optional().default(0) | ||
| seenFor: zod.z.number().optional().default(0), | ||
| viewDurationMs: zod.z.number().optional(), | ||
| componentViewId: zod.z.string().optional() | ||
| }); | ||
@@ -39,0 +41,0 @@ const ElementClickedPayloadSchema = BaseElementInteractionPayloadSchema; |
+3
-1
@@ -34,3 +34,5 @@ import { isEqual } from 'radash'; | ||
| const ElementSeenPayloadSchema = BaseElementInteractionPayloadSchema.extend({ | ||
| seenFor: z.number().optional().default(0) | ||
| seenFor: z.number().optional().default(0), | ||
| viewDurationMs: z.number().optional(), | ||
| componentViewId: z.string().optional() | ||
| }); | ||
@@ -37,0 +39,0 @@ const ElementClickedPayloadSchema = BaseElementInteractionPayloadSchema; |
+2
-2
@@ -5,3 +5,3 @@ { | ||
| "license": "MIT", | ||
| "version": "7.21.0", | ||
| "version": "7.22.0-alpha.0", | ||
| "keywords": [ | ||
@@ -33,3 +33,3 @@ "analytics", | ||
| "@anatine/zod-mock": "3.8.1", | ||
| "@ninetailed/experience.js-shared": "7.21.0", | ||
| "@ninetailed/experience.js-shared": "7.22.0-alpha.0", | ||
| "analytics": "0.8.1", | ||
@@ -36,0 +36,0 @@ "radash": "10.9.0", |
@@ -50,2 +50,4 @@ import { z } from 'zod'; | ||
| seenFor: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
| viewDurationMs: z.ZodOptional<z.ZodNumber>; | ||
| componentViewId: z.ZodOptional<z.ZodString>; | ||
| }>, "strip", z.ZodTypeAny, { | ||
@@ -73,2 +75,4 @@ variant: { | ||
| } | null | undefined; | ||
| viewDurationMs?: number | undefined; | ||
| componentViewId?: string | undefined; | ||
| }, { | ||
@@ -96,2 +100,4 @@ variant: { | ||
| seenFor?: number | undefined; | ||
| viewDurationMs?: number | undefined; | ||
| componentViewId?: string | undefined; | ||
| }>; | ||
@@ -98,0 +104,0 @@ export type ElementSeenPayload = Omit<z.input<typeof ElementSeenPayloadSchema>, 'element'> & { |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
38628
1.19%940
1.08%2
100%+ Added
- Removed