@napi-rs/image-wasm32-wasi 1.11.0 → 1.11.2

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.
@@ -6,6 +6,7 @@ import {
6
6
  } from '@napi-rs/wasm-runtime'
7
7
 
8
8
 
9
+
9
10
  const __wasi = new __WASI({
10
11
  version: 'preview1',
11
12
  })
@@ -13,6 +14,7 @@ const __wasi = new __WASI({
13
14
  const __wasmUrl = new URL('./image.wasm32-wasi.wasm', import.meta.url).href
14
15
  const __emnapiContext = __emnapiGetDefaultContext()
15
16
 
17
+
16
18
  const __sharedMemory = new WebAssembly.Memory({
17
19
  initial: 4000,
18
20
  maximum: 65536,
package/image.wasi.cjs CHANGED
@@ -82,7 +82,7 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule
82
82
  const kHandle = Object.getOwnPropertySymbols(worker).find(s =>
83
83
  s.toString().includes("kHandle")
84
84
  );
85
- if (kPublicPort) {
85
+ if (kHandle) {
86
86
  worker[kHandle].ref = () => {};
87
87
  }
88
88
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/image-wasm32-wasi",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "cpu": [
5
5
  "wasm32"
6
6
  ],
@@ -31,13 +31,13 @@
31
31
  "engines": {
32
32
  "node": ">=14.0.0"
33
33
  },
34
+ "repository": "git@github.com:Brooooooklyn/Image.git",
34
35
  "publishConfig": {
35
36
  "registry": "https://registry.npmjs.org/",
36
37
  "access": "public"
37
38
  },
38
- "repository": "git@github.com:Brooooooklyn/Image.git",
39
39
  "browser": "image.wasi-browser.js",
40
40
  "dependencies": {
41
- "@napi-rs/wasm-runtime": "^0.2.11"
41
+ "@napi-rs/wasm-runtime": "^1.0.3"
42
42
  }
43
43
  }