@tailwindcss/oxide-wasm32-wasi 0.0.0-insiders.ca7caae → 0.0.0-insiders.d06bbb8

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.
@@ -152,20 +152,20 @@ module.exports.createOnMessage = (fs) => function onMessage(e) {
152
152
  const fn = fs[type]
153
153
  try {
154
154
  const ret = fn.apply(fs, payload)
155
+ Atomics.store(sab, 0, 0)
155
156
  const t = getType(ret)
156
157
  Atomics.store(sab, 1, t)
157
158
  const v = encodeValue(fs, ret, t)
158
159
  Atomics.store(sab, 2, v.length)
159
160
  new Uint8Array(sab.buffer).set(v, 16)
160
- Atomics.store(sab, 0, 0) // success
161
161
 
162
162
  } catch (/** @type {any} */ err) {
163
+ Atomics.store(sab, 0, 1)
163
164
  const t = getType(err)
164
165
  Atomics.store(sab, 1, t)
165
166
  const v = encodeValue(fs, err, t)
166
167
  Atomics.store(sab, 2, v.length)
167
168
  new Uint8Array(sab.buffer).set(v, 16)
168
- Atomics.store(sab, 0, 1) // error
169
169
  } finally {
170
170
  Atomics.notify(sab, 0)
171
171
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/wasm-runtime",
3
- "version": "0.2.11",
3
+ "version": "0.2.10",
4
4
  "type": "module",
5
5
  "description": "Runtime and polyfill for wasm targets",
6
6
  "author": {
@@ -57,5 +57,5 @@
57
57
  "import": "./dist/fs.js"
58
58
  }
59
59
  },
60
- "gitHead": "984d166275f29e24e4bcf9d6189fe9bbe2e96bfe"
60
+ "gitHead": "c8c073a348308281c9131f2695f92e358ac321b7"
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/oxide-wasm32-wasi",
3
- "version": "0.0.0-insiders.ca7caae",
3
+ "version": "0.0.0-insiders.d06bbb8",
4
4
  "cpu": [
5
5
  "wasm32"
6
6
  ],
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "browser": "tailwindcss-oxide.wasi-browser.js",
29
29
  "dependencies": {
30
- "@napi-rs/wasm-runtime": "^0.2.11",
30
+ "@napi-rs/wasm-runtime": "^0.2.10",
31
31
  "@emnapi/core": "^1.4.3",
32
32
  "@emnapi/runtime": "^1.4.3",
33
33
  "@tybys/wasm-util": "^0.9.0",
Binary file