(shareUrl: string, accountBaseUrl: string)
| 31 | } |
| 32 | |
| 33 | export function shouldAttachShareAuthHeaders(shareUrl: string, accountBaseUrl: string): boolean { |
| 34 | try { |
| 35 | return new URL(shareUrl).origin === new URL(accountBaseUrl).origin |
| 36 | } catch { |
| 37 | return false |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Transform ShareNext API response (flat array) into the nested structure for local file storage. |
no outgoing calls
no test coverage detected