@tailwindcss/oxide-wasm32-wasi 0.0.0-insiders.f0f42f6 → 0.0.0-insiders.f1331a8
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 +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.cjs.min.js +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.js +1 -1
- package/node_modules/@emnapi/core/dist/emnapi-core.js +30 -30
- 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 +1 -1
- package/node_modules/@emnapi/core/package.json +2 -2
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.js +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.cjs.min.js +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.js +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.iife.js +1 -1
- package/node_modules/@emnapi/runtime/dist/emnapi.js +1 -1
- 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 +1 -1
- package/node_modules/@emnapi/runtime/package.json +1 -1
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.js +29 -29
- 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 +29 -29
- package/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +29 -29
- 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 +29 -29
- 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 +24 -21
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.cjs +2 -2
- package/node_modules/@napi-rs/wasm-runtime/package.json +3 -3
- 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
|
@@ -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) {
|
|
@@ -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;
|