@liveblocks/core 1.11.0 → 1.11.1
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/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "1.11.
|
|
9
|
+
var PKG_VERSION = "1.11.1";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -782,9 +782,13 @@ function logPrematureErrorOrCloseEvent(e) {
|
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
784
|
function logCloseEvent(event) {
|
|
785
|
+
const details = [`code: ${event.code}`];
|
|
786
|
+
if (event.reason) {
|
|
787
|
+
details.push(`reason: ${event.reason}`);
|
|
788
|
+
}
|
|
785
789
|
return (ctx) => {
|
|
786
790
|
warn(
|
|
787
|
-
`Connection to Liveblocks websocket server closed (
|
|
791
|
+
`Connection to Liveblocks websocket server closed (${details.join(", ")}). Retrying in ${ctx.backoffDelay}ms.`
|
|
788
792
|
);
|
|
789
793
|
};
|
|
790
794
|
}
|