DEP0153:dns.lookup 和 dnsPromises.lookup 选项类型强制转换
【DEP0153: dns.lookup and dnsPromises.lookup options type coercion】
类型:寿命终止
【Type: End-of-Life】
在 dns.lookup() 和 dnsPromises.lookup() 中,family 选项使用非 null 且非整数的值,hints 选项使用非 null 且非数字的值,all 选项使用非 null 且非布尔值的值,或者 verbatim 选项使用非 null 且非布尔值的值,会抛出 ERR_INVALID_ARG_TYPE 错误。
【Using a non-nullish non-integer value for family option, a non-nullish
non-number value for hints option, a non-nullish non-boolean value for all
option, or a non-nullish non-boolean value for verbatim option in
dns.lookup() and dnsPromises.lookup() throws an
ERR_INVALID_ARG_TYPE error.】