@dxos/client-services 0.3.10 → 0.3.11-main.bd26370
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-J6BPJF5I.mjs → chunk-X5Z3WL7N.mjs} +20 -20
- package/dist/lib/browser/{chunk-J6BPJF5I.mjs.map → chunk-X5Z3WL7N.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +6 -6
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +2 -2
- package/dist/lib/node/{chunk-VZCQQ4BG.cjs → chunk-OLCLRX7U.cjs} +23 -23
- package/dist/lib/node/{chunk-VZCQQ4BG.cjs.map → chunk-OLCLRX7U.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +42 -42
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +9 -9
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/package.json +35 -35
- package/src/packlets/services/service-host.ts +1 -1
- package/src/version.ts +1 -5
package/dist/lib/node/index.cjs
CHANGED
|
@@ -18,45 +18,45 @@ 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
|
-
DataSpace: () =>
|
|
24
|
-
DataSpaceManager: () =>
|
|
25
|
-
DeviceInvitationProtocol: () =>
|
|
26
|
-
DevtoolsHostEvents: () =>
|
|
27
|
-
DevtoolsServiceImpl: () =>
|
|
21
|
+
ClientRpcServer: () => import_chunk_OLCLRX7U.ClientRpcServer,
|
|
22
|
+
ClientServicesHost: () => import_chunk_OLCLRX7U.ClientServicesHost,
|
|
23
|
+
DataSpace: () => import_chunk_OLCLRX7U.DataSpace,
|
|
24
|
+
DataSpaceManager: () => import_chunk_OLCLRX7U.DataSpaceManager,
|
|
25
|
+
DeviceInvitationProtocol: () => import_chunk_OLCLRX7U.DeviceInvitationProtocol,
|
|
26
|
+
DevtoolsHostEvents: () => import_chunk_OLCLRX7U.DevtoolsHostEvents,
|
|
27
|
+
DevtoolsServiceImpl: () => import_chunk_OLCLRX7U.DevtoolsServiceImpl,
|
|
28
28
|
IFrameHostRuntime: () => IFrameHostRuntime,
|
|
29
29
|
IFrameProxyRuntime: () => IFrameProxyRuntime,
|
|
30
|
-
Identity: () =>
|
|
31
|
-
IdentityManager: () =>
|
|
32
|
-
IdentityServiceImpl: () =>
|
|
33
|
-
InvitationsHandler: () =>
|
|
34
|
-
InvitationsServiceImpl: () =>
|
|
35
|
-
Lock: () =>
|
|
36
|
-
ServiceContext: () =>
|
|
37
|
-
ServiceRegistry: () =>
|
|
30
|
+
Identity: () => import_chunk_OLCLRX7U.Identity,
|
|
31
|
+
IdentityManager: () => import_chunk_OLCLRX7U.IdentityManager,
|
|
32
|
+
IdentityServiceImpl: () => import_chunk_OLCLRX7U.IdentityServiceImpl,
|
|
33
|
+
InvitationsHandler: () => import_chunk_OLCLRX7U.InvitationsHandler,
|
|
34
|
+
InvitationsServiceImpl: () => import_chunk_OLCLRX7U.InvitationsServiceImpl,
|
|
35
|
+
Lock: () => import_chunk_OLCLRX7U.Lock,
|
|
36
|
+
ServiceContext: () => import_chunk_OLCLRX7U.ServiceContext,
|
|
37
|
+
ServiceRegistry: () => import_chunk_OLCLRX7U.ServiceRegistry,
|
|
38
38
|
ShellRuntimeImpl: () => ShellRuntimeImpl,
|
|
39
|
-
SpaceInvitationProtocol: () =>
|
|
40
|
-
SpacesServiceImpl: () =>
|
|
41
|
-
TrustedKeySetAuthVerifier: () =>
|
|
39
|
+
SpaceInvitationProtocol: () => import_chunk_OLCLRX7U.SpaceInvitationProtocol,
|
|
40
|
+
SpacesServiceImpl: () => import_chunk_OLCLRX7U.SpacesServiceImpl,
|
|
41
|
+
TrustedKeySetAuthVerifier: () => import_chunk_OLCLRX7U.TrustedKeySetAuthVerifier,
|
|
42
42
|
WorkerRuntime: () => WorkerRuntime,
|
|
43
43
|
WorkerSession: () => WorkerSession,
|
|
44
|
-
createAuthProvider: () =>
|
|
45
|
-
createDefaultModelFactory: () =>
|
|
46
|
-
createDiagnostics: () =>
|
|
47
|
-
createStorageObjects: () =>
|
|
48
|
-
getNetworkPeers: () =>
|
|
49
|
-
isLocked: () =>
|
|
50
|
-
subscribeToFeedBlocks: () =>
|
|
51
|
-
subscribeToFeeds: () =>
|
|
52
|
-
subscribeToNetworkStatus: () =>
|
|
53
|
-
subscribeToNetworkTopics: () =>
|
|
54
|
-
subscribeToSignal: () =>
|
|
55
|
-
subscribeToSpaces: () =>
|
|
56
|
-
subscribeToSwarmInfo: () =>
|
|
44
|
+
createAuthProvider: () => import_chunk_OLCLRX7U.createAuthProvider,
|
|
45
|
+
createDefaultModelFactory: () => import_chunk_OLCLRX7U.createDefaultModelFactory,
|
|
46
|
+
createDiagnostics: () => import_chunk_OLCLRX7U.createDiagnostics,
|
|
47
|
+
createStorageObjects: () => import_chunk_OLCLRX7U.createStorageObjects,
|
|
48
|
+
getNetworkPeers: () => import_chunk_OLCLRX7U.getNetworkPeers,
|
|
49
|
+
isLocked: () => import_chunk_OLCLRX7U.isLocked,
|
|
50
|
+
subscribeToFeedBlocks: () => import_chunk_OLCLRX7U.subscribeToFeedBlocks,
|
|
51
|
+
subscribeToFeeds: () => import_chunk_OLCLRX7U.subscribeToFeeds,
|
|
52
|
+
subscribeToNetworkStatus: () => import_chunk_OLCLRX7U.subscribeToNetworkStatus,
|
|
53
|
+
subscribeToNetworkTopics: () => import_chunk_OLCLRX7U.subscribeToNetworkTopics,
|
|
54
|
+
subscribeToSignal: () => import_chunk_OLCLRX7U.subscribeToSignal,
|
|
55
|
+
subscribeToSpaces: () => import_chunk_OLCLRX7U.subscribeToSpaces,
|
|
56
|
+
subscribeToSwarmInfo: () => import_chunk_OLCLRX7U.subscribeToSwarmInfo
|
|
57
57
|
});
|
|
58
58
|
module.exports = __toCommonJS(node_exports);
|
|
59
|
-
var
|
|
59
|
+
var import_chunk_OLCLRX7U = require("./chunk-OLCLRX7U.cjs");
|
|
60
60
|
var import_async = require("@dxos/async");
|
|
61
61
|
var import_client_protocol = require("@dxos/client-protocol");
|
|
62
62
|
var import_context = require("@dxos/context");
|
|
@@ -87,7 +87,7 @@ var import_invariant2 = require("@dxos/invariant");
|
|
|
87
87
|
var import_log4 = require("@dxos/log");
|
|
88
88
|
var import_rpc3 = require("@dxos/rpc");
|
|
89
89
|
var import_util3 = require("@dxos/util");
|
|
90
|
-
var __dxlog_file = "/home/
|
|
90
|
+
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/shell-runtime.ts";
|
|
91
91
|
var ShellRuntimeImpl = class {
|
|
92
92
|
constructor(_port) {
|
|
93
93
|
this._port = _port;
|
|
@@ -158,7 +158,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
158
158
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
159
159
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
160
160
|
}
|
|
161
|
-
var __dxlog_file2 = "/home/
|
|
161
|
+
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts";
|
|
162
162
|
var LOCK_KEY = "DXOS_RESOURCE_LOCK";
|
|
163
163
|
var IFrameHostRuntime = class {
|
|
164
164
|
constructor({ config, origin, appPort, shellPort }) {
|
|
@@ -190,7 +190,7 @@ var IFrameHostRuntime = class {
|
|
|
190
190
|
iceServers: this._config.get("runtime.services.ice")
|
|
191
191
|
});
|
|
192
192
|
const signals = this._config.get("runtime.services.signaling");
|
|
193
|
-
this._clientServices = new
|
|
193
|
+
this._clientServices = new import_chunk_OLCLRX7U.ClientServicesHost({
|
|
194
194
|
lockKey: LOCK_KEY,
|
|
195
195
|
config: this._config,
|
|
196
196
|
signalManager: signals ? new import_messaging.WebsocketSignalManager(signals) : new import_messaging.MemorySignalManager(new import_messaging.MemorySignalManagerContext()),
|
|
@@ -216,7 +216,7 @@ var IFrameHostRuntime = class {
|
|
|
216
216
|
return handler(method, params);
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
|
-
this._clientRpc = new
|
|
219
|
+
this._clientRpc = new import_chunk_OLCLRX7U.ClientRpcServer({
|
|
220
220
|
serviceRegistry: this._clientServices.serviceRegistry,
|
|
221
221
|
port: this._appPort,
|
|
222
222
|
...middleware
|
|
@@ -264,7 +264,7 @@ var IFrameHostRuntime = class {
|
|
|
264
264
|
_ts_decorate([
|
|
265
265
|
import_log.logInfo
|
|
266
266
|
], IFrameHostRuntime.prototype, "origin", void 0);
|
|
267
|
-
var __dxlog_file3 = "/home/
|
|
267
|
+
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts";
|
|
268
268
|
var IFrameProxyRuntime = class {
|
|
269
269
|
constructor({ config, systemPort, shellPort }) {
|
|
270
270
|
this._id = String(Math.floor(Math.random() * 1e6));
|
|
@@ -341,7 +341,7 @@ function _ts_decorate2(decorators, target, key, desc) {
|
|
|
341
341
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
342
342
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
343
343
|
}
|
|
344
|
-
var __dxlog_file4 = "/home/
|
|
344
|
+
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/worker-session.ts";
|
|
345
345
|
var WorkerSession = class {
|
|
346
346
|
constructor({ serviceHost, systemPort, appPort, shellPort, readySignal }) {
|
|
347
347
|
this._startTrigger = new import_async5.Trigger();
|
|
@@ -376,12 +376,12 @@ var WorkerSession = class {
|
|
|
376
376
|
return handler(method, params);
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
this._clientRpc = new
|
|
379
|
+
this._clientRpc = new import_chunk_OLCLRX7U.ClientRpcServer({
|
|
380
380
|
serviceRegistry: this._serviceHost.serviceRegistry,
|
|
381
381
|
port: appPort,
|
|
382
382
|
...middleware
|
|
383
383
|
});
|
|
384
|
-
this._shellClientRpc = new
|
|
384
|
+
this._shellClientRpc = new import_chunk_OLCLRX7U.ClientRpcServer({
|
|
385
385
|
serviceRegistry: this._serviceHost.serviceRegistry,
|
|
386
386
|
port: shellPort,
|
|
387
387
|
...middleware
|
|
@@ -493,14 +493,14 @@ _ts_decorate2([
|
|
|
493
493
|
_ts_decorate2([
|
|
494
494
|
import_log4.logInfo
|
|
495
495
|
], WorkerSession.prototype, "lockKey", void 0);
|
|
496
|
-
var __dxlog_file5 = "/home/
|
|
496
|
+
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/worker-runtime.ts";
|
|
497
497
|
var WorkerRuntime = class {
|
|
498
498
|
constructor(_configProvider) {
|
|
499
499
|
this._configProvider = _configProvider;
|
|
500
500
|
this._transportFactory = new import_network_manager3.SimplePeerTransportProxyFactory();
|
|
501
501
|
this._ready = new import_async4.Trigger();
|
|
502
502
|
this._sessions = /* @__PURE__ */ new Set();
|
|
503
|
-
this._clientServices = new
|
|
503
|
+
this._clientServices = new import_chunk_OLCLRX7U.ClientServicesHost({
|
|
504
504
|
callbacks: {
|
|
505
505
|
onReset: async () => {
|
|
506
506
|
self.close();
|