@sailfish-ai/recorder 1.0.0-beta-12 → 1.0.0-beta-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/recording.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { record } from "@sailfish-rrweb/record";
2
2
  import { getRecordConsolePlugin, } from "@sailfish-rrweb/rrweb-plugin-console-record";
3
+ import { getRecordNetworkPlugin, } from "@sailfish-rrweb/rrweb-plugin-network-record";
3
4
  import { cacheEvents, sendRecordingEvents } from "./eventCache";
4
5
  import { initializeWebSocket } from "./websocket";
5
6
  const MASK_CLASS = "sailfishSanitize";
@@ -8,7 +9,7 @@ function maskInputFn(text, node) {
8
9
  // The maskInputFn logic here
9
10
  return text; // Placeholder return
10
11
  }
11
- export async function initializeRecording(captureSettings, // TODO - Sibyl post-launch - replace type
12
+ export async function initializeRecording(captureSettings, // TODO - Sibyl launch - replace type
12
13
  consoleRecordSettings, networkRecordSettings, backendApi, apiKey, sessionId) {
13
14
  try {
14
15
  record({
@@ -17,7 +18,7 @@ consoleRecordSettings, networkRecordSettings, backendApi, apiKey, sessionId) {
17
18
  },
18
19
  plugins: [
19
20
  getRecordConsolePlugin(consoleRecordSettings),
20
- // getRecordNetworkPlugin(networkRecordSettings),
21
+ getRecordNetworkPlugin(networkRecordSettings),
21
22
  ],
22
23
  maskInputOptions: { text: true }, // Fix the incorrect property name
23
24
  maskInputFn,