@cwasm/jpeg-turbo
Advanced tools
Comparing version
@@ -16,2 +16,4 @@ /* global WebAssembly */ | ||
const stubs = { | ||
environ_sizes_get () { return 0 }, | ||
environ_get () { throw new Error('Syscall environ_get not implemented') }, | ||
proc_exit () { throw new Error('Syscall proc_exit not implemented') }, | ||
@@ -25,3 +27,3 @@ fd_close () { throw new Error('Syscall fd_close not implemented') }, | ||
const wasmModule = new WebAssembly.Module(code) | ||
const instance = new WebAssembly.Instance(wasmModule, { env, wasi_unstable: stubs }) | ||
const instance = new WebAssembly.Instance(wasmModule, { env, wasi_snapshot_preview1: stubs }) | ||
@@ -28,0 +30,0 @@ exports.decode = function (input) { |
{ | ||
"name": "@cwasm/jpeg-turbo", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"repository": "LinusU/cwasm-jpeg-turbo", | ||
@@ -20,6 +20,6 @@ "license": "MIT", | ||
"lodepng": "^2.0.0", | ||
"mocha": "^6.2.2", | ||
"standard": "^14.3.1", | ||
"ts-readme-generator": "^0.2.0" | ||
"mocha": "^7.1.1", | ||
"standard": "^14.3.3", | ||
"ts-readme-generator": "^0.4.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
143937
0.5%77
2.67%