(values: Array<string | null | undefined>)
| 9 | 'https://e115e769bcdd4c3d66af59d3332cb394.r2.cloudflarestorage.com'; |
| 10 | |
| 11 | function compactUnique(values: Array<string | null | undefined>): string[] { |
| 12 | const compacted = values.filter((value): value is string => Boolean(value && value.length > 0)); |
| 13 | return Array.from(new Set(compacted)); |
| 14 | } |
| 15 | |
| 16 | function originFromUrl(value: string | undefined): string | null { |
| 17 | if (!value) return null; |
no outgoing calls
no test coverage detected