@dxos/client-services 0.6.10-staging.df1ee5d → 0.6.10
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-PQMHKSUW.mjs → chunk-TQ5IZHJI.mjs} +2 -2
- package/dist/lib/browser/chunk-TQ5IZHJI.mjs.map +7 -0
- 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/{chunk-MAYFURC7.cjs → chunk-OIDNSFEU.cjs} +5 -5
- package/dist/lib/node/chunk-OIDNSFEU.cjs.map +7 -0
- package/dist/lib/node/index.cjs +45 -45
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +8 -8
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/package.json +37 -37
- package/src/version.ts +5 -1
- package/dist/lib/browser/chunk-PQMHKSUW.mjs.map +0 -7
- package/dist/lib/node/chunk-MAYFURC7.cjs.map +0 -7
|
@@ -32,7 +32,7 @@ __export(testing_exports, {
|
|
|
32
32
|
sanitizeInvitation: () => sanitizeInvitation
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(testing_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_OIDNSFEU = require("../chunk-OIDNSFEU.cjs");
|
|
36
36
|
var import_credentials = require("@dxos/credentials");
|
|
37
37
|
var import_keys = require("@dxos/keys");
|
|
38
38
|
var import_async = require("@dxos/async");
|
|
@@ -229,7 +229,7 @@ var createInvitation = async (host, options) => {
|
|
|
229
229
|
authMethod: import_services.Invitation.AuthMethod.NONE,
|
|
230
230
|
...options ?? {}
|
|
231
231
|
};
|
|
232
|
-
if (host instanceof
|
|
232
|
+
if (host instanceof import_chunk_OIDNSFEU.ServiceContext) {
|
|
233
233
|
return host.invitationsManager.createInvitation({
|
|
234
234
|
kind: import_services.Invitation.Kind.SPACE,
|
|
235
235
|
...options
|
|
@@ -239,7 +239,7 @@ var createInvitation = async (host, options) => {
|
|
|
239
239
|
};
|
|
240
240
|
var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
|
|
241
241
|
invitation = sanitizeInvitation(invitation);
|
|
242
|
-
if (guest instanceof
|
|
242
|
+
if (guest instanceof import_chunk_OIDNSFEU.ServiceContext) {
|
|
243
243
|
return guest.invitationsManager.acceptInvitation({
|
|
244
244
|
invitation,
|
|
245
245
|
deviceProfile: guestDeviceProfile
|
|
@@ -249,7 +249,7 @@ var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
|
|
|
249
249
|
};
|
|
250
250
|
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/testing/test-builder.ts";
|
|
251
251
|
var createServiceHost = (config, signalManagerContext) => {
|
|
252
|
-
return new
|
|
252
|
+
return new import_chunk_OIDNSFEU.ClientServicesHost({
|
|
253
253
|
config,
|
|
254
254
|
signalManager: new import_messaging.MemorySignalManager(signalManagerContext),
|
|
255
255
|
transportFactory: import_network_manager.MemoryTransportFactory
|
|
@@ -268,7 +268,7 @@ var createServiceContext = async ({ signalManagerFactory = async () => {
|
|
|
268
268
|
});
|
|
269
269
|
const level = (0, import_testing.createTestLevel)();
|
|
270
270
|
await level.open();
|
|
271
|
-
return new
|
|
271
|
+
return new import_chunk_OIDNSFEU.ServiceContext(storage, level, networkManager, signalManager, void 0, {
|
|
272
272
|
invitationConnectionDefaultParams: {
|
|
273
273
|
controlHeartbeatInterval: 200
|
|
274
274
|
},
|
|
@@ -377,7 +377,7 @@ var TestPeer = class {
|
|
|
377
377
|
return this._props.meshEchoReplicator ??= new import_echo_pipeline.MeshEchoReplicator();
|
|
378
378
|
}
|
|
379
379
|
get dataSpaceManager() {
|
|
380
|
-
return this._props.dataSpaceManager ??= new
|
|
380
|
+
return this._props.dataSpaceManager ??= new import_chunk_OIDNSFEU.DataSpaceManager({
|
|
381
381
|
spaceManager: this.spaceManager,
|
|
382
382
|
metadataStore: this.metadataStore,
|
|
383
383
|
keyring: this.keyring,
|
|
@@ -392,9 +392,9 @@ var TestPeer = class {
|
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
get invitationsManager() {
|
|
395
|
-
return this._props.invitationsManager ??= new
|
|
395
|
+
return this._props.invitationsManager ??= new import_chunk_OIDNSFEU.InvitationsManager(new import_chunk_OIDNSFEU.InvitationsHandler(this.networkManager), (invitation) => {
|
|
396
396
|
if (invitation.kind === import_services2.Invitation.Kind.SPACE) {
|
|
397
|
-
return new
|
|
397
|
+
return new import_chunk_OIDNSFEU.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
|
|
398
398
|
} else {
|
|
399
399
|
throw new Error("not implemented");
|
|
400
400
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DXOS_VERSION = "0.6.10
|
|
1
|
+
export declare const DXOS_VERSION = "0.6.10";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/client-services",
|
|
3
|
-
"version": "0.6.10
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "DXOS client services implementation",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -45,46 +45,46 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"cbor-x": "^1.5.4",
|
|
47
47
|
"platform": "^1.3.6",
|
|
48
|
-
"@dxos/async": "0.6.10
|
|
49
|
-
"@dxos/client-protocol": "0.6.10
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/config": "0.6.10
|
|
53
|
-
"@dxos/context": "0.6.10
|
|
54
|
-
"@dxos/credentials": "0.6.10
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/echo-protocol": "0.6.10
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/echo-
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/feed-store": "0.6.10
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/keyring": "0.6.10
|
|
65
|
-
"@dxos/invariant": "0.6.10
|
|
66
|
-
"@dxos/keys": "0.6.10
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/node-std": "0.6.10
|
|
73
|
-
"@dxos/protocols": "0.6.10
|
|
74
|
-
"@dxos/random-access-storage": "0.6.10
|
|
75
|
-
"@dxos/rpc": "0.6.10
|
|
76
|
-
"@dxos/teleport": "0.6.10
|
|
77
|
-
"@dxos/teleport-extension-gossip": "0.6.10
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/tracing": "0.6.10
|
|
81
|
-
"@dxos/util": "0.6.10
|
|
82
|
-
"@dxos/websocket-rpc": "0.6.10
|
|
48
|
+
"@dxos/async": "0.6.10",
|
|
49
|
+
"@dxos/client-protocol": "0.6.10",
|
|
50
|
+
"@dxos/automerge": "0.6.10",
|
|
51
|
+
"@dxos/codec-protobuf": "0.6.10",
|
|
52
|
+
"@dxos/config": "0.6.10",
|
|
53
|
+
"@dxos/context": "0.6.10",
|
|
54
|
+
"@dxos/credentials": "0.6.10",
|
|
55
|
+
"@dxos/crypto": "0.6.10",
|
|
56
|
+
"@dxos/echo-db": "0.6.10",
|
|
57
|
+
"@dxos/echo-protocol": "0.6.10",
|
|
58
|
+
"@dxos/debug": "0.6.10",
|
|
59
|
+
"@dxos/echo-pipeline": "0.6.10",
|
|
60
|
+
"@dxos/echo-schema": "0.6.10",
|
|
61
|
+
"@dxos/feed-store": "0.6.10",
|
|
62
|
+
"@dxos/indexing": "0.6.10",
|
|
63
|
+
"@dxos/edge-client": "0.6.10",
|
|
64
|
+
"@dxos/keyring": "0.6.10",
|
|
65
|
+
"@dxos/invariant": "0.6.10",
|
|
66
|
+
"@dxos/keys": "0.6.10",
|
|
67
|
+
"@dxos/kv-store": "0.6.10",
|
|
68
|
+
"@dxos/log": "0.6.10",
|
|
69
|
+
"@dxos/lock-file": "0.6.10",
|
|
70
|
+
"@dxos/messaging": "0.6.10",
|
|
71
|
+
"@dxos/network-manager": "0.6.10",
|
|
72
|
+
"@dxos/node-std": "0.6.10",
|
|
73
|
+
"@dxos/protocols": "0.6.10",
|
|
74
|
+
"@dxos/random-access-storage": "0.6.10",
|
|
75
|
+
"@dxos/rpc": "0.6.10",
|
|
76
|
+
"@dxos/teleport": "0.6.10",
|
|
77
|
+
"@dxos/teleport-extension-gossip": "0.6.10",
|
|
78
|
+
"@dxos/teleport-extension-object-sync": "0.6.10",
|
|
79
|
+
"@dxos/timeframe": "0.6.10",
|
|
80
|
+
"@dxos/tracing": "0.6.10",
|
|
81
|
+
"@dxos/util": "0.6.10",
|
|
82
|
+
"@dxos/websocket-rpc": "0.6.10"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@types/platform": "^1.3.4",
|
|
86
86
|
"@types/readable-stream": "^2.3.9",
|
|
87
|
-
"@dxos/signal": "0.6.10
|
|
87
|
+
"@dxos/signal": "0.6.10"
|
|
88
88
|
},
|
|
89
89
|
"publishConfig": {
|
|
90
90
|
"access": "public"
|
package/src/version.ts
CHANGED