Files
agentic-studio/network-poc/frontend/node_modules/lru-cache/dist/esm/diagnostics-channel.js
Jaakko Vanhala a8c4af0975 Frontend uudelleenrakennettu: Astro-komponentit, Wasm pääsäikeessä, ei Workeria
Vanha frontend siirretty temp/. Uusi rakenne:
- StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro
- global.css erillinen
- Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava)
- Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md
- Ei tokenisointia eikä koodilaboratoriota

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 20:17:39 +03:00

19 lines
780 B
JavaScript

/**
* no-op polyfills for non-node environments. tries to load the actual
* diagnostics_channel module on platforms that support it, but fails
* gracefully if not found. This means that the first tick of metrics
* and tracing will be missed, but that probably doesn't matter much.
*/
// conditionally import from diagnostic_channel, fall back to dummyfill
// all we actually have to mock is the hasSubscribers, since we alwasy check
/* v8 ignore next */
const dummy = { hasSubscribers: false };
export let metrics = dummy;
export let tracing = dummy;
import('node:diagnostics_channel')
.then(dc => {
metrics = dc.channel('lru-cache:metrics');
tracing = dc.tracingChannel('lru-cache');
})
.catch(() => { });
//# sourceMappingURL=diagnostics-channel-esm.mjs.map