@dpkrn/nodetunnel 1.0.3 → 1.0.5

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
@@ -10,8 +10,6 @@ Give your **local** HTTP server a **public URL** from Node.js — useful for web
10
10
  - **Works with your existing server** — Express, Fastify, or plain `http`.
11
11
  - **Simple API** — you get a public `url` and a `stop()` when you are done.
12
12
 
13
- You need a **tunnel server** running that this library can connect to (host and port are configurable; defaults suit a typical local setup).
14
-
15
13
  ---
16
14
 
17
15
  ## Requirements
@@ -155,7 +155,7 @@ class Tunnel {
155
155
  */
156
156
  constructor(localPort, options = {}) {
157
157
  this.localPort = localPort;
158
- this.serverHost = options.host ?? 'localhost';
158
+ this.serverHost = options.host ?? 'clickly.cv';
159
159
  this.serverPort = options.serverPort ?? 9000;
160
160
  /** @type {import('net').Socket | null} */
161
161
  this.socket = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpkrn/nodetunnel",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Expose a local HTTP server through a devtunnel/gotunnel-compatible server (yamux + JSON). Node.js 18+.",
5
5
  "keywords": [
6
6
  "tunnel",
@@ -13,14 +13,13 @@
13
13
  "http",
14
14
  "multiplex"
15
15
  ],
16
- "homepage": "https://github.com/DpkRn/NGROK/tree/main/nodetunnel#readme",
16
+ "homepage": "https://github.com/DpkRn/nodetunnel#readme",
17
17
  "bugs": {
18
- "url": "https://github.com/DpkRn/NGROK/issues"
18
+ "url": "https://github.com/DpkRn/nodetunnel/issues"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/DpkRn/NGROK.git",
23
- "directory": "nodetunnel"
22
+ "url": "git+https://github.com/DpkRn/nodetunnel.git"
24
23
  },
25
24
  "license": "MIT",
26
25
  "author": "DpkRn (https://github.com/DpkRn)",
@@ -49,7 +48,6 @@
49
48
  "prepublishOnly": "node -e \"import('./pkg/tunnel/tunnel.js').then(() => console.log('pack ok')).catch(e => { console.error(e); process.exit(1); })\""
50
49
  },
51
50
  "dependencies": {
52
- "@dpkrn/nodetunnel": "^1.0.2",
53
51
  "yamux-js": "^0.2.0"
54
52
  },
55
53
  "devDependencies": {