@dxos/client-services 0.3.3-main.f990aad → 0.3.3-main.ff5734a

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.
@@ -2498,7 +2498,6 @@ ClientRpcServer = _ts_decorate3([
2498
2498
  ], ClientRpcServer);
2499
2499
 
2500
2500
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2501
- import { Trigger as Trigger4 } from "@dxos/async";
2502
2501
  import { getFirstStreamValue } from "@dxos/codec-protobuf";
2503
2502
  import { credentialTypeFilter } from "@dxos/credentials";
2504
2503
  import { DocumentModel } from "@dxos/document-model";
@@ -2537,7 +2536,7 @@ var getPlatform = () => {
2537
2536
  };
2538
2537
 
2539
2538
  // packages/sdk/client-services/src/version.ts
2540
- var DXOS_VERSION = "0.3.3-main.f990aad";
2539
+ var DXOS_VERSION = "0.3.3-main.ff5734a";
2541
2540
 
2542
2541
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2543
2542
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -2556,7 +2555,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
2556
2555
  {
2557
2556
  invariant9(clientServices.LoggingService, "SystemService is not available.", {
2558
2557
  F: __dxlog_file10,
2559
- L: 93,
2558
+ L: 92,
2560
2559
  S: void 0,
2561
2560
  A: [
2562
2561
  "clientServices.LoggingService",
@@ -2593,15 +2592,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
2593
2592
  timeout: DEFAULT_TIMEOUT
2594
2593
  }).catch(() => void 0);
2595
2594
  diagnostics.networkStatus = status;
2596
- const swarmInfoDone = new Trigger4();
2597
- serviceContext.networkManager.connectionLog?.update.on(async () => {
2598
- const swarms = serviceContext.networkManager.connectionLog?.swarms;
2599
- diagnostics.swarms = swarms;
2600
- await swarmInfoDone.wake();
2601
- });
2602
- await swarmInfoDone.wait({
2603
- timeout: DEFAULT_TIMEOUT
2604
- });
2595
+ diagnostics.swarms = serviceContext.networkManager.connectionLog?.swarms;
2605
2596
  }
2606
2597
  diagnostics.config = config.values;
2607
2598
  return diagnostics;
@@ -2615,7 +2606,7 @@ var getProperties = (space) => {
2615
2606
  } catch (err) {
2616
2607
  log8.warn(err.message, void 0, {
2617
2608
  F: __dxlog_file10,
2618
- L: 168,
2609
+ L: 160,
2619
2610
  S: void 0,
2620
2611
  C: (f, a) => f(...a)
2621
2612
  });
@@ -2686,7 +2677,7 @@ import { trace as trace6 } from "@dxos/tracing";
2686
2677
  import { ComplexSet as ComplexSet3 } from "@dxos/util";
2687
2678
 
2688
2679
  // packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts
2689
- import { DeferredTask, Event as Event4, scheduleTask as scheduleTask3, sleep, TimeoutError as TimeoutError2, Trigger as Trigger5 } from "@dxos/async";
2680
+ import { DeferredTask, Event as Event4, scheduleTask as scheduleTask3, sleep, TimeoutError as TimeoutError2, Trigger as Trigger4 } from "@dxos/async";
2690
2681
  import { Context as Context6, rejectOnDispose } from "@dxos/context";
2691
2682
  import { invariant as invariant10 } from "@dxos/invariant";
2692
2683
  import { PublicKey as PublicKey7 } from "@dxos/keys";
@@ -2736,7 +2727,7 @@ var NotarizationPlugin = class {
2736
2727
  "'Credentials must have an id'"
2737
2728
  ]
2738
2729
  });
