MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / envMap

Function envMap

deployments/desktop/static/desktop.js:4792–4801  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

4790 }
4791
4792 function envMap(data) {
4793 const entries = data.editable_env || data.env || {};
4794 if (Array.isArray(entries)) {
4795 return Object.fromEntries(entries.filter((item) => item?.key).map((item) => [item.key, item]));
4796 }
4797 return Object.fromEntries(Object.entries(entries).map(([key, value]) => [
4798 key,
4799 typeof value === "object" && value !== null ? value : { key, value, is_secret: false, present: true }
4800 ]));
4801 }
4802
4803 function envInfo(env, key, fallback = "", aliases = []) {
4804 const candidates = [key, ...aliases];

Callers 2

applyLocaleFunction · 0.85
renderSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected