rdapper 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -549,7 +549,7 @@ Project layout:
549
549
  - `src/whois/` – WHOIS TCP client, discovery/referral, normalization, exceptions
550
550
  - `src/lib/` – utilities for dates, text parsing, domain processing, async
551
551
  - `src/types.ts` – public types; `src/index.ts` re‑exports API and types
552
- - `bin/cli.js` – simple CLI for quick checks
552
+ - `bin/cli.mjs` – simple CLI for quick checks
553
553
 
554
554
  ## Caveats
555
555
 
@@ -6,7 +6,7 @@
6
6
  // echo "example.com" | npx rdapper
7
7
 
8
8
  import { createInterface } from "node:readline";
9
- import { lookup } from "../dist/index.js";
9
+ import { lookup } from "../dist/index.mjs";
10
10
 
11
11
  async function main() {
12
12
  if (process.argv.length > 2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rdapper",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "license": "MIT",
5
5
  "description": "🎩 RDAP/WHOIS fetcher, parser, and normalizer for Node",
6
6
  "repository": {
@@ -19,17 +19,17 @@
19
19
  "access": "public"
20
20
  },
21
21
  "type": "module",
22
- "main": "./dist/index.js",
23
- "module": "./dist/index.js",
24
- "types": "./dist/index.d.ts",
22
+ "main": "./dist/index.mjs",
23
+ "module": "./dist/index.mjs",
24
+ "types": "./dist/index.d.mts",
25
25
  "bin": {
26
- "rdapper": "bin/cli.js"
26
+ "rdapper": "bin/cli.mjs"
27
27
  },
28
28
  "exports": {
29
29
  ".": {
30
- "types": "./dist/index.d.ts",
31
- "import": "./dist/index.js",
32
- "default": "./dist/index.js"
30
+ "types": "./dist/index.d.mts",
31
+ "import": "./dist/index.mjs",
32
+ "default": "./dist/index.mjs"
33
33
  }
34
34
  },
35
35
  "files": [
@@ -38,7 +38,7 @@
38
38
  "scripts": {
39
39
  "build": "tsdown",
40
40
  "dev": "tsdown --watch",
41
- "cli": "node bin/cli.js",
41
+ "cli": "node bin/cli.mjs",
42
42
  "typecheck": "tsc --noEmit",
43
43
  "test": "vitest",
44
44
  "test:run": "vitest run",