mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
Autocapture reaches the wire through capture(), which passes no location, so only pageview() ever supplied url and path. Every $click/$input/$change therefore arrived with an empty url AND path, and `host`, derived from url, was empty with them — an interaction with no page, which is the one thing a heatmap cannot use. Read window.location in build(), the single point every event is constructed, so it cannot go missing from a call site again. It sits before ...extra so an explicit pageview() path still wins: a route change fires before window.location has caught up. Co-authored-by: Hanzo Dev <[email protected]>
85 lines
2.1 KiB
JSON
85 lines
2.1 KiB
JSON
{
|
|
"name": "@hanzo/event",
|
|
"version": "0.3.5",
|
|
"description": "Hanzo Event \u2014 the ONE telemetry client. Emits pageview/event/identify/group to the Hanzo Cloud event stream (POST /v1/event), AND reports errors to Sentry as real Sentry envelopes \u2014 the error plane needs a DSN, without one nothing reaches Sentry. First-touch attribution, beacon-on-unload, auto error capture, client-side secret/PII scrubbing, a shared event + goal vocabulary. Subsumes @sentry.",
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/",
|
|
"access": "public",
|
|
"scope": "@hanzo"
|
|
},
|
|
"author": "Hanzo AI <[email protected]>",
|
|
"license": "BSD-3-Clause",
|
|
"type": "module",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"README.md",
|
|
"TAXONOMY.md"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/hanzoai/ui.git",
|
|
"directory": "pkgs/event"
|
|
},
|
|
"keywords": [
|
|
"analytics",
|
|
"product-analytics",
|
|
"telemetry",
|
|
"events",
|
|
"error-tracking",
|
|
"sentry",
|
|
"attribution",
|
|
"funnel",
|
|
"hanzo"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"dev": "tsup --watch",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.cts",
|
|
"default": "./dist/index.cjs"
|
|
}
|
|
},
|
|
"./react": {
|
|
"import": {
|
|
"types": "./dist/react.d.ts",
|
|
"default": "./dist/react.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/react.d.cts",
|
|
"default": "./dist/react.cjs"
|
|
}
|
|
}
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18.0.0 || ^19.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.5.0",
|
|
"@types/react": "19.2.14",
|
|
"react": "19.2.4",
|
|
"tsup": "^8.5.1",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|