@dxos/client-services 0.1.46-next.412561 → 0.1.46
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-ZHDJQGXL.mjs → chunk-MGKMTUPD.mjs} +28 -12
- package/dist/lib/browser/{chunk-ZHDJQGXL.mjs.map → chunk-MGKMTUPD.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +26 -10
- 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 +26 -10
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/services/service-context.d.ts +1 -0
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/packlets/services/service-context.ts +12 -1
|
@@ -3865,9 +3865,10 @@ var ServiceContext = class {
|
|
|
3865
3865
|
scope: this,
|
|
3866
3866
|
callSite: (f, a) => f(...a)
|
|
3867
3867
|
});
|
|
3868
|
+
await this._checkStorageVersion();
|
|
3868
3869
|
(0, import_log18.log)("opening...", {}, {
|
|
3869
3870
|
file: "service-context.ts",
|
|
3870
|
-
line:
|
|
3871
|
+
line: 123,
|
|
3871
3872
|
scope: this,
|
|
3872
3873
|
callSite: (f, a) => f(...a)
|
|
3873
3874
|
});
|
|
@@ -3880,7 +3881,7 @@ var ServiceContext = class {
|
|
|
3880
3881
|
}
|
|
3881
3882
|
(0, import_log18.log)("opened", {}, {
|
|
3882
3883
|
file: "service-context.ts",
|
|
3883
|
-
line:
|
|
3884
|
+
line: 131,
|
|
3884
3885
|
scope: this,
|
|
3885
3886
|
callSite: (f, a) => f(...a)
|
|
3886
3887
|
});
|
|
@@ -3888,7 +3889,7 @@ var ServiceContext = class {
|
|
|
3888
3889
|
id: this._instanceId
|
|
3889
3890
|
}), {
|
|
3890
3891
|
file: "service-context.ts",
|
|
3891
|
-
line:
|
|
3892
|
+
line: 132,
|
|
3892
3893
|
scope: this,
|
|
3893
3894
|
callSite: (f, a) => f(...a)
|
|
3894
3895
|
});
|
|
@@ -3897,7 +3898,7 @@ var ServiceContext = class {
|
|
|
3897
3898
|
var _a, _b;
|
|
3898
3899
|
(0, import_log18.log)("closing...", {}, {
|
|
3899
3900
|
file: "service-context.ts",
|
|
3900
|
-
line:
|
|
3901
|
+
line: 136,
|
|
3901
3902
|
scope: this,
|
|
3902
3903
|
callSite: (f, a) => f(...a)
|
|
3903
3904
|
});
|
|
@@ -3911,7 +3912,7 @@ var ServiceContext = class {
|
|
|
3911
3912
|
this.dataServiceSubscriptions.clear();
|
|
3912
3913
|
(0, import_log18.log)("closed", {}, {
|
|
3913
3914
|
file: "service-context.ts",
|
|
3914
|
-
line:
|
|
3915
|
+
line: 145,
|
|
3915
3916
|
scope: this,
|
|
3916
3917
|
callSite: (f, a) => f(...a)
|
|
3917
3918
|
});
|
|
@@ -3931,12 +3932,27 @@ var ServiceContext = class {
|
|
|
3931
3932
|
await this._initialize();
|
|
3932
3933
|
return identity;
|
|
3933
3934
|
}
|
|
3935
|
+
async _checkStorageVersion() {
|
|
3936
|
+
await this.metadataStore.load();
|
|
3937
|
+
if (this.metadataStore.version !== import_protocols8.STORAGE_VERSION) {
|
|
3938
|
+
import_log18.log.error("Invalid storage version", {
|
|
3939
|
+
current: this.metadataStore.version,
|
|
3940
|
+
expected: import_protocols8.STORAGE_VERSION
|
|
3941
|
+
}, {
|
|
3942
|
+
file: "service-context.ts",
|
|
3943
|
+
line: 171,
|
|
3944
|
+
scope: this,
|
|
3945
|
+
callSite: (f, a) => f(...a)
|
|
3946
|
+
});
|
|
3947
|
+
await this.metadataStore.clear();
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3934
3950
|
// Called when identity is created.
|
|
3935
3951
|
async _initialize() {
|
|
3936
3952
|
var _a;
|
|
3937
3953
|
(0, import_log18.log)("initializing spaces...", {}, {
|
|
3938
3954
|
file: "service-context.ts",
|
|
3939
|
-
line:
|
|
3955
|
+
line: 179,
|
|
3940
3956
|
scope: this,
|
|
3941
3957
|
callSite: (f, a) => f(...a)
|
|
3942
3958
|
});
|
|
@@ -3975,7 +3991,7 @@ var ServiceContext = class {
|
|
|
3975
3991
|
details: assertion
|
|
3976
3992
|
}, {
|
|
3977
3993
|
file: "service-context.ts",
|
|
3978
|
-
line:
|
|
3994
|
+
line: 218,
|
|
3979
3995
|
scope: this,
|
|
3980
3996
|
callSite: (f, a) => f(...a)
|
|
3981
3997
|
});
|
|
@@ -3986,7 +4002,7 @@ var ServiceContext = class {
|
|
|
3986
4002
|
details: assertion
|
|
3987
4003
|
}, {
|
|
3988
4004
|
file: "service-context.ts",
|
|
3989
|
-
line:
|
|
4005
|
+
line: 222,
|
|
3990
4006
|
scope: this,
|
|
3991
4007
|
callSite: (f, a) => f(...a)
|
|
3992
4008
|
});
|
|
@@ -3997,7 +4013,7 @@ var ServiceContext = class {
|
|
|
3997
4013
|
details: assertion
|
|
3998
4014
|
}, {
|
|
3999
4015
|
file: "service-context.ts",
|
|
4000
|
-
line:
|
|
4016
|
+
line: 227,
|
|
4001
4017
|
scope: this,
|
|
4002
4018
|
callSite: (f, a) => f(...a)
|
|
4003
4019
|
});
|
|
@@ -4008,7 +4024,7 @@ var ServiceContext = class {
|
|
|
4008
4024
|
} catch (err) {
|
|
4009
4025
|
import_log18.log.catch(err, {}, {
|
|
4010
4026
|
file: "service-context.ts",
|
|
4011
|
-
line:
|
|
4027
|
+
line: 233,
|
|
4012
4028
|
scope: this,
|
|
4013
4029
|
callSite: (f, a) => f(...a)
|
|
4014
4030
|
});
|