@hanzo/event 0.3.16 → 0.3.17

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/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { C as Cohort, A as Attribution, S as SentryEvent, D as Dsn, a as CaptureErrorOptions, b as SentryFrame } from './core-BZraSvcr.js';
2
- export { c as Analytics, d as AnalyticsConfig, E as EventKind, e as Exception, f as SentryLevel, T as Transport, W as WireEvent, g as createAnalytics } from './core-BZraSvcr.js';
1
+ import { C as Cohort, A as Attribution, S as SentryEvent, D as Dsn, a as CaptureErrorOptions, b as SentryFrame } from './core-D4PaPlOB.js';
2
+ export { c as Analytics, d as AnalyticsConfig, E as EventKind, e as Exception, f as SentryLevel, T as Transport, W as WireEvent, g as createAnalytics } from './core-D4PaPlOB.js';
3
3
 
4
4
  /** Read the persisted first-touch attribution. */
5
5
  declare function getFirstTouch(): Attribution | undefined;
6
6
  /** Read persisted cohort dimensions. */
7
7
  declare function getCohort(): Cohort | undefined;
8
8
 
9
- declare const VERSION = "0.3.16";
9
+ declare const VERSION = "0.3.17";
10
10
 
11
11
  /**
12
12
  * parseDsn parses "https://<version>:<hmac>@<host>/v1/sentry/<projectId>" into its
package/dist/index.mjs CHANGED
@@ -365,7 +365,7 @@ function uuidv7Time(id) {
365
365
  }
366
366
 
367
367
  // src/version.ts
368
- var VERSION = "0.3.16";
368
+ var VERSION = "0.3.17";
369
369
 
370
370
  // src/sentry.ts
371
371
  var MAX_FRAMES = 50;
@@ -731,9 +731,9 @@ var Analytics = class {
731
731
  // The publishable key resolves the SAME way the DSN below does: an explicit
732
732
  // config wins, else the inlined build-time env.
733
733
  //
734
- // NEXT_PUBLIC_EVENT_INGEST_KEY is that env, and it is the name the fleet
735
- // ALREADY carries end to end — KMS holds deploy/EVENT_INGEST_KEY, each
736
- // Dockerfile takes it as the EVENT_INGEST_KEY build-arg and re-exports it
734
+ // NEXT_PUBLIC_PUBLISHABLE_KEY is that env, and it is the name the fleet
735
+ // ALREADY carries end to end — KMS holds deploy/PUBLISHABLE_KEY, each
736
+ // Dockerfile takes it as the PUBLISHABLE_KEY build-arg and re-exports it
737
737
  // with the NEXT_PUBLIC_ prefix Next needs to inline it. Reading anything
738
738
  // else here would add a fourth spelling of one value.
739
739
  //
@@ -743,7 +743,7 @@ var Analytics = class {
743
743
  // unattributed write is refused (401 ingest_key_required), which is silent
744
744
  // in the page and invisible until you read the warehouse and find the host
745
745
  // missing entirely.
746
- ingestKey: config.ingestKey ?? readEnv("NEXT_PUBLIC_EVENT_INGEST_KEY")
746
+ ingestKey: config.ingestKey ?? readEnv("NEXT_PUBLIC_PUBLISHABLE_KEY")
747
747
  };
748
748
  this.transport = config.transport ?? new DefaultTransport();
749
749
  this.dsn = parseDsn(config.dsn ?? readEnvDsn() ?? dsnForProduct(this.cfg.product));