@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.
@@ -3654,22 +3654,6 @@ var ServiceContext = class {
3654
3654
  callSite: (f, a) => f(...a)
3655
3655
  });
3656
3656
  }
3657
- async reset() {
3658
- (0, import_log15.log)("resetting...", {}, {
3659
- file: "service-context.ts",
3660
- line: 142,
3661
- scope: this,
3662
- callSite: (f, a) => f(...a)
3663
- });
3664
- await this.close();
3665
- await this.storage.reset();
3666
- (0, import_log15.log)("reset", {}, {
3667
- file: "service-context.ts",
3668
- line: 145,
3669
- scope: this,
3670
- callSite: (f, a) => f(...a)
3671
- });
3672
- }
3673
3657
  async createIdentity(params = {}) {
3674
3658
  const identity = await this.identityManager.createIdentity(params);
3675
3659
  await this._initialize();
@@ -3690,7 +3674,7 @@ var ServiceContext = class {
3690
3674
  var _a;
3691
3675
  (0, import_log15.log)("initializing spaces...", {}, {
3692
3676
  file: "service-context.ts",
3693
- line: 170,
3677
+ line: 163,
3694
3678
  scope: this,
3695
3679
  callSite: (f, a) => f(...a)
3696
3680
  });
@@ -3730,7 +3714,7 @@ var ServiceContext = class {
3730
3714
  details: assertion
3731
3715
  }, {
3732
3716
  file: "service-context.ts",
3733
- line: 212,
3717
+ line: 205,
3734
3718
  scope: this,
3735
3719
  callSite: (f, a) => f(...a)
3736
3720
  });
@@ -3741,7 +3725,7 @@ var ServiceContext = class {
3741
3725
  details: assertion
3742
3726
  }, {
3743
3727
  file: "service-context.ts",
3744
- line: 216,
3728
+ line: 209,
3745
3729
  scope: this,
3746
3730
  callSite: (f, a) => f(...a)
3747
3731
  });
@@ -3752,7 +3736,7 @@ var ServiceContext = class {
3752
3736
  details: assertion
3753
3737
  }, {
3754
3738
  file: "service-context.ts",
3755
- line: 221,
3739
+ line: 214,
3756
3740
  scope: this,
3757
3741
  callSite: (f, a) => f(...a)
3758
3742
  });
@@ -3763,7 +3747,7 @@ var ServiceContext = class {
3763
3747
  } catch (err) {
3764
3748
  import_log15.log.catch(err, {}, {
3765
3749
  file: "service-context.ts",
3766
- line: 227,
3750
+ line: 220,
3767
3751
  scope: this,
3768
3752
  callSite: (f, a) => f(...a)
3769
3753
  });
@@ -3841,8 +3825,7 @@ var ClientServicesHost = class {
3841
3825
  }
3842
3826
  },
3843
3827
  onReset: async () => {
3844
- (0, import_node_assert13.default)(this._serviceContext, "service host is closed");
3845
- await this._serviceContext.reset();
3828
+ await this.reset();
3846
3829
  }
3847
3830
  });
3848
3831
  this._serviceRegistry = new ServiceRegistry(import_client8.clientServiceBundle, {
@@ -3889,7 +3872,7 @@ var ClientServicesHost = class {
3889
3872
  id: this._instanceId
3890
3873
  }), {
3891
3874
  file: "service-host.ts",
3892
- line: 167,
3875
+ line: 166,
3893
3876
  scope: this,
3894
3877
  callSite: (f, a) => f(...a)
3895
3878
  });
@@ -3901,7 +3884,7 @@ var ClientServicesHost = class {
3901
3884
  lockKey: (_a = this._resourceLock) == null ? void 0 : _a.lockKey
3902
3885
  }, {
3903
3886
  file: "service-host.ts",
3904
- line: 174,
3887
+ line: 173,
3905
3888
  scope: this,
3906
3889
  callSite: (f, a) => f(...a)
3907
3890
  });
@@ -3935,7 +3918,7 @@ var ClientServicesHost = class {
3935
3918
  deviceKey
3936
3919
  }, {
3937
3920
  file: "service-host.ts",
3938
- line: 221,
3921
+ line: 220,
3939
3922
  scope: this,
3940
3923
  callSite: (f, a) => f(...a)
3941
3924
  });
@@ -3950,7 +3933,7 @@ var ClientServicesHost = class {
3950
3933
  deviceKey
3951
3934
  }, {
3952
3935
  file: "service-host.ts",
3953
- line: 230,
3936
+ line: 229,
3954
3937
  scope: this,
3955
3938
  callSite: (f, a) => f(...a)
3956
3939
  });
@@ -3964,7 +3947,7 @@ var ClientServicesHost = class {
3964
3947
  deviceKey
3965
3948
  }, {
3966
3949
  file: "service-host.ts",
3967
- line: 235,
3950
+ line: 234,
3968
3951
  scope: this,
3969
3952
  callSite: (f, a) => f(...a)
3970
3953
  });
@@ -3972,7 +3955,24 @@ var ClientServicesHost = class {
3972
3955
  id: this._instanceId
3973
3956
  }), {
3974
3957
  file: "service-host.ts",
3975
- line: 237,
3958
+ line: 236,
3959
+ scope: this,
3960
+ callSite: (f, a) => f(...a)
3961
+ });
3962
+ }
3963
+ async reset() {
3964
+ var _a;
3965
+ (0, import_log16.log)("resetting...", {}, {
3966
+ file: "service-host.ts",
3967
+ line: 240,
3968
+ scope: this,
3969
+ callSite: (f, a) => f(...a)
3970
+ });
3971
+ await ((_a = this._serviceContext) == null ? void 0 : _a.close());
3972
+ await this._storage.reset();
3973
+ (0, import_log16.log)("reset", {}, {
3974
+ file: "service-host.ts",
3975
+ line: 243,
3976
3976
  scope: this,
3977
3977
  callSite: (f, a) => f(...a)
3978
3978
  });