@hanzo/event 0.3.30 → 0.3.31
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.
- package/dist/{core-ZXDaPEyY.d.cts → core-CIhI2R7S.d.cts} +0 -4
- package/dist/{core-ZXDaPEyY.d.ts → core-CIhI2R7S.d.ts} +0 -4
- package/dist/index.cjs +1 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +1 -5
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +1 -5
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.mjs +1 -5
- package/dist/react.mjs.map +1 -1
- package/hz.js +1 -1
- package/package.json +1 -1
- package/src/core.test.ts +0 -9
- package/src/core.ts +0 -6
- package/src/version.ts +1 -1
package/hz.js
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
var LIB = 'hz.js'
|
|
58
|
-
var VERSION = '0.3.
|
|
58
|
+
var VERSION = '0.3.31'
|
|
59
59
|
var host = (s.getAttribute('data-host') || 'https://api.hanzo.ai').replace(/\/+$/, '')
|
|
60
60
|
var product = s.getAttribute('data-product') || location.hostname
|
|
61
61
|
var capture = s.getAttribute('data-capture') !== '0'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/event",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.31",
|
|
4
4
|
"description": "Hanzo Event — 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 — 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.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
package/src/core.test.ts
CHANGED
|
@@ -515,15 +515,6 @@ describe('Event error capture', () => {
|
|
|
515
515
|
expect(p.$exception_fingerprint).not.toBe('forged')
|
|
516
516
|
})
|
|
517
517
|
|
|
518
|
-
it('captureException is an alias of captureError', () => {
|
|
519
|
-
const a = mk()
|
|
520
|
-
a.captureException(new Error('via alias'))
|
|
521
|
-
const e = tx.all[0]
|
|
522
|
-
expect(e.event).toBe('$exception')
|
|
523
|
-
expect(e.type).toBe('event')
|
|
524
|
-
expect(e.error?.message).toBe('via alias')
|
|
525
|
-
})
|
|
526
|
-
|
|
527
518
|
it('an error is still an event on the ONE stream — same /v1/event door + product', () => {
|
|
528
519
|
const a = mk({ host: 'https://api.hanzo.ai' })
|
|
529
520
|
a.captureError(new Error('x'))
|
package/src/core.ts
CHANGED
|
@@ -409,9 +409,6 @@ export class Analytics {
|
|
|
409
409
|
this.enqueue('event', event, { properties, ...commerce })
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
/** track is an alias of capture (Segment familiarity). */
|
|
413
|
-
track = this.capture.bind(this)
|
|
414
|
-
|
|
415
412
|
/** captureError reports a caught error, an unhandled rejection, a React render
|
|
416
413
|
* error, or a manual report to BOTH planes, from one call:
|
|
417
414
|
*
|
|
@@ -483,9 +480,6 @@ export class Analytics {
|
|
|
483
480
|
}
|
|
484
481
|
}
|
|
485
482
|
|
|
486
|
-
/** captureException — @sentry-familiar alias of captureError. */
|
|
487
|
-
captureException = this.captureError.bind(this)
|
|
488
|
-
|
|
489
483
|
/** setCohort persists cohort dimensions (e.g. signupWeek at signup) so they ride
|
|
490
484
|
* every subsequent event. */
|
|
491
485
|
setCohort(patch: Cohort): void {
|
package/src/version.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// The library version, stamped on every event (`libraryVersion`) and on the
|
|
2
2
|
// Sentry `sdk` block. It lives alone so `sentry.ts` can read it without importing
|
|
3
3
|
// `core.ts` — core imports sentry, so the reverse would be an import cycle.
|
|
4
|
-
export const VERSION = '0.3.
|
|
4
|
+
export const VERSION = '0.3.31'
|