@sailfish-ai/recorder 1.0.3 → 1.0.5
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/graphql.js +5 -0
- package/dist/index.js +41 -22
- package/dist/recording.js +0 -1
- package/dist/sailfish-recorder.es.js +461 -20
- package/dist/sailfish-recorder.umd.js +472 -31
- package/dist/types/graphql.d.ts +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/websocket.js +2 -1
- package/package.json +2 -1
package/dist/types/graphql.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ initialBackoff?: number, // Initial backoff in milliseconds
|
|
|
4
4
|
backoffFactor?: number): Promise<GraphQLResponse<T>>;
|
|
5
5
|
export declare function fetchCaptureSettings(apiKey: string, backendApi: string): Promise<GraphQLResponse<CaptureSettingsResponse>>;
|
|
6
6
|
export declare function startRecordingSession(apiKey: string, recordingId: string, backendApi: string): Promise<GraphQLResponse<StartSessionResponse>>;
|
|
7
|
+
export declare function sendDomainsToNotPropagateHeaderTo(apiKey: string, domains: string[], backendApi: string): Promise<GraphQLResponse<void>>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LogRecordOptions } from "@sailfish-rrweb/rrweb-plugin-console-record";
|
|
2
2
|
import { NetworkRecordOptions } from "@sailfish-rrweb/rrweb-plugin-network-record";
|
|
3
3
|
import { CaptureSettings } from "./types";
|
|
4
|
-
export declare const DEFAULT_DOMAINS_TO_IGNORE: string[];
|
|
5
4
|
export declare const DEFAULT_CAPTURE_SETTINGS: CaptureSettings;
|
|
6
5
|
export declare const DEFAULT_CONSOLE_RECORDING_SETTINGS: LogRecordOptions;
|
|
7
6
|
export declare const DEFAULT_NETWORK_CAPTURE_SETTINGS: NetworkRecordOptions;
|
|
8
|
-
export declare function startRecording({ apiKey, backendApi, }: {
|
|
7
|
+
export declare function startRecording({ apiKey, backendApi, domainsToNotPropagateHeaderTo, }: {
|
|
9
8
|
apiKey: string;
|
|
10
9
|
backendApi: string;
|
|
10
|
+
domainsToNotPropagateHeaderTo?: string[];
|
|
11
11
|
}): Promise<void>;
|
|
12
12
|
export * from "./eventCache";
|
|
13
13
|
export * from "./graphql";
|
package/dist/websocket.js
CHANGED
|
@@ -16,7 +16,8 @@ function flushMessageQueue() {
|
|
|
16
16
|
}
|
|
17
17
|
export function initializeWebSocket(backendApi, apiKey, sessionId) {
|
|
18
18
|
const wsHost = getWebSocketHost(backendApi);
|
|
19
|
-
const
|
|
19
|
+
const apiProtocol = new URL(backendApi).protocol;
|
|
20
|
+
const wsScheme = apiProtocol === "https:" ? "wss" : "ws";
|
|
20
21
|
const wsUrl = `${wsScheme}://${wsHost}/ws/notify/?apiKey=${apiKey}&sessionId=${sessionId}&sender=JS%2FTS&version=${version}`;
|
|
21
22
|
const options = {
|
|
22
23
|
connectionTimeout: 10000,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sailfish-ai/recorder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"publishPublicly": true,
|
|
5
5
|
"main": "dist/sailfish-recorder.umd.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@sailfish-rrweb/rrweb-snapshot": "0.2.5",
|
|
26
26
|
"@sailfish-rrweb/types": "0.2.5",
|
|
27
27
|
"reconnecting-websocket": "^4.4.0",
|
|
28
|
+
"tldts": "^6.1.46",
|
|
28
29
|
"uuid": "^10.0.0",
|
|
29
30
|
"vite": "^5.3.4",
|
|
30
31
|
"vite-tsconfig-paths": "^4.3.2"
|