@dxos/client-services 0.5.7-main.c48bccd → 0.5.7-main.fa910e0
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-MONA47ZG.mjs → chunk-ZKYX7AWK.mjs} +29 -22
- package/dist/lib/browser/{chunk-MONA47ZG.mjs.map → chunk-ZKYX7AWK.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-A3UEZIDG.cjs → chunk-V32UE537.cjs} +31 -24
- package/dist/lib/node/{chunk-A3UEZIDG.cjs.map → chunk-V32UE537.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +44 -44
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +1 -0
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/identity/identity.test.ts +4 -0
- package/src/packlets/services/service-host.ts +3 -4
- package/src/packlets/spaces/data-space.ts +5 -0
- package/src/packlets/spaces/spaces-service.ts +1 -0
- package/src/version.ts +1 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
InvitationsManager,
|
|
8
8
|
ServiceContext,
|
|
9
9
|
SpaceInvitationProtocol
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-ZKYX7AWK.mjs";
|
|
11
11
|
|
|
12
12
|
// packages/sdk/client-services/src/packlets/testing/credential-utils.ts
|
|
13
13
|
import { createCredential } from "@dxos/credentials";
|
|
@@ -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_V32UE537_exports = {};
|
|
30
|
+
__export(chunk_V32UE537_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
ClientServicesProviderResource: () => ClientServicesProviderResource,
|
|
@@ -67,7 +67,7 @@ __export(chunk_A3UEZIDG_exports, {
|
|
|
67
67
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
68
68
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
69
69
|
});
|
|
70
|
-
module.exports = __toCommonJS(
|
|
70
|
+
module.exports = __toCommonJS(chunk_V32UE537_exports);
|
|
71
71
|
var import_async = require("@dxos/async");
|
|
72
72
|
var import_codec_protobuf = require("@dxos/codec-protobuf");
|
|
73
73
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -3781,6 +3781,9 @@ var DataSpace = class {
|
|
|
3781
3781
|
C: (f, a) => f(...a)
|
|
3782
3782
|
});
|
|
3783
3783
|
}
|
|
3784
|
+
get id() {
|
|
3785
|
+
return this._inner.id;
|
|
3786
|
+
}
|
|
3784
3787
|
get key() {
|
|
3785
3788
|
return this._inner.key;
|
|
3786
3789
|
}
|
|
@@ -3826,7 +3829,7 @@ var DataSpace = class {
|
|
|
3826
3829
|
state: import_services9.SpaceState[this._state]
|
|
3827
3830
|
}, {
|
|
3828
3831
|
F: __dxlog_file13,
|
|
3829
|
-
L:
|
|
3832
|
+
L: 204,
|
|
3830
3833
|
S: this,
|
|
3831
3834
|
C: (f, a) => f(...a)
|
|
3832
3835
|
});
|
|
@@ -3844,7 +3847,7 @@ var DataSpace = class {
|
|
|
3844
3847
|
state: import_services9.SpaceState[this._state]
|
|
3845
3848
|
}, {
|
|
3846
3849
|
F: __dxlog_file13,
|
|
3847
|
-
L:
|
|
3850
|
+
L: 218,
|
|
3848
3851
|
S: this,
|
|
3849
3852
|
C: (f, a) => f(...a)
|
|
3850
3853
|
});
|
|
@@ -3876,7 +3879,7 @@ var DataSpace = class {
|
|
|
3876
3879
|
if (err instanceof import_protocols8.CancelledError || err instanceof import_context9.ContextDisposedError) {
|
|
3877
3880
|
(0, import_log10.log)("data pipeline initialization cancelled", err, {
|
|
3878
3881
|
F: __dxlog_file13,
|
|
3879
|
-
L:
|
|
3882
|
+
L: 251,
|
|
3880
3883
|
S: this,
|
|
3881
3884
|
C: (f, a) => f(...a)
|
|
3882
3885
|
});
|
|
@@ -3884,7 +3887,7 @@ var DataSpace = class {
|
|
|
3884
3887
|
}
|
|
3885
3888
|
import_log10.log.error("Error initializing data pipeline", err, {
|
|
3886
3889
|
F: __dxlog_file13,
|
|
3887
|
-
L:
|
|
3890
|
+
L: 255,
|
|
3888
3891
|
S: this,
|
|
3889
3892
|
C: (f, a) => f(...a)
|
|
3890
3893
|
});
|
|
@@ -3893,7 +3896,7 @@ var DataSpace = class {
|
|
|
3893
3896
|
state: import_services9.SpaceState[this._state]
|
|
3894
3897
|
}, {
|
|
3895
3898
|
F: __dxlog_file13,
|
|
3896
|
-
L:
|
|
3899
|
+
L: 257,
|
|
3897
3900
|
S: this,
|
|
3898
3901
|
C: (f, a) => f(...a)
|
|
3899
3902
|
});
|
|
@@ -3913,7 +3916,7 @@ var DataSpace = class {
|
|
|
3913
3916
|
state: import_services9.SpaceState[this._state]
|
|
3914
3917
|
}, {
|
|
3915
3918
|
F: __dxlog_file13,
|
|
3916
|
-
L:
|
|
3919
|
+
L: 273,
|
|
3917
3920
|
S: this,
|
|
3918
3921
|
C: (f, a) => f(...a)
|
|
3919
3922
|
});
|
|
@@ -3923,7 +3926,7 @@ var DataSpace = class {
|
|
|
3923
3926
|
await (0, import_context9.cancelWithContext)(this._ctx, this.automergeSpaceState.ensureEpochInitialized());
|
|
3924
3927
|
(0, import_log10.log)("data pipeline ready", void 0, {
|
|
3925
3928
|
F: __dxlog_file13,
|
|
3926
|
-
L:
|
|
3929
|
+
L: 285,
|
|
3927
3930
|
S: this,
|
|
3928
3931
|
C: (f, a) => f(...a)
|
|
3929
3932
|
});
|
|
@@ -3933,7 +3936,7 @@ var DataSpace = class {
|
|
|
3933
3936
|
state: import_services9.SpaceState[this._state]
|
|
3934
3937
|
}, {
|
|
3935
3938
|
F: __dxlog_file13,
|
|
3936
|
-
L:
|
|
3939
|
+
L: 289,
|
|
3937
3940
|
S: this,
|
|
3938
3941
|
C: (f, a) => f(...a)
|
|
3939
3942
|
});
|
|
@@ -3949,7 +3952,7 @@ var DataSpace = class {
|
|
|
3949
3952
|
await this._createWritableFeeds();
|
|
3950
3953
|
(0, import_log10.log)("writable feeds created", void 0, {
|
|
3951
3954
|
F: __dxlog_file13,
|
|
3952
|
-
L:
|
|
3955
|
+
L: 305,
|
|
3953
3956
|
S: this,
|
|
3954
3957
|
C: (f, a) => f(...a)
|
|
3955
3958
|
});
|
|
@@ -4012,7 +4015,7 @@ var DataSpace = class {
|
|
|
4012
4015
|
rootUrl
|
|
4013
4016
|
}, {
|
|
4014
4017
|
F: __dxlog_file13,
|
|
4015
|
-
L:
|
|
4018
|
+
L: 371,
|
|
4016
4019
|
S: this,
|
|
4017
4020
|
C: (f, a) => f(...a)
|
|
4018
4021
|
});
|
|
@@ -4042,7 +4045,7 @@ var DataSpace = class {
|
|
|
4042
4045
|
rootUrl
|
|
4043
4046
|
}, {
|
|
4044
4047
|
F: __dxlog_file13,
|
|
4045
|
-
L:
|
|
4048
|
+
L: 398,
|
|
4046
4049
|
S: this,
|
|
4047
4050
|
C: (f, a) => f(...a)
|
|
4048
4051
|
});
|
|
@@ -4057,7 +4060,7 @@ var DataSpace = class {
|
|
|
4057
4060
|
err
|
|
4058
4061
|
}, {
|
|
4059
4062
|
F: __dxlog_file13,
|
|
4060
|
-
L:
|
|
4063
|
+
L: 404,
|
|
4061
4064
|
S: this,
|
|
4062
4065
|
C: (f, a) => f(...a)
|
|
4063
4066
|
});
|
|
@@ -4112,7 +4115,7 @@ var DataSpace = class {
|
|
|
4112
4115
|
const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
|
|
4113
4116
|
(0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4114
4117
|
F: __dxlog_file13,
|
|
4115
|
-
L:
|
|
4118
|
+
L: 454,
|
|
4116
4119
|
S: this,
|
|
4117
4120
|
A: [
|
|
4118
4121
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4131,7 +4134,7 @@ var DataSpace = class {
|
|
|
4131
4134
|
{
|
|
4132
4135
|
import_log10.log.info("Fragmenting", void 0, {
|
|
4133
4136
|
F: __dxlog_file13,
|
|
4134
|
-
L:
|
|
4137
|
+
L: 466,
|
|
4135
4138
|
S: this,
|
|
4136
4139
|
C: (f, a) => f(...a)
|
|
4137
4140
|
});
|
|
@@ -4143,7 +4146,7 @@ var DataSpace = class {
|
|
|
4143
4146
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
4144
4147
|
(0, import_invariant11.invariant)(properties, "Properties not found", {
|
|
4145
4148
|
F: __dxlog_file13,
|
|
4146
|
-
L:
|
|
4149
|
+
L: 476,
|
|
4147
4150
|
S: this,
|
|
4148
4151
|
A: [
|
|
4149
4152
|
"properties",
|
|
@@ -4159,7 +4162,7 @@ var DataSpace = class {
|
|
|
4159
4162
|
const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
|
|
4160
4163
|
(0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4161
4164
|
F: __dxlog_file13,
|
|
4162
|
-
L:
|
|
4165
|
+
L: 481,
|
|
4163
4166
|
S: this,
|
|
4164
4167
|
A: [
|
|
4165
4168
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4228,7 +4231,7 @@ var DataSpace = class {
|
|
|
4228
4231
|
state: import_services9.SpaceState[this._state]
|
|
4229
4232
|
}, {
|
|
4230
4233
|
F: __dxlog_file13,
|
|
4231
|
-
L:
|
|
4234
|
+
L: 547,
|
|
4232
4235
|
S: this,
|
|
4233
4236
|
C: (f, a) => f(...a)
|
|
4234
4237
|
});
|
|
@@ -4238,6 +4241,9 @@ var DataSpace = class {
|
|
|
4238
4241
|
_ts_decorate4([
|
|
4239
4242
|
import_tracing4.trace.info()
|
|
4240
4243
|
], DataSpace.prototype, "_inner", void 0);
|
|
4244
|
+
_ts_decorate4([
|
|
4245
|
+
import_tracing4.trace.info()
|
|
4246
|
+
], DataSpace.prototype, "id", null);
|
|
4241
4247
|
_ts_decorate4([
|
|
4242
4248
|
import_tracing4.trace.info()
|
|
4243
4249
|
], DataSpace.prototype, "key", null);
|
|
@@ -5017,6 +5023,7 @@ var SpacesServiceImpl = class {
|
|
|
5017
5023
|
}
|
|
5018
5024
|
_serializeSpace(space) {
|
|
5019
5025
|
return {
|
|
5026
|
+
id: space.id,
|
|
5020
5027
|
spaceKey: space.key,
|
|
5021
5028
|
state: space.state,
|
|
5022
5029
|
error: space.error ? (0, import_protocols11.encodeError)(space.error) : void 0,
|
|
@@ -5362,7 +5369,7 @@ var ServiceRegistry = class {
|
|
|
5362
5369
|
delete this._handlers[name];
|
|
5363
5370
|
}
|
|
5364
5371
|
};
|
|
5365
|
-
var DXOS_VERSION = "0.5.7-main.
|
|
5372
|
+
var DXOS_VERSION = "0.5.7-main.fa910e0";
|
|
5366
5373
|
var getPlatform = () => {
|
|
5367
5374
|
if (process.browser) {
|
|
5368
5375
|
if (typeof window !== "undefined") {
|
|
@@ -6266,11 +6273,11 @@ var ClientServicesHost = class {
|
|
|
6266
6273
|
""
|
|
6267
6274
|
]
|
|
6268
6275
|
});
|
|
6269
|
-
const document =
|
|
6276
|
+
const document = this._serviceContext.echoHost.automergeRepo.find(automergeIndex);
|
|
6270
6277
|
await document.whenReady();
|
|
6271
6278
|
const properties = {
|
|
6272
6279
|
system: {
|
|
6273
|
-
type: (0, import_echo_protocol.encodeReference)((0, import_echo_schema2.getTypeReference)(import_client_protocol5.
|
|
6280
|
+
type: (0, import_echo_protocol.encodeReference)((0, import_echo_schema2.getTypeReference)(import_client_protocol5.PropertiesSchema))
|
|
6274
6281
|
},
|
|
6275
6282
|
data: {
|
|
6276
6283
|
[import_client_protocol5.defaultKey]: identity.identityKey.toHex()
|
|
@@ -6383,4 +6390,4 @@ var findConfigs = () => {
|
|
|
6383
6390
|
subscribeToSpaces,
|
|
6384
6391
|
subscribeToSwarmInfo
|
|
6385
6392
|
});
|
|
6386
|
-
//# sourceMappingURL=chunk-
|
|
6393
|
+
//# sourceMappingURL=chunk-V32UE537.cjs.map
|