@napi-rs/tar-wasm32-wasi 1.1.0 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/tar-wasm32-wasi",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "cpu": [
5
5
  "wasm32"
6
6
  ],
@@ -32,6 +32,8 @@
32
32
  },
33
33
  "browser": "tar.wasi-browser.js",
34
34
  "dependencies": {
35
- "@napi-rs/wasm-runtime": "^1.0.3"
35
+ "@napi-rs/wasm-runtime": "^1.1.6",
36
+ "@emnapi/core": "1.11.2",
37
+ "@emnapi/runtime": "1.11.2"
36
38
  }
37
39
  }
@@ -36,6 +36,7 @@ const {
36
36
  type: 'module',
37
37
  })
38
38
 
39
+
39
40
  return worker
40
41
  },
41
42
  overwriteImports(importObject) {
package/tar.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 = __nodePath.resolve('@napi-rs/tar-wasm32-wasi')
42
+ __wasmFilePath = require.resolve('@napi-rs/tar-wasm32-wasi/tar.wasm32-wasi.wasm')
43
43
  } catch {
44
44
  throw new Error('Cannot find tar.wasm32-wasi.wasm file, and @napi-rs/tar-wasm32-wasi package is not installed.')
45
45
  }
Binary file
@@ -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) {