@sodax/sdk 1.0.0-rc.4 → 1.0.0-rc.6
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/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +11 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6895,9 +6895,16 @@ var ConfigService = class {
|
|
|
6895
6895
|
}
|
|
6896
6896
|
async initialize() {
|
|
6897
6897
|
try {
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6898
|
+
const response = await this.backendApiService.getAllConfig();
|
|
6899
|
+
if (!response.version || response.version < types.CONFIG_VERSION) {
|
|
6900
|
+
console.warn(
|
|
6901
|
+
`Dynamic config version is less than the current version, resorting to the default one. Current version: ${types.CONFIG_VERSION}, response version: ${response.version}`
|
|
6902
|
+
);
|
|
6903
|
+
} else {
|
|
6904
|
+
this.sodaxConfig = response;
|
|
6905
|
+
this.loadSodaxConfigDataStructures(this.sodaxConfig);
|
|
6906
|
+
this.initialized = true;
|
|
6907
|
+
}
|
|
6901
6908
|
return {
|
|
6902
6909
|
ok: true,
|
|
6903
6910
|
value: void 0
|