@dxos/client-services 0.5.3-main.d3c5e1f → 0.5.3-main.de55336

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.
Files changed (28) hide show
  1. package/dist/lib/browser/{chunk-USPTLPD3.mjs → chunk-7EGDXZNY.mjs} +11 -10
  2. package/dist/lib/browser/{chunk-USPTLPD3.mjs.map → chunk-7EGDXZNY.mjs.map} +3 -3
  3. package/dist/lib/browser/index.mjs +1 -1
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/browser/packlets/testing/index.mjs +1 -1
  6. package/dist/lib/node/{chunk-POBNOYEY.cjs → chunk-YPKL5SAD.cjs} +14 -13
  7. package/dist/lib/node/{chunk-POBNOYEY.cjs.map → chunk-YPKL5SAD.cjs.map} +3 -3
  8. package/dist/lib/node/index.cjs +44 -44
  9. package/dist/lib/node/meta.json +1 -1
  10. package/dist/lib/node/packlets/testing/index.cjs +8 -8
  11. package/dist/types/src/packlets/devtools/feeds.d.ts.map +1 -1
  12. package/dist/types/src/packlets/devtools/keys.d.ts.map +1 -1
  13. package/dist/types/src/packlets/devtools/metadata.d.ts.map +1 -1
  14. package/dist/types/src/packlets/devtools/network.d.ts.map +1 -1
  15. package/dist/types/src/packlets/invitations/invitations-handler.d.ts +1 -0
  16. package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
  17. package/dist/types/src/packlets/services/service-host.d.ts +1 -1
  18. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  19. package/dist/types/src/packlets/services/util.d.ts.map +1 -1
  20. package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
  21. package/dist/types/src/packlets/testing/credential-utils.d.ts.map +1 -1
  22. package/dist/types/src/packlets/testing/test-builder.d.ts +2 -2
  23. package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
  24. package/dist/types/src/version.d.ts +1 -1
  25. package/package.json +36 -36
  26. package/src/packlets/spaces/data-space-manager.ts +2 -2
  27. package/src/packlets/spaces/data-space.ts +4 -0
  28. package/src/version.ts +1 -1
@@ -7,7 +7,7 @@ import {
7
7
  InvitationsManager,
8
8
  ServiceContext,
9
9
  SpaceInvitationProtocol
10
- } from "../../chunk-USPTLPD3.mjs";
10
+ } from "../../chunk-7EGDXZNY.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 chunk_POBNOYEY_exports = {};
30
- __export(chunk_POBNOYEY_exports, {
29
+ var chunk_YPKL5SAD_exports = {};
30
+ __export(chunk_YPKL5SAD_exports, {
31
31
  ClientRpcServer: () => ClientRpcServer,
32
32
  ClientServicesHost: () => ClientServicesHost,
33
33
  ClientServicesProviderResource: () => ClientServicesProviderResource,
@@ -67,7 +67,7 @@ __export(chunk_POBNOYEY_exports, {
67
67
  subscribeToSpaces: () => subscribeToSpaces,
68
68
  subscribeToSwarmInfo: () => subscribeToSwarmInfo
69
69
  });
70
- module.exports = __toCommonJS(chunk_POBNOYEY_exports);
70
+ module.exports = __toCommonJS(chunk_YPKL5SAD_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,7 @@ var DataSpace = class {
4033
4033
  };
4034
4034
  });
4035
4035
  }
4036
+ await this._echoHost.openSpaceRoot(handle.url);
4036
4037
  } catch (err) {
4037
4038
  if (err instanceof import_context9.ContextDisposedError) {
4038
4039
  return;
@@ -4043,7 +4044,7 @@ var DataSpace = class {
4043
4044
  err
4044
4045
  }, {
4045
4046
  F: __dxlog_file13,
4046
- L: 391,
4047
+ L: 395,
4047
4048
  S: this,
4048
4049
  C: (f, a) => f(...a)
4049
4050
  });
@@ -4098,7 +4099,7 @@ var DataSpace = class {
4098
4099
  const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
4099
4100
  (0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
4100
4101
  F: __dxlog_file13,
4101
- L: 441,
4102
+ L: 445,
4102
4103
  S: this,
4103
4104
  A: [
4104
4105
  "typeof newRoot.url === 'string' && newRoot.url.length > 0",
@@ -4117,7 +4118,7 @@ var DataSpace = class {
4117
4118
  {
4118
4119
  import_log10.log.info("Fragmenting", void 0, {
4119
4120
  F: __dxlog_file13,
4120
- L: 453,
4121
+ L: 457,
4121
4122
  S: this,
4122
4123
  C: (f, a) => f(...a)
4123
4124
  });
@@ -4129,7 +4130,7 @@ var DataSpace = class {
4129
4130
  const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
4130
4131
  (0, import_invariant11.invariant)(properties, "Properties not found", {
4131
4132
  F: __dxlog_file13,
4132
- L: 463,
4133
+ L: 467,
4133
4134
  S: this,
4134
4135
  A: [
4135
4136
  "properties",
@@ -4145,7 +4146,7 @@ var DataSpace = class {
4145
4146
  const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
4146
4147
  (0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
4147
4148
  F: __dxlog_file13,
4148
- L: 468,
4149
+ L: 472,
4149
4150
  S: this,
4150
4151
  A: [
4151
4152
  "typeof newRoot.url === 'string' && newRoot.url.length > 0",
@@ -4214,7 +4215,7 @@ var DataSpace = class {
4214
4215
  state: import_services9.SpaceState[this._state]
4215
4216
  }, {
4216
4217
  F: __dxlog_file13,
4217
- L: 534,
4218
+ L: 538,
4218
4219
  S: this,
4219
4220
  C: (f, a) => f(...a)
4220
4221
  });
@@ -4505,9 +4506,9 @@ var DataSpaceManager = class {
4505
4506
  S: this,
4506
4507
  C: (f, a) => f(...a)
4507
4508
  });
4508
- const automergeRootUrl = await this._echoHost.createSpaceRoot(spaceKey);
4509
+ const root = await this._echoHost.createSpaceRoot(spaceKey);
4509
4510
  const space = await this._constructSpace(metadata);
4510
- const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner, automergeRootUrl);
4511
+ const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner, root.url);
4511
4512
  await this._metadataStore.addSpace(metadata);
4512
4513
  const memberCredential = credentials[1];
4513
4514
  (0, import_invariant13.invariant)((0, import_credentials13.getCredentialAssertion)(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
@@ -5335,7 +5336,7 @@ var ServiceRegistry = class {
5335
5336
  delete this._handlers[name];
5336
5337
  }
5337
5338
  };
5338
- var DXOS_VERSION = "0.5.3-main.d3c5e1f";
5339
+ var DXOS_VERSION = "0.5.3-main.de55336";
5339
5340
  var getPlatform = () => {
5340
5341
  if (process.browser) {
5341
5342
  if (typeof window !== "undefined") {
@@ -6356,4 +6357,4 @@ var findConfigs = () => {
6356
6357
  subscribeToSpaces,
6357
6358
  subscribeToSwarmInfo
6358
6359
  });
6359
- //# sourceMappingURL=chunk-POBNOYEY.cjs.map
6360
+ //# sourceMappingURL=chunk-YPKL5SAD.cjs.map