From 4024d34df83ae142f8e11422a2a5a625def7af6e Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 25 Feb 2026 17:46:13 +0100 Subject: [PATCH] [PM-31406] fix: TypeScript 5.9 type compatibility fixes for audit.service (#19195) * fix: TypeScript 5.9 type compatibility fixes for audit.service Add explicit `as BufferSource` casts and `Uint8Array` wrapping to satisfy stricter type checking in TypeScript 5.9. Non-functional changes. * Add non-null assertion --- libs/common/src/services/audit.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/services/audit.service.ts b/libs/common/src/services/audit.service.ts index 7762c2cbd93..9e0f208c339 100644 --- a/libs/common/src/services/audit.service.ts +++ b/libs/common/src/services/audit.service.ts @@ -55,7 +55,7 @@ export class AuditService implements AuditServiceAbstraction { */ protected async fetchLeakedPasswordCount(password: string): Promise { const hashBytes = await this.cryptoFunctionService.hash(password, "sha1"); - const hash = Utils.fromBufferToHex(hashBytes).toUpperCase(); + const hash = Utils.fromArrayToHex(hashBytes)!.toUpperCase(); const hashStart = hash.substr(0, 5); const hashEnding = hash.substr(5);