Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
11
node_modules/next/dist/esm/server/lib/format-hostname.js
generated
vendored
Normal file
11
node_modules/next/dist/esm/server/lib/format-hostname.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { isIPv6 } from './is-ipv6';
|
||||
/**
|
||||
* Formats a hostname so that it is a valid host that can be fetched by wrapping
|
||||
* IPv6 hosts with brackets.
|
||||
* @param hostname
|
||||
* @returns
|
||||
*/ export function formatHostname(hostname) {
|
||||
return isIPv6(hostname) ? `[${hostname}]` : hostname;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=format-hostname.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue