@liveblocks/core 2.0.3-test1 → 2.0.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/index.js 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 = "2.0.3-test1";
9
+ var PKG_VERSION = "2.0.3";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -7221,11 +7221,12 @@ function createClient(options) {
7221
7221
  leave
7222
7222
  };
7223
7223
  }
7224
- function enterRoom(roomId, options2) {
7224
+ function enterRoom(roomId, ...args) {
7225
7225
  const existing = roomsById.get(roomId);
7226
7226
  if (existing !== void 0) {
7227
7227
  return leaseRoom(existing);
7228
7228
  }
7229
+ const options2 = _nullishCoalesce(args[0], () => ( {}));
7229
7230
  const initialPresence = _nullishCoalesce((typeof options2.initialPresence === "function" ? options2.initialPresence(roomId) : options2.initialPresence), () => ( {}));
7230
7231
  const initialStorage = _nullishCoalesce((typeof options2.initialStorage === "function" ? options2.initialStorage(roomId) : options2.initialStorage), () => ( {}));
7231
7232
  const newRoom = createRoom(