(url: string)
| 50 | |
| 51 | @LogMethod |
| 52 | async fetchProfile(url: string): Promise<Record<string, unknown>> { |
| 53 | const response = await fetch(url); |
| 54 | const data = await response.json(); |
| 55 | this._cache.set(url, data); |
| 56 | log(`Fetched profile for ${this.name}`); |
| 57 | return data as Record<string, unknown>; |
| 58 | } |
| 59 | |
| 60 | private resetCache(): void { |
| 61 | this._cache.clear(); |