( env: Record<string, string> | undefined, )
| 69 | let ccdSpawnEnvKeys: Set<string> | null | undefined |
| 70 | |
| 71 | function withoutCcdSpawnEnvKeys( |
| 72 | env: Record<string, string> | undefined, |
| 73 | ): Record<string, string> { |
| 74 | if (!env || !ccdSpawnEnvKeys) return env || {} |
| 75 | const out: Record<string, string> = {} |
| 76 | for (const [key, value] of Object.entries(env)) { |
| 77 | if (!ccdSpawnEnvKeys.has(key)) out[key] = value |
| 78 | } |
| 79 | return out |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Compose the strip filters applied to every settings-sourced env object. |
no test coverage detected