@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/CHANGELOG.md +15 -0
- package/README.md +71 -0
- package/dist/confidence-worker.js +446 -0
- package/dist/index.cjs +39 -2066
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +38 -2065
- package/dist/uploader-CcDy4aME.cjs +2074 -0
- package/dist/uploader-CkAqZXJP.js +2063 -0
- package/dist/worker.cjs +3 -0
- package/dist/worker.d.cts +4 -0
- package/dist/worker.d.ts +4 -0
- package/dist/worker.js +2 -0
- package/package.json +18 -6
- package/src/index.test.ts +15 -0
- package/src/index.ts +10 -0
- package/src/version.ts +1 -1
- package/src/worker.ts +1 -0
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
|
}
|