Skip to content

Commit 9712616

Browse files
committed
fix buffersource error
1 parent 5c640c9 commit 9712616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sqlsync-worker/src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const pendingPromise = <T = undefined>(): [Promise<T>, (v: T) => void] =>
5555

5656
export const sha256Digest = async (data: Uint8Array): Promise<Uint8Array> => {
5757
if (crypto?.subtle?.digest) {
58-
const hash = await crypto.subtle.digest("SHA-256", data);
58+
const hash = await crypto.subtle.digest("SHA-256", data as BufferSource);
5959
return new Uint8Array(hash);
6060
}
6161

0 commit comments

Comments
 (0)