You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@ninetailed/experience.js-plugin-analytics

Package Overview
Dependencies
Maintainers
3
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ninetailed/experience.js-plugin-analytics - npm Package Compare versions

Comparing version
7.21.0
to
7.22.0-alpha.0
+3
-1
index.cjs.js

@@ -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;

@@ -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;

@@ -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'> & {