@sailfish-ai/recorder 1.9.0 → 1.9.2-alpha1
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/recorder.cjs +4098 -4058
- package/dist/recorder.js +3982 -3942
- package/dist/recorder.js.br +0 -0
- package/dist/recorder.js.gz +0 -0
- package/dist/recording.js +13 -1
- package/package.json +4 -4
package/dist/recorder.js.br
CHANGED
|
Binary file
|
package/dist/recorder.js.gz
CHANGED
|
Binary file
|
package/dist/recording.js
CHANGED
|
@@ -201,7 +201,19 @@ function createThrottledEmit(enabled, intervalMs = 1000) {
|
|
|
201
201
|
sendEvent(event);
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
//
|
|
204
|
+
// Mutation events (source 0) with structural DOM changes (adds/removes)
|
|
205
|
+
// must NOT be throttled. These contain critical node insertions/removals
|
|
206
|
+
// (e.g., login page removal) that would be lost if overwritten in the buffer.
|
|
207
|
+
if (eventSource === 0) {
|
|
208
|
+
const data = event.data;
|
|
209
|
+
const hasAdds = data?.adds && data.adds.length > 0;
|
|
210
|
+
const hasRemoves = data?.removes && data.removes.length > 0;
|
|
211
|
+
if (hasAdds || hasRemoves) {
|
|
212
|
+
sendEvent(event);
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
// For text-only edit events (mutation or input), buffer and send periodically
|
|
205
217
|
// Create a key for this event (include source and target id for granular buffering)
|
|
206
218
|
const targetId = event.data?.id || 'unknown';
|
|
207
219
|
const eventKey = `3:${eventSource}:${targetId}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sailfish-ai/recorder",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2-alpha1",
|
|
4
4
|
"publishPublicly": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/recorder.cjs",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@sailfish-ai/sf-map-utils": "0.4.5",
|
|
47
|
-
"@sailfish-rrweb/rrweb-plugin-console-record": "0.5.
|
|
48
|
-
"@sailfish-rrweb/rrweb-record-only": "0.5.
|
|
49
|
-
"@sailfish-rrweb/types": "0.5.
|
|
47
|
+
"@sailfish-rrweb/rrweb-plugin-console-record": "0.5.6",
|
|
48
|
+
"@sailfish-rrweb/rrweb-record-only": "0.5.6",
|
|
49
|
+
"@sailfish-rrweb/types": "0.5.6",
|
|
50
50
|
"async-mutex": "^0.5.0",
|
|
51
51
|
"idb": "^8.0.3",
|
|
52
52
|
"reconnecting-websocket": "^4.4.0",
|