mirror of
https://github.com/JonasunderscoreJones/aka-worker.git
synced 2025-10-23 18:09:19 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
parent
8cb86120f1
commit
fff961078a
1777 changed files with 1011798 additions and 0 deletions
20
cool-dawn-3d3b/node_modules/blake3-wasm/dist/browser/wasm.js
generated
vendored
Normal file
20
cool-dawn-3d3b/node_modules/blake3-wasm/dist/browser/wasm.js
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
let wasm;
|
||||
/**
|
||||
* Gets the webassembly module provided in provideWasm.
|
||||
*/
|
||||
exports.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.
|
||||
*/
|
||||
exports.provideWasm = (w) => {
|
||||
wasm = w;
|
||||
};
|
||||
//# sourceMappingURL=wasm.js.map
|
Loading…
Add table
Add a link
Reference in a new issue