From 7bb958416e44afddec9d164f42dcb5e32aae468f Mon Sep 17 00:00:00 2001 From: Francisco Pessano <76450203+FranP-code@users.noreply.github.com> Date: Thu, 14 Aug 2025 16:50:22 +0000 Subject: [PATCH] fix: improve readability by formatting importKey options in hkdf function --- src/Utils/crypto.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Utils/crypto.ts b/src/Utils/crypto.ts index d0d2510..d10a02b 100644 --- a/src/Utils/crypto.ts +++ b/src/Utils/crypto.ts @@ -136,7 +136,9 @@ export async function hkdf( const infoBytes = info.info ? new TextEncoder().encode(info.info) : new Uint8Array(0) // Import the input key material - const importedKey = await subtle.importKey('raw', inputKeyMaterial as BufferSource, { name: 'HKDF' }, false, ['deriveBits']) + const importedKey = await subtle.importKey('raw', inputKeyMaterial as BufferSource, { name: 'HKDF' }, false, [ + 'deriveBits' + ]) // Derive bits using HKDF const derivedBits = await subtle.deriveBits(