@malleon/replay 1.0.5

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.
@@ -0,0 +1,31 @@
1
+ import { ReplayEventEntry } from "./event-types";
2
+ import { ReplayRequestEntry } from "./request-types";
3
+ import { ResourceEntry, LogEntry } from "../data/replay-init-data";
4
+ import { BehavioralMetadata } from "./behavioral-types";
5
+ export type TagType = 'STR' | 'LARGE_STR' | 'NUM' | 'DATETIME' | 'BOOL';
6
+ export interface ReplayTag {
7
+ name: string;
8
+ value: string | number | boolean | Date;
9
+ type: TagType;
10
+ }
11
+ export interface ReplayUserData {
12
+ appId?: string;
13
+ userId?: string;
14
+ username?: string;
15
+ userEmail?: string;
16
+ userRole?: string;
17
+ userStatus?: string;
18
+ environment?: string;
19
+ tenantId?: string;
20
+ tenantType?: string;
21
+ userType?: string;
22
+ }
23
+ export interface UnifiedReplayData {
24
+ appId: string;
25
+ replayId: string;
26
+ events: ReplayEventEntry[] | null;
27
+ requests: ReplayRequestEntry[] | null;
28
+ resources: ResourceEntry[] | null;
29
+ logs: LogEntry[] | null;
30
+ behavioralMetadata: BehavioralMetadata | null;
31
+ }
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@malleon/replay",
3
+ "version": "1.0.5",
4
+ "description": "A JavaScript SDK for capturing and replaying user interactions on web pages",
5
+ "type": "module",
6
+ "main": "./dist/replay.umd.js",
7
+ "module": "./dist/replay.es.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/replay.es.js",
13
+ "require": "./dist/replay.umd.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md"
19
+ ],
20
+ "keywords": [
21
+ "replay",
22
+ "session-replay",
23
+ "user-tracking",
24
+ "analytics",
25
+ "malleon",
26
+ "session-recording"
27
+ ],
28
+ "author": "admin@malleon.io",
29
+ "license": "UNLICENSED",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/malleonio/malleon-documentation.git"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "scripts": {
38
+ "build": "npm run build:worker && npm run inline-worker && npm run build:main && node scripts/obfuscate.js && node scripts/obfuscate-esm.js && npm run build:types",
39
+ "build:main": "vite build --mode development",
40
+ "build:prod": "npm run build:worker:prod && npm run inline-worker && npm run build:main:prod && node scripts/obfuscate.js && node scripts/obfuscate-esm.js && npm run build:types",
41
+ "build:main:prod": "vite build --mode production",
42
+ "build:worker": "vite build --config vite.worker.config.ts --mode development",
43
+ "build:worker:prod": "vite build --config vite.worker.config.ts --mode production",
44
+ "build:types": "tsc --emitDeclarationOnly --outDir dist && node scripts/cleanup-types.js",
45
+ "inline-worker": "node scripts/inline-worker.js",
46
+ "build:final": "vite build",
47
+ "copy:umd": "cp ./dist/replay.umd.js ../replay-server/ui/src/assets/",
48
+ "dist": "npm run build && npm run copy:umd",
49
+ "dist:prod": "npm run build:prod && npm run copy:umd",
50
+ "prepublishOnly": "npm run build:prod",
51
+ "publish:prod": "npm version patch --no-git-tag-version && npm run build:prod && npm publish"
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^22.14.0",
55
+ "javascript-obfuscator": "^4.1.1",
56
+ "typescript": "^5.0.0",
57
+ "vite": "^6.2.5"
58
+ },
59
+ "dependencies": {
60
+ "ts-md5": "^1.3.1"
61
+ }
62
+ }