@liveblocks/core 3.15.1 → 3.15.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/dist/index.cjs +3 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
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 = "3.15.
|
|
9
|
+
var PKG_VERSION = "3.15.2";
|
|
10
10
|
var PKG_FORMAT = "cjs";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -10493,7 +10493,7 @@ function makeAuthDelegateForRoom(roomId, authManager) {
|
|
|
10493
10493
|
return authManager.getAuthValue({ requestedScope: "room:read", roomId });
|
|
10494
10494
|
};
|
|
10495
10495
|
}
|
|
10496
|
-
function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill
|
|
10496
|
+
function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill) {
|
|
10497
10497
|
return (authValue) => {
|
|
10498
10498
|
const ws = _nullishCoalesce(WebSocketPolyfill, () => ( (typeof WebSocket === "undefined" ? void 0 : WebSocket)));
|
|
10499
10499
|
if (ws === void 0) {
|
|
@@ -10513,9 +10513,6 @@ function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill, eng
|
|
|
10513
10513
|
return assertNever(authValue, "Unhandled case");
|
|
10514
10514
|
}
|
|
10515
10515
|
url2.searchParams.set("version", PKG_VERSION || "dev");
|
|
10516
|
-
if (engine !== void 0) {
|
|
10517
|
-
url2.searchParams.set("e", String(engine));
|
|
10518
|
-
}
|
|
10519
10516
|
return new ws(url2.toString());
|
|
10520
10517
|
};
|
|
10521
10518
|
}
|
|
@@ -10639,8 +10636,7 @@ function createClient(options) {
|
|
|
10639
10636
|
createSocket: makeCreateSocketDelegateForRoom(
|
|
10640
10637
|
roomId,
|
|
10641
10638
|
baseUrl,
|
|
10642
|
-
_optionalChain([clientOptions, 'access', _244 => _244.polyfills, 'optionalAccess', _245 => _245.WebSocket])
|
|
10643
|
-
options2.engine
|
|
10639
|
+
_optionalChain([clientOptions, 'access', _244 => _244.polyfills, 'optionalAccess', _245 => _245.WebSocket])
|
|
10644
10640
|
),
|
|
10645
10641
|
authenticate: makeAuthDelegateForRoom(roomId, authManager)
|
|
10646
10642
|
})),
|