fix(core): Refactored configuration management classes and improved service update handling

This commit is contained in:
2024-12-20 01:29:21 +01:00
parent a72227ce0d
commit 5badfc72f4
8 changed files with 137 additions and 128 deletions

View File

@@ -3,7 +3,12 @@ import { Spark } from './index.js';
export class SparkConfig {
public sparkRef: Spark;
public kvStore: plugins.npmextra.KeyValueStore;
constructor(sparkRefArg: Spark) {
this.sparkRef = sparkRefArg;
this.kvStore = new plugins.npmextra.KeyValueStore({
typeArg: 'userHomeDir',
identityArg: 'servezone_spark',
});
}
}