@fluffylabs/anan-as 1.1.1-b8e442b → 1.1.1-fbc6aca

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.
@@ -9,8 +9,7 @@ export const wasmBase64 = "AGFzbQEAAAABhAInYAF/AX9gAn9/AGAEf39/fwF/YAJ/fwF/YAN/f
9
9
  // Helper function to decode and instantiate the module
10
10
  export async function instantiate(imports) {
11
11
  const wasmBytes = Uint8Array.from(atob(wasmBase64), c => c.charCodeAt(0));
12
- const module = await WebAssembly.compile(wasmBytes);
13
- return raw.instantiate(module, imports);
12
+ return raw.instantiate(wasmBytes, imports);
14
13
  }
15
14
 
16
15
  // Helper function to just get the bytes
@@ -9,8 +9,7 @@ export const wasmBase64 = "AGFzbQEAAAABhAInYAF/AX9gAn9/AGAEf39/fwF/YAJ/fwF/YAN/f
9
9
  // Helper function to decode and instantiate the module
10
10
  export async function instantiate(imports) {
11
11
  const wasmBytes = Uint8Array.from(atob(wasmBase64), c => c.charCodeAt(0));
12
- const module = await WebAssembly.compile(wasmBytes);
13
- return raw.instantiate(module, imports);
12
+ return raw.instantiate(wasmBytes, imports);
14
13
  }
15
14
 
16
15
  // Helper function to just get the bytes
@@ -9,8 +9,7 @@ export const wasmBase64 = "AGFzbQEAAAAB4wEiYAR/f39/AX9gAX8Bf2ACf38Bf2ADf39/AX9gA
9
9
  // Helper function to decode and instantiate the module
10
10
  export async function instantiate(imports) {
11
11
  const wasmBytes = Uint8Array.from(atob(wasmBase64), c => c.charCodeAt(0));
12
- const module = await WebAssembly.compile(wasmBytes);
13
- return raw.instantiate(module, imports);
12
+ return raw.instantiate(wasmBytes, imports);
14
13
  }
15
14
 
16
15
  // Helper function to just get the bytes
@@ -9,8 +9,7 @@ export const wasmBase64 = "AGFzbQEAAAAB0gEfYAR/f39/AX9gAX8Bf2ACf38Bf2ADf39/AX9gA
9
9
  // Helper function to decode and instantiate the module
10
10
  export async function instantiate(imports) {
11
11
  const wasmBytes = Uint8Array.from(atob(wasmBase64), c => c.charCodeAt(0));
12
- const module = await WebAssembly.compile(wasmBytes);
13
- return raw.instantiate(module, imports);
12
+ return raw.instantiate(wasmBytes, imports);
14
13
  }
15
14
 
16
15
  // Helper function to just get the bytes
@@ -9,8 +9,7 @@ export const wasmBase64 = "AGFzbQEAAAABzAEeYAR/f39/AX9gAX8Bf2ACf38Bf2ADf39/AX9gA
9
9
  // Helper function to decode and instantiate the module
10
10
  export async function instantiate(imports) {
11
11
  const wasmBytes = Uint8Array.from(atob(wasmBase64), c => c.charCodeAt(0));
12
- const module = await WebAssembly.compile(wasmBytes);
13
- return raw.instantiate(module, imports);
12
+ return raw.instantiate(wasmBytes, imports);
14
13
  }
15
14
 
16
15
  // Helper function to just get the bytes
@@ -9,8 +9,7 @@ export const wasmBase64 = "AGFzbQEAAAABxgEfYAF/AX9gBH9/f38Bf2ACf38AYAJ/fwF/YAN/f
9
9
  // Helper function to decode and instantiate the module
10
10
  export async function instantiate(imports) {
11
11
  const wasmBytes = Uint8Array.from(atob(wasmBase64), c => c.charCodeAt(0));
12
- const module = await WebAssembly.compile(wasmBytes);
13
- return raw.instantiate(module, imports);
12
+ return raw.instantiate(wasmBytes, imports);
14
13
  }
15
14
 
16
15
  // Helper function to just get the bytes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fluffylabs/anan-as",
3
3
  "description": "AssemblyScript PVM interpreter.",
4
- "version": "1.1.1-b8e442b",
4
+ "version": "1.1.1-fbc6aca",
5
5
  "main": "./bin/index.ts",
6
6
  "repository": {
7
7
  "url": "https://github.com/tomusdrw/anan-as"