@dxos/client-services 0.5.9-main.af4882d → 0.5.9-main.b06c86b

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-6347C7P7.mjs";
10
+ } from "../../chunk-2JCI5YEM.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_YO26HDFH_exports = {};
30
- __export(chunk_YO26HDFH_exports, {
29
+ var chunk_HRQTR7UW_exports = {};
30
+ __export(chunk_HRQTR7UW_exports, {
31
31
  ClientRpcServer: () => ClientRpcServer,
32
32
  ClientServicesHost: () => ClientServicesHost,
33
33
  ClientServicesProviderResource: () => ClientServicesProviderResource,
@@ -66,7 +66,7 @@ __export(chunk_YO26HDFH_exports, {
66
66
  subscribeToSpaces: () => subscribeToSpaces,
67
67
  subscribeToSwarmInfo: () => subscribeToSwarmInfo
68
68
  });
69
- module.exports = __toCommonJS(chunk_YO26HDFH_exports);
69
+ module.exports = __toCommonJS(chunk_HRQTR7UW_exports);
70
70
  var import_async = require("@dxos/async");
71
71
  var import_codec_protobuf = require("@dxos/codec-protobuf");
72
72
  var import_feed_store = require("@dxos/feed-store");
@@ -631,7 +631,7 @@ var DevtoolsServiceImpl = class {
631
631
  });
632
632
  }
633
633
  };
634
- var DXOS_VERSION = "0.5.9-main.af4882d";
634
+ var DXOS_VERSION = "0.5.9-main.b06c86b";
635
635
  var getPlatform = () => {
636
636
  if (process.browser) {
637
637
  if (typeof window !== "undefined") {
@@ -2934,16 +2934,29 @@ var InvitationsHandler = class {
2934
2934
  };
2935
2935
  }
2936
2936
  _logStateUpdate(invitation, actor, newState) {
2937
- (0, import_log6.log)("invitation state update", {
2938
- actor: actor?.constructor.name,
2939
- newState: stateToString(newState),
2940
- oldState: stateToString(invitation.state)
2941
- }, {
2942
- F: __dxlog_file11,
2943
- L: 438,
2944
- S: this,
2945
- C: (f, a) => f(...a)
2946
- });
2937
+ if (this._isNotTerminal(newState)) {
2938
+ (0, import_log6.log)("invitation state update", {
2939
+ actor: actor?.constructor.name,
2940
+ newState: stateToString(newState),
2941
+ oldState: stateToString(invitation.state)
2942
+ }, {
2943
+ F: __dxlog_file11,
2944
+ L: 439,
2945
+ S: this,
2946
+ C: (f, a) => f(...a)
2947
+ });
2948
+ } else {
2949
+ import_log6.log.info("invitation state update", {
2950
+ actor: actor?.constructor.name,
2951
+ newState: stateToString(newState),
2952
+ oldState: stateToString(invitation.state)
2953
+ }, {
2954
+ F: __dxlog_file11,
2955
+ L: 445,
2956
+ S: this,
2957
+ C: (f, a) => f(...a)
2958
+ });
2959
+ }
2947
2960
  }
2948
2961
  _isNotTerminal(currentState) {
2949
2962
  return ![
@@ -2958,7 +2971,7 @@ var InvitationsHandler = class {
2958
2971
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
2959
2972
  (0, import_log6.log)("guest waiting for authentication code...", void 0, {
2960
2973
  F: __dxlog_file11,
2961
- L: 462,
2974
+ L: 470,
2962
2975
  S: this,
2963
2976
  C: (f, a) => f(...a)
2964
2977
  });
@@ -2966,7 +2979,7 @@ var InvitationsHandler = class {
2966
2979
  const authCode = await authenticated.wait(options);
2967
2980
  (0, import_log6.log)("sending authentication request", void 0, {
2968
2981
  F: __dxlog_file11,
2969
- L: 466,
2982
+ L: 474,
2970
2983
  S: this,
2971
2984
  C: (f, a) => f(...a)
2972
2985
  });
@@ -2985,7 +2998,7 @@ var InvitationsHandler = class {
2985
2998
  attempt
2986
2999
  }, {
2987
3000
  F: __dxlog_file11,
2988
- L: 477,
3001
+ L: 485,
2989
3002
  S: this,
2990
3003
  C: (f, a) => f(...a)
2991
3004
  });
@@ -3003,7 +3016,7 @@ var InvitationsHandler = class {
3003
3016
  }
3004
3017
  (0, import_log6.log)("sending authentication request", void 0, {
3005
3018
  F: __dxlog_file11,
3006
- L: 496,
3019
+ L: 504,
3007
3020
  S: this,
3008
3021
  C: (f, a) => f(...a)
3009
3022
  });
@@ -4545,7 +4558,6 @@ var DataSpace = class {
4545
4558
  S: this,
4546
4559
  C: (f, a) => f(...a)
4547
4560
  });
4548
- this._echoHost.replicateDocument(rootUrl);
4549
4561
  const handle = this._echoHost.automergeRepo.find(rootUrl);
4550
4562
  queueMicrotask(async () => {
4551
4563
  try {
@@ -4596,7 +4608,7 @@ var DataSpace = class {
4596
4608
  err
4597
4609
  }, {
4598
4610
  F: __dxlog_file16,
4599
- L: 433,
4611
+ L: 431,
4600
4612
  S: this,
4601
4613
  C: (f, a) => f(...a)
4602
4614
  });
@@ -4682,7 +4694,7 @@ var DataSpace = class {
4682
4694
  state: import_services12.SpaceState[this._state]
4683
4695
  }, {
4684
4696
  F: __dxlog_file16,
4685
- L: 514,
4697
+ L: 512,
4686
4698
  S: this,
4687
4699
  C: (f, a) => f(...a)
4688
4700
  });
@@ -6710,4 +6722,4 @@ ClientServicesHost = _ts_decorate8([
6710
6722
  subscribeToSpaces,
6711
6723
  subscribeToSwarmInfo
6712
6724
  });
6713
- //# sourceMappingURL=chunk-YO26HDFH.cjs.map
6725
+ //# sourceMappingURL=chunk-HRQTR7UW.cjs.map