(raw: unknown)
| 105 | } |
| 106 | |
| 107 | export function readReplayShellEnvSource(raw: unknown): NodeJS.ProcessEnv { |
| 108 | if (raw && typeof raw === 'object' && !Array.isArray(raw)) { |
| 109 | const result: NodeJS.ProcessEnv = {}; |
| 110 | for (const [key, value] of Object.entries(raw)) { |
| 111 | if (typeof value === 'string') result[key] = value; |
| 112 | } |
| 113 | return result; |
| 114 | } |
| 115 | return process.env; |
| 116 | } |
| 117 | |
| 118 | export function resolveReplayString( |
| 119 | raw: string, |
no outgoing calls
no test coverage detected