* Create a new URI with modifications * * @param change - The changes to apply * @returns A new Uri instance with the changes applied
(change: { scheme?: string; authority?: string; path?: string; query?: string; fragment?: string })
| 85 | * @returns A new Uri instance with the changes applied |
| 86 | */ |
| 87 | with(change: { scheme?: string; authority?: string; path?: string; query?: string; fragment?: string }): Uri { |
| 88 | return new Uri( |
| 89 | change.scheme !== undefined ? change.scheme : this.scheme, |
| 90 | change.authority !== undefined ? change.authority : this.authority, |
| 91 | change.path !== undefined ? change.path : this.path, |
| 92 | change.query !== undefined ? change.query : this.query, |
| 93 | change.fragment !== undefined ? change.fragment : this.fragment, |
| 94 | ) |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Get the file system path representation |
no outgoing calls
no test coverage detected