diff options
Diffstat (limited to 'packages/server/src/helpers/toHash.ts')
-rw-r--r-- | packages/server/src/helpers/toHash.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/server/src/helpers/toHash.ts b/packages/server/src/helpers/toHash.ts index 2979509..d9dbda3 100644 --- a/packages/server/src/helpers/toHash.ts +++ b/packages/server/src/helpers/toHash.ts @@ -1,5 +1,5 @@ -import { COSEALG } from "./cose.ts"; -import { isoCrypto, isoUint8Array } from "./iso/index.ts"; +import { COSEALG } from './cose.ts'; +import { isoCrypto, isoUint8Array } from './iso/index.ts'; /** * Returns hash digest of the given data, using the given algorithm when provided. Defaults to using @@ -9,7 +9,7 @@ export function toHash( data: Uint8Array | string, algorithm: COSEALG = -7, ): Promise<Uint8Array> { - if (typeof data === "string") { + if (typeof data === 'string') { data = isoUint8Array.fromUTF8String(data); } |