MCPcopy Create free account
hub / github.com/massCodeIO/massCode / resolveEnvironmentVariables

Function resolveEnvironmentVariables

src/main/ipc/handlers/http.ts:370–380  ·  view source on GitHub ↗
(
  environmentId: number | null,
)

Source from the content-addressed store, hash-verified

368}
369
370function resolveEnvironmentVariables(
371 environmentId: number | null,
372): Record<string, string> {
373 if (environmentId === null)
374 return {}
375 const storage = useHttpStorage()
376 const env = storage.environments
377 .getEnvironments()
378 .find(e => e.id === environmentId)
379 return env?.variables ?? {}
380}
381
382async function executeHttpRequest(
383 payload: HttpExecutePayload,

Callers 1

executeHttpRequestFunction · 0.85

Calls 1

useHttpStorageFunction · 0.90

Tested by

no test coverage detected