@tailwindcss/oxide-wasm32-wasi 0.0.0-insiders.f425720 → 0.0.0-insiders.fac8cd9

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)
156
155
  const t = getType(ret)
157
156
  Atomics.store(sab, 1, t)
158
157
  const v = encodeValue(fs, ret, t)
159
158
  Atomics.store(sab, 2, v.length)
160
159
  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)
164
163
  const t = getType(err)
165
164
  Atomics.store(sab, 1, t)
166
165
  const v = encodeValue(fs, err, t)
167
166
  Atomics.store(sab, 2, v.length)
168
167
  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.10",
3
+ "version": "0.2.11",
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": "c8c073a348308281c9131f2695f92e358ac321b7"
60
+ "gitHead": "984d166275f29e24e4bcf9d6189fe9bbe2e96bfe"
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.f425720",
3
+ "version": "0.0.0-insiders.fac8cd9",
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.10",
30
+ "@napi-rs/wasm-runtime": "^0.2.11",
31
31
  "@emnapi/core": "^1.4.3",
32
32
  "@emnapi/runtime": "^1.4.3",
33
33
  "@tybys/wasm-util": "^0.9.0",
Binary file