(parsed: Record<string, string>)
| 96 | |
| 97 | /** @internal */ |
| 98 | const expand = (parsed: Record<string, string>) => { |
| 99 | const newParsed: Record<string, string> = {} |
| 100 | |
| 101 | for (const configKey in parsed) { |
| 102 | // resolve escape sequences |
| 103 | newParsed[configKey] = interpolate(parsed[configKey], parsed).replace(/\\\$/g, "$") |
| 104 | } |
| 105 | |
| 106 | return newParsed |
| 107 | } |
| 108 | |
| 109 | /** @internal */ |
| 110 | const interpolate = (envValue: string, parsed: Record<string, string>) => { |
no test coverage detected