(url: string | undefined)
| 26 | const SOURCE_ENVIRONMENTS = new Set<MothershipSourceEnvironment>(['dev', 'staging', 'prod']) |
| 27 | |
| 28 | function normalizeUrl(url: string | undefined): string | null { |
| 29 | if (!url) return null |
| 30 | return url.startsWith('http://') || url.startsWith('https://') ? url : null |
| 31 | } |
| 32 | |
| 33 | function getConfiguredEnvironmentUrl(environment: MothershipEnvironment): string | null { |
| 34 | if (environment === 'default') return null |
no outgoing calls
no test coverage detected