@dxos/client-services 0.4.4-main.fcf0b00 → 0.4.4-next.ac77e71
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-XK2EZ6YC.mjs → chunk-IIGCBEO3.mjs} +19 -18
- package/dist/lib/browser/{chunk-XK2EZ6YC.mjs.map → chunk-IIGCBEO3.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-R6RMW2BT.cjs → chunk-VJAR4RID.cjs} +22 -21
- package/dist/lib/node/{chunk-R6RMW2BT.cjs.map → chunk-VJAR4RID.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-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/spaces/data-space-manager.ts +2 -1
- package/src/packlets/spaces/data-space.ts +1 -1
- package/src/packlets/spaces/notarization-plugin.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_VJAR4RID_exports = {};
|
|
30
|
+
__export(chunk_VJAR4RID_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
DataSpace: () => DataSpace,
|
|
@@ -60,7 +60,7 @@ __export(chunk_R6RMW2BT_exports, {
|
|
|
60
60
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
61
61
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
62
62
|
});
|
|
63
|
-
module.exports = __toCommonJS(
|
|
63
|
+
module.exports = __toCommonJS(chunk_VJAR4RID_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.4-
|
|
2678
|
+
var DXOS_VERSION = "0.4.4-next.ac77e71";
|
|
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) => {
|
|
@@ -2914,7 +2914,7 @@ var NotarizationPlugin = class {
|
|
|
2914
2914
|
...this._extensions
|
|
2915
2915
|
].find((peer2) => !peersTried.has(peer2));
|
|
2916
2916
|
if (!peer) {
|
|
2917
|
-
import_log10.log.
|
|
2917
|
+
import_log10.log.info("Exhausted all peers to notarize with", {
|
|
2918
2918
|
retryIn: retryTimeout
|
|
2919
2919
|
}, {
|
|
2920
2920
|
F: __dxlog_file11,
|
|
@@ -2948,7 +2948,7 @@ var NotarizationPlugin = class {
|
|
|
2948
2948
|
await (0, import_async11.sleep)(successDelay);
|
|
2949
2949
|
} catch (err) {
|
|
2950
2950
|
if (!ctx.disposed && !err.message.includes(WRITER_NOT_SET_ERROR_CODE)) {
|
|
2951
|
-
import_log10.log.
|
|
2951
|
+
import_log10.log.info("error notarizing (recoverable)", err, {
|
|
2952
2952
|
F: __dxlog_file11,
|
|
2953
2953
|
L: 151,
|
|
2954
2954
|
S: this,
|
|
@@ -3293,7 +3293,7 @@ var DataSpace = class {
|
|
|
3293
3293
|
this.metrics.dataPipelineReady = /* @__PURE__ */ new Date();
|
|
3294
3294
|
(0, import_log9.log)("data pipeline ready", void 0, {
|
|
3295
3295
|
F: __dxlog_file12,
|
|
3296
|
-
L:
|
|
3296
|
+
L: 294,
|
|
3297
3297
|
S: this,
|
|
3298
3298
|
C: (f, a) => f(...a)
|
|
3299
3299
|
});
|
|
@@ -3303,7 +3303,7 @@ var DataSpace = class {
|
|
|
3303
3303
|
state: import_services8.SpaceState[this._state]
|
|
3304
3304
|
}, {
|
|
3305
3305
|
F: __dxlog_file12,
|
|
3306
|
-
L:
|
|
3306
|
+
L: 298,
|
|
3307
3307
|
S: this,
|
|
3308
3308
|
C: (f, a) => f(...a)
|
|
3309
3309
|
});
|
|
@@ -3319,7 +3319,7 @@ var DataSpace = class {
|
|
|
3319
3319
|
await this._createWritableFeeds();
|
|
3320
3320
|
(0, import_log9.log)("writable feeds created", void 0, {
|
|
3321
3321
|
F: __dxlog_file12,
|
|
3322
|
-
L:
|
|
3322
|
+
L: 314,
|
|
3323
3323
|
S: this,
|
|
3324
3324
|
C: (f, a) => f(...a)
|
|
3325
3325
|
});
|
|
@@ -3382,10 +3382,11 @@ var DataSpace = class {
|
|
|
3382
3382
|
rootUrl
|
|
3383
3383
|
}, {
|
|
3384
3384
|
F: __dxlog_file12,
|
|
3385
|
-
L:
|
|
3385
|
+
L: 380,
|
|
3386
3386
|
S: this,
|
|
3387
3387
|
C: (f, a) => f(...a)
|
|
3388
3388
|
});
|
|
3389
|
+
this._automergeHost._requestedDocs.add(rootUrl);
|
|
3389
3390
|
const handle = this._automergeHost.repo.find(rootUrl);
|
|
3390
3391
|
queueMicrotask(async () => {
|
|
3391
3392
|
try {
|
|
@@ -3755,17 +3756,17 @@ var DataSpaceManager = class {
|
|
|
3755
3756
|
S: this,
|
|
3756
3757
|
C: (f, a) => f(...a)
|
|
3757
3758
|
});
|
|
3758
|
-
const space = await this._constructSpace(metadata);
|
|
3759
3759
|
const automergeRoot = this._automergeHost.repo.create();
|
|
3760
3760
|
automergeRoot.change((doc) => {
|
|
3761
3761
|
doc.experimental_spaceKey = spaceKey.toHex();
|
|
3762
3762
|
});
|
|
3763
|
+
const space = await this._constructSpace(metadata);
|
|
3763
3764
|
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner, automergeRoot.url);
|
|
3764
3765
|
await this._metadataStore.addSpace(metadata);
|
|
3765
3766
|
const memberCredential = credentials[1];
|
|
3766
3767
|
(0, import_invariant12.invariant)((0, import_credentials12.getCredentialAssertion)(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
3767
3768
|
F: __dxlog_file13,
|
|
3768
|
-
L:
|
|
3769
|
+
L: 155,
|
|
3769
3770
|
S: this,
|
|
3770
3771
|
A: [
|
|
3771
3772
|
"getCredentialAssertion(memberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
|
|
@@ -3783,13 +3784,13 @@ var DataSpaceManager = class {
|
|
|
3783
3784
|
opts
|
|
3784
3785
|
}, {
|
|
3785
3786
|
F: __dxlog_file13,
|
|
3786
|
-
L:
|
|
3787
|
+
L: 167,
|
|
3787
3788
|
S: this,
|
|
3788
3789
|
C: (f, a) => f(...a)
|
|
3789
3790
|
});
|
|
3790
3791
|
(0, import_invariant12.invariant)(this._isOpen, "Not open.", {
|
|
3791
3792
|
F: __dxlog_file13,
|
|
3792
|
-
L:
|
|
3793
|
+
L: 168,
|
|
3793
3794
|
S: this,
|
|
3794
3795
|
A: [
|
|
3795
3796
|
"this._isOpen",
|
|
@@ -3798,7 +3799,7 @@ var DataSpaceManager = class {
|
|
|
3798
3799
|
});
|
|
3799
3800
|
(0, import_invariant12.invariant)(!this._spaces.has(opts.spaceKey), "Space already exists.", {
|
|
3800
3801
|
F: __dxlog_file13,
|
|
3801
|
-
L:
|
|
3802
|
+
L: 169,
|
|
3802
3803
|
S: this,
|
|
3803
3804
|
A: [
|
|
3804
3805
|
"!this._spaces.has(opts.spaceKey)",
|
|
@@ -3833,7 +3834,7 @@ var DataSpaceManager = class {
|
|
|
3833
3834
|
metadata
|
|
3834
3835
|
}, {
|
|
3835
3836
|
F: __dxlog_file13,
|
|
3836
|
-
L:
|
|
3837
|
+
L: 202,
|
|
3837
3838
|
S: this,
|
|
3838
3839
|
C: (f, a) => f(...a)
|
|
3839
3840
|
});
|
|
@@ -3871,7 +3872,7 @@ var DataSpaceManager = class {
|
|
|
3871
3872
|
onAuthFailure: () => {
|
|
3872
3873
|
import_log11.log.warn("auth failure", void 0, {
|
|
3873
3874
|
F: __dxlog_file13,
|
|
3874
|
-
L:
|
|
3875
|
+
L: 239,
|
|
3875
3876
|
S: this,
|
|
3876
3877
|
C: (f, a) => f(...a)
|
|
3877
3878
|
});
|
|
@@ -3895,7 +3896,7 @@ var DataSpaceManager = class {
|
|
|
3895
3896
|
space: space.key
|
|
3896
3897
|
}, {
|
|
3897
3898
|
F: __dxlog_file13,
|
|
3898
|
-
L:
|
|
3899
|
+
L: 257,
|
|
3899
3900
|
S: this,
|
|
3900
3901
|
C: (f, a) => f(...a)
|
|
3901
3902
|
});
|
|
@@ -3907,7 +3908,7 @@ var DataSpaceManager = class {
|
|
|
3907
3908
|
open: this._isOpen
|
|
3908
3909
|
}, {
|
|
3909
3910
|
F: __dxlog_file13,
|
|
3910
|
-
L:
|
|
3911
|
+
L: 264,
|
|
3911
3912
|
S: this,
|
|
3912
3913
|
C: (f, a) => f(...a)
|
|
3913
3914
|
});
|
|
@@ -3920,7 +3921,7 @@ var DataSpaceManager = class {
|
|
|
3920
3921
|
space: space.key
|
|
3921
3922
|
}, {
|
|
3922
3923
|
F: __dxlog_file13,
|
|
3923
|
-
L:
|
|
3924
|
+
L: 270,
|
|
3924
3925
|
S: this,
|
|
3925
3926
|
C: (f, a) => f(...a)
|
|
3926
3927
|
});
|
|
@@ -5207,4 +5208,4 @@ ClientServicesHost = _ts_decorate8([
|
|
|
5207
5208
|
subscribeToSpaces,
|
|
5208
5209
|
subscribeToSwarmInfo
|
|
5209
5210
|
});
|
|
5210
|
-
//# sourceMappingURL=chunk-
|
|
5211
|
+
//# sourceMappingURL=chunk-VJAR4RID.cjs.map
|