@korajs/devtools 0.6.0 → 1.0.0-beta.0
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/LICENSE +21 -0
- package/dist/{chunk-N64DMGUU.js → chunk-K3QOD2IY.js} +7 -1
- package/dist/chunk-K3QOD2IY.js.map +1 -0
- package/dist/extension/panel.cjs +6 -0
- package/dist/extension/panel.cjs.map +1 -1
- package/dist/extension/panel.js +6 -0
- package/dist/extension/panel.js.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/overlay.cjs +6 -0
- package/dist/overlay.cjs.map +1 -1
- package/dist/overlay.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-N64DMGUU.js.map +0 -1
package/dist/extension/panel.js
CHANGED
|
@@ -428,6 +428,8 @@ var EVENT_TYPE_CATEGORIES = {
|
|
|
428
428
|
"sync:connected": "sync",
|
|
429
429
|
"sync:disconnected": "sync",
|
|
430
430
|
"sync:auth-failed": "sync",
|
|
431
|
+
"sync:clock-skew": "sync",
|
|
432
|
+
"sync:clock-rebase": "sync",
|
|
431
433
|
"sync:schema-mismatch": "sync",
|
|
432
434
|
"sync:apply-failed": "sync",
|
|
433
435
|
"sync:sent": "sync",
|
|
@@ -710,6 +712,10 @@ function timelineLabel(event) {
|
|
|
710
712
|
return "sync disconnected";
|
|
711
713
|
case "sync:auth-failed":
|
|
712
714
|
return "sync auth failed";
|
|
715
|
+
case "sync:clock-skew":
|
|
716
|
+
return `clock skew ${Math.round(event.skewMs / 1e3)}s (${event.severity})`;
|
|
717
|
+
case "sync:clock-rebase":
|
|
718
|
+
return `clock rebase ${event.rebasedCount} ops (${Math.round(event.maxSkewMs / 1e3)}s ahead)`;
|
|
713
719
|
case "sync:schema-mismatch":
|
|
714
720
|
return `schema mismatch client ${event.clientSchemaVersion} server ${event.serverSchemaVersion}`;
|
|
715
721
|
case "sync:apply-failed":
|