@jsenv/core 41.0.3 → 41.0.4

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.
@@ -10,7 +10,7 @@ import { generateSourcemapFileUrl, createMagicSource, composeTwoSourcemaps, gene
10
10
  import { createPluginsController } from "@jsenv/server/src/plugins_controller.js";
11
11
  import { jsenvPluginSupervisor } from "@jsenv/plugin-supervisor";
12
12
  import { WebSocketResponse, pickContentType } from "@jsenv/server";
13
- import { randomUUID, createHash } from "node:crypto";
13
+ import { createHash } from "node:crypto";
14
14
  import "./jsenv_core_node_modules.js";
15
15
  import "node:os";
16
16
  import "node:tty";
@@ -8823,47 +8823,6 @@ const jsenvPluginCleanHTML = () => {
8823
8823
  };
8824
8824
  };
8825
8825
 
8826
- /**
8827
- * https://docs.google.com/document/d/1rfKPnxsNuXhnF7AiQZhu9kIwdiMS5hnAI05HBwFuBSM/edit?tab=t.0#heading=h.7nki9mck5t64
8828
- * https://chromium.googlesource.com/devtools/devtools-frontend/+/main/docs/ecosystem/automatic_workspace_folders.md
8829
- * https://github.com/ChromeDevTools/vite-plugin-devtools-json
8830
- */
8831
-
8832
-
8833
- const jsenvPluginChromeDevtoolsJson = () => {
8834
- const getOrCreateUUID = (kitchen) => {
8835
- const { outDirectoryUrl } = kitchen.context;
8836
- const uuidFileUrl = new URL("./uuid.json", outDirectoryUrl);
8837
- if (existsSync(uuidFileUrl)) {
8838
- const { uuid } = JSON.parse(readFileSync(uuidFileUrl, "utf8"));
8839
- return uuid;
8840
- }
8841
- const uuid = randomUUID();
8842
- writeFileSync(uuidFileUrl, JSON.stringify({ uuid }), { });
8843
- return uuid;
8844
- };
8845
-
8846
- return {
8847
- name: "jsenv_plugin_chrome_devtools_json",
8848
- appliesDuring: "dev",
8849
- serverRoutes: [
8850
- {
8851
- endpoint: "GET /.well-known/appspecific/com.chrome.devtools.json",
8852
- declarationSource: import.meta.url,
8853
- fetch: (request, { kitchen }) => {
8854
- const { rootDirectoryUrl } = kitchen.context;
8855
- return Response.json({
8856
- workspace: {
8857
- root: urlToFileSystemPath(rootDirectoryUrl),
8858
- uuid: getOrCreateUUID(kitchen),
8859
- },
8860
- });
8861
- },
8862
- },
8863
- ],
8864
- };
8865
- };
8866
-
8867
8826
  const jsenvPluginAutoreloadOnServerRestart = () => {
8868
8827
  const autoreloadOnRestartClientFileUrl = import.meta
8869
8828
  .resolve("@jsenv/server/src/plugins/autoreload_on_server_restart/client/autoreload_on_server_restart.js");
@@ -9308,7 +9267,6 @@ const getCorePlugins = ({
9308
9267
  ...(ribbon ? [jsenvPluginRibbon({ rootDirectoryUrl, ...ribbon })] : []),
9309
9268
  ...(dropToOpen ? [jsenvPluginDropToOpen()] : []),
9310
9269
  jsenvPluginCleanHTML(),
9311
- jsenvPluginChromeDevtoolsJson(),
9312
9270
  ...(packageSideEffects
9313
9271
  ? [jsenvPluginPackageSideEffects({ packageDirectory })]
9314
9272
  : []),