True when any string value in the provider config contains an env-var reference (`{{VAR}}`).
(config: Record<string, unknown>)
| 412 | |
| 413 | /** True when any string value in the provider config contains an env-var reference (`{{VAR}}`). */ |
| 414 | function providerConfigReferencesEnvVars(config: Record<string, unknown>): boolean { |
| 415 | for (const value of Object.values(config)) { |
| 416 | if (typeof value === 'string' && value.includes('{{')) { |
| 417 | return true |
| 418 | } |
| 419 | } |
| 420 | return false |
| 421 | } |
| 422 | |
| 423 | function resolveProviderConfigEnvVars( |
| 424 | config: Record<string, unknown>, |
no outgoing calls
no test coverage detected