@dxos/client-services 0.6.12-main.c4a728f → 0.6.12-main.ed7cda7
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-BAV44MSY.mjs → chunk-VENIOUQ4.mjs} +2 -2
- package/dist/lib/browser/{chunk-BAV44MSY.mjs.map → chunk-VENIOUQ4.mjs.map} +1 -1
- 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-KSDDPS63.cjs → chunk-US3NPCS5.cjs} +5 -5
- package/dist/lib/node/{chunk-KSDDPS63.cjs.map → chunk-US3NPCS5.cjs.map} +1 -1
- 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/lib/node-esm/{chunk-UMKX2SNB.mjs → chunk-LV7T6HCX.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-UMKX2SNB.mjs.map → chunk-LV7T6HCX.mjs.map} +1 -1
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +38 -38
- package/src/version.ts +1 -1
|
@@ -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_US3NPCS5 = require("../chunk-US3NPCS5.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");
|
|
@@ -228,7 +228,7 @@ var createInvitation = async (host, options) => {
|
|
|
228
228
|
authMethod: import_services.Invitation.AuthMethod.NONE,
|
|
229
229
|
...options ?? {}
|
|
230
230
|
};
|
|
231
|
-
if (host instanceof
|
|
231
|
+
if (host instanceof import_chunk_US3NPCS5.ServiceContext) {
|
|
232
232
|
return host.invitationsManager.createInvitation({
|
|
233
233
|
kind: import_services.Invitation.Kind.SPACE,
|
|
234
234
|
...options
|
|
@@ -238,7 +238,7 @@ var createInvitation = async (host, options) => {
|
|
|
238
238
|
};
|
|
239
239
|
var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
|
|
240
240
|
invitation = sanitizeInvitation(invitation);
|
|
241
|
-
if (guest instanceof
|
|
241
|
+
if (guest instanceof import_chunk_US3NPCS5.ServiceContext) {
|
|
242
242
|
return guest.invitationsManager.acceptInvitation({
|
|
243
243
|
invitation,
|
|
244
244
|
deviceProfile: guestDeviceProfile
|
|
@@ -248,7 +248,7 @@ var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
|
|
|
248
248
|
};
|
|
249
249
|
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/testing/test-builder.ts";
|
|
250
250
|
var createServiceHost = (config, signalManagerContext) => {
|
|
251
|
-
return new
|
|
251
|
+
return new import_chunk_US3NPCS5.ClientServicesHost({
|
|
252
252
|
config,
|
|
253
253
|
signalManager: new import_messaging.MemorySignalManager(signalManagerContext),
|
|
254
254
|
transportFactory: import_network_manager.MemoryTransportFactory
|
|
@@ -267,7 +267,7 @@ var createServiceContext = async ({ signalManagerFactory = async () => {
|
|
|
267
267
|
});
|
|
268
268
|
const level = (0, import_testing.createTestLevel)();
|
|
269
269
|
await level.open();
|
|
270
|
-
return new
|
|
270
|
+
return new import_chunk_US3NPCS5.ServiceContext(storage, level, networkManager, signalManager, void 0, {
|
|
271
271
|
invitationConnectionDefaultParams: {
|
|
272
272
|
controlHeartbeatInterval: 200
|
|
273
273
|
},
|
|
@@ -376,7 +376,7 @@ var TestPeer = class {
|
|
|
376
376
|
return this._props.meshEchoReplicator ??= new import_echo_pipeline.MeshEchoReplicator();
|
|
377
377
|
}
|
|
378
378
|
get dataSpaceManager() {
|
|
379
|
-
return this._props.dataSpaceManager ??= new
|
|
379
|
+
return this._props.dataSpaceManager ??= new import_chunk_US3NPCS5.DataSpaceManager({
|
|
380
380
|
spaceManager: this.spaceManager,
|
|
381
381
|
metadataStore: this.metadataStore,
|
|
382
382
|
keyring: this.keyring,
|
|
@@ -391,9 +391,9 @@ var TestPeer = class {
|
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
get invitationsManager() {
|
|
394
|
-
return this._props.invitationsManager ??= new
|
|
394
|
+
return this._props.invitationsManager ??= new import_chunk_US3NPCS5.InvitationsManager(new import_chunk_US3NPCS5.InvitationsHandler(this.networkManager), (invitation) => {
|
|
395
395
|
if (invitation.kind === import_services2.Invitation.Kind.SPACE) {
|
|
396
|
-
return new
|
|
396
|
+
return new import_chunk_US3NPCS5.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
|
|
397
397
|
} else {
|
|
398
398
|
throw new Error("not implemented");
|
|
399
399
|
}
|
|
@@ -397,7 +397,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
|
|
|
397
397
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
398
398
|
|
|
399
399
|
// packages/sdk/client-services/src/version.ts
|
|
400
|
-
var DXOS_VERSION = "0.6.12-main.
|
|
400
|
+
var DXOS_VERSION = "0.6.12-main.ed7cda7";
|
|
401
401
|
|
|
402
402
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
403
403
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -7806,4 +7806,4 @@ export {
|
|
|
7806
7806
|
importProfileData,
|
|
7807
7807
|
ClientServicesHost
|
|
7808
7808
|
};
|
|
7809
|
-
//# sourceMappingURL=chunk-
|
|
7809
|
+
//# sourceMappingURL=chunk-LV7T6HCX.mjs.map
|