@liveblocks/core 1.4.1-test3 → 1.4.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.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.4.1-test3";
9
+ var PKG_VERSION = "1.4.2";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -1974,8 +1974,12 @@ function _between(lo, hi) {
1974
1974
  continue;
1975
1975
  }
1976
1976
  if (hiCode - loCode === 1) {
1977
- const prefix = lo.substring(0, index + 1);
1978
- const suffix = lo.substring(index + 1);
1977
+ const size = index + 1;
1978
+ let prefix = lo.substring(0, size);
1979
+ if (prefix.length < size) {
1980
+ prefix += ZERO.repeat(size - prefix.length);
1981
+ }
1982
+ const suffix = lo.substring(size);
1979
1983
  const nines = "";
1980
1984
  return prefix + _between(suffix, nines);
1981
1985
  } else {