mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
9 lines
No EOL
344 B
TypeScript
9 lines
No EOL
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);
|
|
} |