cojson 0.2.3 → 0.3.0-alpha.0

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.
Files changed (78) hide show
  1. package/dist/account.d.ts +1 -1
  2. package/dist/coValue.d.ts +5 -13
  3. package/dist/coValue.js +14 -7
  4. package/dist/coValue.js.map +1 -1
  5. package/dist/coValueCore.d.ts +6 -6
  6. package/dist/coValueCore.js +11 -14
  7. package/dist/coValueCore.js.map +1 -1
  8. package/dist/coValues/coList.d.ts +99 -34
  9. package/dist/coValues/coList.js +162 -72
  10. package/dist/coValues/coList.js.map +1 -1
  11. package/dist/coValues/coMap.d.ts +96 -31
  12. package/dist/coValues/coMap.js +157 -114
  13. package/dist/coValues/coMap.js.map +1 -1
  14. package/dist/coValues/coStream.d.ts +67 -23
  15. package/dist/coValues/coStream.js +131 -59
  16. package/dist/coValues/coStream.js.map +1 -1
  17. package/dist/crypto.d.ts +8 -3
  18. package/dist/crypto.js +6 -6
  19. package/dist/crypto.js.map +1 -1
  20. package/dist/group.d.ts +57 -23
  21. package/dist/group.js +75 -33
  22. package/dist/group.js.map +1 -1
  23. package/dist/index.d.ts +8 -6
  24. package/dist/index.js +8 -8
  25. package/dist/index.js.map +1 -1
  26. package/dist/{node.d.ts → localNode.d.ts} +16 -8
  27. package/dist/{node.js → localNode.js} +48 -40
  28. package/dist/localNode.js.map +1 -0
  29. package/dist/permissions.js +6 -3
  30. package/dist/permissions.js.map +1 -1
  31. package/dist/queriedCoValues/queriedCoList.d.ts +66 -0
  32. package/dist/queriedCoValues/queriedCoList.js +120 -0
  33. package/dist/queriedCoValues/queriedCoList.js.map +1 -0
  34. package/dist/queriedCoValues/queriedCoMap.d.ts +47 -0
  35. package/dist/queriedCoValues/queriedCoMap.js +83 -0
  36. package/dist/queriedCoValues/queriedCoMap.js.map +1 -0
  37. package/dist/queriedCoValues/queriedCoStream.d.ts +40 -0
  38. package/dist/queriedCoValues/queriedCoStream.js +72 -0
  39. package/dist/queriedCoValues/queriedCoStream.js.map +1 -0
  40. package/dist/queries.d.ts +29 -112
  41. package/dist/queries.js +44 -227
  42. package/dist/queries.js.map +1 -1
  43. package/dist/sync.d.ts +1 -1
  44. package/dist/sync.js +1 -1
  45. package/dist/sync.js.map +1 -1
  46. package/dist/tests/testUtils.d.ts +1 -1
  47. package/dist/tests/testUtils.js +3 -3
  48. package/dist/tests/testUtils.js.map +1 -1
  49. package/package.json +2 -2
  50. package/src/account.ts +1 -1
  51. package/src/coValue.ts +25 -20
  52. package/src/coValueCore.ts +17 -21
  53. package/src/coValues/coList.ts +242 -128
  54. package/src/coValues/coMap.ts +293 -162
  55. package/src/coValues/coStream.ts +227 -94
  56. package/src/crypto.ts +37 -24
  57. package/src/group.ts +90 -63
  58. package/src/index.ts +35 -25
  59. package/src/{node.ts → localNode.ts} +64 -64
  60. package/src/permissions.ts +15 -18
  61. package/src/queriedCoValues/queriedCoList.ts +248 -0
  62. package/src/queriedCoValues/queriedCoMap.ts +180 -0
  63. package/src/queriedCoValues/queriedCoStream.ts +125 -0
  64. package/src/queries.ts +83 -460
  65. package/src/sync.ts +2 -2
  66. package/src/tests/account.test.ts +3 -6
  67. package/src/tests/coValue.test.ts +116 -110
  68. package/src/tests/coValueCore.test.ts +1 -1
  69. package/src/tests/crypto.test.ts +19 -21
  70. package/src/tests/permissions.test.ts +255 -242
  71. package/src/tests/queries.test.ts +57 -40
  72. package/src/tests/sync.test.ts +30 -30
  73. package/src/tests/testUtils.ts +3 -3
  74. package/dist/coValues/static.d.ts +0 -14
  75. package/dist/coValues/static.js +0 -20
  76. package/dist/coValues/static.js.map +0 -1
  77. package/dist/node.js.map +0 -1
  78. package/src/coValues/static.ts +0 -31
