125 lines
4.3 KiB
JSON
125 lines
4.3 KiB
JSON
{
|
|
"name": "@suaveplan/analytics-browser",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Browser-tier client-side product analytics: AnalyticsTracker / BatchTransport / BeaconTransport / SessionManager with consent gate, PII scrubber, head-sampling, durable StorageBackend (memory + Web Storage), Zod-validated events, AbortController + timeoutMs on every fetch, OTel counters + histograms, and a typed EventBus lifecycle bus on @suaveplan/events.",
|
|
"license": "MIT",
|
|
"author": "Suaveplan Team",
|
|
"browser": "./dist/index.js",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./tracker": {
|
|
"import": {
|
|
"types": "./dist/tracker/index.d.ts",
|
|
"default": "./dist/tracker/index.js"
|
|
}
|
|
},
|
|
"./transport": {
|
|
"import": {
|
|
"types": "./dist/transport/index.d.ts",
|
|
"default": "./dist/transport/index.js"
|
|
}
|
|
},
|
|
"./session": {
|
|
"import": {
|
|
"types": "./dist/session/index.d.ts",
|
|
"default": "./dist/session/index.js"
|
|
}
|
|
},
|
|
"./consent": {
|
|
"import": {
|
|
"types": "./dist/consent/index.d.ts",
|
|
"default": "./dist/consent/index.js"
|
|
}
|
|
},
|
|
"./pii": {
|
|
"import": {
|
|
"types": "./dist/pii/index.d.ts",
|
|
"default": "./dist/pii/index.js"
|
|
}
|
|
},
|
|
"./sampling": {
|
|
"import": {
|
|
"types": "./dist/sampling/index.d.ts",
|
|
"default": "./dist/sampling/index.js"
|
|
}
|
|
},
|
|
"./storage": {
|
|
"import": {
|
|
"types": "./dist/storage/index.d.ts",
|
|
"default": "./dist/storage/index.js"
|
|
}
|
|
},
|
|
"./schema": {
|
|
"import": {
|
|
"types": "./dist/schema/index.d.ts",
|
|
"default": "./dist/schema/index.js"
|
|
}
|
|
},
|
|
"./error-codes": {
|
|
"import": {
|
|
"types": "./dist/error-codes/index.d.ts",
|
|
"default": "./dist/error-codes/index.js"
|
|
}
|
|
},
|
|
"./telemetry": {
|
|
"import": {
|
|
"types": "./dist/telemetry/index.d.ts",
|
|
"default": "./dist/telemetry/index.js"
|
|
}
|
|
},
|
|
"./types": {
|
|
"import": {
|
|
"types": "./dist/types/analytics.types.d.ts",
|
|
"default": "./dist/types/analytics.types.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"lint": "bunx biome check src/",
|
|
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
|
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
|
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
|
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/events": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@opentelemetry/sdk-metrics": "1.30.0",
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"happy-dom": "catalog:testing",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:build",
|
|
"vite-plugin-dts": "catalog:build",
|
|
"vitest": "catalog:testing"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://npmjs.fq.io/",
|
|
"access": "public"
|
|
},
|
|
"files": ["dist", "src", "README.md"]
|
|
}
|