@dxos/client-services 0.5.9-main.bf0ae3e → 0.5.9-main.bfee100
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-4IR3JP4U.mjs → chunk-TZL7PJDX.mjs} +4 -4
- package/dist/lib/browser/{chunk-4IR3JP4U.mjs.map → chunk-TZL7PJDX.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-ZBIDLLZ4.cjs → chunk-STUWVNPH.cjs} +6 -6
- package/dist/lib/node/{chunk-ZBIDLLZ4.cjs.map → chunk-STUWVNPH.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +42 -42
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/spaces/data-space-manager.ts +2 -2
- package/src/version.ts +1 -1
|
@@ -30,7 +30,7 @@ __export(testing_exports, {
|
|
|
30
30
|
sanitizeInvitation: () => sanitizeInvitation
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(testing_exports);
|
|
33
|
-
var
|
|
33
|
+
var import_chunk_STUWVNPH = require("../../chunk-STUWVNPH.cjs");
|
|
34
34
|
var import_credentials = require("@dxos/credentials");
|
|
35
35
|
var import_keys = require("@dxos/keys");
|
|
36
36
|
var import_async = require("@dxos/async");
|
|
@@ -227,7 +227,7 @@ var createInvitation = async (host, options) => {
|
|
|
227
227
|
authMethod: import_services.Invitation.AuthMethod.NONE,
|
|
228
228
|
...options ?? {}
|
|
229
229
|
};
|
|
230
|
-
if (host instanceof
|
|
230
|
+
if (host instanceof import_chunk_STUWVNPH.ServiceContext) {
|
|
231
231
|
return host.invitationsManager.createInvitation({
|
|
232
232
|
kind: import_services.Invitation.Kind.SPACE,
|
|
233
233
|
...options
|
|
@@ -237,7 +237,7 @@ var createInvitation = async (host, options) => {
|
|
|
237
237
|
};
|
|
238
238
|
var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
|
|
239
239
|
invitation = sanitizeInvitation(invitation);
|
|
240
|
-
if (guest instanceof
|
|
240
|
+
if (guest instanceof import_chunk_STUWVNPH.ServiceContext) {
|
|
241
241
|
return guest.invitationsManager.acceptInvitation({
|
|
242
242
|
invitation,
|
|
243
243
|
deviceProfile: guestDeviceProfile
|
|
@@ -246,7 +246,7 @@ var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
|
|
|
246
246
|
return guest.join(invitation, guestDeviceProfile);
|
|
247
247
|
};
|
|
248
248
|
var createServiceHost = (config, signalManagerContext) => {
|
|
249
|
-
return new
|
|
249
|
+
return new import_chunk_STUWVNPH.ClientServicesHost({
|
|
250
250
|
config,
|
|
251
251
|
signalManager: new import_messaging.MemorySignalManager(signalManagerContext),
|
|
252
252
|
transportFactory: import_network_manager.MemoryTransportFactory
|
|
@@ -262,7 +262,7 @@ var createServiceContext = async ({ signalContext = new import_messaging.MemoryS
|
|
|
262
262
|
});
|
|
263
263
|
const level = (0, import_testing.createTestLevel)();
|
|
264
264
|
await level.open();
|
|
265
|
-
return new
|
|
265
|
+
return new import_chunk_STUWVNPH.ServiceContext(storage, level, networkManager, signalManager, {
|
|
266
266
|
invitationConnectionDefaultParams: {
|
|
267
267
|
controlHeartbeatInterval: 200
|
|
268
268
|
},
|
|
@@ -363,12 +363,12 @@ var TestPeer = class {
|
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
get dataSpaceManager() {
|
|
366
|
-
return this._props.dataSpaceManager ??= new
|
|
366
|
+
return this._props.dataSpaceManager ??= new import_chunk_STUWVNPH.DataSpaceManager(this.spaceManager, this.metadataStore, this.keyring, this.identity, this.feedStore, this.echoHost, this.invitationsManager, this._opts.dataSpaceParams);
|
|
367
367
|
}
|
|
368
368
|
get invitationsManager() {
|
|
369
|
-
return this._props.invitationsManager ??= new
|
|
369
|
+
return this._props.invitationsManager ??= new import_chunk_STUWVNPH.InvitationsManager(new import_chunk_STUWVNPH.InvitationsHandler(this.networkManager), (invitation) => {
|
|
370
370
|
if (invitation.kind === import_services2.Invitation.Kind.SPACE) {
|
|
371
|
-
return new
|
|
371
|
+
return new import_chunk_STUWVNPH.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
|
|
372
372
|
} else {
|
|
373
373
|
throw new Error("not implemented");
|
|
374
374
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DXOS_VERSION = "0.5.9-main.
|
|
1
|
+
export declare const DXOS_VERSION = "0.5.9-main.bfee100";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/client-services",
|
|
3
|
-
"version": "0.5.9-main.
|
|
3
|
+
"version": "0.5.9-main.bfee100",
|
|
4
4
|
"description": "DXOS client services implementation",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -23,45 +23,45 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"platform": "^1.3.6",
|
|
26
|
-
"@dxos/async": "0.5.9-main.
|
|
27
|
-
"@dxos/
|
|
28
|
-
"@dxos/
|
|
29
|
-
"@dxos/
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/credentials": "0.5.9-main.
|
|
32
|
-
"@dxos/
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/echo-
|
|
36
|
-
"@dxos/echo-
|
|
37
|
-
"@dxos/echo-protocol": "0.5.9-main.
|
|
38
|
-
"@dxos/echo-schema": "0.5.9-main.
|
|
39
|
-
"@dxos/feed-store": "0.5.9-main.
|
|
40
|
-
"@dxos/indexing": "0.5.9-main.
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/network-manager": "0.5.9-main.
|
|
49
|
-
"@dxos/node-std": "0.5.9-main.
|
|
50
|
-
"@dxos/protocols": "0.5.9-main.
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/teleport": "0.5.9-main.
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/util": "0.5.9-main.
|
|
59
|
-
"@dxos/websocket-rpc": "0.5.9-main.
|
|
26
|
+
"@dxos/async": "0.5.9-main.bfee100",
|
|
27
|
+
"@dxos/codec-protobuf": "0.5.9-main.bfee100",
|
|
28
|
+
"@dxos/client-protocol": "0.5.9-main.bfee100",
|
|
29
|
+
"@dxos/automerge": "0.5.9-main.bfee100",
|
|
30
|
+
"@dxos/config": "0.5.9-main.bfee100",
|
|
31
|
+
"@dxos/credentials": "0.5.9-main.bfee100",
|
|
32
|
+
"@dxos/context": "0.5.9-main.bfee100",
|
|
33
|
+
"@dxos/crypto": "0.5.9-main.bfee100",
|
|
34
|
+
"@dxos/debug": "0.5.9-main.bfee100",
|
|
35
|
+
"@dxos/echo-db": "0.5.9-main.bfee100",
|
|
36
|
+
"@dxos/echo-pipeline": "0.5.9-main.bfee100",
|
|
37
|
+
"@dxos/echo-protocol": "0.5.9-main.bfee100",
|
|
38
|
+
"@dxos/echo-schema": "0.5.9-main.bfee100",
|
|
39
|
+
"@dxos/feed-store": "0.5.9-main.bfee100",
|
|
40
|
+
"@dxos/indexing": "0.5.9-main.bfee100",
|
|
41
|
+
"@dxos/keyring": "0.5.9-main.bfee100",
|
|
42
|
+
"@dxos/invariant": "0.5.9-main.bfee100",
|
|
43
|
+
"@dxos/kv-store": "0.5.9-main.bfee100",
|
|
44
|
+
"@dxos/lock-file": "0.5.9-main.bfee100",
|
|
45
|
+
"@dxos/log": "0.5.9-main.bfee100",
|
|
46
|
+
"@dxos/messaging": "0.5.9-main.bfee100",
|
|
47
|
+
"@dxos/keys": "0.5.9-main.bfee100",
|
|
48
|
+
"@dxos/network-manager": "0.5.9-main.bfee100",
|
|
49
|
+
"@dxos/node-std": "0.5.9-main.bfee100",
|
|
50
|
+
"@dxos/protocols": "0.5.9-main.bfee100",
|
|
51
|
+
"@dxos/rpc": "0.5.9-main.bfee100",
|
|
52
|
+
"@dxos/teleport-extension-gossip": "0.5.9-main.bfee100",
|
|
53
|
+
"@dxos/teleport": "0.5.9-main.bfee100",
|
|
54
|
+
"@dxos/random-access-storage": "0.5.9-main.bfee100",
|
|
55
|
+
"@dxos/timeframe": "0.5.9-main.bfee100",
|
|
56
|
+
"@dxos/tracing": "0.5.9-main.bfee100",
|
|
57
|
+
"@dxos/teleport-extension-object-sync": "0.5.9-main.bfee100",
|
|
58
|
+
"@dxos/util": "0.5.9-main.bfee100",
|
|
59
|
+
"@dxos/websocket-rpc": "0.5.9-main.bfee100"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/platform": "^1.3.4",
|
|
63
63
|
"@types/readable-stream": "^2.3.9",
|
|
64
|
-
"@dxos/signal": "0.5.9-main.
|
|
64
|
+
"@dxos/signal": "0.5.9-main.bfee100"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
type SpaceProtocolSession,
|
|
24
24
|
} from '@dxos/echo-pipeline';
|
|
25
25
|
import { encodeReference, type ObjectStructure, type SpaceDoc } from '@dxos/echo-protocol';
|
|
26
|
-
import { getTypeReference } from '@dxos/echo-schema';
|
|
26
|
+
import { generateEchoId, getTypeReference } from '@dxos/echo-schema';
|
|
27
27
|
import { type FeedStore } from '@dxos/feed-store';
|
|
28
28
|
import { invariant } from '@dxos/invariant';
|
|
29
29
|
import { type Keyring } from '@dxos/keyring';
|
|
@@ -226,7 +226,7 @@ export class DataSpaceManager {
|
|
|
226
226
|
},
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
-
const propertiesId =
|
|
229
|
+
const propertiesId = generateEchoId();
|
|
230
230
|
document.change((doc: SpaceDoc) => {
|
|
231
231
|
assignDeep(doc, ['objects', propertiesId], properties);
|
|
232
232
|
});
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const DXOS_VERSION = "0.5.9-main.
|
|
1
|
+
export const DXOS_VERSION = "0.5.9-main.bfee100";
|