@@ -42,21 +42,19 @@ test("Queries with maps work", async () => {
42
42
  },
43
43
  isMe: true,
44
44
  },
45
- at: new Date(map.getLastEntry("hello")!.at),
45
+ tx: map.lastEditAt("hello")!.tx,
46
+ at: new Date(map.lastEditAt("hello")!.at),
46
47
  });
47
48
  if (queriedMap.subMap) {
48
49
  expect(queriedMap.subMap.type).toBe("comap");
49
- expect(queriedMap.subMap.id).toEqual(subMap.id);
50
+ expect(queriedMap.subMap.id).toEqual("foreignID");
50
51
  expect(queriedMap.subMap.core).toEqual(subMap.core);
51
52
  expect(queriedMap.subMap.group).toBeInstanceOf(Group);
52
53
  expect(queriedMap.subMap.group.id).toBe(group.id);
53
54
  expect(queriedMap.subMap.meta).toBe(null);
54
- expect(queriedMap.subMap.shadowed.id).toBe("foreignID");
55
55
  if (queriedMap.subMap.hello === "moon") {
56
56
  // console.log("got to 'moon'");
57
- queriedMap.subMap.edit((subMap) => {
58
- subMap.set("hello", "sun");
59
- });
57
+ queriedMap.subMap.set("hello", "sun");
60
58
  } else if (
61
59
  queriedMap.subMap.hello === "sun" &&
62
60
  queriedMap.subMap.edits.hello?.by?.profile?.name ===
@@ -72,9 +70,7 @@ test("Queries with maps work", async () => {
72
70
  });
73
71
  });
74
72
 
75
- map = map.edit((map) => {
76
- map.set("hello", "world");
77
- });
73
+ map = map.set("hello", "world");
78
74
 
79
75
  let subMap = group.createMap<
80
76
  CoMap<{
@@ -83,18 +79,14 @@ test("Queries with maps work", async () => {
83
79
  }>
84
80
  >();
85
81
 
86
- map = map.edit((map) => {
87
- map.set("subMap", subMap);
88
- });
82
+ map = map.set("subMap", subMap);
89
83
 
90
- subMap = subMap.edit((subMap) => {
84
+ subMap = subMap.mutate((subMap) => {
91
85
  subMap.set("hello", "world");
92
86
  subMap.set("id", "foreignID");
93
87
  });
94
88
 
95
- subMap = subMap.edit((subMap) => {
96
- subMap.set("hello", "moon");
97
- });
89
+ subMap = subMap.set("hello", "moon");
98
90
 
99
91
  await done;
100
92
  });
@@ -133,9 +125,8 @@ test("Queries with lists work", () => {
133
125
  at: expect.any(Date),
134
126
  });
135
127
  if (queriedList.length === 3) {
136
- queriedList.edit((list) => {
137
- list.push("sun");
138
- });
128
+ queriedList.append("sun");
129
+
139
130
  } else if (
140
131
  queriedList.length === 4 &&
141
132
  queriedList.edits[3]?.by?.profile?.name ===
@@ -151,10 +142,10 @@ test("Queries with lists work", () => {
151
142
  });
152
143
  });
153
144
 
154
- list = list.edit((list) => {
155
- list.push("hello");
156
- list.push("world");
157
- list.push("moon");
145
+ list = list.mutate((list) => {
146
+ list.append("hello");
147
+ list.append("world");
148
+ list.append("moon");
158
149
  });
159
150
 
160
151
  return done;
@@ -182,17 +173,47 @@ test("List of nested maps works", () => {
182
173
  });
183
174
  });
184
175
 
185
- list = list.edit((list) => {
186
- list.push(
187
- group.createMap<CoMap<{ hello: "world" }>>({
188
- hello: "world",
189
- })
190
- );
191
- });
176
+ list = list.append(
177
+ group.createMap<CoMap<{ hello: "world" }>>({
178
+ hello: "world",
179
+ })
180
+ );
192
181
 
193
182
  return done;
194
183
  });
