@extn/segi-js 0.2.2 → 0.2.3
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/replay/index.js
CHANGED
|
@@ -367,7 +367,7 @@ async function activateReplay(args) {
|
|
|
367
367
|
setTimeout(onIdle, 5e3);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
|
-
void Promise.resolve().then(() => _interopRequireWildcard(require("../rrweb-
|
|
370
|
+
void Promise.resolve().then(() => _interopRequireWildcard(require("../rrweb-IYWAVI4X.js"))).then(
|
|
371
371
|
({ startRrweb }) => new Promise((resolve) => {
|
|
372
372
|
scheduleRrwebStart(() => {
|
|
373
373
|
startRrweb({
|
package/dist/replay/index.mjs
CHANGED
|
@@ -367,7 +367,7 @@ async function activateReplay(args) {
|
|
|
367
367
|
setTimeout(onIdle, 5e3);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
|
-
void import("../rrweb-
|
|
370
|
+
void import("../rrweb-YPWAT5PS.mjs").then(
|
|
371
371
|
({ startRrweb }) => new Promise((resolve) => {
|
|
372
372
|
scheduleRrwebStart(() => {
|
|
373
373
|
startRrweb({
|
|
@@ -78,10 +78,18 @@ async function startRrweb(args) {
|
|
|
78
78
|
inlineStylesheet: true
|
|
79
79
|
});
|
|
80
80
|
stopFn = typeof stop === "function" ? stop : null;
|
|
81
|
+
setTimeout(() => {
|
|
82
|
+
if (stopped || paused) return;
|
|
83
|
+
try {
|
|
84
|
+
const rec = rrweb.record;
|
|
85
|
+
_optionalChain([rec, 'access', _7 => _7.takeFullSnapshot, 'optionalCall', _8 => _8()]);
|
|
86
|
+
} catch (e3) {
|
|
87
|
+
}
|
|
88
|
+
}, 100);
|
|
81
89
|
}
|
|
82
90
|
function stopRrwebOnly() {
|
|
83
91
|
try {
|
|
84
|
-
_optionalChain([stopFn, 'optionalCall',
|
|
92
|
+
_optionalChain([stopFn, 'optionalCall', _9 => _9()]);
|
|
85
93
|
} finally {
|
|
86
94
|
stopFn = null;
|
|
87
95
|
}
|
|
@@ -94,7 +102,7 @@ async function startRrweb(args) {
|
|
|
94
102
|
bufferBytes = 0;
|
|
95
103
|
try {
|
|
96
104
|
args.sendChunk(chunk, useBeacon);
|
|
97
|
-
} catch (
|
|
105
|
+
} catch (e4) {
|
|
98
106
|
}
|
|
99
107
|
}
|
|
100
108
|
function onActivity() {
|
|
@@ -143,8 +151,8 @@ async function startRrweb(args) {
|
|
|
143
151
|
if (stopped || paused) return;
|
|
144
152
|
try {
|
|
145
153
|
const rec = rrweb.record;
|
|
146
|
-
_optionalChain([rec, 'access',
|
|
147
|
-
} catch (
|
|
154
|
+
_optionalChain([rec, 'access', _10 => _10.takeFullSnapshot, 'optionalCall', _11 => _11()]);
|
|
155
|
+
} catch (e5) {
|
|
148
156
|
}
|
|
149
157
|
}
|
|
150
158
|
};
|
|
@@ -78,6 +78,14 @@ async function startRrweb(args) {
|
|
|
78
78
|
inlineStylesheet: true
|
|
79
79
|
});
|
|
80
80
|
stopFn = typeof stop === "function" ? stop : null;
|
|
81
|
+
setTimeout(() => {
|
|
82
|
+
if (stopped || paused) return;
|
|
83
|
+
try {
|
|
84
|
+
const rec = rrweb.record;
|
|
85
|
+
rec.takeFullSnapshot?.();
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
}, 100);
|
|
81
89
|
}
|
|
82
90
|
function stopRrwebOnly() {
|
|
83
91
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extn/segi-js",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Browser JavaScript SDK for the segi error monitoring service",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"rrweb": "2.0.0-alpha.
|
|
31
|
+
"rrweb": "2.0.0-alpha.20",
|
|
32
32
|
"@extn/segi-shared": "0.2.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|