@liveblocks/core 1.5.0-test4 → 1.5.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 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.5.0-test4";
9
+ var PKG_VERSION = "1.5.1";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -5974,7 +5974,7 @@ function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill) {
5974
5974
  var MIN_THROTTLE = 16;
5975
5975
  var MAX_THROTTLE = 1e3;
5976
5976
  var DEFAULT_THROTTLE = 100;
5977
- var MIN_BACKGROUND_KEEP_ALIVE_TIMEOUT = 6e4;
5977
+ var MIN_BACKGROUND_KEEP_ALIVE_TIMEOUT = 15e3;
5978
5978
  var MIN_LOST_CONNECTION_TIMEOUT = 200;
5979
5979
  var RECOMMENDED_MIN_LOST_CONNECTION_TIMEOUT = 1e3;
5980
5980
  var MAX_LOST_CONNECTION_TIMEOUT = 3e4;
@@ -6113,7 +6113,7 @@ function createClient(options) {
6113
6113
  };
6114
6114
  }
6115
6115
  function checkBounds(option, value, min, max, recommendedMin) {
6116
- if (typeof value !== "number" || value < min || max === void 0 || value > max) {
6116
+ if (typeof value !== "number" || value < min || max !== void 0 && value > max) {
6117
6117
  throw new Error(
6118
6118
  max !== void 0 ? `${option} should be between ${_nullishCoalesce(recommendedMin, () => ( min))} and ${max}.` : `${option} should be at least ${_nullishCoalesce(recommendedMin, () => ( min))}.`
6119
6119
  );
@@ -6123,12 +6123,6 @@ function checkBounds(option, value, min, max, recommendedMin) {
6123
6123
  function getBackgroundKeepAliveTimeout(value) {
6124
6124
  if (value === void 0)
6125
6125
  return void 0;
6126
- if (typeof document === "undefined") {
6127
- warn(
6128
- "Setting backgroundKeepAliveTimeout won't have an effect in a non-DOM environment."
6129
- );
6130
- return void 0;
6131
- }
6132
6126
  return checkBounds(
6133
6127
  "backgroundKeepAliveTimeout",
6134
6128
  value,