devtunnel-cli 3.0.16 → 3.0.18
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/core/proxy-server.js +8 -1
- package/src/core/start.js +602 -573
- package/src/core/static-server.js +87 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devtunnel-cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DevTunnel - Share local dev servers worldwide. Zero configuration tunnel for any framework. Install via npm: npm install -g devtunnel-cli. Works with Vite, React, Next.js, Express, NestJS, Laravel (PHP), HTML, and more.",
|
|
6
6
|
"main": "src/core/start.js",
|
package/src/core/proxy-server.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import http from "http";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// Suppress util._extend deprecation from http-proxy (must run before loading http-proxy)
|
|
4
|
+
const _origEmit = process.emitWarning;
|
|
5
|
+
process.emitWarning = function (warning, ...args) {
|
|
6
|
+
if (typeof warning === "string" && warning.includes("util._extend")) return;
|
|
7
|
+
return _origEmit.apply(this, [warning, ...args]);
|
|
8
|
+
};
|
|
9
|
+
const { default: httpProxy } = await import("http-proxy");
|
|
3
10
|
|
|
4
11
|
// Get ports from command line
|
|
5
12
|
const TARGET_PORT = parseInt(process.argv[2]); // Your dev server port
|