chore: prepare GoodBuddy 0.8.5

This commit is contained in:
lofyer
2026-08-07 10:45:01 +08:00
parent e20cb447af
commit 17e66a3369
54 changed files with 1306 additions and 1640 deletions
+1 -10
View File
@@ -52,16 +52,7 @@ function normalizedEndpoint(input: string): string {
if (!['http:', 'https:'].includes(url.protocol)) {
throw new RangeError('endpoint must use HTTP or HTTPS')
}
if (
url.username ||
url.password ||
url.search ||
url.hash
) {
throw new RangeError(
'endpoint must not contain credentials, a query, or a fragment'
)
}
url.hash = ''
return url.toString()
}