@tailwindcss/oxide-wasm32-wasi 0.0.0-insiders.fc4afc2 → 0.0.0-insiders.fed6c6a
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/node_modules/@emnapi/core/dist/emnapi-core.cjs.js +3 -3
- package/node_modules/@emnapi/core/dist/emnapi-core.cjs.min.js +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.js +3 -3
- package/node_modules/@emnapi/core/dist/emnapi-core.js +33 -33
- package/node_modules/@emnapi/core/dist/emnapi-core.min.js +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.min.mjs +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.mjs +3 -3
- package/node_modules/@emnapi/core/package.json +2 -2
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.js +7 -3
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.js +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.js +7 -3
- package/node_modules/@emnapi/runtime/dist/emnapi.iife.js +7 -3
- package/node_modules/@emnapi/runtime/dist/emnapi.js +7 -3
- package/node_modules/@emnapi/runtime/dist/emnapi.min.js +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.min.mjs +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.mjs +7 -3
- package/node_modules/@emnapi/runtime/package.json +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.js +28 -28
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.js +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.esm-bundler.js +28 -28
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +28 -28
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.js +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.mjs +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.mjs +28 -28
- package/node_modules/@emnapi/wasi-threads/package.json +1 -1
- package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +33 -48
- package/node_modules/@napi-rs/wasm-runtime/dist/runtime.js +104 -85
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.cjs +78 -62
- package/node_modules/@napi-rs/wasm-runtime/package.json +7 -6
- package/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +6 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +19 -16
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +19 -16
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -1
- package/node_modules/@tybys/wasm-util/dist/wasm-util.js +19 -16
- package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -1
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +12 -14
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +7 -2
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +12 -14
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +7 -2
- package/node_modules/@tybys/wasm-util/package.json +1 -1
- package/package.json +6 -6
- package/tailwindcss-oxide.wasm32-wasi.wasm +0 -0
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
/** @public */
|
|
154
154
|
function isSharedArrayBuffer(value) {
|
|
155
155
|
return ((typeof SharedArrayBuffer === 'function' && value instanceof SharedArrayBuffer) ||
|
|
156
|
-
(Object.prototype.toString.call(value
|
|
156
|
+
(Object.prototype.toString.call(value) === '[object SharedArrayBuffer]'));
|
|
157
157
|
}
|
|
158
158
|
/** @public */
|
|
159
159
|
function isTrapError(e) {
|
|
@@ -344,12 +344,17 @@
|
|
|
344
344
|
if (worker.__emnapi_tid !== undefined) {
|
|
345
345
|
message = 'worker (tid = ' + worker.__emnapi_tid + ') sent an error!';
|
|
346
346
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
347
|
+
if ('message' in e) {
|
|
348
|
+
err(message + ' ' + e.message);
|
|
349
|
+
if (e.message.indexOf('RuntimeError') !== -1 || e.message.indexOf('unreachable') !== -1) {
|
|
350
|
+
try {
|
|
351
|
+
_this.terminateAllThreads();
|
|
352
|
+
}
|
|
353
|
+
catch (_) { }
|
|
351
354
|
}
|
|
352
|
-
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
err(message);
|
|
353
358
|
}
|
|
354
359
|
reject(e);
|
|
355
360
|
throw e;
|
|
@@ -657,7 +662,7 @@
|
|
|
657
662
|
return 1;
|
|
658
663
|
}
|
|
659
664
|
else {
|
|
660
|
-
return -
|
|
665
|
+
return -EAGAIN;
|
|
661
666
|
}
|
|
662
667
|
}
|
|
663
668
|
if (!isNewABI) {
|
|
@@ -743,7 +748,7 @@
|
|
|
743
748
|
return 1;
|
|
744
749
|
}
|
|
745
750
|
free(errorOrTid);
|
|
746
|
-
return -
|
|
751
|
+
return -EAGAIN;
|
|
747
752
|
}
|
|
748
753
|
Atomics.store(struct, 0, 0);
|
|
749
754
|
Atomics.store(struct, 1, tid);
|
|
@@ -860,19 +865,21 @@
|
|
|
860
865
|
return proc_exit_1.call(this, code);
|
|
861
866
|
};
|
|
862
867
|
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
catch (err) {
|
|
870
|
-
if (isTrapError(err)) {
|
|
871
|
-
_this.terminateAllThreads();
|
|
868
|
+
if (!_this.childThread) {
|
|
869
|
+
var start_1 = wasi.start;
|
|
870
|
+
if (typeof start_1 === 'function') {
|
|
871
|
+
wasi.start = function (instance) {
|
|
872
|
+
try {
|
|
873
|
+
return start_1.call(this, instance);
|
|
872
874
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
875
|
+
catch (err) {
|
|
876
|
+
if (isTrapError(err)) {
|
|
877
|
+
_this.terminateAllThreads();
|
|
878
|
+
}
|
|
879
|
+
throw err;
|
|
880
|
+
}
|
|
881
|
+
};
|
|
882
|
+
}
|
|
876
883
|
}
|
|
877
884
|
patched.add(wasi);
|
|
878
885
|
}
|
|
@@ -954,7 +961,8 @@
|
|
|
954
961
|
}
|
|
955
962
|
};
|
|
956
963
|
ThreadMessageHandler.prototype._start = function (payload) {
|
|
957
|
-
|
|
964
|
+
var wasi_thread_start = this.instance.exports.wasi_thread_start;
|
|
965
|
+
if (typeof wasi_thread_start !== 'function') {
|
|
958
966
|
var err = new TypeError('wasi_thread_start is not exported');
|
|
959
967
|
notifyPthreadCreateResult(payload.sab, 2, err);
|
|
960
968
|
throw err;
|
|
@@ -963,15 +971,7 @@
|
|
|
963
971
|
var tid = payload.tid;
|
|
964
972
|
var startArg = payload.arg;
|
|
965
973
|
notifyPthreadCreateResult(payload.sab, 1);
|
|
966
|
-
|
|
967
|
-
this.instance.exports.wasi_thread_start(tid, startArg);
|
|
968
|
-
}
|
|
969
|
-
catch (err) {
|
|
970
|
-
if (isTrapError(err)) {
|
|
971
|
-
postMessage(createMessage('terminate-all-threads', {}));
|
|
972
|
-
}
|
|
973
|
-
throw err;
|
|
974
|
-
}
|
|
974
|
+
wasi_thread_start(tid, startArg);
|
|
975
975
|
postMessage(createMessage('cleanup-thread', { tid: tid }));
|
|
976
976
|
};
|
|
977
977
|
ThreadMessageHandler.prototype._loaded = function (err, source, payload) {
|
|
@@ -3300,7 +3300,7 @@
|
|
|
3300
3300
|
}
|
|
3301
3301
|
return str;
|
|
3302
3302
|
}
|
|
3303
|
-
return emnapiString.utf8Decoder.decode(((typeof SharedArrayBuffer === "function" && HEAPU8.buffer instanceof SharedArrayBuffer) || (Object.prototype.toString.call(HEAPU8.buffer
|
|
3303
|
+
return emnapiString.utf8Decoder.decode(((typeof SharedArrayBuffer === "function" && HEAPU8.buffer instanceof SharedArrayBuffer) || (Object.prototype.toString.call(HEAPU8.buffer) === "[object SharedArrayBuffer]")) ? HEAPU8.slice(ptr, end) : HEAPU8.subarray(ptr, end));
|
|
3304
3304
|
},
|
|
3305
3305
|
stringToUTF8: function (str, outPtr, maxBytesToWrite) {
|
|
3306
3306
|
var HEAPU8 = new Uint8Array(wasmMemory.buffer);
|
|
@@ -3368,7 +3368,7 @@
|
|
|
3368
3368
|
}
|
|
3369
3369
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3370
3370
|
var HEAPU8 = new Uint8Array(wasmMemory.buffer);
|
|
3371
|
-
return emnapiString.utf16Decoder.decode(((typeof SharedArrayBuffer === "function" && HEAPU8.buffer instanceof SharedArrayBuffer) || (Object.prototype.toString.call(HEAPU8.buffer
|
|
3371
|
+
return emnapiString.utf16Decoder.decode(((typeof SharedArrayBuffer === "function" && HEAPU8.buffer instanceof SharedArrayBuffer) || (Object.prototype.toString.call(HEAPU8.buffer) === "[object SharedArrayBuffer]")) ? HEAPU8.slice(ptr, end) : HEAPU8.subarray(ptr, end));
|
|
3372
3372
|
},
|
|
3373
3373
|
stringToUTF16: function (str, outPtr, maxBytesToWrite) {
|
|
3374
3374
|
if (maxBytesToWrite === undefined) {
|
|
@@ -8371,7 +8371,7 @@
|
|
|
8371
8371
|
return MessageHandler;
|
|
8372
8372
|
}(ThreadMessageHandler));
|
|
8373
8373
|
|
|
8374
|
-
var version = "1.4.
|
|
8374
|
+
var version = "1.4.5";
|
|
8375
8375
|
|
|
8376
8376
|
exports.MessageHandler = MessageHandler;
|
|
8377
8377
|
exports.ThreadManager = ThreadManager;
|