@liveblocks/core 1.0.7-test1 → 1.0.7
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 +5 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -117,7 +117,7 @@ var onMessageFromPanel = eventSource.observable;
|
|
|
117
117
|
// src/devtools/index.ts
|
|
118
118
|
var VERSION = true ? (
|
|
119
119
|
/* istanbul ignore next */
|
|
120
|
-
"1.0.7
|
|
120
|
+
"1.0.7"
|
|
121
121
|
) : "dev";
|
|
122
122
|
var _devtoolsSetupHasRun = false;
|
|
123
123
|
function setupDevTools(getAllRooms) {
|
|
@@ -467,9 +467,6 @@ function convertToPos(str) {
|
|
|
467
467
|
function asPos(str) {
|
|
468
468
|
return isPos(str) ? str : convertToPos(str);
|
|
469
469
|
}
|
|
470
|
-
function comparePosition(posA, posB) {
|
|
471
|
-
return posA === posB ? 0 : posA < posB ? -1 : 1;
|
|
472
|
-
}
|
|
473
470
|
|
|
474
471
|
// src/protocol/Op.ts
|
|
475
472
|
var OpCode = /* @__PURE__ */ ((OpCode2) => {
|
|
@@ -809,7 +806,9 @@ var LiveRegister = class extends AbstractCrdt {
|
|
|
809
806
|
|
|
810
807
|
// src/crdts/LiveList.ts
|
|
811
808
|
function compareNodePosition(itemA, itemB) {
|
|
812
|
-
|
|
809
|
+
const posA = itemA._parentPos;
|
|
810
|
+
const posB = itemB._parentPos;
|
|
811
|
+
return posA === posB ? 0 : posA < posB ? -1 : 1;
|
|
813
812
|
}
|
|
814
813
|
var LiveList = class extends AbstractCrdt {
|
|
815
814
|
constructor(items = []) {
|
|
@@ -4502,7 +4501,7 @@ function prepareCreateWebSocket(liveblocksServer, WebSocketPolyfill) {
|
|
|
4502
4501
|
// @ts-ignore (__PACKAGE_VERSION__ will be injected by the build script)
|
|
4503
4502
|
true ? (
|
|
4504
4503
|
/* istanbul ignore next */
|
|
4505
|
-
"1.0.7
|
|
4504
|
+
"1.0.7"
|
|
4506
4505
|
) : "dev"}`
|
|
4507
4506
|
);
|
|
4508
4507
|
};
|