@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.
- package/package.json +1 -1
- package/src/port-key.js +25 -13
package/package.json
CHANGED
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|