@sailfish-ai/recorder 1.8.10 → 1.8.12

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/README.md CHANGED
@@ -7,3 +7,5 @@
7
7
  ## Trigger build - 06112025 0854PM GMT+4
8
8
 
9
9
  ## Trigger build - 11182025 1125AM GMT+4
10
+
11
+ ## Trigger build - 02122025 0330PM GMT+4
package/dist/index.js CHANGED
@@ -788,6 +788,7 @@ export async function startRecording({ apiKey, backendApi = "https://api-service
788
788
  g.sessionId = sessionId;
789
789
  g.apiKey = apiKey;
790
790
  g.backendApi = backendApi;
791
+ g.serviceAdditionalMetadata = serviceAdditionalMetadata;
791
792
  // Already fully initialized for this session with an open socket? No-op.
792
793
  if (g.initialized &&
793
794
  g.sessionId === sessionId &&
@@ -842,7 +843,9 @@ export async function startRecording({ apiKey, backendApi = "https://api-service
842
843
  // Create/ensure a server-side recording session once per browser session
843
844
  const sessionResponse = await startRecordingSession(apiKey, sessionId, backendApi, effectiveServiceIdentifier, effectiveServiceVersion, effectiveMapUuid, effectiveGitSha, effectiveLibrary, metadataWithAppUrl);
844
845
  if (sessionResponse.data?.startRecordingSession) {
845
- const websocket = await initializeRecording(captureSettings, backendApi, apiKey, sessionId);
846
+ // Extract env value from serviceAdditionalMetadata
847
+ const envValue = serviceAdditionalMetadata?.env || serviceAdditionalMetadata?.environment;
848
+ const websocket = await initializeRecording(captureSettings, backendApi, apiKey, sessionId, envValue);
846
849
  g.ws = websocket;
847
850
  g.initialized = true;
848
851
  if (!g.sentMapUuidOnce) {
@@ -909,6 +912,7 @@ export * from "./graphql";
909
912
  export { openReportIssueModal } from "./inAppReportIssueModal";
910
913
  export * from "./recording";
911
914
  export * from "./sendSailfishMessages";
915
+ export { getOrSetSessionId } from "./session";
912
916
  export * from "./types";
913
917
  export * from "./utils";
914
918
  export * from "./websocket";