@dxos/client-services 0.4.3-main.97fc241 → 0.4.3-main.aa1c078
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-6VFKD3HY.mjs → chunk-BS75Q23M.mjs} +11 -19
- package/dist/lib/browser/{chunk-6VFKD3HY.mjs.map → chunk-BS75Q23M.mjs.map} +3 -3
- 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-CRJK7IFJ.cjs → chunk-Q5SGLQJU.cjs} +10 -18
- package/dist/lib/node/{chunk-CRJK7IFJ.cjs.map → chunk-Q5SGLQJU.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +37 -37
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/system/system-service.d.ts +1 -1
- package/dist/types/src/packlets/system/system-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/services/service-host.ts +1 -1
- package/src/packlets/services/service-registry.test.ts +1 -1
- package/src/packlets/spaces/data-space.ts +3 -12
- package/src/packlets/system/system-service.test.ts +1 -1
- package/src/packlets/system/system-service.ts +2 -2
- package/src/version.ts +1 -1
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_Q5SGLQJU_exports = {};
|
|
30
|
+
__export(chunk_Q5SGLQJU_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
DataSpace: () => DataSpace,
|
|
@@ -60,7 +60,7 @@ __export(chunk_CRJK7IFJ_exports, {
|
|
|
60
60
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
61
61
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
62
62
|
});
|
|
63
|
-
module.exports = __toCommonJS(
|
|
63
|
+
module.exports = __toCommonJS(chunk_Q5SGLQJU_exports);
|
|
64
64
|
var import_async = require("@dxos/async");
|
|
65
65
|
var import_codec_protobuf = require("@dxos/codec-protobuf");
|
|
66
66
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -2675,7 +2675,7 @@ var getPlatform = () => {
|
|
|
2675
2675
|
};
|
|
2676
2676
|
}
|
|
2677
2677
|
};
|
|
2678
|
-
var DXOS_VERSION = "0.4.3-main.
|
|
2678
|
+
var DXOS_VERSION = "0.4.3-main.aa1c078";
|
|
2679
2679
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
2680
2680
|
var DEFAULT_TIMEOUT = 1e3;
|
|
2681
2681
|
var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
@@ -3389,12 +3389,7 @@ var DataSpace = class {
|
|
|
3389
3389
|
const handle = this._automergeHost.repo.find(rootUrl);
|
|
3390
3390
|
queueMicrotask(async () => {
|
|
3391
3391
|
try {
|
|
3392
|
-
await (0,
|
|
3393
|
-
await (0, import_context6.cancelWithContext)(this._ctx, handle.whenReady());
|
|
3394
|
-
});
|
|
3395
|
-
if (this._ctx.disposed) {
|
|
3396
|
-
return;
|
|
3397
|
-
}
|
|
3392
|
+
await (0, import_async10.asyncTimeout)(handle.whenReady(), 5e3);
|
|
3398
3393
|
const doc = handle.docSync() ?? (0, import_invariant10.failedInvariant)();
|
|
3399
3394
|
if (!doc.experimental_spaceKey) {
|
|
3400
3395
|
handle.change((doc2) => {
|
|
@@ -3402,16 +3397,13 @@ var DataSpace = class {
|
|
|
3402
3397
|
});
|
|
3403
3398
|
}
|
|
3404
3399
|
} catch (err) {
|
|
3405
|
-
if (err instanceof import_context6.ContextDisposedError) {
|
|
3406
|
-
return;
|
|
3407
|
-
}
|
|
3408
3400
|
import_log9.log.warn("error loading automerge root doc", {
|
|
3409
3401
|
space: this.key,
|
|
3410
3402
|
rootUrl,
|
|
3411
3403
|
err
|
|
3412
3404
|
}, {
|
|
3413
3405
|
F: __dxlog_file12,
|
|
3414
|
-
L:
|
|
3406
|
+
L: 394,
|
|
3415
3407
|
S: this,
|
|
3416
3408
|
C: (f, a) => f(...a)
|
|
3417
3409
|
});
|
|
@@ -3501,7 +3493,7 @@ var DataSpace = class {
|
|
|
3501
3493
|
state: import_services8.SpaceState[this._state]
|
|
3502
3494
|
}, {
|
|
3503
3495
|
F: __dxlog_file12,
|
|
3504
|
-
L:
|
|
3496
|
+
L: 483,
|
|
3505
3497
|
S: this,
|
|
3506
3498
|
C: (f, a) => f(...a)
|
|
3507
3499
|
});
|
|
@@ -4731,7 +4723,7 @@ var SystemServiceImpl = class {
|
|
|
4731
4723
|
this._onReset = onReset;
|
|
4732
4724
|
}
|
|
4733
4725
|
async getConfig() {
|
|
4734
|
-
return
|
|
4726
|
+
return this._config?.values ?? {};
|
|
4735
4727
|
}
|
|
4736
4728
|
/**
|
|
4737
4729
|
* NOTE: Since this is serialized as a JSON object, we allow the option to serialize keys.
|
|
@@ -4836,7 +4828,7 @@ var ClientServicesHost = class {
|
|
|
4836
4828
|
});
|
|
4837
4829
|
}
|
|
4838
4830
|
this._systemService = new SystemServiceImpl({
|
|
4839
|
-
config:
|
|
4831
|
+
config: this._config,
|
|
4840
4832
|
statusUpdate: this._statusUpdate,
|
|
4841
4833
|
getCurrentStatus: () => this.isOpen ? import_services12.SystemStatus.ACTIVE : import_services12.SystemStatus.INACTIVE,
|
|
4842
4834
|
getDiagnostics: () => {
|
|
@@ -5207,4 +5199,4 @@ ClientServicesHost = _ts_decorate8([
|
|
|
5207
5199
|
subscribeToSpaces,
|
|
5208
5200
|
subscribeToSwarmInfo
|
|
5209
5201
|
});
|
|
5210
|
-
//# sourceMappingURL=chunk-
|
|
5202
|
+
//# sourceMappingURL=chunk-Q5SGLQJU.cjs.map
|