@sailfish-ai/recorder 1.7.49 → 1.7.50
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.js +3 -1
- package/dist/sailfish-recorder.cjs.js +1 -1
- package/dist/sailfish-recorder.cjs.js.br +0 -0
- package/dist/sailfish-recorder.cjs.js.gz +0 -0
- package/dist/sailfish-recorder.es.js +1 -1
- package/dist/sailfish-recorder.es.js.br +0 -0
- package/dist/sailfish-recorder.es.js.gz +0 -0
- package/dist/sailfish-recorder.umd.js +1 -1
- package/dist/sailfish-recorder.umd.js.br +0 -0
- package/dist/sailfish-recorder.umd.js.gz +0 -0
- package/dist/types/utils.d.ts +1 -0
- package/dist/utils.js +6 -0
- package/dist/websocket.js +15 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { sendMapUuidIfAvailable } from "./mapUuid";
|
|
|
9
9
|
import { getUrlAndStoredUuids, initializeConsolePlugin, initializeDomContentEvents, initializeRecording, } from "./recording";
|
|
10
10
|
import { HAS_DOCUMENT, HAS_LOCAL_STORAGE, HAS_SESSION_STORAGE, HAS_WINDOW, } from "./runtimeEnv";
|
|
11
11
|
import { getOrSetSessionId } from "./session";
|
|
12
|
+
import { withAppUrlMetadata } from "./utils";
|
|
12
13
|
import { sendEvent, sendMessage } from "./websocket";
|
|
13
14
|
// Default list of domains to ignore
|
|
14
15
|
const DOMAINS_TO_NOT_PROPAGATE_HEADER_TO_DEFAULT = [
|
|
@@ -629,7 +630,8 @@ export async function startRecording({ apiKey, backendApi = "https://api-service
|
|
|
629
630
|
const captureSettingsResponse = await fetchCaptureSettings(apiKey, backendApi);
|
|
630
631
|
const captureSettings = captureSettingsResponse.data?.captureSettingsFromApiKey ||
|
|
631
632
|
DEFAULT_CAPTURE_SETTINGS;
|
|
632
|
-
const
|
|
633
|
+
const metadataWithAppUrl = withAppUrlMetadata(serviceAdditionalMetadata);
|
|
634
|
+
const sessionResponse = await startRecordingSession(apiKey, sessionId, backendApi, effectiveServiceIdentifier, effectiveServiceVersion, effectiveMapUuid, effectiveGitSha, effectiveLibrary, metadataWithAppUrl);
|
|
633
635
|
if (sessionResponse.data?.startRecordingSession) {
|
|
634
636
|
const websocket = await initializeRecording(captureSettings,
|
|
635
637
|
// DEFAULT_NETWORK_CAPTURE_SETTINGS,
|