@dxos/client-services 0.5.9-main.bd82576 → 0.5.9-main.bf0ae3e
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-HBFVHMVG.mjs → chunk-4IR3JP4U.mjs} +746 -605
- package/dist/lib/browser/chunk-4IR3JP4U.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 +11 -11
- package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
- package/dist/lib/node/{chunk-HPSDBJ7Z.cjs → chunk-ZBIDLLZ4.cjs} +962 -825
- package/dist/lib/node/chunk-ZBIDLLZ4.cjs.map +7 -0
- package/dist/lib/node/index.cjs +42 -42
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +17 -17
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/identity/default-space-state-machine.d.ts +19 -0
- package/dist/types/src/packlets/identity/default-space-state-machine.d.ts.map +1 -0
- package/dist/types/src/packlets/identity/identity-service.d.ts +14 -7
- package/dist/types/src/packlets/identity/identity-service.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity.d.ts +4 -1
- package/dist/types/src/packlets/identity/identity.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts +5 -3
- 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/testing/test-builder.d.ts +8 -6
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/identity/default-space-state-machine.ts +44 -0
- package/src/packlets/identity/identity-service.test.ts +35 -5
- package/src/packlets/identity/identity-service.ts +50 -8
- package/src/packlets/identity/identity.ts +25 -2
- package/src/packlets/services/service-context.ts +1 -4
- package/src/packlets/services/service-host.ts +13 -40
- package/src/packlets/spaces/data-space-manager.test.ts +46 -1
- package/src/packlets/spaces/data-space-manager.ts +54 -25
- package/src/packlets/spaces/data-space.ts +10 -5
- package/src/packlets/testing/test-builder.ts +12 -10
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-HBFVHMVG.mjs.map +0 -7
- package/dist/lib/node/chunk-HPSDBJ7Z.cjs.map +0 -7
package/dist/lib/node/index.cjs
CHANGED
|
@@ -18,49 +18,49 @@ 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: () =>
|
|
30
|
-
Identity: () =>
|
|
31
|
-
IdentityManager: () =>
|
|
32
|
-
IdentityServiceImpl: () =>
|
|
33
|
-
InvitationsHandler: () =>
|
|
34
|
-
InvitationsManager: () =>
|
|
35
|
-
InvitationsServiceImpl: () =>
|
|
36
|
-
Lock: () =>
|
|
37
|
-
ServiceContext: () =>
|
|
38
|
-
ServiceRegistry: () =>
|
|
39
|
-
SpaceInvitationProtocol: () =>
|
|
40
|
-
SpacesServiceImpl: () =>
|
|
41
|
-
TrustedKeySetAuthVerifier: () =>
|
|
21
|
+
ClientRpcServer: () => import_chunk_ZBIDLLZ4.ClientRpcServer,
|
|
22
|
+
ClientServicesHost: () => import_chunk_ZBIDLLZ4.ClientServicesHost,
|
|
23
|
+
ClientServicesProviderResource: () => import_chunk_ZBIDLLZ4.ClientServicesProviderResource,
|
|
24
|
+
DataSpace: () => import_chunk_ZBIDLLZ4.DataSpace,
|
|
25
|
+
DataSpaceManager: () => import_chunk_ZBIDLLZ4.DataSpaceManager,
|
|
26
|
+
DeviceInvitationProtocol: () => import_chunk_ZBIDLLZ4.DeviceInvitationProtocol,
|
|
27
|
+
DevtoolsHostEvents: () => import_chunk_ZBIDLLZ4.DevtoolsHostEvents,
|
|
28
|
+
DevtoolsServiceImpl: () => import_chunk_ZBIDLLZ4.DevtoolsServiceImpl,
|
|
29
|
+
DiagnosticsCollector: () => import_chunk_ZBIDLLZ4.DiagnosticsCollector,
|
|
30
|
+
Identity: () => import_chunk_ZBIDLLZ4.Identity,
|
|
31
|
+
IdentityManager: () => import_chunk_ZBIDLLZ4.IdentityManager,
|
|
32
|
+
IdentityServiceImpl: () => import_chunk_ZBIDLLZ4.IdentityServiceImpl,
|
|
33
|
+
InvitationsHandler: () => import_chunk_ZBIDLLZ4.InvitationsHandler,
|
|
34
|
+
InvitationsManager: () => import_chunk_ZBIDLLZ4.InvitationsManager,
|
|
35
|
+
InvitationsServiceImpl: () => import_chunk_ZBIDLLZ4.InvitationsServiceImpl,
|
|
36
|
+
Lock: () => import_chunk_ZBIDLLZ4.Lock,
|
|
37
|
+
ServiceContext: () => import_chunk_ZBIDLLZ4.ServiceContext,
|
|
38
|
+
ServiceRegistry: () => import_chunk_ZBIDLLZ4.ServiceRegistry,
|
|
39
|
+
SpaceInvitationProtocol: () => import_chunk_ZBIDLLZ4.SpaceInvitationProtocol,
|
|
40
|
+
SpacesServiceImpl: () => import_chunk_ZBIDLLZ4.SpacesServiceImpl,
|
|
41
|
+
TrustedKeySetAuthVerifier: () => import_chunk_ZBIDLLZ4.TrustedKeySetAuthVerifier,
|
|
42
42
|
WorkerRuntime: () => WorkerRuntime,
|
|
43
43
|
WorkerSession: () => WorkerSession,
|
|
44
|
-
createAdmissionKeypair: () =>
|
|
45
|
-
createAuthProvider: () =>
|
|
46
|
-
createCollectDiagnosticsBroadcastHandler: () =>
|
|
47
|
-
createCollectDiagnosticsBroadcastSender: () =>
|
|
48
|
-
createDiagnostics: () =>
|
|
49
|
-
createLevel: () =>
|
|
50
|
-
createStorageObjects: () =>
|
|
51
|
-
findPropertiesObject: () =>
|
|
52
|
-
getNetworkPeers: () =>
|
|
53
|
-
isLocked: () =>
|
|
54
|
-
subscribeToFeedBlocks: () =>
|
|
55
|
-
subscribeToFeeds: () =>
|
|
56
|
-
subscribeToNetworkStatus: () =>
|
|
57
|
-
subscribeToNetworkTopics: () =>
|
|
58
|
-
subscribeToSignal: () =>
|
|
59
|
-
subscribeToSpaces: () =>
|
|
60
|
-
subscribeToSwarmInfo: () =>
|
|
44
|
+
createAdmissionKeypair: () => import_chunk_ZBIDLLZ4.createAdmissionKeypair,
|
|
45
|
+
createAuthProvider: () => import_chunk_ZBIDLLZ4.createAuthProvider,
|
|
46
|
+
createCollectDiagnosticsBroadcastHandler: () => import_chunk_ZBIDLLZ4.createCollectDiagnosticsBroadcastHandler,
|
|
47
|
+
createCollectDiagnosticsBroadcastSender: () => import_chunk_ZBIDLLZ4.createCollectDiagnosticsBroadcastSender,
|
|
48
|
+
createDiagnostics: () => import_chunk_ZBIDLLZ4.createDiagnostics,
|
|
49
|
+
createLevel: () => import_chunk_ZBIDLLZ4.createLevel,
|
|
50
|
+
createStorageObjects: () => import_chunk_ZBIDLLZ4.createStorageObjects,
|
|
51
|
+
findPropertiesObject: () => import_chunk_ZBIDLLZ4.findPropertiesObject,
|
|
52
|
+
getNetworkPeers: () => import_chunk_ZBIDLLZ4.getNetworkPeers,
|
|
53
|
+
isLocked: () => import_chunk_ZBIDLLZ4.isLocked,
|
|
54
|
+
subscribeToFeedBlocks: () => import_chunk_ZBIDLLZ4.subscribeToFeedBlocks,
|
|
55
|
+
subscribeToFeeds: () => import_chunk_ZBIDLLZ4.subscribeToFeeds,
|
|
56
|
+
subscribeToNetworkStatus: () => import_chunk_ZBIDLLZ4.subscribeToNetworkStatus,
|
|
57
|
+
subscribeToNetworkTopics: () => import_chunk_ZBIDLLZ4.subscribeToNetworkTopics,
|
|
58
|
+
subscribeToSignal: () => import_chunk_ZBIDLLZ4.subscribeToSignal,
|
|
59
|
+
subscribeToSpaces: () => import_chunk_ZBIDLLZ4.subscribeToSpaces,
|
|
60
|
+
subscribeToSwarmInfo: () => import_chunk_ZBIDLLZ4.subscribeToSwarmInfo
|
|
61
61
|
});
|
|
62
62
|
module.exports = __toCommonJS(node_exports);
|
|
63
|
-
var
|
|
63
|
+
var import_chunk_ZBIDLLZ4 = require("./chunk-ZBIDLLZ4.cjs");
|
|
64
64
|
var import_async = require("@dxos/async");
|
|
65
65
|
var import_context = require("@dxos/context");
|
|
66
66
|
var import_invariant = require("@dxos/invariant");
|
|
@@ -118,12 +118,12 @@ var WorkerSession = class {
|
|
|
118
118
|
return handler(method, params);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
this._clientRpc = new
|
|
121
|
+
this._clientRpc = new import_chunk_ZBIDLLZ4.ClientRpcServer({
|
|
122
122
|
serviceRegistry: this._serviceHost.serviceRegistry,
|
|
123
123
|
port: appPort,
|
|
124
124
|
...middleware
|
|
125
125
|
});
|
|
126
|
-
this._shellClientRpc = shellPort ? new
|
|
126
|
+
this._shellClientRpc = shellPort ? new import_chunk_ZBIDLLZ4.ClientRpcServer({
|
|
127
127
|
serviceRegistry: this._serviceHost.serviceRegistry,
|
|
128
128
|
port: shellPort,
|
|
129
129
|
...middleware
|
|
@@ -250,7 +250,7 @@ var WorkerRuntime = class {
|
|
|
250
250
|
this._signalTelemetryEnabled = false;
|
|
251
251
|
this._acquireLock = acquireLock;
|
|
252
252
|
this._releaseLock = releaseLock;
|
|
253
|
-
this._clientServices = new
|
|
253
|
+
this._clientServices = new import_chunk_ZBIDLLZ4.ClientServicesHost({
|
|
254
254
|
callbacks: {
|
|
255
255
|
onReset: async () => onReset()
|
|
256
256
|
}
|