We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c640c9 commit 9712616Copy full SHA for 9712616
lib/sqlsync-worker/src/util.ts
@@ -55,7 +55,7 @@ export const pendingPromise = <T = undefined>(): [Promise<T>, (v: T) => void] =>
55
56
export const sha256Digest = async (data: Uint8Array): Promise<Uint8Array> => {
57
if (crypto?.subtle?.digest) {
58
- const hash = await crypto.subtle.digest("SHA-256", data);
+ const hash = await crypto.subtle.digest("SHA-256", data as BufferSource);
59
return new Uint8Array(hash);
60
}
61
0 commit comments