chore: Update the lazy config

This commit is contained in:
BluJ
2023-05-01 13:04:48 -06:00
parent cb89f3a65f
commit a30ed1f0ab
19 changed files with 505 additions and 667 deletions

View File

@@ -4,14 +4,14 @@ export class Origin {
withAuth(
origin?:
| {
password: string
password: null | string
username: string
}
| null
| undefined,
) {
// prettier-ignore
const urlAuth = !!(origin) ? `${origin.username}:${origin.password}@` :
const urlAuth = !!(origin) ? `${origin.username}${origin.password != null ?`:${origin.password}`:''}@` :
'';
return `${this.protocol}://${urlAuth}${this.host}`
}