@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
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
InvitationsManager,
|
|
8
8
|
ServiceContext,
|
|
9
9
|
SpaceInvitationProtocol
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-IFZR2RUT.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_ZGHJ44BE_exports = {};
|
|
30
|
+
__export(chunk_ZGHJ44BE_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
ClientServicesProviderResource: () => ClientServicesProviderResource,
|
|
@@ -67,7 +67,7 @@ __export(chunk_GVGQ4FCH_exports, {
|
|
|
67
67
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
68
68
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
69
69
|
});
|
|
70
|
-
module.exports = __toCommonJS(
|
|
70
|
+
module.exports = __toCommonJS(chunk_ZGHJ44BE_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");
|
|
@@ -4033,6 +4033,19 @@ var DataSpace = class {
|
|
|
4033
4033
|
};
|
|
4034
4034
|
});
|
|
4035
4035
|
}
|
|
4036
|
+
if (!this._echoHost.roots.has(handle.documentId)) {
|
|
4037
|
+
await this._echoHost.openSpaceRoot(handle.url);
|
|
4038
|
+
} else {
|
|
4039
|
+
import_log10.log.warn("echo database root already exists", {
|
|
4040
|
+
space: this.key,
|
|
4041
|
+
rootUrl
|
|
4042
|
+
}, {
|
|
4043
|
+
F: __dxlog_file13,
|
|
4044
|
+
L: 393,
|
|
4045
|
+
S: this,
|
|
4046
|
+
C: (f, a) => f(...a)
|
|
4047
|
+
});
|
|
4048
|
+
}
|
|
4036
4049
|
} catch (err) {
|
|
4037
4050
|
if (err instanceof import_context9.ContextDisposedError) {
|
|
4038
4051
|
return;
|
|
@@ -4043,7 +4056,7 @@ var DataSpace = class {
|
|
|
4043
4056
|
err
|
|
4044
4057
|
}, {
|
|
4045
4058
|
F: __dxlog_file13,
|
|
4046
|
-
L:
|
|
4059
|
+
L: 399,
|
|
4047
4060
|
S: this,
|
|
4048
4061
|
C: (f, a) => f(...a)
|
|
4049
4062
|
});
|
|
@@ -4098,7 +4111,7 @@ var DataSpace = class {
|
|
|
4098
4111
|
const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
|
|
4099
4112
|
(0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4100
4113
|
F: __dxlog_file13,
|
|
4101
|
-
L:
|
|
4114
|
+
L: 449,
|
|
4102
4115
|
S: this,
|
|
4103
4116
|
A: [
|
|
4104
4117
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4117,7 +4130,7 @@ var DataSpace = class {
|
|
|
4117
4130
|
{
|
|
4118
4131
|
import_log10.log.info("Fragmenting", void 0, {
|
|
4119
4132
|
F: __dxlog_file13,
|
|
4120
|
-
L:
|
|
4133
|
+
L: 461,
|
|
4121
4134
|
S: this,
|
|
4122
4135
|
C: (f, a) => f(...a)
|
|
4123
4136
|
});
|
|
@@ -4129,7 +4142,7 @@ var DataSpace = class {
|
|
|
4129
4142
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
4130
4143
|
(0, import_invariant11.invariant)(properties, "Properties not found", {
|
|
4131
4144
|
F: __dxlog_file13,
|
|
4132
|
-
L:
|
|
4145
|
+
L: 471,
|
|
4133
4146
|
S: this,
|
|
4134
4147
|
A: [
|
|
4135
4148
|
"properties",
|
|
@@ -4145,7 +4158,7 @@ var DataSpace = class {
|
|
|
4145
4158
|
const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
|
|
4146
4159
|
(0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4147
4160
|
F: __dxlog_file13,
|
|
4148
|
-
L:
|
|
4161
|
+
L: 476,
|
|
4149
4162
|
S: this,
|
|
4150
4163
|
A: [
|
|
4151
4164
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4214,7 +4227,7 @@ var DataSpace = class {
|
|
|
4214
4227
|
state: import_services9.SpaceState[this._state]
|
|
4215
4228
|
}, {
|
|
4216
4229
|
F: __dxlog_file13,
|
|
4217
|
-
L:
|
|
4230
|
+
L: 542,
|
|
4218
4231
|
S: this,
|
|
4219
4232
|
C: (f, a) => f(...a)
|
|
4220
4233
|
});
|
|
@@ -4505,9 +4518,9 @@ var DataSpaceManager = class {
|
|
|
4505
4518
|
S: this,
|
|
4506
4519
|
C: (f, a) => f(...a)
|
|
4507
4520
|
});
|
|
4508
|
-
const
|
|
4521
|
+
const root = await this._echoHost.createSpaceRoot(spaceKey);
|
|
4509
4522
|
const space = await this._constructSpace(metadata);
|
|
4510
|
-
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner,
|
|
4523
|
+
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner, root.url);
|
|
4511
4524
|
await this._metadataStore.addSpace(metadata);
|
|
4512
4525
|
const memberCredential = credentials[1];
|
|
4513
4526
|
(0, import_invariant13.invariant)((0, import_credentials13.getCredentialAssertion)(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
@@ -5335,7 +5348,7 @@ var ServiceRegistry = class {
|
|
|
5335
5348
|
delete this._handlers[name];
|
|
5336
5349
|
}
|
|
5337
5350
|
};
|
|
5338
|
-
var DXOS_VERSION = "0.5.3
|
|
5351
|
+
var DXOS_VERSION = "0.5.3";
|
|
5339
5352
|
var getPlatform = () => {
|
|
5340
5353
|
if (process.browser) {
|
|
5341
5354
|
if (typeof window !== "undefined") {
|
|
@@ -6356,4 +6369,4 @@ var findConfigs = () => {
|
|
|
6356
6369
|
subscribeToSpaces,
|
|
6357
6370
|
subscribeToSwarmInfo
|
|
6358
6371
|
});
|
|
6359
|
-
//# sourceMappingURL=chunk-
|
|
6372
|
+
//# sourceMappingURL=chunk-ZGHJ44BE.cjs.map
|