@heycatch/sdk 0.8.0-dev.1460 → 0.8.0-dev.1534

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.
@@ -113,6 +113,17 @@ interface ServerTrackOptions extends TrackOptions {
113
113
  */
114
114
  declare const STAGE: "dev" | "prod";
115
115
  declare const SDK_VERSION: string;
116
+ /**
117
+ * The request headers HeyCatch sets on your app's own backend calls to link
118
+ * server events to the browser session. A backend on another origin listed
119
+ * in `tracingHosts` must allow all three in its CORS preflight's
120
+ * `Access-Control-Allow-Headers`, on top of what it already allows:
121
+ *
122
+ * ```ts
123
+ * cors({ allowedHeaders: ['Content-Type', 'Authorization', ...TRACING_HEADERS] })
124
+ * ```
125
+ */
126
+ declare const TRACING_HEADERS: readonly ["X-HeyCatch-Session-Id", "X-HeyCatch-Window-Id", "X-HeyCatch-Distinct-Id"];
116
127
  /** Stamped when the installer could not determine a value. */
117
128
  declare const UNKNOWN_INSTALL_VALUE: "unknown";
118
129
  /**
@@ -265,4 +276,4 @@ interface HeyCatchConfig {
265
276
  flushIntervalMs?: number;
266
277
  }
267
278
 
268
- export { type HeyCatchBeforeSend as H, KNOWN_FRAMEWORKS as K, type PersonPropertyUpdate as P, SDK_VERSION as S, type TrackOptions as T, UNKNOWN_INSTALL_VALUE as U, type HeyCatchCapturedEvent as a, type HeyCatchConfig as b, type HeyCatchPersistence as c, type HeyCatchPersonProperties as d, type HeyCatchProperties as e, type HeyCatchSanitizeProperties as f, KNOWN_INSTALL_AGENTS as g, STAGE as h, type ServerTrackOptions as i };
279
+ export { type HeyCatchBeforeSend as H, KNOWN_FRAMEWORKS as K, type PersonPropertyUpdate as P, SDK_VERSION as S, TRACING_HEADERS as T, UNKNOWN_INSTALL_VALUE as U, type HeyCatchCapturedEvent as a, type HeyCatchConfig as b, type HeyCatchPersistence as c, type HeyCatchPersonProperties as d, type HeyCatchProperties as e, type HeyCatchSanitizeProperties as f, KNOWN_INSTALL_AGENTS as g, STAGE as h, type ServerTrackOptions as i, type TrackOptions as j };
@@ -113,6 +113,17 @@ interface ServerTrackOptions extends TrackOptions {
113
113
  */
114
114
  declare const STAGE: "dev" | "prod";
115
115
  declare const SDK_VERSION: string;
116
+ /**
117
+ * The request headers HeyCatch sets on your app's own backend calls to link
118
+ * server events to the browser session. A backend on another origin listed
119
+ * in `tracingHosts` must allow all three in its CORS preflight's
120
+ * `Access-Control-Allow-Headers`, on top of what it already allows:
121
+ *
122
+ * ```ts
123
+ * cors({ allowedHeaders: ['Content-Type', 'Authorization', ...TRACING_HEADERS] })
124
+ * ```
125
+ */
126
+ declare const TRACING_HEADERS: readonly ["X-HeyCatch-Session-Id", "X-HeyCatch-Window-Id", "X-HeyCatch-Distinct-Id"];
116
127
  /** Stamped when the installer could not determine a value. */
117
128
  declare const UNKNOWN_INSTALL_VALUE: "unknown";
118
129
  /**
@@ -265,4 +276,4 @@ interface HeyCatchConfig {
265
276
  flushIntervalMs?: number;
266
277
  }
267
278
 
268
- export { type HeyCatchBeforeSend as H, KNOWN_FRAMEWORKS as K, type PersonPropertyUpdate as P, SDK_VERSION as S, type TrackOptions as T, UNKNOWN_INSTALL_VALUE as U, type HeyCatchCapturedEvent as a, type HeyCatchConfig as b, type HeyCatchPersistence as c, type HeyCatchPersonProperties as d, type HeyCatchProperties as e, type HeyCatchSanitizeProperties as f, KNOWN_INSTALL_AGENTS as g, STAGE as h, type ServerTrackOptions as i };
279
+ export { type HeyCatchBeforeSend as H, KNOWN_FRAMEWORKS as K, type PersonPropertyUpdate as P, SDK_VERSION as S, TRACING_HEADERS as T, UNKNOWN_INSTALL_VALUE as U, type HeyCatchCapturedEvent as a, type HeyCatchConfig as b, type HeyCatchPersistence as c, type HeyCatchPersonProperties as d, type HeyCatchProperties as e, type HeyCatchSanitizeProperties as f, KNOWN_INSTALL_AGENTS as g, STAGE as h, type ServerTrackOptions as i, type TrackOptions as j };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycatch/sdk",
3
- "version": "0.8.0-dev.1460",
3
+ "version": "0.8.0-dev.1534",
4
4
  "description": "HeyCatch SDK",
5
5
  "keywords": [
6
6
  "analytics",