(url: string)
| 2 | import { lookup } from 'mrmime'; |
| 3 | |
| 4 | export function getProperDestinationPath(url: string) { |
| 5 | const decodedPathname = decodeURIComponent(new URL(url).pathname); |
| 6 | return decodedPathname.replace(/^\/dav\//, ''); |
| 7 | } |
| 8 | |
| 9 | // Pulls lock tokens out of an `If` header (RFC 4918 §10.4), ignoring its etag/resource-tag parts. |
| 10 | export function getLockTokensFromIfHeader(ifHeader: string | null): string[] { |
no outgoing calls
no test coverage detected