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