@hanzo/event 0.3.44 → 0.3.49
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/README.md +11 -50
- package/dist/core.d.ts +6 -36
- package/dist/core.d.ts.map +1 -1
- package/dist/index.cjs +242 -414
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +241 -411
- package/dist/index.mjs.map +1 -1
- package/dist/items.d.ts +22 -0
- package/dist/items.d.ts.map +1 -0
- package/dist/org.d.ts.map +1 -1
- package/dist/react.cjs +181 -415
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +8 -0
- package/dist/react.d.ts +8 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.mjs +183 -418
- package/dist/react.mjs.map +1 -1
- package/dist/tags.d.ts +14 -1
- package/dist/tags.d.ts.map +1 -1
- package/dist/throwable.d.ts +15 -0
- package/dist/throwable.d.ts.map +1 -0
- package/dist/types.d.ts +19 -74
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core.test.ts +28 -300
- package/src/core.ts +36 -185
- package/src/exception.ts +1 -1
- package/src/index.ts +4 -6
- package/src/items.test.ts +22 -0
- package/src/items.ts +44 -0
- package/src/org.ts +4 -0
- package/src/react.tsx +22 -0
- package/src/stream.test.ts +0 -7
- package/src/tags.test.ts +18 -0
- package/src/tags.ts +38 -5
- package/src/throwable.test.ts +72 -0
- package/src/throwable.ts +126 -0
- package/src/types.ts +15 -75
- package/src/uid.test.ts +1 -1
- package/dist/dsn.d.ts +0 -43
- package/dist/dsn.d.ts.map +0 -1
- package/dist/sentry.d.ts +0 -62
- package/dist/sentry.d.ts.map +0 -1
- package/src/dsn.test.ts +0 -75
- package/src/dsn.ts +0 -56
- package/src/sentry.test.ts +0 -312
- package/src/sentry.ts +0 -311
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export { Analytics, createAnalytics, resetClients, VERSION, getCohort, getFirstTouch, } from './core';
|
|
2
|
-
export {
|
|
2
|
+
export { framesFromStack } from './throwable';
|
|
3
3
|
export { uuidv7, uuidv7Time } from './uid';
|
|
4
4
|
export { linkUrl, readLink, stripLink, LINK_PARAMS } from './link';
|
|
5
5
|
export type { LinkState } from './link';
|
|
6
|
-
export { PRODUCT_PROJECT, dsnForProduct } from './dsn';
|
|
7
|
-
export type { ErrorIdentity } from './sentry';
|
|
8
6
|
export { scrubText, redactSecrets, scrubPII } from './scrub';
|
|
9
7
|
export { EVENTS, EXCEPTION, PAGEVIEW } from './events';
|
|
10
8
|
export { exceptionEntry, exceptionProperties, fingerprint, digest } from './exception';
|
|
@@ -12,14 +10,16 @@ export type { EventName } from './events';
|
|
|
12
10
|
export { CONSENT_COOKIE, CONSENT_EVENT, acceptAll, asks, gpc, read as readConsent, refused, region, rejectAll, render as renderConsent, save as saveConsent, stored as storedConsent, } from './consent';
|
|
13
11
|
export type { Choice, Region } from './consent';
|
|
14
12
|
export { CLICK_IDS, capture as captureClick, touch } from './touch';
|
|
15
|
-
export { start as startTags, track, mirror, reach, visit } from './tags';
|
|
13
|
+
export { start as startTags, track, mirror, reach, visit, SITE_KEY } from './tags';
|
|
16
14
|
export type { BrowserTag, TagOptions } from './tags';
|
|
15
|
+
export { commerceItem, worth } from './items';
|
|
16
|
+
export type { CommerceItem, PlanLine } from './items';
|
|
17
17
|
export { GOALS, COHORTS } from './goals';
|
|
18
18
|
export type { GoalDef, CohortDef } from './goals';
|
|
19
19
|
export { FUNNELS, PRODUCTS, eventsOf } from './funnels';
|
|
20
20
|
export type { FunnelDef, FunnelStep, FunnelId, ProductId } from './funnels';
|
|
21
21
|
export { parseAttribution, deriveChannel, hasAttribution, hostOf, isoWeek, } from './attribution';
|
|
22
|
-
export type { AnalyticsConfig, Attribution, CaptureErrorOptions, Cohort,
|
|
22
|
+
export type { AnalyticsConfig, Attribution, CaptureErrorOptions, Cohort, EventKind, Exception, ExceptionEntry, ExceptionFrame, ExceptionProperties, SentryFrame, SentryLevel, Transport, WireEvent, } from './types';
|
|
23
23
|
/** Which org owns a host's telemetry — the resolution that lets a surface report
|
|
24
24
|
* correctly while configuring nothing. `keyFor` takes an optional keyring so a
|
|
25
25
|
* runtime that receives one (hanzo.id serves every brand from one image) resolves
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export { Analytics, createAnalytics, resetClients, VERSION, getCohort, getFirstTouch, } from './core';
|
|
2
|
-
export {
|
|
2
|
+
export { framesFromStack } from './throwable';
|
|
3
3
|
export { uuidv7, uuidv7Time } from './uid';
|
|
4
4
|
export { linkUrl, readLink, stripLink, LINK_PARAMS } from './link';
|
|
5
5
|
export type { LinkState } from './link';
|
|
6
|
-
export { PRODUCT_PROJECT, dsnForProduct } from './dsn';
|
|
7
|
-
export type { ErrorIdentity } from './sentry';
|
|
8
6
|
export { scrubText, redactSecrets, scrubPII } from './scrub';
|
|
9
7
|
export { EVENTS, EXCEPTION, PAGEVIEW } from './events';
|
|
10
8
|
export { exceptionEntry, exceptionProperties, fingerprint, digest } from './exception';
|
|
@@ -12,14 +10,16 @@ export type { EventName } from './events';
|
|
|
12
10
|
export { CONSENT_COOKIE, CONSENT_EVENT, acceptAll, asks, gpc, read as readConsent, refused, region, rejectAll, render as renderConsent, save as saveConsent, stored as storedConsent, } from './consent';
|
|
13
11
|
export type { Choice, Region } from './consent';
|
|
14
12
|
export { CLICK_IDS, capture as captureClick, touch } from './touch';
|
|
15
|
-
export { start as startTags, track, mirror, reach, visit } from './tags';
|
|
13
|
+
export { start as startTags, track, mirror, reach, visit, SITE_KEY } from './tags';
|
|
16
14
|
export type { BrowserTag, TagOptions } from './tags';
|
|
15
|
+
export { commerceItem, worth } from './items';
|
|
16
|
+
export type { CommerceItem, PlanLine } from './items';
|
|
17
17
|
export { GOALS, COHORTS } from './goals';
|
|
18
18
|
export type { GoalDef, CohortDef } from './goals';
|
|
19
19
|
export { FUNNELS, PRODUCTS, eventsOf } from './funnels';
|
|
20
20
|
export type { FunnelDef, FunnelStep, FunnelId, ProductId } from './funnels';
|
|
21
21
|
export { parseAttribution, deriveChannel, hasAttribution, hostOf, isoWeek, } from './attribution';
|
|
22
|
-
export type { AnalyticsConfig, Attribution, CaptureErrorOptions, Cohort,
|
|
22
|
+
export type { AnalyticsConfig, Attribution, CaptureErrorOptions, Cohort, EventKind, Exception, ExceptionEntry, ExceptionFrame, ExceptionProperties, SentryFrame, SentryLevel, Transport, WireEvent, } from './types';
|
|
23
23
|
/** Which org owns a host's telemetry — the resolution that lets a surface report
|
|
24
24
|
* correctly while configuring nothing. `keyFor` takes an optional keyring so a
|
|
25
25
|
* runtime that receives one (hanzo.id serves every brand from one image) resolves
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EACL,SAAS,EACT,eAAe,EACf,YAAY,EACZ,OAAO,EACP,SAAS,EACT,aAAa,GACd,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EACL,SAAS,EACT,eAAe,EACf,YAAY,EACZ,OAAO,EACP,SAAS,EACT,aAAa,GACd,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAClE,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC5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