Files
rdapper/package.json
T
jake 69f85ee925 feat: add attempt tracking, deadlineMs, and structured error codes
- Resolve `LookupResult` with an `attempts` array describing every network operation (phase, server, duration, error) so failures recovered by fallback remain visible
- Add `deadlineMs` option for a hard cap on total lookup time, distinct from per-operation `timeoutMs` (lowered default from 15 s to 10 s)
- Add `errorCode` (machine-readable `LookupErrorCode`), `errorPhase`, and `errorServer` to `LookupResult`; `timeout` covers both per-op and deadline timeouts, `aborted` means the caller's signal fired
- WHOIS timeouts now distinguish `connect` vs `read` stage and resolve with partial text (marked `partial: true`) when data arrived before the socket stalled
- Drop Node 18 support; minimum engine is now 20
2026-09-18 14:41:16 -04:00

75 lines
1.5 KiB
JSON

{
"name": "rdapper",
"version": "0.13.0",
"description": "🎩 RDAP/WHOIS fetcher, parser, and normalizer for Node",
"keywords": [
"domain",
"lookup",
"normalizer",
"parser",
"rdap",
"registration",
"whois"
],
"bugs": {
"url": "https://github.com/jakejarvis/rdapper/issues"
},
"license": "MIT",
"author": {
"name": "Jake Jarvis",
"email": "jake@jarv.is",
"url": "https://jarv.is"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jakejarvis/rdapper.git"
},
"bin": {
"rdapper": "bin/cli.mjs"
},
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
}
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"cli": "node bin/cli.mjs",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"test": "vitest run",
"prepublishOnly": "npm run build"
},
"dependencies": {
"tldts": "~7.4.13"
},
"devDependencies": {
"@types/node": "^26.6.1",
"oxfmt": "^0.68.0",
"oxlint": "^1.83.0",
"oxlint-tsgolint": "^7.0.2002",
"tsdown": "^0.23.0",
"typescript": "^6.0.3",
"vite": "^8.3.0",
"vitest": "^5.0.1"
},
"engines": {
"node": ">=20"
}
}