(envConfig: EnvConfig)
| 36 | * @returns Object with environment variables for sandbox |
| 37 | */ |
| 38 | export function createSandboxProcessEnv(envConfig: EnvConfig): Record<string, string> { |
| 39 | const processEnv: Record<string, string> = {}; |
| 40 | |
| 41 | Object.keys(envConfig).forEach((key) => { |
| 42 | const value = envConfig[key]; |
| 43 | if (value !== undefined) { |
| 44 | processEnv[key] = value; |
| 45 | } |
| 46 | }); |
| 47 | |
| 48 | return processEnv; |
| 49 | } |
no outgoing calls
no test coverage detected