@dxos/client-services 0.5.3-next.57eca40 → 0.5.3
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-RQNS7EAS.mjs → chunk-IFZR2RUT.mjs} +23 -10
- package/dist/lib/browser/{chunk-RQNS7EAS.mjs.map → chunk-IFZR2RUT.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-GVGQ4FCH.cjs → chunk-ZGHJ44BE.cjs} +26 -13
- package/dist/lib/node/{chunk-GVGQ4FCH.cjs.map → chunk-ZGHJ44BE.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/devtools/feeds.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/keys.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/metadata.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/network.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts +1 -0
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/services/util.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/credential-utils.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +2 -2
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/package.json +36 -36
- package/src/packlets/spaces/data-space-manager.ts +2 -2
- package/src/packlets/spaces/data-space.ts +8 -0
- package/src/version.ts +5 -1
|
@@ -3932,6 +3932,19 @@ var DataSpace = class {
|
|
|
3932
3932
|
};
|
|
3933
3933
|
});
|
|
3934
3934
|
}
|
|
3935
|
+
if (!this._echoHost.roots.has(handle.documentId)) {
|
|
3936
|
+
await this._echoHost.openSpaceRoot(handle.url);
|
|
3937
|
+
} else {
|
|
3938
|
+
log11.warn("echo database root already exists", {
|
|
3939
|
+
space: this.key,
|
|
3940
|
+
rootUrl
|
|
3941
|
+
}, {
|
|
3942
|
+
F: __dxlog_file13,
|
|
3943
|
+
L: 393,
|
|
3944
|
+
S: this,
|
|
3945
|
+
C: (f, a) => f(...a)
|
|
3946
|
+
});
|
|
3947
|
+
}
|
|
3935
3948
|
} catch (err) {
|
|
3936
3949
|
if (err instanceof ContextDisposedError3) {
|
|
3937
3950
|
return;
|
|
@@ -3942,7 +3955,7 @@ var DataSpace = class {
|
|
|
3942
3955
|
err
|
|
3943
3956
|
}, {
|
|
3944
3957
|
F: __dxlog_file13,
|
|
3945
|
-
L:
|
|
3958
|
+
L: 399,
|
|
3946
3959
|
S: this,
|
|
3947
3960
|
C: (f, a) => f(...a)
|
|
3948
3961
|
});
|
|
@@ -3997,7 +4010,7 @@ var DataSpace = class {
|
|
|
3997
4010
|
const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
|
|
3998
4011
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
3999
4012
|
F: __dxlog_file13,
|
|
4000
|
-
L:
|
|
4013
|
+
L: 449,
|
|
4001
4014
|
S: this,
|
|
4002
4015
|
A: [
|
|
4003
4016
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4016,7 +4029,7 @@ var DataSpace = class {
|
|
|
4016
4029
|
{
|
|
4017
4030
|
log11.info("Fragmenting", void 0, {
|
|
4018
4031
|
F: __dxlog_file13,
|
|
4019
|
-
L:
|
|
4032
|
+
L: 461,
|
|
4020
4033
|
S: this,
|
|
4021
4034
|
C: (f, a) => f(...a)
|
|
4022
4035
|
});
|
|
@@ -4028,7 +4041,7 @@ var DataSpace = class {
|
|
|
4028
4041
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
4029
4042
|
invariant12(properties, "Properties not found", {
|
|
4030
4043
|
F: __dxlog_file13,
|
|
4031
|
-
L:
|
|
4044
|
+
L: 471,
|
|
4032
4045
|
S: this,
|
|
4033
4046
|
A: [
|
|
4034
4047
|
"properties",
|
|
@@ -4044,7 +4057,7 @@ var DataSpace = class {
|
|
|
4044
4057
|
const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
|
|
4045
4058
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4046
4059
|
F: __dxlog_file13,
|
|
4047
|
-
L:
|
|
4060
|
+
L: 476,
|
|
4048
4061
|
S: this,
|
|
4049
4062
|
A: [
|
|
4050
4063
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4113,7 +4126,7 @@ var DataSpace = class {
|
|
|
4113
4126
|
state: SpaceState[this._state]
|
|
4114
4127
|
}, {
|
|
4115
4128
|
F: __dxlog_file13,
|
|
4116
|
-
L:
|
|
4129
|
+
L: 542,
|
|
4117
4130
|
S: this,
|
|
4118
4131
|
C: (f, a) => f(...a)
|
|
4119
4132
|
});
|
|
@@ -4427,9 +4440,9 @@ var DataSpaceManager = class {
|
|
|
4427
4440
|
S: this,
|
|
4428
4441
|
C: (f, a) => f(...a)
|
|
4429
4442
|
});
|
|
4430
|
-
const
|
|
4443
|
+
const root = await this._echoHost.createSpaceRoot(spaceKey);
|
|
4431
4444
|
const space = await this._constructSpace(metadata);
|
|
4432
|
-
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner,
|
|
4445
|
+
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner, root.url);
|
|
4433
4446
|
await this._metadataStore.addSpace(metadata);
|
|
4434
4447
|
const memberCredential = credentials[1];
|
|
4435
4448
|
invariant13(getCredentialAssertion2(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
@@ -5299,7 +5312,7 @@ import { SpaceMember as SpaceMember7 } from "@dxos/protocols/proto/dxos/client/s
|
|
|
5299
5312
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
5300
5313
|
|
|
5301
5314
|
// packages/sdk/client-services/src/version.ts
|
|
5302
|
-
var DXOS_VERSION = "0.5.3
|
|
5315
|
+
var DXOS_VERSION = "0.5.3";
|
|
5303
5316
|
|
|
5304
5317
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
5305
5318
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -6546,4 +6559,4 @@ export {
|
|
|
6546
6559
|
ClientServicesHost,
|
|
6547
6560
|
ClientServicesProviderResource
|
|
6548
6561
|
};
|
|
6549
|
-
//# sourceMappingURL=chunk-
|
|
6562
|
+
//# sourceMappingURL=chunk-IFZR2RUT.mjs.map
|