From bb07802c935a370bb332b05f67170104ff544429 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 28 Feb 2024 04:50:04 +0000 Subject: [PATCH] prettier --- src/webcrypto.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webcrypto.ts b/src/webcrypto.ts index 1989c0f..3400903 100644 --- a/src/webcrypto.ts +++ b/src/webcrypto.ts @@ -68,9 +68,9 @@ export const utils = { const mode = { CBC: 'AES-CBC', CTR: 'AES-CTR', - GCM: 'AES-GCM' + GCM: 'AES-GCM', } as const; -type BlockMode = typeof mode[keyof typeof mode] +type BlockMode = (typeof mode)[keyof typeof mode]; function getCryptParams(algo: BlockMode, nonce: Uint8Array, AAD?: Uint8Array) { if (algo === mode.CBC) return { name: mode.CBC, iv: nonce };