* chore(deps): update cargo dependencies * fix: sysinfo crate use limit features * fix: update headers-core dependency and kode-bridge version; enhance system monitor status validation * fix: extend overall_status type in ISystemMonitorOverview to include 'healthy' * refactor: update URL encoding strategy in IpcManager and cmdGetProxyDelay function * fix: resolve speed test functionality issue after IPC migration * fix: resolve speed test functionality issue after IPC migration #4221, #4218 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
@@ -138,7 +138,7 @@ export class SystemMonitorValidator implements ISystemMonitorOverviewValidator {
|
||||
private validateOverallStatus(status: any): boolean {
|
||||
return (
|
||||
typeof status === "string" &&
|
||||
["active", "inactive", "error", "unknown"].includes(status)
|
||||
["active", "inactive", "error", "unknown", "healthy"].includes(status)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -190,12 +190,12 @@ export class SystemMonitorValidator implements ISystemMonitorOverviewValidator {
|
||||
|
||||
private sanitizeOverallStatus(
|
||||
status: any,
|
||||
): "active" | "inactive" | "error" | "unknown" {
|
||||
): "active" | "inactive" | "error" | "unknown" | "healthy" {
|
||||
if (
|
||||
typeof status === "string" &&
|
||||
["active", "inactive", "error", "unknown"].includes(status)
|
||||
["active", "inactive", "error", "unknown", "healthy"].includes(status)
|
||||
) {
|
||||
return status as "active" | "inactive" | "error" | "unknown";
|
||||
return status as "active" | "inactive" | "error" | "unknown" | "healthy";
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user