195
184
 
185
+ test("Can call .map on a quieried coList", async () => {
186
+ const { node } = LocalNode.withNewlyCreatedAccount("Hermes Puggington");
187
+
188
+ const group = node.createGroup();
189
+
190
+ let list = group.createList<CoList<string>>();
191
+
192
+ const done = new Promise<void>((resolve) => {
193
+
194
+ const unsubQuery = node.query(list.id, (queriedList) => {
195
+
196
+ if (queriedList && queriedList[0]) {
197
+ // console.log("update", queriedList);
198
+ expect(queriedList.map((item) => item + "!!!")).toEqual([
199
+ "hello!!!",
200
+ "world!!!",
201
+ ]);
202
+ // console.log("final update", queriedList);
203
+ resolve();
204
+ unsubQuery();
205
+ }
206
+ });
207
+ });
208
+
209
+ list = list.mutate((list) => {
210
+ list.append("hello");
211
+ list.append("world");
212
+ });
213
+
214
+ await done;
215
+ });
216
+
196
217
  test("Queries with streams work", () => {
197
218
  const { node, accountID } =
198
219
  LocalNode.withNewlyCreatedAccount("Hermes Puggington");
@@ -204,7 +225,7 @@ test("Queries with streams work", () => {
204
225
  const done = new Promise<void>((resolve) => {
205
226
  const unsubQuery = node.query(stream.id, (queriedStream) => {
206
227
  if (queriedStream) {
207
- console.log("update", queriedStream);
228
+ // console.log("update", queriedStream);
208
229
  if (queriedStream.me?.by?.profile?.name) {
209
230
  expect(queriedStream.type).toBe("costream");
210
231
  expect(queriedStream.id).toEqual(stream.id);
@@ -251,7 +272,7 @@ test("Queries with streams work", () => {
251
272
  [accountID]: expectedEntry,
252
273
  });
253
274
  expect(queriedStream.me).toMatchObject(expectedEntry);
254
- console.log("final update", queriedStream);
275
+ // console.log("final update", queriedStream);
255
276
  resolve();
256
277
  unsubQuery();
257
278
  }
@@ -259,10 +280,8 @@ test("Queries with streams work", () => {
259
280
  });
260
281
  });
261
282
 
262
- stream = stream.edit((stream) => {
263
- stream.push("hello");
264
- stream.push("world");
265
- });
283
+ stream = stream.push("hello");
284
+ stream = stream.push("world");
266
285
 
267
286
  return done;
268
287
  });
@@ -293,9 +312,7 @@ test("Streams of nested maps work", () => {
293
312
  hello: "world",
294
313
  });
295
314
 
296
- stream = stream.edit((list) => {
297
- list.push(map);
298
- });
315
+ stream = stream.push(map);
299
316
 
300
317
  return done;
301
- });
318
+ });
@@ -1,5 +1,5 @@
1
1
  import { newRandomSessionID } from "../coValueCore.js";
2
- import { LocalNode } from "../node.js";
2
+ import { LocalNode } from "../localNode.js";
3
3
  import { SyncMessage } from "../sync.js";
4
4
  import { expectMap } from "../coValue.js";
5
5
  import { MapOpPayload } from "../coValues/coMap.js";
@@ -32,7 +32,7 @@ test("Node replies with initial tx and header to empty subscribe", async () => {
32
32
  const [inRx, inTx] = newStreamPair<SyncMessage>();
33
33
  const [outRx, outTx] = newStreamPair<SyncMessage>();
34
34
 
35
- node.sync.addPeer({
35
+ node.syncManager.addPeer({
36
36
  id: "test",
37
37
  incoming: inRx,
38
38
  outgoing: outTx,
@@ -114,7 +114,7 @@ test("Node replies with only new tx to subscribe with some known state", async (
114
114
  const [inRx, inTx] = newStreamPair<SyncMessage>();
115
115
  const [outRx, outTx] = newStreamPair<SyncMessage>();
116
116
 
117
- node.sync.addPeer({
117
+ node.syncManager.addPeer({
118
118
  id: "test",
119
119
  incoming: inRx,
120
120
  outgoing: outTx,
@@ -191,7 +191,7 @@ test("After subscribing, node sends own known state and new txs to peer", async
191
191
  const [inRx, inTx] = newStreamPair<SyncMessage>();
192
192
  const [outRx, outTx] = newStreamPair<SyncMessage>();
193
193
 
194
- node.sync.addPeer({
194
+ node.syncManager.addPeer({
195
195
  id: "test",
196
196
  incoming: inRx,
197
197
  outgoing: outTx,
@@ -312,7 +312,7 @@ test("Client replies with known new content to tellKnownState from server", asyn
312
312
  const [inRx, inTx] = newStreamPair<SyncMessage>();
313
313
  const [outRx, outTx] = newStreamPair<SyncMessage>();
314
314
 
315
- node.sync.addPeer({
315
+ node.syncManager.addPeer({
316
316
  id: "test",
317
317
  incoming: inRx,
318
318
  outgoing: outTx,
@@ -387,7 +387,7 @@ test("No matter the optimistic known state, node respects invalid known state me
387
387
  const [inRx, inTx] = newStreamPair<SyncMessage>();
388
388
  const [outRx, outTx] = newStreamPair<SyncMessage>();
389
389
 
390
- node.sync.addPeer({
390
+ node.syncManager.addPeer({
391
391
  id: "test",
392
392
  incoming: inRx,
393
393
  outgoing: outTx,
@@ -491,7 +491,7 @@ test("If we add a peer, but it never subscribes to a coValue, it won't get any m
491
491
  const [inRx, _inTx] = newStreamPair<SyncMessage>();
492
492
  const [outRx, outTx] = newStreamPair<SyncMessage>();
493
493
 
494
- node.sync.addPeer({
494
+ node.syncManager.addPeer({
495
495
  id: "test",
496
496
  incoming: inRx,
497
497
  outgoing: outTx,
@@ -520,7 +520,7 @@ test("If we add a server peer, all updates to all coValues are sent to it, even
520
520
  const [inRx, _inTx] = newStreamPair<SyncMessage>();
521
521
  const [outRx, outTx] = newStreamPair<SyncMessage>();
522
522
 
523
- node.sync.addPeer({
523
+ node.syncManager.addPeer({
524
524
  id: "test",
525
525
  incoming: inRx,
526
526
  outgoing: outTx,
@@ -592,7 +592,7 @@ test("If we add a server peer, newly created coValues are auto-subscribed to", a
592
592
  const [inRx, _inTx] = newStreamPair<SyncMessage>();
593
593
  const [outRx, outTx] = newStreamPair<SyncMessage>();
594
594
 
595
- node.sync.addPeer({
595
+ node.syncManager.addPeer({
596
596
  id: "test",
597
597
  incoming: inRx,
598
598
  outgoing: outTx,
@@ -646,7 +646,7 @@ test("When we connect a new server peer, we try to sync all existing coValues to
646
646
  const [inRx, _inTx] = newStreamPair<SyncMessage>();
647
647
  const [outRx, outTx] = newStreamPair<SyncMessage>();
648
648
 
649
- node.sync.addPeer({
649
+ node.syncManager.addPeer({
650
650
  id: "test",
651
651
  incoming: inRx,
652
652
  outgoing: outTx,
@@ -682,7 +682,7 @@ test("When receiving a subscribe with a known state that is ahead of our own, pe
682
682
  const [inRx, inTx] = newStreamPair<SyncMessage>();
683
683
  const [outRx, outTx] = newStreamPair<SyncMessage>();
684
684
 
685
- node.sync.addPeer({
685
+ node.syncManager.addPeer({
686
686
  id: "test",
687
687
  incoming: inRx,
688
688
  outgoing: outTx,
@@ -723,7 +723,7 @@ test.skip("When replaying creation and transactions of a coValue as new content,
723
723
  const [inRx1, inTx1] = newStreamPair<SyncMessage>();
724
724
  const [outRx1, outTx1] = newStreamPair<SyncMessage>();
725
725
 
726
- node1.sync.addPeer({
726
+ node1.syncManager.addPeer({
727
727
  id: "test2",
728
728
  incoming: inRx1,
729
729
  outgoing: outTx1,
@@ -738,7 +738,7 @@ test.skip("When replaying creation and transactions of a coValue as new content,
738
738
  const [inRx2, inTx2] = newStreamPair<SyncMessage>();
739
739
  const [outRx2, outTx2] = newStreamPair<SyncMessage>();
740
740
 
741
- node2.sync.addPeer({
741
+ node2.syncManager.addPeer({
742
742
  id: "test1",
743
743
  incoming: inRx2,
744
744
  outgoing: outTx2,
@@ -769,7 +769,7 @@ test.skip("When replaying creation and transactions of a coValue as new content,
769
769
  expect(groupTellKnownStateMsg.value).toMatchObject(groupStateEx(group));
770
770
 
771
771
  expect(
772
- node2.sync.peers["test1"]!.optimisticKnownStates[
772
+ node2.syncManager.peers["test1"]!.optimisticKnownStates[
773
773
  group.underlyingMap.core.id
774
774
  ]
775
775
  ).toBeDefined();
@@ -850,8 +850,8 @@ test.skip("When loading a coValue on one node, the server node it is requested f
850
850
 
851
851
  const [node1asPeer, node2asPeer] = connectedPeers("peer1", "peer2");
852
852
 
853
- node1.sync.addPeer(node2asPeer);
854
- node2.sync.addPeer(node1asPeer);
853
+ node1.syncManager.addPeer(node2asPeer);
854
+ node2.syncManager.addPeer(node1asPeer);
855
855
 
856
856
  await node2.loadCoValue(map.core.id);
857
857
 
@@ -883,8 +883,8 @@ test("Can sync a coValue through a server to another client", async () => {
883
883
  peer2role: "client",
884
884
  });
885
885
 
886
- client1.sync.addPeer(serverAsPeer);
887
- server.sync.addPeer(client1AsPeer);
886
+ client1.syncManager.addPeer(serverAsPeer);
887
+ server.syncManager.addPeer(client1AsPeer);
888
888
 
889
889
  const client2 = new LocalNode(admin, newRandomSessionID(admin.id));
890
890
 
@@ -894,8 +894,8 @@ test("Can sync a coValue through a server to another client", async () => {
894
894
  { peer1role: "server", peer2role: "client" }
895
895
  );
896
896
 
897
- client2.sync.addPeer(serverAsOtherPeer);
898
- server.sync.addPeer(client2AsPeer);
897
+ client2.syncManager.addPeer(serverAsOtherPeer);
898
+ server.syncManager.addPeer(client2AsPeer);
899
899
 
900
900
  const mapOnClient2 = await client2.loadCoValue(map.core.id);
901
901
 
@@ -926,8 +926,8 @@ test("Can sync a coValue with private transactions through a server to another c
926
926
  peer2role: "client",
927
927
  });
928
928
 
929
- client1.sync.addPeer(serverAsPeer);
930
- server.sync.addPeer(client1AsPeer);
929
+ client1.syncManager.addPeer(serverAsPeer);
930
+ server.syncManager.addPeer(client1AsPeer);
931
931
 
932
932
  const client2 = new LocalNode(admin, newRandomSessionID(admin.id));
933
933
 
@@ -937,8 +937,8 @@ test("Can sync a coValue with private transactions through a server to another c
937
937
  { trace: true, peer1role: "server", peer2role: "client" }
938
938
  );
939
939
 
940
- client2.sync.addPeer(serverAsOtherPeer);
941
- server.sync.addPeer(client2AsPeer);
940
+ client2.syncManager.addPeer(serverAsOtherPeer);
941
+ server.syncManager.addPeer(client2AsPeer);
942
942
 
943
943
  const mapOnClient2 = await client2.loadCoValue(map.core.id);
944
944
 
@@ -956,7 +956,7 @@ test("When a peer's incoming/readable stream closes, we remove the peer", async
956
956
  const [inRx, inTx] = newStreamPair<SyncMessage>();
957
957
  const [outRx, outTx] = newStreamPair<SyncMessage>();
958
958
 
959
- node.sync.addPeer({
959
+ node.syncManager.addPeer({
960
960
  id: "test",
961
961
  incoming: inRx,
962
962
  outgoing: outTx,
@@ -998,7 +998,7 @@ test("When a peer's incoming/readable stream closes, we remove the peer", async
998
998
 
999
999
  await new Promise((resolve) => setTimeout(resolve, 100));
1000
1000
 
1001
- expect(node.sync.peers["test"]).toBeUndefined();
1001
+ expect(node.syncManager.peers["test"]).toBeUndefined();
1002
1002
  });
1003
1003
 
1004
1004
  test("When a peer's outgoing/writable stream closes, we remove the peer", async () => {
@@ -1010,7 +1010,7 @@ test("When a peer's outgoing/writable stream closes, we remove the peer", async
1010
1010
  const [inRx, inTx] = newStreamPair<SyncMessage>();
1011
1011
  const [outRx, outTx] = newStreamPair<SyncMessage>();
1012
1012
 
1013
- node.sync.addPeer({
1013
+ node.syncManager.addPeer({
1014
1014
  id: "test",
1015
1015
  incoming: inRx,
1016
1016
  outgoing: outTx,
@@ -1057,7 +1057,7 @@ test("When a peer's outgoing/writable stream closes, we remove the peer", async
1057
1057
 
1058
1058
  await new Promise((resolve) => setTimeout(resolve, 100));
1059
1059
 
1060
- expect(node.sync.peers["test"]).toBeUndefined();
1060
+ expect(node.syncManager.peers["test"]).toBeUndefined();
1061
1061
  });
1062
1062
 
1063
1063
  test("If we start loading a coValue before connecting to a peer that has it, it will load it once we connect", async () => {
@@ -1080,13 +1080,13 @@ test("If we start loading a coValue before connecting to a peer that has it, it
1080
1080
  trace: true,
1081
1081
  });
1082
1082
 
1083
- node1.sync.addPeer(node2asPeer);
1083
+ node1.syncManager.addPeer(node2asPeer);
1084
1084
 
1085
1085
  const mapOnNode2Promise = node2.loadCoValue(map.core.id);
1086
1086
 
1087
1087
  expect(node2.coValues[map.core.id]?.state).toEqual("loading");
1088
1088
 
1089
- node2.sync.addPeer(node1asPeer);
1089
+ node2.syncManager.addPeer(node1asPeer);
1090
1090
 
1091
1091
  const mapOnNode2 = await mapOnNode2Promise;
1092
1092
 
@@ -1,6 +1,6 @@
1
1
  import { AgentSecret, createdNowUnique, getAgentID, newRandomAgentSecret } from "../crypto.js";
2
2
  import { newRandomSessionID } from "../coValueCore.js";
3
- import { LocalNode } from "../node.js";
3
+ import { LocalNode } from "../localNode.js";
4
4
  import { expectGroupContent } from "../group.js";
5
5
  import { AnonymousControlledAccount } from "../account.js";
6
6
  import { SessionID } from "../ids.js";
@@ -29,7 +29,7 @@ export function newGroup() {
29
29
 
30
30
  const groupContent = expectGroupContent(group.getCurrentContent());
31
31
 
32
- groupContent.edit((editable) => {
32
+ groupContent.mutate((editable) => {
33
33
  editable.set(admin.id, "admin", "trusting");
34
34
  expect(editable.get(admin.id)).toEqual("admin");
35
35
  });
@@ -44,7 +44,7 @@ export function groupWithTwoAdmins() {
44
44
 
45
45
  let content = expectGroupContent(group.getCurrentContent());
46
46
 
47
- content.edit((editable) => {
47
+ content.mutate((editable) => {
48
48
  editable.set(otherAdmin.id, "admin", "trusting");
49
49
  expect(editable.get(otherAdmin.id)).toEqual("admin");
50
50
  });
@@ -1,14 +0,0 @@
1
- import { JsonObject } from '../jsonValue.js';
2
- import { CoID, CoValue } from '../coValue.js';
3
- import { CoValueCore } from '../coValueCore.js';
4
- import { Group } from '../index.js';
5
- export declare class Static<T extends JsonObject> implements CoValue {
6
- id: CoID<this>;
7
- type: "static";
8
- core: CoValueCore;
9
- constructor(core: CoValueCore);
10
- get meta(): T;
11
- get group(): Group;
12
- toJSON(): JsonObject;
13
- subscribe(_listener: (st: this) => void): () => void;
14
- }
@@ -1,20 +0,0 @@
1
- export class Static {
2
- constructor(core) {
3
- this.type = "static";
4
- this.id = core.id;
5
- this.core = core;
6
- }
7
- get meta() {
8
- return this.core.header.meta;
9
- }
10
- get group() {
11
- return this.core.getGroup();
12
- }
13
- toJSON() {
14
- throw new Error("Method not implemented.");
15
- }
16
- subscribe(_listener) {
17
- throw new Error("Method not implemented.");
18
- }
19
- }
20
- //# sourceMappingURL=static.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static.js","sourceRoot":"","sources":["../../src/coValues/static.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,MAAM;IAKf,YAAY,IAAiB;QAH7B,SAAI,GAAG,QAAiB,CAAC;QAIrB,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAgB,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAS,CAAC;IACtC,CAAC;IAED,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;IAED,MAAM;QACF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAED,SAAS,CAAC,SAA6B;QACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;CACJ"}
package/dist/node.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,yBAAyB,EACzB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,IAAI,GACP,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,WAAW,EAEX,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEH,KAAK,EAEL,kBAAkB,EAClB,0BAA0B,GAC7B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAQ,WAAW,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,E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cAAc,CAAC,GAAG,EAAE,CAAC;aACxB;SACJ;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ;AAWD,gBAAgB;AAChB,MAAM,UAAU,eAAe;IAC3B,IAAI,OAAuC,CAAC;IAE5C,MAAM,OAAO,GAAG,IAAI,OAAO,CAAc,CAAC,CAAC,EAAE,EAAE;QAC3C,OAAO,GAAG,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,OAAO;QACH,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,OAAQ;KACpB,CAAC;AACN,CAAC"}
@@ -1,31 +0,0 @@
1
- import { JsonObject } from '../jsonValue.js';
2
- import { CoID, CoValue } from '../coValue.js';
3
- import { CoValueCore } from '../coValueCore.js';
4
- import { Group } from '../index.js';
5
-
6
- export class Static<T extends JsonObject> implements CoValue{
7
- id: CoID<this>;
8
- type = "static" as const;
9
- core: CoValueCore;
10
-
11
- constructor(core: CoValueCore) {
12
- this.id = core.id as CoID<this>;
13
- this.core = core;
14
- }
15
-
16
- get meta(): T {
17
- return this.core.header.meta as T;
18
- }
19
-
20
- get group(): Group {
21
- return this.core.getGroup();
22
- }
23
-
24
- toJSON(): JsonObject {
25
- throw new Error("Method not implemented.");
26
- }
27
-
28
- subscribe(_listener: (st: this) => void): () => void {
29
- throw new Error("Method not implemented.");
30
- }
31
- }