@napi-rs/image-wasm32-wasi 1.11.2 → 1.12.1
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/image.wasi-browser.js +1 -0
- package/image.wasi.cjs +1 -1
- package/image.wasm32-wasi.wasm +0 -0
- package/package.json +4 -2
- package/wasi-worker-browser.mjs +2 -0
package/image.wasi-browser.js
CHANGED
package/image.wasi.cjs
CHANGED
|
@@ -39,7 +39,7 @@ if (__nodeFs.existsSync(__wasmDebugFilePath)) {
|
|
|
39
39
|
__wasmFilePath = __wasmDebugFilePath
|
|
40
40
|
} else if (!__nodeFs.existsSync(__wasmFilePath)) {
|
|
41
41
|
try {
|
|
42
|
-
__wasmFilePath =
|
|
42
|
+
__wasmFilePath = require.resolve('@napi-rs/image-wasm32-wasi/image.wasm32-wasi.wasm')
|
|
43
43
|
} catch {
|
|
44
44
|
throw new Error('Cannot find image.wasm32-wasi.wasm file, and @napi-rs/image-wasm32-wasi package is not installed.')
|
|
45
45
|
}
|
package/image.wasm32-wasi.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@napi-rs/image-wasm32-wasi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"cpu": [
|
|
5
5
|
"wasm32"
|
|
6
6
|
],
|
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"browser": "image.wasi-browser.js",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@napi-rs/wasm-runtime": "^1.
|
|
41
|
+
"@napi-rs/wasm-runtime": "^1.1.5",
|
|
42
|
+
"@emnapi/core": "1.11.1",
|
|
43
|
+
"@emnapi/runtime": "1.11.1"
|
|
42
44
|
}
|
|
43
45
|
}
|
package/wasi-worker-browser.mjs
CHANGED
|
@@ -10,6 +10,7 @@ const handler = new MessageHandler({
|
|
|
10
10
|
printErr: function() {
|
|
11
11
|
// eslint-disable-next-line no-console
|
|
12
12
|
console.error.apply(console, arguments)
|
|
13
|
+
|
|
13
14
|
},
|
|
14
15
|
})
|
|
15
16
|
return instantiateNapiModuleSync(wasmModule, {
|
|
@@ -25,6 +26,7 @@ const handler = new MessageHandler({
|
|
|
25
26
|
},
|
|
26
27
|
})
|
|
27
28
|
},
|
|
29
|
+
|
|
28
30
|
})
|
|
29
31
|
|
|
30
32
|
globalThis.onmessage = function (e) {
|