(url: string, prefix = 'favicon')
| 23 | |
| 24 | // Helper functions |
| 25 | function createCacheKey(url: string, prefix = 'favicon'): string { |
| 26 | const hash = crypto.createHash('sha256').update(url).digest('hex'); |
| 27 | return `${prefix}:v2:${hash}`; |
| 28 | } |
| 29 | |
| 30 | function validateUrl(raw?: string): URL | null { |
| 31 | try { |
no outgoing calls
no test coverage detected