(url: string)
| 292 | } |
| 293 | |
| 294 | private async getFileHash(url: string): Promise<string | null> { |
| 295 | if (/\/resolve\//.test(url)) { |
| 296 | const pointerHash = await this.extractHashFromPointer(url); |
| 297 | if (pointerHash) { |
| 298 | return pointerHash; |
| 299 | } |
| 300 | } |
| 301 | return null; |
| 302 | } |
| 303 | |
| 304 | private async extractHashFromPointer(url: string): Promise<string | null> { |
| 305 | const rawUrl = url.replace(/\/resolve\//, "/raw/"); |
no test coverage detected