@dxos/client-services 0.1.37-next.f87f7ef → 0.1.37

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.
@@ -3660,22 +3660,6 @@ var ServiceContext = class {
3660
3660
  callSite: (f, a) => f(...a)
3661
3661
  });
3662
3662
  }
3663
- async reset() {
3664
- log14("resetting...", {}, {
3665
- file: "service-context.ts",
3666
- line: 142,
3667
- scope: this,
3668
- callSite: (f, a) => f(...a)
3669
- });
3670
- await this.close();
3671
- await this.storage.reset();
3672
- log14("reset", {}, {
3673
- file: "service-context.ts",
3674
- line: 145,
3675
- scope: this,
3676
- callSite: (f, a) => f(...a)
3677
- });
3678
- }
3679
3663
  async createIdentity(params = {}) {
3680
3664
  const identity = await this.identityManager.createIdentity(params);
3681
3665
  await this._initialize();
@@ -3696,7 +3680,7 @@ var ServiceContext = class {
3696
3680
  var _a;
3697
3681
  log14("initializing spaces...", {}, {
3698
3682
  file: "service-context.ts",
3699
- line: 170,
3683
+ line: 163,
3700
3684
  scope: this,
3701
3685
  callSite: (f, a) => f(...a)
3702
3686
  });
@@ -3736,7 +3720,7 @@ var ServiceContext = class {
3736
3720
  details: assertion
3737
3721
  }, {
3738
3722
  file: "service-context.ts",
3739
- line: 212,
3723
+ line: 205,
3740
3724
  scope: this,
3741
3725
  callSite: (f, a) => f(...a)
3742
3726
  });
@@ -3747,7 +3731,7 @@ var ServiceContext = class {
3747
3731
  details: assertion
3748
3732
  }, {
3749
3733
  file: "service-context.ts",
3750
- line: 216,
3734
+ line: 209,
3751
3735
  scope: this,
3752
3736
  callSite: (f, a) => f(...a)
3753
3737
  });
@@ -3758,7 +3742,7 @@ var ServiceContext = class {
3758
3742
  details: assertion
3759
3743
  }, {
3760
3744
  file: "service-context.ts",
3761
- line: 221,
3745
+ line: 214,
3762
3746
  scope: this,
3763
3747
  callSite: (f, a) => f(...a)
3764
3748
  });
@@ -3769,7 +3753,7 @@ var ServiceContext = class {
3769
3753
  } catch (err) {
3770
3754
  log14.catch(err, {}, {
3771
3755
  file: "service-context.ts",
3772
- line: 227,
3756
+ line: 220,
3773
3757
  scope: this,
3774
3758
  callSite: (f, a) => f(...a)
3775
3759
  });
@@ -3847,8 +3831,7 @@ var ClientServicesHost = class {
3847
3831
  }
3848
3832
  },
3849
3833
  onReset: async () => {
3850
- assert13(this._serviceContext, "service host is closed");
3851
- await this._serviceContext.reset();
3834
+ await this.reset();
3852
3835
  }
3853
3836
  });
3854
3837
  this._serviceRegistry = new ServiceRegistry(clientServiceBundle, {
@@ -3895,7 +3878,7 @@ var ClientServicesHost = class {
3895
3878
  id: this._instanceId
3896
3879
  }), {
3897
3880
  file: "service-host.ts",
3898
- line: 167,
3881
+ line: 166,
3899
3882
  scope: this,
3900
3883
  callSite: (f, a) => f(...a)
3901
3884
  });
@@ -3907,7 +3890,7 @@ var ClientServicesHost = class {
3907
3890
  lockKey: (_a = this._resourceLock) == null ? void 0 : _a.lockKey
3908
3891
  }, {
3909
3892
  file: "service-host.ts",
3910
- line: 174,
3893
+ line: 173,
3911
3894
  scope: this,
3912
3895
  callSite: (f, a) => f(...a)
3913
3896
  });
@@ -3941,7 +3924,7 @@ var ClientServicesHost = class {
3941
3924
  deviceKey
3942
3925
  }, {
3943
3926
  file: "service-host.ts",
3944
- line: 221,
3927
+ line: 220,
3945
3928
  scope: this,
3946
3929
  callSite: (f, a) => f(...a)
3947
3930
  });
@@ -3956,7 +3939,7 @@ var ClientServicesHost = class {
3956
3939
  deviceKey
3957
3940
  }, {
3958
3941
  file: "service-host.ts",
3959
- line: 230,
3942
+ line: 229,
3960
3943
  scope: this,
3961
3944
  callSite: (f, a) => f(...a)
3962
3945
  });
@@ -3970,7 +3953,7 @@ var ClientServicesHost = class {
3970
3953
  deviceKey
3971
3954
  }, {
3972
3955
  file: "service-host.ts",
3973
- line: 235,
3956
+ line: 234,
3974
3957
  scope: this,
3975
3958
  callSite: (f, a) => f(...a)
3976
3959
  });
@@ -3978,7 +3961,24 @@ var ClientServicesHost = class {
3978
3961
  id: this._instanceId
3979
3962
  }), {
3980
3963
  file: "service-host.ts",
3981
- line: 237,
3964
+ line: 236,
3965
+ scope: this,
3966
+ callSite: (f, a) => f(...a)
3967
+ });
3968
+ }
3969
+ async reset() {
3970
+ var _a;
3971
+ log15("resetting...", {}, {
3972
+ file: "service-host.ts",
3973
+ line: 240,
3974
+ scope: this,
3975
+ callSite: (f, a) => f(...a)
3976
+ });
3977
+ await ((_a = this._serviceContext) == null ? void 0 : _a.close());
3978
+ await this._storage.reset();
3979
+ log15("reset", {}, {
3980
+ file: "service-host.ts",
3981
+ line: 243,
3982
3982
  scope: this,
3983
3983
  callSite: (f, a) => f(...a)
3984
3984
  });
@@ -4199,4 +4199,4 @@ export {
4199
4199
  LocalClientServices,
4200
4200
  fromHost
4201
4201
  };
4202
- //# sourceMappingURL=chunk-YFW25663.mjs.map
4202
+ //# sourceMappingURL=chunk-6PNXHM7C.mjs.map