@dxos/client-services 0.1.53-main.528b72b → 0.1.53-main.52ca4e9
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.
- package/dist/lib/browser/{chunk-RKD47ENR.mjs → chunk-PWZ2J6KS.mjs} +16 -13
- package/dist/lib/browser/{chunk-RKD47ENR.mjs.map → chunk-PWZ2J6KS.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +8 -2
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +22 -13
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +15 -12
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/services/service-host.d.ts +6 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/package.json +32 -32
- package/src/packlets/services/service-host.test.ts +50 -2
- package/src/packlets/services/service-host.ts +9 -0
- package/src/packlets/vault/worker-runtime.ts +1 -1
|
@@ -3770,13 +3770,15 @@ var ClientServicesHost = class {
|
|
|
3770
3770
|
connectionLog,
|
|
3771
3771
|
storage,
|
|
3772
3772
|
// TODO(wittjosiah): Turn this on by default.
|
|
3773
|
-
lockKey
|
|
3773
|
+
lockKey,
|
|
3774
|
+
callbacks
|
|
3774
3775
|
} = {}) {
|
|
3775
3776
|
this._statusUpdate = new Event8();
|
|
3776
3777
|
this._opening = false;
|
|
3777
3778
|
this._open = false;
|
|
3778
3779
|
this._storage = storage;
|
|
3779
3780
|
this._modelFactory = modelFactory;
|
|
3781
|
+
this._callbacks = callbacks;
|
|
3780
3782
|
if (config) {
|
|
3781
3783
|
this.initialize({
|
|
3782
3784
|
config,
|
|
@@ -3864,7 +3866,7 @@ var ClientServicesHost = class {
|
|
|
3864
3866
|
id: traceId
|
|
3865
3867
|
}), {
|
|
3866
3868
|
F: __dxlog_file14,
|
|
3867
|
-
L:
|
|
3869
|
+
L: 203,
|
|
3868
3870
|
S: this,
|
|
3869
3871
|
C: (f, a) => f(...a)
|
|
3870
3872
|
});
|
|
@@ -3877,7 +3879,7 @@ var ClientServicesHost = class {
|
|
|
3877
3879
|
lockKey: (_a = this._resourceLock) == null ? void 0 : _a.lockKey
|
|
3878
3880
|
}, {
|
|
3879
3881
|
F: __dxlog_file14,
|
|
3880
|
-
L:
|
|
3882
|
+
L: 211,
|
|
3881
3883
|
S: this,
|
|
3882
3884
|
C: (f, a) => f(...a)
|
|
3883
3885
|
});
|
|
@@ -3912,7 +3914,7 @@ var ClientServicesHost = class {
|
|
|
3912
3914
|
deviceKey
|
|
3913
3915
|
}, {
|
|
3914
3916
|
F: __dxlog_file14,
|
|
3915
|
-
L:
|
|
3917
|
+
L: 266,
|
|
3916
3918
|
S: this,
|
|
3917
3919
|
C: (f, a) => f(...a)
|
|
3918
3920
|
});
|
|
@@ -3920,7 +3922,7 @@ var ClientServicesHost = class {
|
|
|
3920
3922
|
id: traceId
|
|
3921
3923
|
}), {
|
|
3922
3924
|
F: __dxlog_file14,
|
|
3923
|
-
L:
|
|
3925
|
+
L: 267,
|
|
3924
3926
|
S: this,
|
|
3925
3927
|
C: (f, a) => f(...a)
|
|
3926
3928
|
});
|
|
@@ -3935,7 +3937,7 @@ var ClientServicesHost = class {
|
|
|
3935
3937
|
deviceKey
|
|
3936
3938
|
}, {
|
|
3937
3939
|
F: __dxlog_file14,
|
|
3938
|
-
L:
|
|
3940
|
+
L: 277,
|
|
3939
3941
|
S: this,
|
|
3940
3942
|
C: (f, a) => f(...a)
|
|
3941
3943
|
});
|
|
@@ -3950,25 +3952,25 @@ var ClientServicesHost = class {
|
|
|
3950
3952
|
deviceKey
|
|
3951
3953
|
}, {
|
|
3952
3954
|
F: __dxlog_file14,
|
|
3953
|
-
L:
|
|
3955
|
+
L: 283,
|
|
3954
3956
|
S: this,
|
|
3955
3957
|
C: (f, a) => f(...a)
|
|
3956
3958
|
});
|
|
3957
3959
|
}
|
|
3958
3960
|
async reset() {
|
|
3959
|
-
var _a;
|
|
3961
|
+
var _a, _b, _c;
|
|
3960
3962
|
const traceId = PublicKey10.random().toHex();
|
|
3961
3963
|
log15.trace("dxos.sdk.client-services-host.reset", trace6.begin({
|
|
3962
3964
|
id: traceId
|
|
3963
3965
|
}), {
|
|
3964
3966
|
F: __dxlog_file14,
|
|
3965
|
-
L:
|
|
3967
|
+
L: 288,
|
|
3966
3968
|
S: this,
|
|
3967
3969
|
C: (f, a) => f(...a)
|
|
3968
3970
|
});
|
|
3969
3971
|
log15("resetting...", void 0, {
|
|
3970
3972
|
F: __dxlog_file14,
|
|
3971
|
-
L:
|
|
3973
|
+
L: 290,
|
|
3972
3974
|
S: this,
|
|
3973
3975
|
C: (f, a) => f(...a)
|
|
3974
3976
|
});
|
|
@@ -3976,7 +3978,7 @@ var ClientServicesHost = class {
|
|
|
3976
3978
|
await this._storage.reset();
|
|
3977
3979
|
log15("reset", void 0, {
|
|
3978
3980
|
F: __dxlog_file14,
|
|
3979
|
-
L:
|
|
3981
|
+
L: 293,
|
|
3980
3982
|
S: this,
|
|
3981
3983
|
C: (f, a) => f(...a)
|
|
3982
3984
|
});
|
|
@@ -3984,10 +3986,11 @@ var ClientServicesHost = class {
|
|
|
3984
3986
|
id: traceId
|
|
3985
3987
|
}), {
|
|
3986
3988
|
F: __dxlog_file14,
|
|
3987
|
-
L:
|
|
3989
|
+
L: 294,
|
|
3988
3990
|
S: this,
|
|
3989
3991
|
C: (f, a) => f(...a)
|
|
3990
3992
|
});
|
|
3993
|
+
await ((_c = (_b = this._callbacks) == null ? void 0 : _b.onReset) == null ? void 0 : _c.call(_b));
|
|
3991
3994
|
}
|
|
3992
3995
|
};
|
|
3993
3996
|
_ts_decorate4([
|
|
@@ -4028,4 +4031,4 @@ export {
|
|
|
4028
4031
|
createDefaultModelFactory,
|
|
4029
4032
|
ClientServicesHost
|
|
4030
4033
|
};
|
|
4031
|
-
//# sourceMappingURL=chunk-
|
|
4034
|
+
//# sourceMappingURL=chunk-PWZ2J6KS.mjs.map
|