@dxos/client-services 0.3.9-main.604ae36 → 0.3.9-main.622f05b
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-E4BT55VD.mjs → chunk-3N7HCVAD.mjs} +56 -42
- package/dist/lib/browser/chunk-3N7HCVAD.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +7 -3
- package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
- package/dist/lib/node/{chunk-AKVILVWG.cjs → chunk-BUF6R5Q4.cjs} +51 -45
- package/dist/lib/node/{chunk-AKVILVWG.cjs.map → chunk-BUF6R5Q4.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +37 -37
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +11 -8
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/services/automerge-host.test.d.ts +2 -0
- package/dist/types/src/packlets/services/automerge-host.test.d.ts.map +1 -0
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts +2 -2
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +2 -2
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/genesis.d.ts +1 -1
- package/dist/types/src/packlets/spaces/genesis.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +3 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/services/automerge-host.test.ts +56 -0
- package/src/packlets/services/service-context.ts +1 -0
- package/src/packlets/services/service-host.ts +1 -1
- package/src/packlets/spaces/data-space-manager.ts +5 -4
- package/src/packlets/spaces/data-space.ts +5 -6
- package/src/packlets/spaces/genesis.ts +7 -1
- package/src/packlets/testing/test-builder.ts +7 -0
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-E4BT55VD.mjs.map +0 -7
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
SpaceManager,
|
|
14
14
|
valueEncoding,
|
|
15
15
|
DataServiceSubscriptions,
|
|
16
|
+
AutomergeHost,
|
|
16
17
|
} from '@dxos/echo-pipeline';
|
|
17
18
|
import { testLocalDatabase } from '@dxos/echo-pipeline/testing';
|
|
18
19
|
import { FeedFactory, FeedStore } from '@dxos/feed-store';
|
|
@@ -108,6 +109,7 @@ export type TestPeerProps = {
|
|
|
108
109
|
snapshotStore?: SnapshotStore;
|
|
109
110
|
signingContext?: SigningContext;
|
|
110
111
|
blobStore?: BlobStore;
|
|
112
|
+
automergeHost?: AutomergeHost;
|
|
111
113
|
};
|
|
112
114
|
|
|
113
115
|
export class TestPeer {
|
|
@@ -176,6 +178,10 @@ export class TestPeer {
|
|
|
176
178
|
return this._props.signingContext ?? failUndefined();
|
|
177
179
|
}
|
|
178
180
|
|
|
181
|
+
get automergeHost() {
|
|
182
|
+
return (this._props.automergeHost ??= new AutomergeHost(this.storage.createDirectory('automerge')));
|
|
183
|
+
}
|
|
184
|
+
|
|
179
185
|
get dataSpaceManager() {
|
|
180
186
|
return (this._props.dataSpaceManager ??= new DataSpaceManager(
|
|
181
187
|
this.spaceManager,
|
|
@@ -184,6 +190,7 @@ export class TestPeer {
|
|
|
184
190
|
this.keyring,
|
|
185
191
|
this.identity,
|
|
186
192
|
this.feedStore,
|
|
193
|
+
this.automergeHost,
|
|
187
194
|
));
|
|
188
195
|
}
|
|
189
196
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const DXOS_VERSION = "0.3.9-main.
|
|
1
|
+
export const DXOS_VERSION = "0.3.9-main.622f05b";
|