mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01:00
9 lines
344 B
TypeScript
9 lines
344 B
TypeScript
const tursoWasmBase64 = '__PLACEHOLDER__';
|
|
async function convertBase64ToBinary(base64Url: string): Promise<ArrayBuffer> {
|
|
const blob = await fetch(base64Url).then(res => res.blob());
|
|
return await blob.arrayBuffer();
|
|
}
|
|
|
|
export async function tursoWasm(): Promise<ArrayBuffer> {
|
|
return await convertBase64ToBinary(tursoWasmBase64);
|
|
} |