Spaces:
Configuration error
Configuration error
File size: 535 Bytes
5641073 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
let wasm;
/**
* Gets the webassembly module provided in provideWasm.
*/
export const getWasm = () => {
if (!wasm) {
throw new Error('BLAKE3 webassembly not loaded. Please import the module via `blake3/browser` or `blake3/browser-async`');
}
return wasm;
};
/**
* Sets the webassembly module used for the browser build. This indirection is
* needed to provide compatibility between the "browser" and "browser-async" modes.
*/
export const provideWasm = (w) => {
wasm = w;
};
//# sourceMappingURL=wasm.js.map |