diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
| commit | afa87af01c79a9baa539f2992d32154d2a4739bd (patch) | |
| tree | 92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/vitest/dist/chunks/inspector.CvyFGlXm.js | |
| parent | 3b927e84d200402281f68181cd4253bc77e5528d (diff) | |
| download | neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2 neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip | |
task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq
Diffstat (limited to 'vanilla/node_modules/vitest/dist/chunks/inspector.CvyFGlXm.js')
| -rw-r--r-- | vanilla/node_modules/vitest/dist/chunks/inspector.CvyFGlXm.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/vanilla/node_modules/vitest/dist/chunks/inspector.CvyFGlXm.js b/vanilla/node_modules/vitest/dist/chunks/inspector.CvyFGlXm.js deleted file mode 100644 index 99fb843..0000000 --- a/vanilla/node_modules/vitest/dist/chunks/inspector.CvyFGlXm.js +++ /dev/null @@ -1,53 +0,0 @@ -import { createRequire } from 'node:module'; -import { pathToFileURL } from 'node:url'; - -const __require = createRequire(import.meta.url); -let inspector; -let session; -/** -* Enables debugging inside `worker_threads` and `child_process`. -* Should be called as early as possible when worker/process has been set up. -*/ -function setupInspect(ctx) { - const config = ctx.config; - const isEnabled = config.inspector.enabled; - if (isEnabled) { - inspector = __require("node:inspector"); - if (!(inspector.url() !== void 0)) { - inspector.open(config.inspector.port, config.inspector.host, config.inspector.waitForDebugger); - if (config.inspectBrk) { - const firstTestFile = typeof ctx.files[0] === "string" ? ctx.files[0] : ctx.files[0].filepath; - // Stop at first test file - if (firstTestFile) { - session = new inspector.Session(); - session.connect(); - session.post("Debugger.enable"); - session.post("Debugger.setBreakpointByUrl", { - lineNumber: 0, - url: pathToFileURL(firstTestFile) - }); - } - } - } - } - const keepOpen = shouldKeepOpen(config); - return function cleanup() { - if (isEnabled && !keepOpen && inspector) { - inspector.close(); - session?.disconnect(); - } - }; -} -function closeInspector(config) { - const keepOpen = shouldKeepOpen(config); - if (inspector && !keepOpen) { - inspector.close(); - session?.disconnect(); - } -} -function shouldKeepOpen(config) { - // In watch mode the inspector can persist re-runs if isolation is disabled and a single worker is used - return config.watch && config.isolate === false && config.maxWorkers === 1; -} - -export { closeInspector as c, setupInspect as s }; |
