@liveblocks/core 1.3.3 → 1.3.4
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.d.mts +15 -13
- package/dist/index.d.ts +15 -13
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
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.3.
|
|
9
|
+
var PKG_VERSION = "1.3.4";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -5718,7 +5718,10 @@ function makeClassicSubscribeFn(events) {
|
|
|
5718
5718
|
callback
|
|
5719
5719
|
);
|
|
5720
5720
|
default:
|
|
5721
|
-
return assertNever(
|
|
5721
|
+
return assertNever(
|
|
5722
|
+
first,
|
|
5723
|
+
`"${String(first)}" is not a valid event name`
|
|
5724
|
+
);
|
|
5722
5725
|
}
|
|
5723
5726
|
}
|
|
5724
5727
|
if (second === void 0 || typeof first === "function") {
|
|
@@ -5739,7 +5742,9 @@ function makeClassicSubscribeFn(events) {
|
|
|
5739
5742
|
return subscribeToLiveStructureShallowly(node, nodeCallback);
|
|
5740
5743
|
}
|
|
5741
5744
|
}
|
|
5742
|
-
throw new Error(
|
|
5745
|
+
throw new Error(
|
|
5746
|
+
`${String(first)} is not a value that can be subscribed to.`
|
|
5747
|
+
);
|
|
5743
5748
|
}
|
|
5744
5749
|
return subscribe;
|
|
5745
5750
|
}
|
|
@@ -6521,6 +6526,7 @@ export {
|
|
|
6521
6526
|
isJsonArray,
|
|
6522
6527
|
isJsonObject,
|
|
6523
6528
|
isJsonScalar,
|
|
6529
|
+
isLiveNode,
|
|
6524
6530
|
isPlainObject,
|
|
6525
6531
|
isRootCrdt,
|
|
6526
6532
|
legacy_patchImmutableObject,
|