()
| 145 | |
| 146 | static async getConfig(): Promise<Config> { |
| 147 | await this.init(); |
| 148 | // 再次保证标准化(防止外部意外写入) |
| 149 | this.normalize(); |
| 150 | return this.db.data; |
| 151 | } |
| 152 | |
| 153 | static async saveConfig() { |
| 154 | await this.init(); |
| 155 | await this.db.write(); |
no test coverage detected