@oxc-minify/binding-wasm32-wasi 0.124.0 → 0.125.0
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/minify.wasi-browser.js
CHANGED
package/minify.wasm32-wasi.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxc-minify/binding-wasm32-wasi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.125.0",
|
|
4
4
|
"cpu": [
|
|
5
5
|
"wasm32"
|
|
6
6
|
],
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"browser": "minify.wasi-browser.js",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@napi-rs/wasm-runtime": "^1.1.
|
|
43
|
+
"@napi-rs/wasm-runtime": "^1.1.3",
|
|
44
|
+
"@emnapi/core": "1.9.2",
|
|
45
|
+
"@emnapi/runtime": "1.9.2"
|
|
44
46
|
}
|
|
45
47
|
}
|
package/wasi-worker-browser.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { instantiateNapiModuleSync, MessageHandler, WASI } from '@napi-rs/wasm-runtime'
|
|
2
2
|
|
|
3
|
+
const errorOutputs = []
|
|
4
|
+
|
|
3
5
|
const handler = new MessageHandler({
|
|
4
6
|
onLoad({ wasmModule, wasmMemory }) {
|
|
5
7
|
const wasi = new WASI({
|
|
@@ -10,6 +12,7 @@ const handler = new MessageHandler({
|
|
|
10
12
|
printErr: function() {
|
|
11
13
|
// eslint-disable-next-line no-console
|
|
12
14
|
console.error.apply(console, arguments)
|
|
15
|
+
|
|
13
16
|
},
|
|
14
17
|
})
|
|
15
18
|
return instantiateNapiModuleSync(wasmModule, {
|
|
@@ -25,6 +28,7 @@ const handler = new MessageHandler({
|
|
|
25
28
|
},
|
|
26
29
|
})
|
|
27
30
|
},
|
|
31
|
+
|
|
28
32
|
})
|
|
29
33
|
|
|
30
34
|
globalThis.onmessage = function (e) {
|