autotel-devtools 6.1.0 → 6.1.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/binding.gyp +9 -0
- package/dist/cli.cjs +6 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +6 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +6 -3
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +6 -3
- package/dist/server/index.js.map +1 -1
- package/dist/widget.global.js +11 -8
- package/index.js +1 -0
- package/package.json +3 -3
package/dist/server/index.js
CHANGED
|
@@ -433,13 +433,16 @@ var DevtoolsServer = class {
|
|
|
433
433
|
addTraces(traces) {
|
|
434
434
|
for (const trace of traces) this.addTrace(trace);
|
|
435
435
|
}
|
|
436
|
+
// `errors` is full-state on every broadcast (the client replaces, not appends),
|
|
437
|
+
// so non-trace broadcasts must echo the current error groups rather than `[]` —
|
|
438
|
+
// otherwise a log/metric arriving after an error would wipe it from the UI.
|
|
436
439
|
addLog(log) {
|
|
437
440
|
this.logs = appendWithLimit(this.logs, log, this.limits.maxLogCount);
|
|
438
|
-
this.broadcast({ traces: [], metrics: [], logs: [log], errors:
|
|
441
|
+
this.broadcast({ traces: [], metrics: [], logs: [log], errors: this.errorAggregator.getErrorGroups() });
|
|
439
442
|
}
|
|
440
443
|
addLogs(logs) {
|
|
441
444
|
this.logs = appendManyWithLimit(this.logs, logs, this.limits.maxLogCount);
|
|
442
|
-
this.broadcast({ traces: [], metrics: [], logs, errors:
|
|
445
|
+
this.broadcast({ traces: [], metrics: [], logs, errors: this.errorAggregator.getErrorGroups() });
|
|
443
446
|
}
|
|
444
447
|
addMetric(metric) {
|
|
445
448
|
this.metrics = appendWithLimit(
|
|
@@ -447,7 +450,7 @@ var DevtoolsServer = class {
|
|
|
447
450
|
metric,
|
|
448
451
|
this.limits.maxMetricCount
|
|
449
452
|
);
|
|
450
|
-
this.broadcast({ traces: [], metrics: [metric], logs: [], errors:
|
|
453
|
+
this.broadcast({ traces: [], metrics: [metric], logs: [], errors: this.errorAggregator.getErrorGroups() });
|
|
451
454
|
}
|
|
452
455
|
getCurrentData() {
|
|
453
456
|
return {
|