@dxos/client-services 0.4.10-main.bf8d896 → 0.4.10-main.c16d37b
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-3Z5ZPB7G.mjs → chunk-GZI6A3HL.mjs} +387 -335
- package/dist/lib/browser/chunk-GZI6A3HL.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +3 -1
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +3 -2
- package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
- package/dist/lib/node/{chunk-A2VEEQ4M.cjs → chunk-HI6XTPBD.cjs} +382 -331
- package/dist/lib/node/chunk-HI6XTPBD.cjs.map +7 -0
- package/dist/lib/node/index.cjs +44 -42
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -7
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/indexing/util.d.ts +2 -1
- package/dist/types/src/packlets/indexing/util.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/index.d.ts +1 -0
- package/dist/types/src/packlets/invitations/index.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-manager.d.ts +42 -0
- package/dist/types/src/packlets/invitations/invitations-manager.d.ts.map +1 -0
- package/dist/types/src/packlets/invitations/invitations-service.d.ts +7 -23
- package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts +2 -0
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts +3 -2
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +3 -4
- 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 +34 -34
- package/src/packlets/indexing/util.ts +15 -8
- package/src/packlets/invitations/index.ts +1 -0
- package/src/packlets/invitations/invitations-handler.ts +1 -2
- package/src/packlets/invitations/invitations-manager.ts +197 -0
- package/src/packlets/invitations/invitations-service.ts +21 -168
- package/src/packlets/services/automerge-host.test.ts +1 -1
- package/src/packlets/services/service-context.ts +14 -3
- package/src/packlets/services/service-host.ts +15 -19
- package/src/packlets/spaces/data-space.ts +1 -1
- package/src/packlets/testing/test-builder.ts +4 -4
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-3Z5ZPB7G.mjs.map +0 -7
- package/dist/lib/node/chunk-A2VEEQ4M.cjs.map +0 -7
|
@@ -9,7 +9,7 @@ import { failUndefined } from '@dxos/debug';
|
|
|
9
9
|
import {
|
|
10
10
|
AutomergeHost,
|
|
11
11
|
MetadataStore,
|
|
12
|
-
type
|
|
12
|
+
type LevelDB,
|
|
13
13
|
SnapshotStore,
|
|
14
14
|
SpaceManager,
|
|
15
15
|
valueEncoding,
|
|
@@ -21,7 +21,6 @@ import { MemorySignalManager, MemorySignalManagerContext } from '@dxos/messaging
|
|
|
21
21
|
import { MemoryTransportFactory, NetworkManager } from '@dxos/network-manager';
|
|
22
22
|
import { createStorage, StorageType, type Storage } from '@dxos/random-access-storage';
|
|
23
23
|
import { BlobStore } from '@dxos/teleport-extension-object-sync';
|
|
24
|
-
import { type MaybePromise } from '@dxos/util';
|
|
25
24
|
|
|
26
25
|
import { ClientServicesHost, ServiceContext } from '../services';
|
|
27
26
|
import { DataSpaceManager, type SigningContext } from '../spaces';
|
|
@@ -94,7 +93,7 @@ export type TestPeerOpts = {
|
|
|
94
93
|
|
|
95
94
|
export type TestPeerProps = {
|
|
96
95
|
storage?: Storage;
|
|
97
|
-
level?:
|
|
96
|
+
level?: LevelDB;
|
|
98
97
|
feedStore?: FeedStore<any>;
|
|
99
98
|
metadataStore?: MetadataStore;
|
|
100
99
|
keyring?: Keyring;
|
|
@@ -178,7 +177,7 @@ export class TestPeer {
|
|
|
178
177
|
|
|
179
178
|
get automergeHost() {
|
|
180
179
|
return (this._props.automergeHost ??= new AutomergeHost({
|
|
181
|
-
db:
|
|
180
|
+
db: this.level.sublevel('automerge'),
|
|
182
181
|
}));
|
|
183
182
|
}
|
|
184
183
|
|
|
@@ -198,6 +197,7 @@ export class TestPeer {
|
|
|
198
197
|
}
|
|
199
198
|
|
|
200
199
|
async destroy() {
|
|
200
|
+
await this.level.close();
|
|
201
201
|
await this.storage.reset();
|
|
202
202
|
}
|
|
203
203
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const DXOS_VERSION = "0.4.10-main.
|
|
1
|
+
export const DXOS_VERSION = "0.4.10-main.c16d37b";
|