@dxos/echo-pipeline 0.6.13-main.548ca8d → 0.6.13-main.ed424a1
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/lib/browser/{chunk-PESZVYAN.mjs → chunk-PSHCRG32.mjs} +25 -15
- package/dist/lib/browser/{chunk-PESZVYAN.mjs.map → chunk-PSHCRG32.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +6 -5
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +15 -4
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/node/{chunk-6EZVIJNE.cjs → chunk-XAEAIXCC.cjs} +28 -18
- package/dist/lib/node/{chunk-6EZVIJNE.cjs.map → chunk-XAEAIXCC.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +30 -29
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +24 -13
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/lib/node-esm/{chunk-4LW7MDPZ.mjs → chunk-WHCY722P.mjs} +25 -15
- package/dist/lib/node-esm/{chunk-4LW7MDPZ.mjs.map → chunk-WHCY722P.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +6 -5
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +15 -4
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/types/src/db-host/database-root.d.ts.map +1 -1
- package/dist/types/src/space/space-protocol.d.ts.map +1 -1
- package/dist/types/src/space/space.d.ts +1 -0
- package/dist/types/src/space/space.d.ts.map +1 -1
- package/dist/types/src/testing/test-agent-builder.d.ts +2 -0
- package/dist/types/src/testing/test-agent-builder.d.ts.map +1 -1
- package/package.json +34 -34
- package/src/db-host/database-root.ts +2 -1
- package/src/db-host/query-service.ts +3 -2
- package/src/space/space-protocol.test.ts +8 -0
- package/src/space/space-protocol.ts +0 -4
- package/src/space/space.test.ts +2 -0
- package/src/space/space.ts +7 -2
- package/src/testing/test-agent-builder.ts +14 -2
|
@@ -1518,21 +1518,32 @@ var Space = class extends Resource {
|
|
|
1518
1518
|
C: (f, a) => f(...a)
|
|
1519
1519
|
});
|
|
1520
1520
|
await this._controlPipeline.start();
|
|
1521
|
-
await this.protocol.start();
|
|
1522
|
-
await this.protocol.addFeed(await this._feedProvider(this._genesisFeedKey));
|
|
1523
1521
|
log7("opened", void 0, {
|
|
1524
1522
|
F: __dxlog_file8,
|
|
1525
|
-
L:
|
|
1523
|
+
L: 180,
|
|
1526
1524
|
S: this,
|
|
1527
1525
|
C: (f, a) => f(...a)
|
|
1528
1526
|
});
|
|
1529
1527
|
}
|
|
1528
|
+
async startProtocol() {
|
|
1529
|
+
invariant6(this.isOpen, void 0, {
|
|
1530
|
+
F: __dxlog_file8,
|
|
1531
|
+
L: 185,
|
|
1532
|
+
S: this,
|
|
1533
|
+
A: [
|
|
1534
|
+
"this.isOpen",
|
|
1535
|
+
""
|
|
1536
|
+
]
|
|
1537
|
+
});
|
|
1538
|
+
await this.protocol.start();
|
|
1539
|
+
await this.protocol.addFeed(await this._feedProvider(this._genesisFeedKey));
|
|
1540
|
+
}
|
|
1530
1541
|
async _close() {
|
|
1531
1542
|
log7("closing...", {
|
|
1532
1543
|
key: this._key
|
|
1533
1544
|
}, {
|
|
1534
1545
|
F: __dxlog_file8,
|
|
1535
|
-
L:
|
|
1546
|
+
L: 192,
|
|
1536
1547
|
S: this,
|
|
1537
1548
|
C: (f, a) => f(...a)
|
|
1538
1549
|
});
|
|
@@ -1540,7 +1551,7 @@ var Space = class extends Resource {
|
|
|
1540
1551
|
await this._controlPipeline.stop();
|
|
1541
1552
|
log7("closed", void 0, {
|
|
1542
1553
|
F: __dxlog_file8,
|
|
1543
|
-
L:
|
|
1554
|
+
L: 198,
|
|
1544
1555
|
S: this,
|
|
1545
1556
|
C: (f, a) => f(...a)
|
|
1546
1557
|
});
|
|
@@ -1563,6 +1574,9 @@ _ts_decorate5([
|
|
|
1563
1574
|
_ts_decorate5([
|
|
1564
1575
|
trace2.span()
|
|
1565
1576
|
], Space.prototype, "_open", null);
|
|
1577
|
+
_ts_decorate5([
|
|
1578
|
+
synchronized3
|
|
1579
|
+
], Space.prototype, "startProtocol", null);
|
|
1566
1580
|
_ts_decorate5([
|
|
1567
1581
|
synchronized3
|
|
1568
1582
|
], Space.prototype, "_close", null);
|
|
@@ -1721,17 +1735,13 @@ var SpaceProtocol = class {
|
|
|
1721
1735
|
const topic = await this._topic;
|
|
1722
1736
|
this._connection = await this._networkManager.joinSwarm({
|
|
1723
1737
|
protocolProvider: this._createProtocolProvider(credentials),
|
|
1724
|
-
peerInfo: {
|
|
1725
|
-
peerKey: this._swarmIdentity.peerKey.toHex(),
|
|
1726
|
-
identityKey: this._swarmIdentity.identityKey.toHex()
|
|
1727
|
-
},
|
|
1728
1738
|
topic,
|
|
1729
1739
|
topology: this._topology,
|
|
1730
1740
|
label: `swarm ${topic.truncate()} for space ${this._spaceKey.truncate()}`
|
|
1731
1741
|
});
|
|
1732
1742
|
log8("started", void 0, {
|
|
1733
1743
|
F: __dxlog_file10,
|
|
1734
|
-
L:
|
|
1744
|
+
L: 158,
|
|
1735
1745
|
S: this,
|
|
1736
1746
|
C: (f, a) => f(...a)
|
|
1737
1747
|
});
|
|
@@ -1744,14 +1754,14 @@ var SpaceProtocol = class {
|
|
|
1744
1754
|
if (this._connection) {
|
|
1745
1755
|
log8("stopping...", void 0, {
|
|
1746
1756
|
F: __dxlog_file10,
|
|
1747
|
-
L:
|
|
1757
|
+
L: 169,
|
|
1748
1758
|
S: this,
|
|
1749
1759
|
C: (f, a) => f(...a)
|
|
1750
1760
|
});
|
|
1751
1761
|
await this._connection.close();
|
|
1752
1762
|
log8("stopped", void 0, {
|
|
1753
1763
|
F: __dxlog_file10,
|
|
1754
|
-
L:
|
|
1764
|
+
L: 171,
|
|
1755
1765
|
S: this,
|
|
1756
1766
|
C: (f, a) => f(...a)
|
|
1757
1767
|
});
|
|
@@ -1827,7 +1837,7 @@ var SpaceProtocolSession = class {
|
|
|
1827
1837
|
onAuthSuccess: () => {
|
|
1828
1838
|
log8("Peer authenticated", void 0, {
|
|
1829
1839
|
F: __dxlog_file10,
|
|
1830
|
-
L:
|
|
1840
|
+
L: 282,
|
|
1831
1841
|
S: this,
|
|
1832
1842
|
C: (f, a) => f(...a)
|
|
1833
1843
|
});
|
|
@@ -1847,7 +1857,7 @@ var SpaceProtocolSession = class {
|
|
|
1847
1857
|
async close() {
|
|
1848
1858
|
log8("close", void 0, {
|
|
1849
1859
|
F: __dxlog_file10,
|
|
1850
|
-
L:
|
|
1860
|
+
L: 301,
|
|
1851
1861
|
S: this,
|
|
1852
1862
|
C: (f, a) => f(...a)
|
|
1853
1863
|
});
|
|
@@ -2047,4 +2057,4 @@ export {
|
|
|
2047
2057
|
SpaceProtocolSession,
|
|
2048
2058
|
SpaceManager
|
|
2049
2059
|
};
|
|
2050
|
-
//# sourceMappingURL=chunk-
|
|
2060
|
+
//# sourceMappingURL=chunk-PSHCRG32.mjs.map
|