mirror of https://github.com/grpc/grpc-node.git
grpc-js: make dnsUrl type PascalCase
This commit is contained in:
parent
0d927e6872
commit
226016c7dc
|
@ -331,14 +331,12 @@ export function setup(): void {
|
||||||
registerDefaultResolver(DnsResolver);
|
registerDefaultResolver(DnsResolver);
|
||||||
}
|
}
|
||||||
|
|
||||||
// camelCase needed for compatibility to grpc-native-js package
|
export interface DnsUrl {
|
||||||
// eslint-disable-next-line @typescript-eslint/class-name-casing
|
|
||||||
export interface dnsUrl {
|
|
||||||
host: string;
|
host: string;
|
||||||
port?: string;
|
port?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function parseTarget(target: string): dnsUrl | null {
|
export function parseTarget(target: string): DnsUrl | null {
|
||||||
const match =
|
const match =
|
||||||
IPV4_REGEX.exec(target) ??
|
IPV4_REGEX.exec(target) ??
|
||||||
IPV6_REGEX.exec(target) ??
|
IPV6_REGEX.exec(target) ??
|
||||||
|
|
Loading…
Reference in New Issue