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

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.
@@ -7,7 +7,7 @@ import {
7
7
  InvitationsManager,
8
8
  ServiceContext,
9
9
  SpaceInvitationProtocol
10
- } from "../../chunk-7EGDXZNY.mjs";
10
+ } from "../../chunk-WHHSUGJJ.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_YPKL5SAD_exports = {};
30
- __export(chunk_YPKL5SAD_exports, {
29
+ var chunk_72XOUAW4_exports = {};
30
+ __export(chunk_72XOUAW4_exports, {
31
31
  ClientRpcServer: () => ClientRpcServer,
32
32
  ClientServicesHost: () => ClientServicesHost,
33
33
  ClientServicesProviderResource: () => ClientServicesProviderResource,
@@ -67,7 +67,7 @@ __export(chunk_YPKL5SAD_exports, {
67
67
  subscribeToSpaces: () => subscribeToSpaces,
68
68
  subscribeToSwarmInfo: () => subscribeToSwarmInfo
69
69
  });
70
- module.exports = __toCommonJS(chunk_YPKL5SAD_exports);
70
+ module.exports = __toCommonJS(chunk_72XOUAW4_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,7 +4033,19 @@ var DataSpace = class {
4033
4033
  };
4034
4034
  });
4035
4035
  }
4036
- await this._echoHost.openSpaceRoot(handle.url);
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
+ }
4037
4049
  } catch (err) {
4038
4050
  if (err instanceof import_context9.ContextDisposedError) {
4039
4051
  return;
@@ -4044,7 +4056,7 @@ var DataSpace = class {
4044
4056
  err
4045
4057
  }, {
4046
4058
  F: __dxlog_file13,
4047
- L: 395,
4059
+ L: 399,
4048
4060
  S: this,
4049
4061
  C: (f, a) => f(...a)
4050
4062
  });
@@ -4099,7 +4111,7 @@ var DataSpace = class {
4099
4111
  const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
4100
4112
  (0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
4101
4113
  F: __dxlog_file13,
4102
- L: 445,
4114
+ L: 449,
4103
4115
  S: this,
4104
4116
  A: [
4105
4117
  "typeof newRoot.url === 'string' && newRoot.url.length > 0",
@@ -4118,7 +4130,7 @@ var DataSpace = class {
4118
4130
  {
4119
4131
  import_log10.log.info("Fragmenting", void 0, {
4120
4132
  F: __dxlog_file13,
4121
- L: 457,
4133
+ L: 461,
4122
4134
  S: this,
4123
4135
  C: (f, a) => f(...a)
4124
4136
  });
@@ -4130,7 +4142,7 @@ var DataSpace = class {
4130
4142
  const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
4131
4143
  (0, import_invariant11.invariant)(properties, "Properties not found", {
4132
4144
  F: __dxlog_file13,
4133
- L: 467,
4145
+ L: 471,
4134
4146
  S: this,
4135
4147
  A: [
4136
4148
  "properties",
@@ -4146,7 +4158,7 @@ var DataSpace = class {
4146
4158
  const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
4147
4159
  (0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
4148
4160
  F: __dxlog_file13,
4149
- L: 472,
4161
+ L: 476,
4150
4162
  S: this,
4151
4163
  A: [
4152
4164
  "typeof newRoot.url === 'string' && newRoot.url.length > 0",
@@ -4215,7 +4227,7 @@ var DataSpace = class {
4215
4227
  state: import_services9.SpaceState[this._state]
4216
4228
  }, {
4217
4229
  F: __dxlog_file13,
4218
- L: 538,
4230
+ L: 542,
4219
4231
  S: this,
4220
4232
  C: (f, a) => f(...a)
4221
4233
  });
@@ -5336,7 +5348,7 @@ var ServiceRegistry = class {
5336
5348
  delete this._handlers[name];
5337
5349
  }
5338
5350
  };
5339
- var DXOS_VERSION = "0.5.3-main.de55336";
5351
+ var DXOS_VERSION = "0.5.3-main.e38fceb";
5340
5352
  var getPlatform = () => {
5341
5353
  if (process.browser) {
5342
5354
  if (typeof window !== "undefined") {
@@ -6357,4 +6369,4 @@ var findConfigs = () => {
6357
6369
  subscribeToSpaces,
6358
6370
  subscribeToSwarmInfo
6359
6371
  });
6360
- //# sourceMappingURL=chunk-YPKL5SAD.cjs.map
6372
+ //# sourceMappingURL=chunk-72XOUAW4.cjs.map