2739
- const errors = new Trigger5();
2730
+ const errors = new Trigger4();
2740
2731
  const ctx = this._ctx.derive({
2741
2732
  onError: (err) => {
2742
2733
  log9.warn("Notarization error", {
@@ -2867,7 +2858,7 @@ var NotarizationPlugin = class {
2867
2858
  if (this._processedCredentials.has(id)) {
2868
2859
  return;
2869
2860
  }
2870
- await entry(this._processCredentialsTriggers, id).orInsert(new Trigger5()).value.wait();
2861
+ await entry(this._processCredentialsTriggers, id).orInsert(new Trigger4()).value.wait();
2871
2862
  }
2872
2863
  /**
2873
2864
  * Requests from other peers to notarize credentials.
@@ -3951,7 +3942,7 @@ var SpacesServiceImpl = class {
3951
3942
  var getChannelId = (channel) => `user-channel/${channel}`;
3952
3943
 
3953
3944
  // packages/sdk/client-services/src/packlets/services/service-context.ts
3954
- import { Trigger as Trigger6 } from "@dxos/async";
3945
+ import { Trigger as Trigger5 } from "@dxos/async";
3955
3946
  import { Context as Context9 } from "@dxos/context";
3956
3947
  import { getCredentialAssertion as getCredentialAssertion3 } from "@dxos/credentials";
3957
3948
  import { failUndefined as failUndefined3 } from "@dxos/debug";
@@ -3983,7 +3974,7 @@ var ServiceContext = class ServiceContext2 {
3983
3974
  this.networkManager = networkManager;
3984
3975
  this.signalManager = signalManager;
3985
3976
  this.modelFactory = modelFactory;
3986
- this.initialized = new Trigger6();
3977
+ this.initialized = new Trigger5();
3987
3978
  this.dataServiceSubscriptions = new DataServiceSubscriptions();
3988
3979
  this._handlerFactories = /* @__PURE__ */ new Map();
3989
3980
  this._instanceId = PublicKey10.random().toHex();
@@ -4236,7 +4227,7 @@ var ServiceRegistry = class {
4236
4227
  };
4237
4228
 
4238
4229
  // packages/sdk/client-services/src/packlets/locks/browser.ts
4239
- import { asyncTimeout, Trigger as Trigger7 } from "@dxos/async";
4230
+ import { asyncTimeout, Trigger as Trigger6 } from "@dxos/async";
4240
4231
  import { RESOURCE_LOCK_TIMEOUT } from "@dxos/client-protocol";
4241
4232
  import { log as log14, logInfo } from "@dxos/log";
4242
4233
  function _ts_decorate7(decorators, target, key, desc) {
@@ -4257,7 +4248,7 @@ var Message;
4257
4248
  var Lock = class {
4258
4249
  constructor({ lockKey, onAcquire, onRelease }) {
4259
4250
  this._broadcastChannel = new BroadcastChannel("vault-resource-lock");
4260
- this._releaseTrigger = new Trigger7();
4251
+ this._releaseTrigger = new Trigger6();
4261
4252
  this._lockKey = lockKey;
4262
4253
  this._onAcquire = onAcquire;
4263
4254
  this._onRelease = onRelease;
@@ -4317,13 +4308,13 @@ var Lock = class {
4317
4308
  S: this,
4318
4309
  C: (f, a) => f(...a)
4319
4310
  });
4320
- const acquired = new Trigger7();
4311
+ const acquired = new Trigger6();
4321
4312
  void navigator.locks.request(this._lockKey, {
4322
4313
  steal
4323
4314
  }, async () => {
4324
4315
  await this._onAcquire?.();
4325
4316
  acquired.wake();
4326
- this._releaseTrigger = new Trigger7();
4317
+ this._releaseTrigger = new Trigger6();
4327
4318
  await this._releaseTrigger.wait();
4328
4319
  log14("releasing lock...", void 0, {
4329
4320
  F: __dxlog_file16,
@@ -5088,4 +5079,4 @@ export {
5088
5079
  createDefaultModelFactory,
5089
5080
  ClientServicesHost
5090
5081
  };
5091
- //# sourceMappingURL=chunk-UUQTHQF5.mjs.map
5082
+ //# sourceMappingURL=chunk-OTXSFYDU.mjs.map