@puzzlehq/aleo-wasm-web 0.6.12 → 0.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/aleo_wasm_bg.wasm DELETED
Binary file
@@ -1,41 +0,0 @@
1
-
2
- export function spawnWorker(url, module, memory, address) {
3
- return new Promise((resolve) => {
4
- const worker = new Worker(url, {
5
- type: "module",
6
- });
7
-
8
- worker.addEventListener("message", (event) => {
9
- // This is needed in Node to wait one extra tick, so that way
10
- // the Worker can fully initialize before we return.
11
- setTimeout(() => {
12
- resolve(worker);
13
-
14
- // When running in Node, this allows the process to exit
15
- // even though the Worker is still running.
16
- if (worker.unref) {
17
- worker.unref();
18
- }
19
- }, 0);
20
- }, {
21
- capture: true,
22
- once: true,
23
- });
24
-
25
- worker.postMessage({
26
- module,
27
- memory,
28
- address,
29
- });
30
- });
31
- }
32
-
33
- export function startTimer() {
34
- // Starts a super-long timer in order to keep the Node
35
- // process alive until we manually cancel it.
36
- return setTimeout(() => {}, Math.pow(2, 31) - 1);
37
- }
38
-
39
- export function stopTimer(timer) {
40
- clearTimeout(timer);
41
- }