chore: Change the dependencies

This commit is contained in:
BluJ
2023-05-04 13:41:54 -06:00
parent a2c5b1defb
commit b2b175ec6e
3 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ export class NetworkInterfaceBuilder {
id: string
description: string
ui: boolean
basic: null | { password: null | string; username: string }
basic: null | { username: string }
path: string
search: Record<string, string>
},

View File

@@ -3,7 +3,7 @@ export class Origin {
build({ basic, path, search }: BuildOptions) {
// prettier-ignore
const urlAuth = !!(basic) ? `${basic.username}${basic.password != null ?`:${basic.password}`:''}@` :
const urlAuth = !!(basic) ? `${basic.username}@` :
'';
const protocolSection = this.protocol != null ? `${this.protocol}://` : ""
@@ -20,7 +20,7 @@ export class Origin {
}
type BuildOptions = {
basic: { username: string; password: string | null } | null
basic: { username: string } | null
path: string
search: Record<string, string>
}