@sailfish-ai/recorder 1.7.1 → 1.7.2

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 CHANGED
@@ -321,7 +321,7 @@ function setupFetchInterceptor(domainsToNotPropagateHeadersTo, domainsToPropagat
321
321
  }
322
322
  }
323
323
  // Main Recording Function
324
- export async function startRecording({ apiKey, backendApi = "https://api-service.sailfishqa.com", domainsToPropagateHeaderTo = [], domainsToNotPropagateHeaderTo = [], serviceVersion = "", }) {
324
+ export async function startRecording({ apiKey, backendApi = "https://api-service.sailfishqa.com", domainsToPropagateHeaderTo = [], domainsToNotPropagateHeaderTo = [], serviceVersion = "", serviceIdentifier = "", }) {
325
325
  initializeConsolePlugin(DEFAULT_CONSOLE_RECORDING_SETTINGS);
326
326
  let sessionId = getOrSetSessionId();
327
327
  storeCredentialsAndConnection({ apiKey, backendApi });
@@ -344,7 +344,7 @@ export async function startRecording({ apiKey, backendApi = "https://api-service
344
344
  // DEFAULT_NETWORK_CAPTURE_SETTINGS,
345
345
  backendApi, apiKey, sessionId);
346
346
  // Send parameters once before starting interval
347
- sendMapUuidIfAvailable(serviceVersion);
347
+ sendMapUuidIfAvailable(serviceIdentifier, serviceVersion);
348
348
  setInterval(() => sendRecordingEvents(websocket), 10000);
349
349
  }
350
350
  else {
package/dist/mapUuid.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { sendMessage } from "./websocket";
2
- export function sendMapUuidIfAvailable(serviceVersion) {
2
+ export function sendMapUuidIfAvailable(serviceIdentifier = "", serviceVersion = "") {
3
3
  if (window.sfMapUuid) {
4
4
  const mapUuidMessage = {
5
5
  type: "mapUuid",
6
6
  data: {
7
7
  mapUuid: window.sfMapUuid,
8
- serviceVersion: serviceVersion,
8
+ serviceIdentifier,
9
+ serviceVersion,
9
10
  },
10
11
  };
11
12
  sendMessage(mapUuidMessage);