@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.
@@ -36,6 +36,7 @@ const {
36
36
  type: 'module',
37
37
  })
38
38
 
39
+
39
40
  return worker
40
41
  },
41
42
  overwriteImports(importObject) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-minify/binding-wasm32-wasi",
3
- "version": "0.124.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.2"
43
+ "@napi-rs/wasm-runtime": "^1.1.3",
44
+ "@emnapi/core": "1.9.2",
45
+ "@emnapi/runtime": "1.9.2"
44
46
  }
45
47
  }
@@ -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) {