-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow scoped client certificates #15
Conversation
* fix: use Powershell in windows CI * revert: change step names * fix: set OS PATH in different steps * fix: set Windows PATH * fix: use Powershell v5.1 * fix: specify bvm path manually * fix: dont modify windows PATH * fix: set BVM path in PATH * fix: set user profile automatically
Co-authored-by: Zoltan Kochan <[email protected]>
Co-authored-by: Zoltan Kochan <[email protected]>
network/config/config.ts
Outdated
withoutPort: string; | ||
} | ||
|
||
export function parseUri(uri: string): ParsedUri { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this used anywhere. Should it be exported?
network/config/config.ts
Outdated
return { | ||
raw: parsed.href, | ||
parsed, | ||
nerf: nerfDart(uri), | ||
host: parsed.hostname, | ||
hostOnlyDomain: convertToDomain(parsed), | ||
withoutPort: removePort(parsed), | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this function because we calculate all these fields but don't always use them, so it is wasting. Like for instance we only used withoutPort after the loop in pickSettingByUrl, so it is enough to call removePort only after the loop
Todo:
uriToHost
from another place if possible,@ts-expect-error