@dxos/client-services 0.5.3-main.f752aaa → 0.5.3-next.2c59258
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-3ZUGGKNX.mjs → chunk-R3VORRTJ.mjs} +213 -87
- package/dist/lib/browser/chunk-R3VORRTJ.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 +1 -1
- package/dist/lib/node/{chunk-TQQUIYBW.cjs → chunk-VOYHS6QR.cjs} +221 -95
- package/dist/lib/node/chunk-VOYHS6QR.cjs.map +7 -0
- package/dist/lib/node/index.cjs +43 -43
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts +2 -1
- package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitation-protocol.d.ts +1 -0
- package/dist/types/src/packlets/invitations/invitation-protocol.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts +3 -2
- package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts +2 -0
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts +2 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/diagnostics/diagnostics.ts +1 -0
- package/src/packlets/identity/identity-manager.ts +1 -0
- package/src/packlets/identity/identity.test.ts +3 -0
- package/src/packlets/invitations/device-invitation-protocol.ts +5 -1
- package/src/packlets/invitations/invitation-protocol.ts +2 -0
- package/src/packlets/invitations/invitations-manager.ts +5 -0
- package/src/packlets/invitations/space-invitation-protocol.ts +29 -2
- package/src/packlets/spaces/data-space-manager.ts +65 -4
- package/src/packlets/spaces/data-space.ts +2 -0
- package/src/packlets/spaces/spaces-service.ts +46 -15
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-3ZUGGKNX.mjs.map +0 -7
- package/dist/lib/node/chunk-TQQUIYBW.cjs.map +0 -7
package/dist/lib/node/index.cjs
CHANGED
|
@@ -18,51 +18,51 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var node_exports = {};
|
|
20
20
|
__export(node_exports, {
|
|
21
|
-
ClientRpcServer: () =>
|
|
22
|
-
ClientServicesHost: () =>
|
|
23
|
-
ClientServicesProviderResource: () =>
|
|
24
|
-
DataSpace: () =>
|
|
25
|
-
DataSpaceManager: () =>
|
|
26
|
-
DeviceInvitationProtocol: () =>
|
|
27
|
-
DevtoolsHostEvents: () =>
|
|
28
|
-
DevtoolsServiceImpl: () =>
|
|
29
|
-
DiagnosticsCollector: () =>
|
|
21
|
+
ClientRpcServer: () => import_chunk_VOYHS6QR.ClientRpcServer,
|
|
22
|
+
ClientServicesHost: () => import_chunk_VOYHS6QR.ClientServicesHost,
|
|
23
|
+
ClientServicesProviderResource: () => import_chunk_VOYHS6QR.ClientServicesProviderResource,
|
|
24
|
+
DataSpace: () => import_chunk_VOYHS6QR.DataSpace,
|
|
25
|
+
DataSpaceManager: () => import_chunk_VOYHS6QR.DataSpaceManager,
|
|
26
|
+
DeviceInvitationProtocol: () => import_chunk_VOYHS6QR.DeviceInvitationProtocol,
|
|
27
|
+
DevtoolsHostEvents: () => import_chunk_VOYHS6QR.DevtoolsHostEvents,
|
|
28
|
+
DevtoolsServiceImpl: () => import_chunk_VOYHS6QR.DevtoolsServiceImpl,
|
|
29
|
+
DiagnosticsCollector: () => import_chunk_VOYHS6QR.DiagnosticsCollector,
|
|
30
30
|
IFrameHostRuntime: () => IFrameHostRuntime,
|
|
31
|
-
Identity: () =>
|
|
32
|
-
IdentityManager: () =>
|
|
33
|
-
IdentityServiceImpl: () =>
|
|
34
|
-
InvitationsHandler: () =>
|
|
35
|
-
InvitationsManager: () =>
|
|
36
|
-
InvitationsServiceImpl: () =>
|
|
37
|
-
Lock: () =>
|
|
38
|
-
ServiceContext: () =>
|
|
39
|
-
ServiceRegistry: () =>
|
|
31
|
+
Identity: () => import_chunk_VOYHS6QR.Identity,
|
|
32
|
+
IdentityManager: () => import_chunk_VOYHS6QR.IdentityManager,
|
|
33
|
+
IdentityServiceImpl: () => import_chunk_VOYHS6QR.IdentityServiceImpl,
|
|
34
|
+
InvitationsHandler: () => import_chunk_VOYHS6QR.InvitationsHandler,
|
|
35
|
+
InvitationsManager: () => import_chunk_VOYHS6QR.InvitationsManager,
|
|
36
|
+
InvitationsServiceImpl: () => import_chunk_VOYHS6QR.InvitationsServiceImpl,
|
|
37
|
+
Lock: () => import_chunk_VOYHS6QR.Lock,
|
|
38
|
+
ServiceContext: () => import_chunk_VOYHS6QR.ServiceContext,
|
|
39
|
+
ServiceRegistry: () => import_chunk_VOYHS6QR.ServiceRegistry,
|
|
40
40
|
SharedWorkerConnection: () => SharedWorkerConnection,
|
|
41
41
|
ShellRuntimeImpl: () => ShellRuntimeImpl,
|
|
42
|
-
SpaceInvitationProtocol: () =>
|
|
43
|
-
SpacesServiceImpl: () =>
|
|
44
|
-
TrustedKeySetAuthVerifier: () =>
|
|
42
|
+
SpaceInvitationProtocol: () => import_chunk_VOYHS6QR.SpaceInvitationProtocol,
|
|
43
|
+
SpacesServiceImpl: () => import_chunk_VOYHS6QR.SpacesServiceImpl,
|
|
44
|
+
TrustedKeySetAuthVerifier: () => import_chunk_VOYHS6QR.TrustedKeySetAuthVerifier,
|
|
45
45
|
WorkerRuntime: () => WorkerRuntime,
|
|
46
46
|
WorkerSession: () => WorkerSession,
|
|
47
|
-
createAdmissionKeypair: () =>
|
|
48
|
-
createAuthProvider: () =>
|
|
49
|
-
createCollectDiagnosticsBroadcastHandler: () =>
|
|
50
|
-
createCollectDiagnosticsBroadcastSender: () =>
|
|
51
|
-
createDiagnostics: () =>
|
|
52
|
-
createLevel: () =>
|
|
53
|
-
createStorageObjects: () =>
|
|
54
|
-
getNetworkPeers: () =>
|
|
55
|
-
isLocked: () =>
|
|
56
|
-
subscribeToFeedBlocks: () =>
|
|
57
|
-
subscribeToFeeds: () =>
|
|
58
|
-
subscribeToNetworkStatus: () =>
|
|
59
|
-
subscribeToNetworkTopics: () =>
|
|
60
|
-
subscribeToSignal: () =>
|
|
61
|
-
subscribeToSpaces: () =>
|
|
62
|
-
subscribeToSwarmInfo: () =>
|
|
47
|
+
createAdmissionKeypair: () => import_chunk_VOYHS6QR.createAdmissionKeypair,
|
|
48
|
+
createAuthProvider: () => import_chunk_VOYHS6QR.createAuthProvider,
|
|
49
|
+
createCollectDiagnosticsBroadcastHandler: () => import_chunk_VOYHS6QR.createCollectDiagnosticsBroadcastHandler,
|
|
50
|
+
createCollectDiagnosticsBroadcastSender: () => import_chunk_VOYHS6QR.createCollectDiagnosticsBroadcastSender,
|
|
51
|
+
createDiagnostics: () => import_chunk_VOYHS6QR.createDiagnostics,
|
|
52
|
+
createLevel: () => import_chunk_VOYHS6QR.createLevel,
|
|
53
|
+
createStorageObjects: () => import_chunk_VOYHS6QR.createStorageObjects,
|
|
54
|
+
getNetworkPeers: () => import_chunk_VOYHS6QR.getNetworkPeers,
|
|
55
|
+
isLocked: () => import_chunk_VOYHS6QR.isLocked,
|
|
56
|
+
subscribeToFeedBlocks: () => import_chunk_VOYHS6QR.subscribeToFeedBlocks,
|
|
57
|
+
subscribeToFeeds: () => import_chunk_VOYHS6QR.subscribeToFeeds,
|
|
58
|
+
subscribeToNetworkStatus: () => import_chunk_VOYHS6QR.subscribeToNetworkStatus,
|
|
59
|
+
subscribeToNetworkTopics: () => import_chunk_VOYHS6QR.subscribeToNetworkTopics,
|
|
60
|
+
subscribeToSignal: () => import_chunk_VOYHS6QR.subscribeToSignal,
|
|
61
|
+
subscribeToSpaces: () => import_chunk_VOYHS6QR.subscribeToSpaces,
|
|
62
|
+
subscribeToSwarmInfo: () => import_chunk_VOYHS6QR.subscribeToSwarmInfo
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(node_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_chunk_VOYHS6QR = require("./chunk-VOYHS6QR.cjs");
|
|
66
66
|
var import_async = require("@dxos/async");
|
|
67
67
|
var import_client_protocol = require("@dxos/client-protocol");
|
|
68
68
|
var import_context = require("@dxos/context");
|
|
@@ -226,7 +226,7 @@ var IFrameHostRuntime = class {
|
|
|
226
226
|
iceServers: this._config.get("runtime.services.ice")
|
|
227
227
|
});
|
|
228
228
|
const signals = this._config.get("runtime.services.signaling");
|
|
229
|
-
this._clientServices = new
|
|
229
|
+
this._clientServices = new import_chunk_VOYHS6QR.ClientServicesHost({
|
|
230
230
|
lockKey: LOCK_KEY,
|
|
231
231
|
config: this._config,
|
|
232
232
|
signalManager: signals ? new import_messaging.WebsocketSignalManager(signals) : new import_messaging.MemorySignalManager(new import_messaging.MemorySignalManagerContext()),
|
|
@@ -252,7 +252,7 @@ var IFrameHostRuntime = class {
|
|
|
252
252
|
return handler(method, params);
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
this._clientRpc = new
|
|
255
|
+
this._clientRpc = new import_chunk_VOYHS6QR.ClientRpcServer({
|
|
256
256
|
serviceRegistry: this._clientServices.serviceRegistry,
|
|
257
257
|
port: this._appPort,
|
|
258
258
|
...middleware
|
|
@@ -417,12 +417,12 @@ var WorkerSession = class {
|
|
|
417
417
|
return handler(method, params);
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
this._clientRpc = new
|
|
420
|
+
this._clientRpc = new import_chunk_VOYHS6QR.ClientRpcServer({
|
|
421
421
|
serviceRegistry: this._serviceHost.serviceRegistry,
|
|
422
422
|
port: appPort,
|
|
423
423
|
...middleware
|
|
424
424
|
});
|
|
425
|
-
this._shellClientRpc = shellPort ? new
|
|
425
|
+
this._shellClientRpc = shellPort ? new import_chunk_VOYHS6QR.ClientRpcServer({
|
|
426
426
|
serviceRegistry: this._serviceHost.serviceRegistry,
|
|
427
427
|
port: shellPort,
|
|
428
428
|
...middleware
|
|
@@ -549,7 +549,7 @@ var WorkerRuntime = class {
|
|
|
549
549
|
this._signalTelemetryEnabled = false;
|
|
550
550
|
this._acquireLock = acquireLock;
|
|
551
551
|
this._releaseLock = releaseLock;
|
|
552
|
-
this._clientServices = new
|
|
552
|
+
this._clientServices = new import_chunk_VOYHS6QR.ClientServicesHost({
|
|
553
553
|
callbacks: {
|
|
554
554
|
onReset: async () => onReset()
|
|
555
555
|
}
|