@dxos/client-services 0.5.8 → 0.5.9-main.8359215
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-JECXTGZA.mjs → chunk-QNCZI356.mjs} +34 -27
- package/dist/lib/browser/chunk-QNCZI356.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 +4 -4
- package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
- package/dist/lib/node/{chunk-OR7LRWDY.cjs → chunk-ELQ5XXZX.cjs} +34 -27
- package/dist/lib/node/chunk-ELQ5XXZX.cjs.map +7 -0
- package/dist/lib/node/index.cjs +44 -44
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +10 -10
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/devtools/network.d.ts +4 -4
- package/dist/types/src/packlets/devtools/network.d.ts.map +1 -1
- package/dist/types/src/packlets/network/network-service.d.ts +2 -2
- package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts +4 -5
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +1 -0
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +3 -3
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/package.json +36 -36
- package/src/packlets/devtools/network.ts +4 -4
- package/src/packlets/identity/identity-manager.test.ts +2 -2
- package/src/packlets/identity/identity.test.ts +8 -4
- package/src/packlets/invitations/invitations-handler.ts +2 -2
- package/src/packlets/network/network-service.ts +2 -2
- package/src/packlets/services/service-context.ts +3 -3
- package/src/packlets/services/service-host.ts +6 -7
- package/src/packlets/spaces/data-space.ts +11 -1
- package/src/packlets/spaces/spaces-service.ts +1 -0
- package/src/packlets/testing/test-builder.ts +4 -4
- package/src/version.ts +1 -5
- package/dist/lib/browser/chunk-JECXTGZA.mjs.map +0 -7
- package/dist/lib/node/chunk-OR7LRWDY.cjs.map +0 -7
package/dist/lib/node/index.cjs
CHANGED
|
@@ -18,52 +18,52 @@ 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_ELQ5XXZX.ClientRpcServer,
|
|
22
|
+
ClientServicesHost: () => import_chunk_ELQ5XXZX.ClientServicesHost,
|
|
23
|
+
ClientServicesProviderResource: () => import_chunk_ELQ5XXZX.ClientServicesProviderResource,
|
|
24
|
+
DataSpace: () => import_chunk_ELQ5XXZX.DataSpace,
|
|
25
|
+
DataSpaceManager: () => import_chunk_ELQ5XXZX.DataSpaceManager,
|
|
26
|
+
DeviceInvitationProtocol: () => import_chunk_ELQ5XXZX.DeviceInvitationProtocol,
|
|
27
|
+
DevtoolsHostEvents: () => import_chunk_ELQ5XXZX.DevtoolsHostEvents,
|
|
28
|
+
DevtoolsServiceImpl: () => import_chunk_ELQ5XXZX.DevtoolsServiceImpl,
|
|
29
|
+
DiagnosticsCollector: () => import_chunk_ELQ5XXZX.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_ELQ5XXZX.Identity,
|
|
32
|
+
IdentityManager: () => import_chunk_ELQ5XXZX.IdentityManager,
|
|
33
|
+
IdentityServiceImpl: () => import_chunk_ELQ5XXZX.IdentityServiceImpl,
|
|
34
|
+
InvitationsHandler: () => import_chunk_ELQ5XXZX.InvitationsHandler,
|
|
35
|
+
InvitationsManager: () => import_chunk_ELQ5XXZX.InvitationsManager,
|
|
36
|
+
InvitationsServiceImpl: () => import_chunk_ELQ5XXZX.InvitationsServiceImpl,
|
|
37
|
+
Lock: () => import_chunk_ELQ5XXZX.Lock,
|
|
38
|
+
ServiceContext: () => import_chunk_ELQ5XXZX.ServiceContext,
|
|
39
|
+
ServiceRegistry: () => import_chunk_ELQ5XXZX.ServiceRegistry,
|
|
40
40
|
SharedWorkerConnection: () => SharedWorkerConnection,
|
|
41
41
|
ShellRuntimeImpl: () => ShellRuntimeImpl,
|
|
42
|
-
SpaceInvitationProtocol: () =>
|
|
43
|
-
SpacesServiceImpl: () =>
|
|
44
|
-
TrustedKeySetAuthVerifier: () =>
|
|
42
|
+
SpaceInvitationProtocol: () => import_chunk_ELQ5XXZX.SpaceInvitationProtocol,
|
|
43
|
+
SpacesServiceImpl: () => import_chunk_ELQ5XXZX.SpacesServiceImpl,
|
|
44
|
+
TrustedKeySetAuthVerifier: () => import_chunk_ELQ5XXZX.TrustedKeySetAuthVerifier,
|
|
45
45
|
WorkerRuntime: () => WorkerRuntime,
|
|
46
46
|
WorkerSession: () => WorkerSession,
|
|
47
|
-
createAdmissionKeypair: () =>
|
|
48
|
-
createAuthProvider: () =>
|
|
49
|
-
createCollectDiagnosticsBroadcastHandler: () =>
|
|
50
|
-
createCollectDiagnosticsBroadcastSender: () =>
|
|
51
|
-
createDiagnostics: () =>
|
|
52
|
-
createLevel: () =>
|
|
53
|
-
createStorageObjects: () =>
|
|
54
|
-
findPropertiesObject: () =>
|
|
55
|
-
getNetworkPeers: () =>
|
|
56
|
-
isLocked: () =>
|
|
57
|
-
subscribeToFeedBlocks: () =>
|
|
58
|
-
subscribeToFeeds: () =>
|
|
59
|
-
subscribeToNetworkStatus: () =>
|
|
60
|
-
subscribeToNetworkTopics: () =>
|
|
61
|
-
subscribeToSignal: () =>
|
|
62
|
-
subscribeToSpaces: () =>
|
|
63
|
-
subscribeToSwarmInfo: () =>
|
|
47
|
+
createAdmissionKeypair: () => import_chunk_ELQ5XXZX.createAdmissionKeypair,
|
|
48
|
+
createAuthProvider: () => import_chunk_ELQ5XXZX.createAuthProvider,
|
|
49
|
+
createCollectDiagnosticsBroadcastHandler: () => import_chunk_ELQ5XXZX.createCollectDiagnosticsBroadcastHandler,
|
|
50
|
+
createCollectDiagnosticsBroadcastSender: () => import_chunk_ELQ5XXZX.createCollectDiagnosticsBroadcastSender,
|
|
51
|
+
createDiagnostics: () => import_chunk_ELQ5XXZX.createDiagnostics,
|
|
52
|
+
createLevel: () => import_chunk_ELQ5XXZX.createLevel,
|
|
53
|
+
createStorageObjects: () => import_chunk_ELQ5XXZX.createStorageObjects,
|
|
54
|
+
findPropertiesObject: () => import_chunk_ELQ5XXZX.findPropertiesObject,
|
|
55
|
+
getNetworkPeers: () => import_chunk_ELQ5XXZX.getNetworkPeers,
|
|
56
|
+
isLocked: () => import_chunk_ELQ5XXZX.isLocked,
|
|
57
|
+
subscribeToFeedBlocks: () => import_chunk_ELQ5XXZX.subscribeToFeedBlocks,
|
|
58
|
+
subscribeToFeeds: () => import_chunk_ELQ5XXZX.subscribeToFeeds,
|
|
59
|
+
subscribeToNetworkStatus: () => import_chunk_ELQ5XXZX.subscribeToNetworkStatus,
|
|
60
|
+
subscribeToNetworkTopics: () => import_chunk_ELQ5XXZX.subscribeToNetworkTopics,
|
|
61
|
+
subscribeToSignal: () => import_chunk_ELQ5XXZX.subscribeToSignal,
|
|
62
|
+
subscribeToSpaces: () => import_chunk_ELQ5XXZX.subscribeToSpaces,
|
|
63
|
+
subscribeToSwarmInfo: () => import_chunk_ELQ5XXZX.subscribeToSwarmInfo
|
|
64
64
|
});
|
|
65
65
|
module.exports = __toCommonJS(node_exports);
|
|
66
|
-
var
|
|
66
|
+
var import_chunk_ELQ5XXZX = require("./chunk-ELQ5XXZX.cjs");
|
|
67
67
|
var import_async = require("@dxos/async");
|
|
68
68
|
var import_client_protocol = require("@dxos/client-protocol");
|
|
69
69
|
var import_context = require("@dxos/context");
|
|
@@ -227,7 +227,7 @@ var IFrameHostRuntime = class {
|
|
|
227
227
|
iceServers: this._config.get("runtime.services.ice")
|
|
228
228
|
});
|
|
229
229
|
const signals = this._config.get("runtime.services.signaling");
|
|
230
|
-
this._clientServices = new
|
|
230
|
+
this._clientServices = new import_chunk_ELQ5XXZX.ClientServicesHost({
|
|
231
231
|
lockKey: LOCK_KEY,
|
|
232
232
|
config: this._config,
|
|
233
233
|
signalManager: signals ? new import_messaging.WebsocketSignalManager(signals) : new import_messaging.MemorySignalManager(new import_messaging.MemorySignalManagerContext()),
|
|
@@ -253,7 +253,7 @@ var IFrameHostRuntime = class {
|
|
|
253
253
|
return handler(method, params);
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
|
-
this._clientRpc = new
|
|
256
|
+
this._clientRpc = new import_chunk_ELQ5XXZX.ClientRpcServer({
|
|
257
257
|
serviceRegistry: this._clientServices.serviceRegistry,
|
|
258
258
|
port: this._appPort,
|
|
259
259
|
...middleware
|
|
@@ -418,12 +418,12 @@ var WorkerSession = class {
|
|
|
418
418
|
return handler(method, params);
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
this._clientRpc = new
|
|
421
|
+
this._clientRpc = new import_chunk_ELQ5XXZX.ClientRpcServer({
|
|
422
422
|
serviceRegistry: this._serviceHost.serviceRegistry,
|
|
423
423
|
port: appPort,
|
|
424
424
|
...middleware
|
|
425
425
|
});
|
|
426
|
-
this._shellClientRpc = shellPort ? new
|
|
426
|
+
this._shellClientRpc = shellPort ? new import_chunk_ELQ5XXZX.ClientRpcServer({
|
|
427
427
|
serviceRegistry: this._serviceHost.serviceRegistry,
|
|
428
428
|
port: shellPort,
|
|
429
429
|
...middleware
|
|
@@ -550,7 +550,7 @@ var WorkerRuntime = class {
|
|
|
550
550
|
this._signalTelemetryEnabled = false;
|
|
551
551
|
this._acquireLock = acquireLock;
|
|
552
552
|
this._releaseLock = releaseLock;
|
|
553
|
-
this._clientServices = new
|
|
553
|
+
this._clientServices = new import_chunk_ELQ5XXZX.ClientServicesHost({
|
|
554
554
|
callbacks: {
|
|
555
555
|
onReset: async () => onReset()
|
|
556
556
|
}
|