We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 342ec99 commit 7a5886dCopy full SHA for 7a5886d
packages/svelte/src/internal/server/crypto.js
@@ -4,5 +4,6 @@ let text_encoder;
4
export async function sha256(data) {
5
text_encoder ??= new TextEncoder();
6
const hash_buffer = await crypto.subtle.digest('SHA-256', text_encoder.encode(data));
7
+ // @ts-ignore - we don't install node types in the prod build
8
return Buffer.from(hash_buffer).toString('base64');
9
}
0 commit comments