@liveblocks/core 1.3.2 → 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 +20 -14
- package/dist/index.d.ts +20 -14
- package/dist/index.js +38 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -655,7 +655,7 @@ declare type AuthValue = {
|
|
|
655
655
|
declare type BaseMetadata = Record<string, string | boolean | number>;
|
|
656
656
|
|
|
657
657
|
declare type CommentBodyBlockElement = CommentBodyParagraph;
|
|
658
|
-
declare type CommentBodyInlineElement = CommentBodyText | CommentBodyMention;
|
|
658
|
+
declare type CommentBodyInlineElement = CommentBodyText | CommentBodyMention | CommentBodyLink;
|
|
659
659
|
declare type CommentBodyElement = CommentBodyBlockElement | CommentBodyInlineElement;
|
|
660
660
|
declare type CommentBodyParagraph = {
|
|
661
661
|
type: "paragraph";
|
|
@@ -665,6 +665,10 @@ declare type CommentBodyMention = {
|
|
|
665
665
|
type: "mention";
|
|
666
666
|
id: string;
|
|
667
667
|
};
|
|
668
|
+
declare type CommentBodyLink = {
|
|
669
|
+
type: "link";
|
|
670
|
+
url: string;
|
|
671
|
+
};
|
|
668
672
|
declare type CommentBodyText = {
|
|
669
673
|
bold?: boolean;
|
|
670
674
|
italic?: boolean;
|
|
@@ -1763,6 +1767,20 @@ declare type ClientOptions = {
|
|
|
1763
1767
|
*/
|
|
1764
1768
|
declare function createClient(options: ClientOptions): Client;
|
|
1765
1769
|
|
|
1770
|
+
/**
|
|
1771
|
+
* Lookup table for nodes (= SerializedCrdt values) by their IDs.
|
|
1772
|
+
*/
|
|
1773
|
+
declare type NodeMap = Map<string, // Node ID
|
|
1774
|
+
SerializedCrdt>;
|
|
1775
|
+
/**
|
|
1776
|
+
* Reverse lookup table for all child nodes (= list of SerializedCrdt values)
|
|
1777
|
+
* by their parent node's IDs.
|
|
1778
|
+
*/
|
|
1779
|
+
declare type ParentToChildNodeMap = Map<string, // Parent's node ID
|
|
1780
|
+
IdTuple<SerializedChild>[]>;
|
|
1781
|
+
|
|
1782
|
+
declare function isLiveNode(value: unknown): value is LiveNode;
|
|
1783
|
+
|
|
1766
1784
|
declare function lsonToJson(value: Lson): Json;
|
|
1767
1785
|
declare function patchLiveObjectKey<O extends LsonObject, K extends keyof O, V extends Json>(liveObject: LiveObject<O>, key: K, prev?: V, next?: V): void;
|
|
1768
1786
|
declare function legacy_patchImmutableObject<S extends JsonObject>(state: S, updates: StorageUpdate[]): S;
|
|
@@ -2113,18 +2131,6 @@ declare type UpdateYDocClientMsg = {
|
|
|
2113
2131
|
readonly update: string;
|
|
2114
2132
|
};
|
|
2115
2133
|
|
|
2116
|
-
/**
|
|
2117
|
-
* Lookup table for nodes (= SerializedCrdt values) by their IDs.
|
|
2118
|
-
*/
|
|
2119
|
-
declare type NodeMap = Map<string, // Node ID
|
|
2120
|
-
SerializedCrdt>;
|
|
2121
|
-
/**
|
|
2122
|
-
* Reverse lookup table for all child nodes (= list of SerializedCrdt values)
|
|
2123
|
-
* by their parent node's IDs.
|
|
2124
|
-
*/
|
|
2125
|
-
declare type ParentToChildNodeMap = Map<string, // Parent's node ID
|
|
2126
|
-
IdTuple<SerializedChild>[]>;
|
|
2127
|
-
|
|
2128
2134
|
declare type JsonTreeNode = {
|
|
2129
2135
|
readonly type: "Json";
|
|
2130
2136
|
readonly id: string;
|
|
@@ -2288,4 +2294,4 @@ declare type EnsureJson<T> = [
|
|
|
2288
2294
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2289
2295
|
};
|
|
2290
2296
|
|
|
2291
|
-
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyElement, CommentBodyMention, CommentBodyParagraph, CommentData, CommentsApi, CrdtType, CreateChildOp, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CreateRootObjectOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, asPos, assert, assertNever, b64decode, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, shallow, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
|
2297
|
+
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyElement, CommentBodyLink, CommentBodyMention, CommentBodyParagraph, CommentData, CommentsApi, CrdtType, CreateChildOp, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CreateRootObjectOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, asPos, assert, assertNever, b64decode, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, shallow, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
package/dist/index.d.ts
CHANGED
|
@@ -655,7 +655,7 @@ declare type AuthValue = {
|
|
|
655
655
|
declare type BaseMetadata = Record<string, string | boolean | number>;
|
|
656
656
|
|
|
657
657
|
declare type CommentBodyBlockElement = CommentBodyParagraph;
|
|
658
|
-
declare type CommentBodyInlineElement = CommentBodyText | CommentBodyMention;
|
|
658
|
+
declare type CommentBodyInlineElement = CommentBodyText | CommentBodyMention | CommentBodyLink;
|
|
659
659
|
declare type CommentBodyElement = CommentBodyBlockElement | CommentBodyInlineElement;
|
|
660
660
|
declare type CommentBodyParagraph = {
|
|
661
661
|
type: "paragraph";
|
|
@@ -665,6 +665,10 @@ declare type CommentBodyMention = {
|
|
|
665
665
|
type: "mention";
|
|
666
666
|
id: string;
|
|
667
667
|
};
|
|
668
|
+
declare type CommentBodyLink = {
|
|
669
|
+
type: "link";
|
|
670
|
+
url: string;
|
|
671
|
+
};
|
|
668
672
|
declare type CommentBodyText = {
|
|
669
673
|
bold?: boolean;
|
|
670
674
|
italic?: boolean;
|
|
@@ -1763,6 +1767,20 @@ declare type ClientOptions = {
|
|
|
1763
1767
|
*/
|
|
1764
1768
|
declare function createClient(options: ClientOptions): Client;
|
|
1765
1769
|
|
|
1770
|
+
/**
|
|
1771
|
+
* Lookup table for nodes (= SerializedCrdt values) by their IDs.
|
|
1772
|
+
*/
|
|
1773
|
+
declare type NodeMap = Map<string, // Node ID
|
|
1774
|
+
SerializedCrdt>;
|
|
1775
|
+
/**
|
|
1776
|
+
* Reverse lookup table for all child nodes (= list of SerializedCrdt values)
|
|
1777
|
+
* by their parent node's IDs.
|
|
1778
|
+
*/
|
|
1779
|
+
declare type ParentToChildNodeMap = Map<string, // Parent's node ID
|
|
1780
|
+
IdTuple<SerializedChild>[]>;
|
|
1781
|
+
|
|
1782
|
+
declare function isLiveNode(value: unknown): value is LiveNode;
|
|
1783
|
+
|
|
1766
1784
|
declare function lsonToJson(value: Lson): Json;
|
|
1767
1785
|
declare function patchLiveObjectKey<O extends LsonObject, K extends keyof O, V extends Json>(liveObject: LiveObject<O>, key: K, prev?: V, next?: V): void;
|
|
1768
1786
|
declare function legacy_patchImmutableObject<S extends JsonObject>(state: S, updates: StorageUpdate[]): S;
|
|
@@ -2113,18 +2131,6 @@ declare type UpdateYDocClientMsg = {
|
|
|
2113
2131
|
readonly update: string;
|
|
2114
2132
|
};
|
|
2115
2133
|
|
|
2116
|
-
/**
|
|
2117
|
-
* Lookup table for nodes (= SerializedCrdt values) by their IDs.
|
|
2118
|
-
*/
|
|
2119
|
-
declare type NodeMap = Map<string, // Node ID
|
|
2120
|
-
SerializedCrdt>;
|
|
2121
|
-
/**
|
|
2122
|
-
* Reverse lookup table for all child nodes (= list of SerializedCrdt values)
|
|
2123
|
-
* by their parent node's IDs.
|
|
2124
|
-
*/
|
|
2125
|
-
declare type ParentToChildNodeMap = Map<string, // Parent's node ID
|
|
2126
|
-
IdTuple<SerializedChild>[]>;
|
|
2127
|
-
|
|
2128
2134
|
declare type JsonTreeNode = {
|
|
2129
2135
|
readonly type: "Json";
|
|
2130
2136
|
readonly id: string;
|
|
@@ -2288,4 +2294,4 @@ declare type EnsureJson<T> = [
|
|
|
2288
2294
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2289
2295
|
};
|
|
2290
2296
|
|
|
2291
|
-
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyElement, CommentBodyMention, CommentBodyParagraph, CommentData, CommentsApi, CrdtType, CreateChildOp, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CreateRootObjectOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, asPos, assert, assertNever, b64decode, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, shallow, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
|
2297
|
+
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyElement, CommentBodyLink, CommentBodyMention, CommentBodyParagraph, CommentData, CommentsApi, CrdtType, CreateChildOp, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CreateRootObjectOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, asPos, assert, assertNever, b64decode, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, shallow, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
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.3.
|
|
9
|
+
var PKG_VERSION = "1.3.4";
|
|
10
10
|
var PKG_FORMAT = "cjs";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -1711,7 +1711,9 @@ function createCommentsApi(roomId, getAuthValue, { serverEndpoint }) {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
async function fetchApi(roomId2, endpoint, options) {
|
|
1713
1713
|
const authValue = await getAuthValue();
|
|
1714
|
-
const url = `${serverEndpoint}/c/rooms/${
|
|
1714
|
+
const url = `${serverEndpoint}/c/rooms/${encodeURIComponent(
|
|
1715
|
+
roomId2
|
|
1716
|
+
)}${endpoint}`;
|
|
1715
1717
|
return await fetch(url, {
|
|
1716
1718
|
...options,
|
|
1717
1719
|
headers: {
|
|
@@ -1757,7 +1759,7 @@ function createCommentsApi(roomId, getAuthValue, { serverEndpoint }) {
|
|
|
1757
1759
|
threadId
|
|
1758
1760
|
}) {
|
|
1759
1761
|
return fetchJson(
|
|
1760
|
-
`/threads/${threadId}/metadata`,
|
|
1762
|
+
`/threads/${encodeURIComponent(threadId)}/metadata`,
|
|
1761
1763
|
{
|
|
1762
1764
|
method: "POST",
|
|
1763
1765
|
headers: {
|
|
@@ -1772,16 +1774,19 @@ function createCommentsApi(roomId, getAuthValue, { serverEndpoint }) {
|
|
|
1772
1774
|
commentId,
|
|
1773
1775
|
body
|
|
1774
1776
|
}) {
|
|
1775
|
-
return fetchJson(
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
body
|
|
1783
|
-
|
|
1784
|
-
|
|
1777
|
+
return fetchJson(
|
|
1778
|
+
`/threads/${encodeURIComponent(threadId)}/comments`,
|
|
1779
|
+
{
|
|
1780
|
+
method: "POST",
|
|
1781
|
+
headers: {
|
|
1782
|
+
"Content-Type": "application/json"
|
|
1783
|
+
},
|
|
1784
|
+
body: JSON.stringify({
|
|
1785
|
+
id: commentId,
|
|
1786
|
+
body
|
|
1787
|
+
})
|
|
1788
|
+
}
|
|
1789
|
+
);
|
|
1785
1790
|
}
|
|
1786
1791
|
function editComment({
|
|
1787
1792
|
threadId,
|
|
@@ -1789,7 +1794,9 @@ function createCommentsApi(roomId, getAuthValue, { serverEndpoint }) {
|
|
|
1789
1794
|
body
|
|
1790
1795
|
}) {
|
|
1791
1796
|
return fetchJson(
|
|
1792
|
-
`/threads/${threadId}/comments/${
|
|
1797
|
+
`/threads/${encodeURIComponent(threadId)}/comments/${encodeURIComponent(
|
|
1798
|
+
commentId
|
|
1799
|
+
)}`,
|
|
1793
1800
|
{
|
|
1794
1801
|
method: "POST",
|
|
1795
1802
|
headers: {
|
|
@@ -1805,9 +1812,14 @@ function createCommentsApi(roomId, getAuthValue, { serverEndpoint }) {
|
|
|
1805
1812
|
threadId,
|
|
1806
1813
|
commentId
|
|
1807
1814
|
}) {
|
|
1808
|
-
await fetchJson(
|
|
1809
|
-
|
|
1810
|
-
|
|
1815
|
+
await fetchJson(
|
|
1816
|
+
`/threads/${encodeURIComponent(threadId)}/comments/${encodeURIComponent(
|
|
1817
|
+
commentId
|
|
1818
|
+
)}`,
|
|
1819
|
+
{
|
|
1820
|
+
method: "DELETE"
|
|
1821
|
+
}
|
|
1822
|
+
);
|
|
1811
1823
|
}
|
|
1812
1824
|
return {
|
|
1813
1825
|
getThreads,
|
|
@@ -5706,7 +5718,10 @@ function makeClassicSubscribeFn(events) {
|
|
|
5706
5718
|
callback
|
|
5707
5719
|
);
|
|
5708
5720
|
default:
|
|
5709
|
-
return assertNever(
|
|
5721
|
+
return assertNever(
|
|
5722
|
+
first,
|
|
5723
|
+
`"${String(first)}" is not a valid event name`
|
|
5724
|
+
);
|
|
5710
5725
|
}
|
|
5711
5726
|
}
|
|
5712
5727
|
if (second === void 0 || typeof first === "function") {
|
|
@@ -5727,7 +5742,9 @@ function makeClassicSubscribeFn(events) {
|
|
|
5727
5742
|
return subscribeToLiveStructureShallowly(node, nodeCallback);
|
|
5728
5743
|
}
|
|
5729
5744
|
}
|
|
5730
|
-
throw new Error(
|
|
5745
|
+
throw new Error(
|
|
5746
|
+
`${String(first)} is not a value that can be subscribed to.`
|
|
5747
|
+
);
|
|
5731
5748
|
}
|
|
5732
5749
|
return subscribe;
|
|
5733
5750
|
}
|
|
@@ -6523,5 +6540,6 @@ detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
|
|
|
6523
6540
|
|
|
6524
6541
|
|
|
6525
6542
|
|
|
6526
|
-
|
|
6543
|
+
|
|
6544
|
+
exports.ClientMsgCode = ClientMsgCode; exports.CrdtType = CrdtType; exports.LiveList = LiveList; exports.LiveMap = LiveMap; exports.LiveObject = LiveObject; exports.OpCode = OpCode; exports.ServerMsgCode = ServerMsgCode; exports.WebsocketCloseCodes = WebsocketCloseCodes; exports.asPos = asPos; exports.assert = assert; exports.assertNever = assertNever; exports.b64decode = b64decode; exports.console = fancy_console_exports; exports.createAsyncCache = createAsyncCache; exports.createClient = createClient; exports.createCommentsApi = createCommentsApi; exports.deprecate = deprecate; exports.deprecateIf = deprecateIf; exports.detectDupes = detectDupes; exports.errorIf = errorIf; exports.freeze = freeze; exports.isChildCrdt = isChildCrdt; exports.isJsonArray = isJsonArray; exports.isJsonObject = isJsonObject; exports.isJsonScalar = isJsonScalar; exports.isLiveNode = isLiveNode; exports.isPlainObject = isPlainObject; exports.isRootCrdt = isRootCrdt; exports.legacy_patchImmutableObject = legacy_patchImmutableObject; exports.lsonToJson = lsonToJson; exports.makeEventSource = makeEventSource; exports.makePoller = makePoller; exports.makePosition = makePosition; exports.nn = nn; exports.patchLiveObjectKey = patchLiveObjectKey; exports.shallow = shallow; exports.throwUsageError = throwUsageError; exports.toPlainLson = toPlainLson; exports.tryParseJson = tryParseJson; exports.withTimeout = withTimeout;
|
|
6527
6545
|
//# sourceMappingURL=index.js.map
|