@jsenv/core 27.8.0 → 28.0.1
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/js/autoreload.js +2 -2
- package/dist/js/html_supervisor_installer.js +3 -3
- package/dist/js/server_events_client.js +1 -1
- package/dist/main.js +520 -469
- package/package.json +2 -2
- package/readme.md +1 -1
- package/src/build/build.js +8 -8
- package/src/build/{resync_ressource_hints.js → resync_resource_hints.js} +10 -12
- package/src/build/start_build_server.js +6 -9
- package/src/dev/start_dev_server.js +2 -2
- package/src/execute/execute.js +14 -52
- package/src/execute/runtimes/browsers/from_playwright.js +19 -8
- package/src/main.js +3 -0
- package/src/omega/kitchen.js +5 -5
- package/src/omega/omega_server.js +2 -2
- package/src/omega/server/file_service.js +3 -3
- package/src/omega/url_graph/url_graph_load.js +4 -4
- package/src/omega/url_graph.js +3 -3
- package/src/ping_server.js +30 -0
- package/src/plugins/autoreload/client/reload.js +2 -2
- package/src/plugins/autoreload/jsenv_plugin_autoreload_client.js +1 -1
- package/src/plugins/autoreload/jsenv_plugin_autoreload_server.js +3 -3
- package/src/plugins/autoreload/jsenv_plugin_hmr.js +1 -1
- package/src/plugins/explorer/jsenv_plugin_explorer.js +1 -1
- package/src/plugins/html_supervisor/client/error_formatter.js +3 -3
- package/src/plugins/html_supervisor/jsenv_plugin_html_supervisor.js +5 -5
- package/src/plugins/import_meta_hot/html_hot_dependencies.js +4 -4
- package/src/plugins/import_meta_scenarios/jsenv_plugin_import_meta_scenarios.js +1 -9
- package/src/plugins/plugin_controller.js +2 -2
- package/src/plugins/server_events/client/server_events_client.js +1 -1
- package/src/plugins/toolbar/jsenv_plugin_toolbar.js +1 -1
- package/src/plugins/transpilation/as_js_classic/jsenv_plugin_as_js_classic.js +2 -2
- package/src/plugins/transpilation/as_js_classic/jsenv_plugin_as_js_classic_html.js +3 -3
- package/src/plugins/transpilation/babel/jsenv_plugin_babel.js +13 -0
- package/src/plugins/url_analysis/html/html_urls.js +2 -2
- package/src/plugins/url_analysis/jsenv_plugin_url_analysis.js +1 -1
- package/src/test/execute_plan.js +15 -68
- package/src/test/execute_test_plan.js +4 -26
package/dist/js/autoreload.js
CHANGED
|
@@ -96,8 +96,8 @@ const getDOMNodesUsingUrl = urlToReload => {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
}); // There is no real need to update a.href because the
|
|
100
|
-
// But in a scenario where the
|
|
99
|
+
}); // There is no real need to update a.href because the resource will be fetched when clicked.
|
|
100
|
+
// But in a scenario where the resource was already visited and is in browser cache, adding
|
|
101
101
|
// the dynamic query param ensure the cache is invalidated
|
|
102
102
|
|
|
103
103
|
Array.from(document.querySelectorAll("a")).forEach(a => {
|
|
@@ -191,13 +191,13 @@ const formatError = (error, {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
if (urlSite.line !== undefined) {
|
|
194
|
-
let
|
|
194
|
+
let resourceToFetch = `/__get_code_frame__/${formatUrlWithLineAndColumn(urlSite)}`;
|
|
195
195
|
|
|
196
196
|
if (!Error.captureStackTrace) {
|
|
197
|
-
|
|
197
|
+
resourceToFetch += `?remap`;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
const response = await window.fetch(
|
|
200
|
+
const response = await window.fetch(resourceToFetch);
|
|
201
201
|
const codeFrame = await response.text();
|
|
202
202
|
return {
|
|
203
203
|
codeFrame: formatErrorText({
|
|
@@ -319,7 +319,7 @@ const createWebSocketConnection = (websocketUrl, {
|
|
|
319
319
|
};
|
|
320
320
|
|
|
321
321
|
/* globals self */
|
|
322
|
-
const websocketScheme = self.location.protocol === "https" ? "wss" : "ws";
|
|
322
|
+
const websocketScheme = self.location.protocol === "https:" ? "wss" : "ws";
|
|
323
323
|
const websocketUrl = `${websocketScheme}://${self.location.host}${self.location.pathname}${self.location.search}`;
|
|
324
324
|
const websocketConnection = createWebSocketConnection(websocketUrl, {
|
|
325
325
|
retry: true,
|