@dxos/echo-pipeline 0.1.58-main.f4192cb → 0.1.58-main.f69fa2f
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-7ZNBLEKV.mjs → chunk-BCM3NEND.mjs} +23 -23
- package/dist/lib/browser/{chunk-7ZNBLEKV.mjs.map → chunk-BCM3NEND.mjs.map} +2 -2
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +22 -22
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +22 -22
- package/dist/lib/node/testing/index.cjs.map +2 -2
- package/dist/types/src/space/data-pipeline.d.ts +2 -2
- package/dist/types/src/space/data-pipeline.d.ts.map +1 -1
- package/package.json +31 -31
- package/src/pipeline/pipeline-stress.test.ts +2 -9
- package/src/space/data-pipeline.ts +4 -3
|
@@ -1461,7 +1461,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1461
1461
|
write: (data, options) => {
|
|
1462
1462
|
invariant8(this._pipeline, "Pipeline is not initialized.", {
|
|
1463
1463
|
F: __dxlog_file9,
|
|
1464
|
-
L:
|
|
1464
|
+
L: 154,
|
|
1465
1465
|
S: this,
|
|
1466
1466
|
A: [
|
|
1467
1467
|
"this._pipeline",
|
|
@@ -1470,7 +1470,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1470
1470
|
});
|
|
1471
1471
|
invariant8(this.currentEpoch, "Epoch is not initialized.", {
|
|
1472
1472
|
F: __dxlog_file9,
|
|
1473
|
-
L:
|
|
1473
|
+
L: 155,
|
|
1474
1474
|
S: this,
|
|
1475
1475
|
A: [
|
|
1476
1476
|
"this.currentEpoch",
|
|
@@ -1496,7 +1496,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
log8("close", void 0, {
|
|
1498
1498
|
F: __dxlog_file9,
|
|
1499
|
-
L:
|
|
1499
|
+
L: 179,
|
|
1500
1500
|
S: this,
|
|
1501
1501
|
C: (f, a) => f(...a)
|
|
1502
1502
|
});
|
|
@@ -1511,7 +1511,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1511
1511
|
} catch (err) {
|
|
1512
1512
|
log8.catch(err, void 0, {
|
|
1513
1513
|
F: __dxlog_file9,
|
|
1514
|
-
L:
|
|
1514
|
+
L: 192,
|
|
1515
1515
|
S: this,
|
|
1516
1516
|
C: (f, a) => f(...a)
|
|
1517
1517
|
});
|
|
@@ -1536,7 +1536,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1536
1536
|
let messageCounter = 0;
|
|
1537
1537
|
invariant8(this._pipeline, "Pipeline is not initialized.", {
|
|
1538
1538
|
F: __dxlog_file9,
|
|
1539
|
-
L:
|
|
1539
|
+
L: 217,
|
|
1540
1540
|
S: this,
|
|
1541
1541
|
A: [
|
|
1542
1542
|
"this._pipeline",
|
|
@@ -1552,7 +1552,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1552
1552
|
seq
|
|
1553
1553
|
}, {
|
|
1554
1554
|
F: __dxlog_file9,
|
|
1555
|
-
L:
|
|
1555
|
+
L: 223,
|
|
1556
1556
|
S: this,
|
|
1557
1557
|
C: (f, a) => f(...a)
|
|
1558
1558
|
});
|
|
@@ -1564,7 +1564,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1564
1564
|
feedKey
|
|
1565
1565
|
}, {
|
|
1566
1566
|
F: __dxlog_file9,
|
|
1567
|
-
L:
|
|
1567
|
+
L: 229,
|
|
1568
1568
|
S: this,
|
|
1569
1569
|
C: (f, a) => f(...a)
|
|
1570
1570
|
});
|
|
@@ -1587,7 +1587,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1587
1587
|
spaceKey: this._params.spaceKey.toHex()
|
|
1588
1588
|
}, {
|
|
1589
1589
|
F: __dxlog_file9,
|
|
1590
|
-
L:
|
|
1590
|
+
L: 246,
|
|
1591
1591
|
S: this,
|
|
1592
1592
|
C: (f, a) => f(...a)
|
|
1593
1593
|
});
|
|
@@ -1596,7 +1596,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1596
1596
|
} catch (err) {
|
|
1597
1597
|
log8.catch(err, void 0, {
|
|
1598
1598
|
F: __dxlog_file9,
|
|
1599
|
-
L:
|
|
1599
|
+
L: 256,
|
|
1600
1600
|
S: this,
|
|
1601
1601
|
C: (f, a) => f(...a)
|
|
1602
1602
|
});
|
|
@@ -1611,7 +1611,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1611
1611
|
_createSnapshot() {
|
|
1612
1612
|
invariant8(this.databaseHost, "Database backend is not initialized.", {
|
|
1613
1613
|
F: __dxlog_file9,
|
|
1614
|
-
L:
|
|
1614
|
+
L: 270,
|
|
1615
1615
|
S: this,
|
|
1616
1616
|
A: [
|
|
1617
1617
|
"this.databaseHost",
|
|
@@ -1632,7 +1632,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1632
1632
|
async _saveCache() {
|
|
1633
1633
|
const cache = {};
|
|
1634
1634
|
try {
|
|
1635
|
-
const propertiesItem = this.itemManager.items.find((item) => item.modelMeta?.type === "dxos
|
|
1635
|
+
const propertiesItem = this.itemManager.items.find((item) => item.modelMeta?.type === "dxos.org/model/document" && // TODO(burdon): Document?
|
|
1636
1636
|
(getStateMachineFromItem(item)?.snapshot()).type === TYPE_PROPERTIES);
|
|
1637
1637
|
if (propertiesItem) {
|
|
1638
1638
|
cache.properties = getStateMachineFromItem(propertiesItem)?.snapshot();
|
|
@@ -1640,7 +1640,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1640
1640
|
} catch (err) {
|
|
1641
1641
|
log8.warn("Failed to cache properties", err, {
|
|
1642
1642
|
F: __dxlog_file9,
|
|
1643
|
-
L:
|
|
1643
|
+
L: 299,
|
|
1644
1644
|
S: this,
|
|
1645
1645
|
C: (f, a) => f(...a)
|
|
1646
1646
|
});
|
|
@@ -1669,14 +1669,14 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1669
1669
|
if (err instanceof CancelledError) {
|
|
1670
1670
|
log8("Epoch processing cancelled.", void 0, {
|
|
1671
1671
|
F: __dxlog_file9,
|
|
1672
|
-
L:
|
|
1672
|
+
L: 335,
|
|
1673
1673
|
S: this,
|
|
1674
1674
|
C: (f, a) => f(...a)
|
|
1675
1675
|
});
|
|
1676
1676
|
} else {
|
|
1677
1677
|
log8.catch(err, void 0, {
|
|
1678
1678
|
F: __dxlog_file9,
|
|
1679
|
-
L:
|
|
1679
|
+
L: 337,
|
|
1680
1680
|
S: this,
|
|
1681
1681
|
C: (f, a) => f(...a)
|
|
1682
1682
|
});
|
|
@@ -1696,7 +1696,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1696
1696
|
async _processEpoch(ctx, epoch) {
|
|
1697
1697
|
invariant8(this._isOpen, "Space is closed.", {
|
|
1698
1698
|
F: __dxlog_file9,
|
|
1699
|
-
L:
|
|
1699
|
+
L: 356,
|
|
1700
1700
|
S: this,
|
|
1701
1701
|
A: [
|
|
1702
1702
|
"this._isOpen",
|
|
@@ -1705,7 +1705,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1705
1705
|
});
|
|
1706
1706
|
invariant8(this._pipeline, void 0, {
|
|
1707
1707
|
F: __dxlog_file9,
|
|
1708
|
-
L:
|
|
1708
|
+
L: 357,
|
|
1709
1709
|
S: this,
|
|
1710
1710
|
A: [
|
|
1711
1711
|
"this._pipeline",
|
|
@@ -1717,7 +1717,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1717
1717
|
epoch: omit(epoch, "proof")
|
|
1718
1718
|
}, {
|
|
1719
1719
|
F: __dxlog_file9,
|
|
1720
|
-
L:
|
|
1720
|
+
L: 360,
|
|
1721
1721
|
S: this,
|
|
1722
1722
|
C: (f, a) => f(...a)
|
|
1723
1723
|
});
|
|
@@ -1727,7 +1727,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
log8("restarting pipeline from epoch", void 0, {
|
|
1729
1729
|
F: __dxlog_file9,
|
|
1730
|
-
L:
|
|
1730
|
+
L: 366,
|
|
1731
1731
|
S: this,
|
|
1732
1732
|
C: (f, a) => f(...a)
|
|
1733
1733
|
});
|
|
@@ -1738,7 +1738,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1738
1738
|
async waitUntilTimeframe(timeframe) {
|
|
1739
1739
|
invariant8(this._pipeline, "Pipeline is not initialized.", {
|
|
1740
1740
|
F: __dxlog_file9,
|
|
1741
|
-
L:
|
|
1741
|
+
L: 373,
|
|
1742
1742
|
S: this,
|
|
1743
1743
|
A: [
|
|
1744
1744
|
"this._pipeline",
|
|
@@ -1750,7 +1750,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1750
1750
|
async createEpoch() {
|
|
1751
1751
|
invariant8(this._pipeline, void 0, {
|
|
1752
1752
|
F: __dxlog_file9,
|
|
1753
|
-
L:
|
|
1753
|
+
L: 379,
|
|
1754
1754
|
S: this,
|
|
1755
1755
|
A: [
|
|
1756
1756
|
"this._pipeline",
|
|
@@ -1759,7 +1759,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1759
1759
|
});
|
|
1760
1760
|
invariant8(this.currentEpoch, void 0, {
|
|
1761
1761
|
F: __dxlog_file9,
|
|
1762
|
-
L:
|
|
1762
|
+
L: 380,
|
|
1763
1763
|
S: this,
|
|
1764
1764
|
A: [
|
|
1765
1765
|
"this.currentEpoch",
|
|
@@ -1790,7 +1790,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1790
1790
|
} catch (err) {
|
|
1791
1791
|
log8.catch(err, void 0, {
|
|
1792
1792
|
F: __dxlog_file9,
|
|
1793
|
-
L:
|
|
1793
|
+
L: 410,
|
|
1794
1794
|
S: this,
|
|
1795
1795
|
C: (f, a) => f(...a)
|
|
1796
1796
|
});
|
|
@@ -2667,4 +2667,4 @@ export {
|
|
|
2667
2667
|
SpaceProtocolSession,
|
|
2668
2668
|
SpaceManager
|
|
2669
2669
|
};
|
|
2670
|
-
//# sourceMappingURL=chunk-
|
|
2670
|
+
//# sourceMappingURL=chunk-BCM3NEND.mjs.map
|