@manifest-configuration-language/browser 0.3.24 → 0.3.26
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/dist/mcl.wasm +2 -2
- package/dist/runtime.js +5 -8
- package/package.json +2 -2
package/dist/mcl.wasm
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/mcl.wasm
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 97266980 bytes
|
|
4
|
+
sha256: 0267dca496d698bffbe5ce70ab2ed27793a606155f54155b9a9b492e23dbe706
|
package/dist/runtime.js
CHANGED
|
@@ -401,8 +401,10 @@ export function createMclRuntime(options = {}) {
|
|
|
401
401
|
const previousSnapshot = workerProjectId === projectId ? workerSnapshot : undefined;
|
|
402
402
|
const reset = workerProjectId !== projectId;
|
|
403
403
|
const result = computeProjectDelta(snapshot, previousSnapshot, reset);
|
|
404
|
-
if (result === null)
|
|
405
|
-
|
|
404
|
+
if (result === null) {
|
|
405
|
+
workerSnapshot = snapshot;
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
406
408
|
const { delta, binaryFiles, transferables } = result;
|
|
407
409
|
const updateJSON = JSON.stringify(delta);
|
|
408
410
|
// Transfer binary buffers to avoid copying.
|
|
@@ -466,15 +468,10 @@ export function createMclRuntime(options = {}) {
|
|
|
466
468
|
try {
|
|
467
469
|
if (timeoutMs <= 0)
|
|
468
470
|
throw timeoutError;
|
|
469
|
-
timer = setTimeout(() => {
|
|
470
|
-
if (stopCurrent)
|
|
471
|
-
stopCurrent(timeoutError);
|
|
472
|
-
else
|
|
473
|
-
stopInitialization?.(timeoutError);
|
|
474
|
-
}, timeoutMs);
|
|
475
471
|
await waitUntilReady(signal);
|
|
476
472
|
if (signal?.aborted)
|
|
477
473
|
throw new DOMException("The operation was aborted", "AbortError");
|
|
474
|
+
timer = setTimeout(() => stopCurrent?.(timeoutError), timeoutMs);
|
|
478
475
|
const currentApi = workerApi;
|
|
479
476
|
const currentGeneration = workerGeneration;
|
|
480
477
|
operationWorkerGeneration = currentGeneration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manifest-configuration-language/browser",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "Run MCL projects in a browser Web Worker using the Go WebAssembly runtime.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typescript": "^7.0.2"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=24.22.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build:wasm": "node ./scripts/build-wasm.mjs",
|