@dxos/client-services 0.1.28 → 0.1.30-next.7c60cd3
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-OTSGRZZI.mjs → chunk-JLLUQQXD.mjs} +29 -9
- package/dist/lib/browser/{chunk-OTSGRZZI.mjs.map → chunk-JLLUQQXD.mjs.map} +4 -4
- package/dist/lib/browser/index.mjs +3 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +28 -7
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +26 -7
- package/dist/lib/node/packlets/testing/index.cjs.map +4 -4
- package/dist/types/src/packlets/devices/devices-service.test.d.ts +2 -0
- package/dist/types/src/packlets/devices/devices-service.test.d.ts.map +1 -0
- package/dist/types/src/packlets/identity/identity-service.test.d.ts +2 -0
- package/dist/types/src/packlets/identity/identity-service.test.d.ts.map +1 -0
- package/dist/types/src/packlets/network/network-service.test.d.ts +2 -0
- package/dist/types/src/packlets/network/network-service.test.d.ts.map +1 -0
- package/dist/types/src/packlets/services/index.d.ts +1 -0
- package/dist/types/src/packlets/services/index.d.ts.map +1 -1
- package/dist/types/src/packlets/services/local-client-services.d.ts +15 -0
- package/dist/types/src/packlets/services/local-client-services.d.ts.map +1 -0
- package/dist/types/src/packlets/services/service-host.d.ts +3 -4
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.test.d.ts +2 -0
- package/dist/types/src/packlets/spaces/spaces-service.test.d.ts.map +1 -0
- package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts +2 -2
- package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts.map +1 -1
- package/package.json +29 -29
- package/src/packlets/devices/devices-service.test.ts +56 -0
- package/src/packlets/identity/identity-service.test.ts +82 -0
- package/src/packlets/network/network-service.test.ts +52 -0
- package/src/packlets/services/index.ts +1 -0
- package/src/packlets/services/local-client-services.ts +35 -0
- package/src/packlets/services/service-host.ts +3 -3
- package/src/packlets/spaces/data-space-manager.ts +1 -1
- package/src/packlets/spaces/spaces-service.test.ts +107 -0
- package/src/packlets/vault/iframe-host-runtime.ts +5 -3
|
@@ -2587,7 +2587,7 @@ var DataSpaceManager = class DataSpaceManager2 {
|
|
|
2587
2587
|
const presence = new Presence({
|
|
2588
2588
|
localPeerId: this._signingContext.deviceKey,
|
|
2589
2589
|
announceInterval: 1e3,
|
|
2590
|
-
offlineTimeout:
|
|
2590
|
+
offlineTimeout: 1e4,
|
|
2591
2591
|
identityKey: this._signingContext.identityKey
|
|
2592
2592
|
});
|
|
2593
2593
|
const snapshotManager = new SnapshotManager(this._snapshotStore);
|
|
@@ -3904,6 +3904,25 @@ var ClientServicesProxy = class {
|
|
|
3904
3904
|
}
|
|
3905
3905
|
};
|
|
3906
3906
|
|
|
3907
|
+
// packages/sdk/client-services/src/packlets/services/local-client-services.ts
|
|
3908
|
+
var LocalClientServices = class {
|
|
3909
|
+
constructor(params) {
|
|
3910
|
+
this._host = new ClientServicesHost(params);
|
|
3911
|
+
}
|
|
3912
|
+
get descriptors() {
|
|
3913
|
+
return this._host.descriptors;
|
|
3914
|
+
}
|
|
3915
|
+
get services() {
|
|
3916
|
+
return this._host.services;
|
|
3917
|
+
}
|
|
3918
|
+
async open() {
|
|
3919
|
+
await this._host.open();
|
|
3920
|
+
}
|
|
3921
|
+
async close() {
|
|
3922
|
+
await this._host.close();
|
|
3923
|
+
}
|
|
3924
|
+
};
|
|
3925
|
+
|
|
3907
3926
|
// packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts
|
|
3908
3927
|
var __decorate4 = function(decorators, target, key, desc) {
|
|
3909
3928
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -3948,14 +3967,14 @@ var IFrameHostRuntime = class {
|
|
|
3948
3967
|
var _a;
|
|
3949
3968
|
log17("starting...", {}, {
|
|
3950
3969
|
file: "iframe-host-runtime.ts",
|
|
3951
|
-
line:
|
|
3970
|
+
line: 83,
|
|
3952
3971
|
scope: this,
|
|
3953
3972
|
callSite: (f, a) => f(...a)
|
|
3954
3973
|
});
|
|
3955
3974
|
try {
|
|
3956
3975
|
this._config = await getAsyncValue(this._configProvider);
|
|
3957
3976
|
const signalServer = this._config.get("runtime.services.signal.server");
|
|
3958
|
-
this._clientServices = new
|
|
3977
|
+
this._clientServices = new LocalClientServices({
|
|
3959
3978
|
lockKey: LOCK_KEY,
|
|
3960
3979
|
config: this._config,
|
|
3961
3980
|
networkManager: new NetworkManager2({
|
|
@@ -3990,7 +4009,7 @@ var IFrameHostRuntime = class {
|
|
|
3990
4009
|
this._ready.wake(void 0);
|
|
3991
4010
|
log17("started", {}, {
|
|
3992
4011
|
file: "iframe-host-runtime.ts",
|
|
3993
|
-
line:
|
|
4012
|
+
line: 118,
|
|
3994
4013
|
scope: this,
|
|
3995
4014
|
callSite: (f, a) => f(...a)
|
|
3996
4015
|
});
|
|
@@ -3998,7 +4017,7 @@ var IFrameHostRuntime = class {
|
|
|
3998
4017
|
this._ready.wake(err);
|
|
3999
4018
|
log17.catch(err, {}, {
|
|
4000
4019
|
file: "iframe-host-runtime.ts",
|
|
4001
|
-
line:
|
|
4020
|
+
line: 121,
|
|
4002
4021
|
scope: this,
|
|
4003
4022
|
callSite: (f, a) => f(...a)
|
|
4004
4023
|
});
|
|
@@ -4008,7 +4027,7 @@ var IFrameHostRuntime = class {
|
|
|
4008
4027
|
var _a;
|
|
4009
4028
|
log17("stopping...", {}, {
|
|
4010
4029
|
file: "iframe-host-runtime.ts",
|
|
4011
|
-
line:
|
|
4030
|
+
line: 126,
|
|
4012
4031
|
scope: this,
|
|
4013
4032
|
callSite: (f, a) => f(...a)
|
|
4014
4033
|
});
|
|
@@ -4017,7 +4036,7 @@ var IFrameHostRuntime = class {
|
|
|
4017
4036
|
await ((_a = this._shellRuntime) == null ? void 0 : _a.close());
|
|
4018
4037
|
log17("stopped", {}, {
|
|
4019
4038
|
file: "iframe-host-runtime.ts",
|
|
4020
|
-
line:
|
|
4039
|
+
line: 130,
|
|
4021
4040
|
scope: this,
|
|
4022
4041
|
callSite: (f, a) => f(...a)
|
|
4023
4042
|
});
|
|
@@ -4077,6 +4096,7 @@ export {
|
|
|
4077
4096
|
ServiceRegistry,
|
|
4078
4097
|
createDefaultModelFactory,
|
|
4079
4098
|
ClientServicesHost,
|
|
4080
|
-
ClientServicesProxy
|
|
4099
|
+
ClientServicesProxy,
|
|
4100
|
+
LocalClientServices
|
|
4081
4101
|
};
|
|
4082
|
-
//# sourceMappingURL=chunk-
|
|
4102
|
+
//# sourceMappingURL=chunk-JLLUQQXD.mjs.map
|