@dxos/client-services 0.4.3-main.97fc241 → 0.4.3-main.aa1c078

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.
@@ -2566,7 +2566,7 @@ var getPlatform = () => {
2566
2566
  };
2567
2567
 
2568
2568
  // packages/sdk/client-services/src/version.ts
2569
- var DXOS_VERSION = "0.4.3-main.97fc241";
2569
+ var DXOS_VERSION = "0.4.3-main.aa1c078";
2570
2570
 
2571
2571
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2572
2572
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -2708,10 +2708,10 @@ var getSpaceStats = async (space) => {
2708
2708
  };
2709
2709
 
2710
2710
  // packages/sdk/client-services/src/packlets/spaces/data-space.ts
2711
- import { Event as Event5, scheduleTask as scheduleTask4, sleep as sleep2, synchronized, trackLeaks } from "@dxos/async";
2711
+ import { Event as Event5, asyncTimeout, scheduleTask as scheduleTask4, sleep as sleep2, synchronized, trackLeaks } from "@dxos/async";
2712
2712
  import { AUTH_TIMEOUT as AUTH_TIMEOUT2 } from "@dxos/client-protocol";
2713
2713
  import { cancelWithContext as cancelWithContext2, Context as Context7, ContextDisposedError } from "@dxos/context";
2714
- import { timed, warnAfterTimeout } from "@dxos/debug";
2714
+ import { timed } from "@dxos/debug";
2715
2715
  import { createMappedFeedWriter } from "@dxos/echo-pipeline";
2716
2716
  import { failedInvariant } from "@dxos/invariant";
2717
2717
  import { PublicKey as PublicKey8 } from "@dxos/keys";
@@ -3317,12 +3317,7 @@ var DataSpace = class {
3317
3317
  const handle = this._automergeHost.repo.find(rootUrl);
3318
3318
  queueMicrotask(async () => {
3319
3319
  try {
3320
- await warnAfterTimeout(5e3, "Automerge root doc load timeout (DataSpace)", async () => {
3321
- await cancelWithContext2(this._ctx, handle.whenReady());
3322
- });
3323
- if (this._ctx.disposed) {
3324
- return;
3325
- }
3320
+ await asyncTimeout(handle.whenReady(), 5e3);
3326
3321
  const doc = handle.docSync() ?? failedInvariant();
3327
3322
  if (!doc.experimental_spaceKey) {
3328
3323
  handle.change((doc2) => {
@@ -3330,16 +3325,13 @@ var DataSpace = class {
3330
3325
  });
3331
3326
  }
3332
3327
  } catch (err) {
3333
- if (err instanceof ContextDisposedError) {
3334
- return;
3335
- }
3336
3328
  log10.warn("error loading automerge root doc", {
3337
3329
  space: this.key,
3338
3330
  rootUrl,
3339
3331
  err
3340
3332
  }, {
3341
3333
  F: __dxlog_file12,
3342
- L: 403,
3334
+ L: 394,
3343
3335
  S: this,
3344
3336
  C: (f, a) => f(...a)
3345
3337
  });
@@ -3429,7 +3421,7 @@ var DataSpace = class {
3429
3421
  state: SpaceState[this._state]
3430
3422
  }, {
3431
3423
  F: __dxlog_file12,
3432
- L: 492,
3424
+ L: 483,
3433
3425
  S: this,
3434
3426
  C: (f, a) => f(...a)
3435
3427
  });
@@ -4424,7 +4416,7 @@ var ServiceRegistry = class {
4424
4416
  };
4425
4417
 
4426
4418
  // packages/sdk/client-services/src/packlets/locks/browser.ts
4427
- import { asyncTimeout, Trigger as Trigger6 } from "@dxos/async";
4419
+ import { asyncTimeout as asyncTimeout2, Trigger as Trigger6 } from "@dxos/async";
4428
4420
  import { RESOURCE_LOCK_TIMEOUT } from "@dxos/client-protocol";
4429
4421
  import { log as log14, logInfo } from "@dxos/log";
4430
4422
  function _ts_decorate7(decorators, target, key, desc) {
@@ -4465,7 +4457,7 @@ var Lock = class {
4465
4457
  S: this,
4466
4458
  C: (f, a) => f(...a)
4467
4459
  });
4468
- await asyncTimeout(this._requestLock(), RESOURCE_LOCK_TIMEOUT);
4460
+ await asyncTimeout2(this._requestLock(), RESOURCE_LOCK_TIMEOUT);
4469
4461
  log14("acquired lock", void 0, {
4470
4462
  F: __dxlog_file16,
4471
4463
  L: 44,
@@ -4823,7 +4815,7 @@ var SystemServiceImpl = class {
4823
4815
  this._onReset = onReset;
4824
4816
  }
4825
4817
  async getConfig() {
4826
- return (await this._config?.())?.values ?? {};
4818
+ return this._config?.values ?? {};
4827
4819
  }
4828
4820
  /**
4829
4821
  * NOTE: Since this is serialized as a JSON object, we allow the option to serialize keys.
@@ -4930,7 +4922,7 @@ var ClientServicesHost = class {
4930
4922
  });
4931
4923
  }
4932
4924
  this._systemService = new SystemServiceImpl({
4933
- config: () => this._config,
4925
+ config: this._config,
4934
4926
  statusUpdate: this._statusUpdate,
4935
4927
  getCurrentStatus: () => this.isOpen ? SystemStatus.ACTIVE : SystemStatus.INACTIVE,
4936
4928
  getDiagnostics: () => {
@@ -5302,4 +5294,4 @@ export {
5302
5294
  createDefaultModelFactory,
5303
5295
  ClientServicesHost
5304
5296
  };
5305
- //# sourceMappingURL=chunk-6VFKD3HY.mjs.map
5297
+ //# sourceMappingURL=chunk-BS75Q23M.mjs.map