@dxos/echo-pipeline 0.7.5-main.e9bb01b → 0.7.5-staging.2ff1350
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-QBMTPEMY.mjs → chunk-32WDI3LB.mjs} +32 -84
- package/dist/lib/browser/chunk-32WDI3LB.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +6 -6
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-NPZ57MV5.cjs → chunk-TC2PRBEU.cjs} +33 -82
- package/dist/lib/node/chunk-TC2PRBEU.cjs.map +7 -0
- package/dist/lib/node/index.cjs +28 -28
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +10 -10
- package/dist/lib/node-esm/{chunk-OY5N3ZIV.mjs → chunk-UKOLB3LW.mjs} +32 -84
- package/dist/lib/node-esm/chunk-UKOLB3LW.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +6 -6
- 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 +1 -1
- package/dist/types/src/pipeline/pipeline.d.ts +0 -1
- package/dist/types/src/pipeline/pipeline.d.ts.map +1 -1
- package/dist/types/src/space/control-pipeline.d.ts +0 -9
- package/dist/types/src/space/control-pipeline.d.ts.map +1 -1
- package/package.json +35 -34
- package/src/automerge/automerge-repo.test.ts +2 -2
- package/src/automerge/echo-network-adapter.ts +2 -2
- package/src/db-host/query-state.ts +3 -3
- package/src/metadata/metadata-store.ts +2 -2
- package/src/pipeline/pipeline.ts +0 -5
- package/src/space/control-pipeline.ts +2 -26
- package/dist/lib/browser/chunk-QBMTPEMY.mjs.map +0 -7
- package/dist/lib/node/chunk-NPZ57MV5.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-OY5N3ZIV.mjs.map +0 -7
package/dist/lib/node/index.cjs
CHANGED
|
@@ -28,11 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var node_exports = {};
|
|
30
30
|
__export(node_exports, {
|
|
31
|
-
AuthExtension: () =>
|
|
32
|
-
AuthStatus: () =>
|
|
31
|
+
AuthExtension: () => import_chunk_TC2PRBEU.AuthExtension,
|
|
32
|
+
AuthStatus: () => import_chunk_TC2PRBEU.AuthStatus,
|
|
33
33
|
AutomergeHost: () => AutomergeHost,
|
|
34
|
-
CredentialRetrieverExtension: () =>
|
|
35
|
-
CredentialServerExtension: () =>
|
|
34
|
+
CredentialRetrieverExtension: () => import_chunk_TC2PRBEU.CredentialRetrieverExtension,
|
|
35
|
+
CredentialServerExtension: () => import_chunk_TC2PRBEU.CredentialServerExtension,
|
|
36
36
|
DataServiceImpl: () => DataServiceImpl,
|
|
37
37
|
DatabaseRoot: () => DatabaseRoot,
|
|
38
38
|
DocumentsSynchronizer: () => DocumentsSynchronizer,
|
|
@@ -40,37 +40,37 @@ __export(node_exports, {
|
|
|
40
40
|
EchoEdgeReplicator: () => EchoEdgeReplicator,
|
|
41
41
|
EchoHost: () => EchoHost,
|
|
42
42
|
LevelDBStorageAdapter: () => LevelDBStorageAdapter,
|
|
43
|
-
MOCK_AUTH_PROVIDER: () =>
|
|
44
|
-
MOCK_AUTH_VERIFIER: () =>
|
|
43
|
+
MOCK_AUTH_PROVIDER: () => import_chunk_TC2PRBEU.MOCK_AUTH_PROVIDER,
|
|
44
|
+
MOCK_AUTH_VERIFIER: () => import_chunk_TC2PRBEU.MOCK_AUTH_VERIFIER,
|
|
45
45
|
MeshEchoReplicator: () => MeshEchoReplicator,
|
|
46
|
-
MetadataStore: () =>
|
|
47
|
-
Pipeline: () =>
|
|
46
|
+
MetadataStore: () => import_chunk_TC2PRBEU.MetadataStore,
|
|
47
|
+
Pipeline: () => import_chunk_TC2PRBEU.Pipeline,
|
|
48
48
|
QueryServiceImpl: () => QueryServiceImpl,
|
|
49
49
|
QueryState: () => QueryState,
|
|
50
|
-
Space: () =>
|
|
50
|
+
Space: () => import_chunk_TC2PRBEU.Space,
|
|
51
51
|
SpaceDocumentListUpdatedEvent: () => SpaceDocumentListUpdatedEvent,
|
|
52
|
-
SpaceManager: () =>
|
|
53
|
-
SpaceProtocol: () =>
|
|
54
|
-
SpaceProtocolSession: () =>
|
|
52
|
+
SpaceManager: () => import_chunk_TC2PRBEU.SpaceManager,
|
|
53
|
+
SpaceProtocol: () => import_chunk_TC2PRBEU.SpaceProtocol,
|
|
54
|
+
SpaceProtocolSession: () => import_chunk_TC2PRBEU.SpaceProtocolSession,
|
|
55
55
|
SpaceStateManager: () => SpaceStateManager,
|
|
56
|
-
TimeframeClock: () =>
|
|
57
|
-
codec: () =>
|
|
58
|
-
createIdFromSpaceKey: () =>
|
|
59
|
-
createMappedFeedWriter: () =>
|
|
56
|
+
TimeframeClock: () => import_chunk_TC2PRBEU.TimeframeClock,
|
|
57
|
+
codec: () => import_chunk_TC2PRBEU.codec,
|
|
58
|
+
createIdFromSpaceKey: () => import_chunk_TC2PRBEU.createIdFromSpaceKey,
|
|
59
|
+
createMappedFeedWriter: () => import_chunk_TC2PRBEU.createMappedFeedWriter,
|
|
60
60
|
deriveCollectionIdFromSpaceId: () => deriveCollectionIdFromSpaceId,
|
|
61
61
|
diffCollectionState: () => diffCollectionState,
|
|
62
62
|
encodingOptions: () => encodingOptions,
|
|
63
63
|
findInlineObjectOfType: () => findInlineObjectOfType,
|
|
64
64
|
getSpaceIdFromCollectionId: () => getSpaceIdFromCollectionId,
|
|
65
65
|
getSpaceKeyFromDoc: () => getSpaceKeyFromDoc,
|
|
66
|
-
hasInvitationExpired: () =>
|
|
67
|
-
mapFeedIndexesToTimeframe: () =>
|
|
68
|
-
mapTimeframeToFeedIndexes: () =>
|
|
69
|
-
startAfter: () =>
|
|
70
|
-
valueEncoding: () =>
|
|
66
|
+
hasInvitationExpired: () => import_chunk_TC2PRBEU.hasInvitationExpired,
|
|
67
|
+
mapFeedIndexesToTimeframe: () => import_chunk_TC2PRBEU.mapFeedIndexesToTimeframe,
|
|
68
|
+
mapTimeframeToFeedIndexes: () => import_chunk_TC2PRBEU.mapTimeframeToFeedIndexes,
|
|
69
|
+
startAfter: () => import_chunk_TC2PRBEU.startAfter,
|
|
70
|
+
valueEncoding: () => import_chunk_TC2PRBEU.valueEncoding
|
|
71
71
|
});
|
|
72
72
|
module.exports = __toCommonJS(node_exports);
|
|
73
|
-
var
|
|
73
|
+
var import_chunk_TC2PRBEU = require("./chunk-TC2PRBEU.cjs");
|
|
74
74
|
var import_async = require("@dxos/async");
|
|
75
75
|
var import_stream = require("@dxos/codec-protobuf/stream");
|
|
76
76
|
var import_invariant = require("@dxos/invariant");
|
|
@@ -625,7 +625,7 @@ var EchoNetworkAdapter = class extends import_automerge_repo2.NetworkAdapter {
|
|
|
625
625
|
getContainingSpaceForDocument: this._params.getContainingSpaceForDocument,
|
|
626
626
|
getContainingSpaceIdForDocument: async (documentId) => {
|
|
627
627
|
const key = await this._params.getContainingSpaceForDocument(documentId);
|
|
628
|
-
return key ? (0,
|
|
628
|
+
return key ? (0, import_chunk_TC2PRBEU.createIdFromSpaceKey)(key) : null;
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
}
|
|
@@ -711,7 +711,7 @@ var EchoNetworkAdapter = class extends import_automerge_repo2.NetworkAdapter {
|
|
|
711
711
|
return connection.connection.shouldSyncCollection({
|
|
712
712
|
collectionId
|
|
713
713
|
}) ? connection.connection.peerId : null;
|
|
714
|
-
}).filter(import_util2.
|
|
714
|
+
}).filter(import_util2.isNonNullable);
|
|
715
715
|
}
|
|
716
716
|
_onConnectionOpen(connection) {
|
|
717
717
|
(0, import_log5.log)("Connection opened", {
|
|
@@ -1760,7 +1760,7 @@ var MeshEchoReplicator = class {
|
|
|
1760
1760
|
});
|
|
1761
1761
|
return remoteDocumentExists;
|
|
1762
1762
|
}
|
|
1763
|
-
const spaceId = await (0,
|
|
1763
|
+
const spaceId = await (0, import_chunk_TC2PRBEU.createIdFromSpaceKey)(spaceKey);
|
|
1764
1764
|
const authorizedDevices = this._authorizedDevices.get(spaceId);
|
|
1765
1765
|
if (!connection.remoteDeviceKey) {
|
|
1766
1766
|
(0, import_log6.log)("device key not found for share policy check", {
|
|
@@ -1831,7 +1831,7 @@ var MeshEchoReplicator = class {
|
|
|
1831
1831
|
S: this,
|
|
1832
1832
|
C: (f, a) => f(...a)
|
|
1833
1833
|
});
|
|
1834
|
-
const spaceId = await (0,
|
|
1834
|
+
const spaceId = await (0, import_chunk_TC2PRBEU.createIdFromSpaceKey)(spaceKey);
|
|
1835
1835
|
(0, import_util3.defaultMap)(this._authorizedDevices, spaceId, () => new import_util3.ComplexSet(import_keys3.PublicKey.hash)).add(deviceKey);
|
|
1836
1836
|
for (const connection of this._connections) {
|
|
1837
1837
|
if (connection.remoteDeviceKey && connection.remoteDeviceKey.equals(deviceKey)) {
|
|
@@ -2490,7 +2490,7 @@ var QueryState = class extends import_context10.Resource {
|
|
|
2490
2490
|
spaceKey: import_keys5.PublicKey.from(spaceKey),
|
|
2491
2491
|
rank: result.rank
|
|
2492
2492
|
};
|
|
2493
|
-
}))).filter(import_util5.
|
|
2493
|
+
}))).filter(import_util5.isNonNullable);
|
|
2494
2494
|
if (this._firstRun) {
|
|
2495
2495
|
this.metrics.documentLoadTime = performance.now() - beginFilter;
|
|
2496
2496
|
}
|
|
@@ -2559,7 +2559,7 @@ var filterToIndexQuery = (filter) => {
|
|
|
2559
2559
|
});
|
|
2560
2560
|
if (filter.type || (filter.or ?? []).length > 0 && (filter.or ?? []).every((subFilter) => !subFilter.not && subFilter.type)) {
|
|
2561
2561
|
return {
|
|
2562
|
-
typenames: filter.type && filter.type.length > 0 ? filter.type.map((type) => dxnToIndexerTypename(import_keys5.DXN.parse(type))) : (filter.or ?? []).flatMap((f) => f.type?.map((type) => dxnToIndexerTypename(import_keys5.DXN.parse(type))) ?? []).filter(import_util5.
|
|
2562
|
+
typenames: filter.type && filter.type.length > 0 ? filter.type.map((type) => dxnToIndexerTypename(import_keys5.DXN.parse(type))) : (filter.or ?? []).flatMap((f) => f.type?.map((type) => dxnToIndexerTypename(import_keys5.DXN.parse(type))) ?? []).filter(import_util5.isNonNullable),
|
|
2563
2563
|
inverted: filter.not
|
|
2564
2564
|
};
|
|
2565
2565
|
} else {
|