@sailfish-ai/recorder 1.7.20 → 1.7.22
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/constants.js +60 -0
- package/dist/index.js +430 -334
- 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/constants.d.ts +1 -0
- package/dist/types/index.d.ts +12 -0
- package/package.json +16 -5
|
Binary file
|
|
Binary file
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { LogRecordOptions } from "@sailfish-rrweb/rrweb-plugin-console-record";
|
|
2
2
|
import { CaptureSettings } from "./types";
|
|
3
|
+
export declare const STORAGE_VERSION = 1;
|
|
4
|
+
export declare const DYNAMIC_PASSED_HOSTS_KEY = "dynamicPassedHosts";
|
|
5
|
+
export declare const DYNAMIC_EXCLUDED_HOSTS_KEY = "dynamicExcludedHosts";
|
|
6
|
+
export declare const dynamicExcludedHosts: Set<string>;
|
|
7
|
+
export declare const dynamicPassedHosts: Set<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Given a set of excluded hostPaths (like "foo.com/bar", "foo.com/baz", etc.),
|
|
10
|
+
* find any path prefixes under each host that appear ≥ threshold times,
|
|
11
|
+
* and replace their individual entries with a single wildcard pattern
|
|
12
|
+
* (e.g. "foo.com/bar*").
|
|
13
|
+
*/
|
|
14
|
+
export declare function consolidateDynamicExclusions(hostPathSet: Set<string>, threshold?: number): Set<string>;
|
|
3
15
|
export declare const DEFAULT_CAPTURE_SETTINGS: CaptureSettings;
|
|
4
16
|
export declare const DEFAULT_CONSOLE_RECORDING_SETTINGS: LogRecordOptions;
|
|
5
17
|
export declare function matchUrlWithWildcard(url: string, patterns: string[]): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sailfish-ai/recorder",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.22",
|
|
4
4
|
"publishPublicly": true,
|
|
5
5
|
"main": "dist/sailfish-recorder.umd.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"check-types": "tsc --noEmit",
|
|
13
13
|
"prepublish": "npm run check-types && npm run build",
|
|
14
14
|
"artifactregistry-login": "npx google-artifactregistry-auth",
|
|
15
|
-
"publish-local": "npm publish --registry http://localhost:4873 --//localhost:4873/:_authToken=none"
|
|
15
|
+
"publish-local": "npm publish --tag latest --registry http://localhost:4873 --//localhost:4873/:_authToken=none"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@sailfish-rrweb/rrweb-plugin-console-record": "
|
|
28
|
-
"@sailfish-rrweb/rrweb-record-only": "
|
|
29
|
-
"@sailfish-rrweb/types": "
|
|
27
|
+
"@sailfish-rrweb/rrweb-plugin-console-record": "0.5.2",
|
|
28
|
+
"@sailfish-rrweb/rrweb-record-only": "0.5.2",
|
|
29
|
+
"@sailfish-rrweb/types": "0.5.2",
|
|
30
30
|
"async-mutex": "^0.5.0",
|
|
31
31
|
"idb": "^8.0.3",
|
|
32
32
|
"react-zendesk": "^0.1.13",
|
|
@@ -38,11 +38,22 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
|
+
"@types/jest": "^30.0.0",
|
|
41
42
|
"@types/node": "^18.0.0",
|
|
43
|
+
"@types/react": "^19.1.8",
|
|
44
|
+
"@types/react-dom": "^19.1.6",
|
|
42
45
|
"@types/uuid": "^10.0.0",
|
|
46
|
+
"fake-indexeddb": "^6.0.1",
|
|
47
|
+
"jest": "^30.0.4",
|
|
48
|
+
"jest-environment-jsdom": "^30.0.4",
|
|
49
|
+
"jest-localstorage-mock": "^2.4.26",
|
|
50
|
+
"jest-transform-stub": "^2.0.0",
|
|
43
51
|
"jsdom": "^25.0.0",
|
|
52
|
+
"react": "^19.1.0",
|
|
53
|
+
"react-dom": "^19.1.0",
|
|
44
54
|
"rollup-plugin-dts": "^6.1.1",
|
|
45
55
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
56
|
+
"ts-jest": "^29.4.0",
|
|
46
57
|
"typescript": "^5.0.0",
|
|
47
58
|
"vite-plugin-compression": "^0.5.1",
|
|
48
59
|
"vitest": "^3.0.8"
|