@spotify-confidence/session-recording 0.18.6 → 0.18.7

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.cts CHANGED
@@ -80,6 +80,15 @@ interface InitSessionRecorderOptions {
80
80
  * `'manual'` — does nothing until `start()` is called, bypassing sampling and targeting rules.
81
81
  */
82
82
  mode?: "automatic" | "manual";
83
+ /**
84
+ * URL of a self-hosted worker script. Required when your Content Security Policy
85
+ * blocks `data:` and `blob:` in `worker-src`. Serve the file exported from
86
+ * `@spotify-confidence/session-recording/worker` at a same-origin route and pass
87
+ * its URL here.
88
+ *
89
+ * The worker version must match the SDK version — a mismatch may cause silent failures.
90
+ */
91
+ workerUrl?: string;
83
92
  /** Verbose tracer for debugging — called with one-line lifecycle/transport messages. */
84
93
  debugLogger?: (msg: string) => void;
85
94
  }
package/dist/index.d.ts CHANGED
@@ -80,6 +80,15 @@ interface InitSessionRecorderOptions {
80
80
  * `'manual'` — does nothing until `start()` is called, bypassing sampling and targeting rules.
81
81
  */
82
82
  mode?: "automatic" | "manual";
83
+ /**
84
+ * URL of a self-hosted worker script. Required when your Content Security Policy
85
+ * blocks `data:` and `blob:` in `worker-src`. Serve the file exported from
86
+ * `@spotify-confidence/session-recording/worker` at a same-origin route and pass
87
+ * its URL here.
88
+ *
89
+ * The worker version must match the SDK version — a mismatch may cause silent failures.
90
+ */
91
+ workerUrl?: string;
83
92
  /** Verbose tracer for debugging — called with one-line lifecycle/transport messages. */
84
93
  debugLogger?: (msg: string) => void;
85
94
  }