@jsenv/core 27.0.0-alpha.59 → 27.0.0-alpha.61
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/event_source_client.js +11 -7
- package/dist/event_source_client.js.map +15 -13
- package/package.json +17 -12
- package/readme.md +2 -2
- package/src/build/build.js +26 -12
- package/src/build/start_build_server.js +6 -4
- package/src/dev/start_dev_server.js +8 -4
- package/src/execute/execute.js +2 -0
- package/src/omega/kitchen.js +2 -2
- package/src/omega/server/file_service.js +4 -1
- package/src/omega/url_graph/url_graph_report.js +81 -40
- package/src/plugins/autoreload/dev_sse/client/event_source_client.js +10 -7
- package/src/plugins/autoreload/dev_sse/jsenv_plugin_dev_sse_server.js +1 -1
- package/src/plugins/cache_control/jsenv_plugin_cache_control.js +1 -1
- package/src/plugins/import_meta_hot/html_hot_dependencies.js +5 -2
- package/src/plugins/import_meta_hot/jsenv_plugin_import_meta_hot.js +1 -1
- package/src/test/execute_plan.js +2 -1
- package/src/test/execute_test_plan.js +2 -0
- package/src/test/logs_file_execution.js +1 -4
|
@@ -379,14 +379,18 @@ const dequeue = async () => {
|
|
|
379
379
|
const callbacks = pendingCallbacks.slice();
|
|
380
380
|
pendingCallbacks = [];
|
|
381
381
|
running = true;
|
|
382
|
-
await callbacks.reduce(async (previous, callback) => {
|
|
383
|
-
await previous;
|
|
384
|
-
await callback();
|
|
385
|
-
}, Promise.resolve());
|
|
386
|
-
running = false;
|
|
387
382
|
|
|
388
|
-
|
|
389
|
-
|
|
383
|
+
try {
|
|
384
|
+
await callbacks.reduce(async (previous, callback) => {
|
|
385
|
+
await previous;
|
|
386
|
+
await callback();
|
|
387
|
+
}, Promise.resolve());
|
|
388
|
+
} finally {
|
|
389
|
+
running = false;
|
|
390
|
+
|
|
391
|
+
if (pendingCallbacks.length) {
|
|
392
|
+
dequeue();
|
|
393
|
+
}
|
|
390
394
|
}
|
|
391
395
|
};
|
|
392
396
|
|