(r)
| 88 | |
| 89 | // Whether a parsed result set has anything worth returning to the frontend |
| 90 | const hasUsefulData = (r) => |
| 91 | r && |
| 92 | (pick(r, 'Created Date', 'Creation Date') || |
| 93 | pick(r, 'Updated Date') || |
| 94 | pick(r, 'Expiry Date', 'Registry Expiry Date') || |
| 95 | pick(r, 'Registrar') || |
| 96 | cleanNs(pick(r, 'Name Server'))); |
| 97 | |
| 98 | // Resolve domain registration data via whoiser, with rdap.org as a fallback for TLD gaps |
| 99 | const whoisHandler = async (url) => { |
no test coverage detected