cm-tunnel 1.3.3 → 1.5.0
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 +604 -108
- package/dist/StaticServer.d.ts +25 -0
- package/dist/StaticServer.js +336 -41
- package/dist/Tunnel.js +10 -3
- package/dist/cli-utils.d.ts +89 -0
- package/dist/cli-utils.js +267 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +426 -0
- package/package.json +9 -4
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cm-tunnel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Exponha seu servidor HTTP local para a internet através do Cloudflare ou LocalTunnel de forma simples",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"cm-tunnel": "./dist/cli.js"
|
|
11
|
+
},
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
14
|
"types": "./dist/index.d.ts",
|
|
@@ -14,7 +17,7 @@
|
|
|
14
17
|
}
|
|
15
18
|
},
|
|
16
19
|
"scripts": {
|
|
17
|
-
"build": "rm -rf dist && tsc",
|
|
20
|
+
"build": "rm -rf dist && tsc && node -e \"require('fs').chmodSync('dist/cli.js', 0o755)\"",
|
|
18
21
|
"test": "vitest run",
|
|
19
22
|
"test:watch": "vitest",
|
|
20
23
|
"lint": "tsc --noEmit",
|
|
@@ -41,7 +44,7 @@
|
|
|
41
44
|
},
|
|
42
45
|
"homepage": "https://github.com/your-username/cm-tunnel#readme",
|
|
43
46
|
"engines": {
|
|
44
|
-
"node": ">=18.
|
|
47
|
+
"node": ">=18.3.0"
|
|
45
48
|
},
|
|
46
49
|
"files": [
|
|
47
50
|
"dist",
|
|
@@ -52,12 +55,14 @@
|
|
|
52
55
|
"@ngrok/ngrok": "^1.7.0",
|
|
53
56
|
"bancoz": "^2.2.8",
|
|
54
57
|
"http-proxy": "^1.18.1",
|
|
55
|
-
"localtunnel": "^2.0.2"
|
|
58
|
+
"localtunnel": "^2.0.2",
|
|
59
|
+
"prompts": "^2.4.2"
|
|
56
60
|
},
|
|
57
61
|
"devDependencies": {
|
|
58
62
|
"@types/http-proxy": "^1.17.17",
|
|
59
63
|
"@types/localtunnel": "^2.0.4",
|
|
60
64
|
"@types/node": "^20.12.7",
|
|
65
|
+
"@types/prompts": "^2.4.9",
|
|
61
66
|
"eslint": "^9.1.1",
|
|
62
67
|
"prettier": "^3.2.5",
|
|
63
68
|
"tsup": "^8.0.2",
|