@lionad/port-key 0.6.0 → 0.6.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/port-key.js +25 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lionad/port-key",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "A simple, practical port naming strategy",
5
5
  "type": "module",
6
6
  "types": "./src/port-key.d.ts",
package/src/port-key.js CHANGED
@@ -14,20 +14,32 @@ const DEFAULT_MAP = Object.freeze({
14
14
  });
15
15
 
16
16
  const DEFAULT_BLOCKED_PORTS = Object.freeze(
17
- // well-known application ports
17
+ // well-known application ports (system ports 0-1023 are blocked by range rule)
18
18
  new Set([
19
- 3000,
20
- 3001,
21
- 5000,
22
- 5173,
23
- 5432,
24
- 6379,
25
- 8080,
26
- 8081,
27
- 9000,
28
- 27017,
29
- 3306,
30
- 1234,
19
+ 1234, // common placeholder / dev port
20
+ 1420, // Tauri dev default
21
+ 3000, // common dev port (React/Next/Express)
22
+ 3001, // common dev port
23
+ 3306, // MySQL
24
+ 4200, // Angular dev server
25
+ 5000, // macOS AirPlay / Flask
26
+ 5037, // ADB server (Android)
27
+ 5173, // Vite default
28
+ 5432, // PostgreSQL
29
+ 5555, // Prisma Studio / ADB
30
+ 5900, // VNC / Screen Sharing
31
+ 6006, // Storybook
32
+ 6379, // Redis
33
+ 7000, // macOS AirPlay
34
+ 8000, // common dev port (Django/uvicorn)
35
+ 8080, // alternative HTTP / proxies
36
+ 8081, // common HTTP alternative
37
+ 8888, // Jupyter Notebook
38
+ 9000, // common dev / PHP-FPM
39
+ 9229, // Node.js debugger
40
+ 11434, // Ollama (local LLMs)
41
+ 19000, // Expo
42
+ 27017, // MongoDB
31
43
  ])
32
44
  );
33
45