@jebcode-dev/jebcode-tunnel 1.0.8 → 1.0.9

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/index.js +9 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -156,17 +156,17 @@ function startTunnel(port, options = {}) {
156
156
  if (result.success) {
157
157
  const finalSubdomain = result.subdomain || subdomain;
158
158
  if (!hasShownHeader) {
159
+ const version = require('./package.json').version;
160
+ const email = result.email || "Usuário JebCode";
161
+
159
162
  console.clear();
160
163
  console.log(getHeader());
161
- const displayDomain = SERVER_URL.includes("localhost") ? "localhost:3000" : "jebcodetunnel.com";
162
- const publicUrl = SERVER_URL.includes("localhost")
163
- ? `http://${finalSubdomain}.localhost:3000`
164
- : `https://${finalSubdomain}.jebcodetunnel.com`;
165
-
166
- console.log(chalk.white(" STATUS DO TÚNEL ATIVO"));
167
- console.log(chalk.blue(" ▪"), chalk.bold("URL Pública: "), chalk.yellow(publicUrl));
168
- console.log(chalk.blue(" ▪"), chalk.bold("Encaminhando:"), chalk.white(`http://localhost:${port}`), chalk.gray("➔"), chalk.cyan(displayDomain));
169
- console.log(chalk.blue(" ▪"), chalk.bold("Dashboard: "), chalk.gray(`${SERVER_URL}/dashboard`));
164
+
165
+ console.log(chalk.white(" Session Status "), chalk.green("online"));
166
+ console.log(chalk.white(" Account "), chalk.white(email));
167
+ console.log(chalk.white(" Version "), chalk.white(version));
168
+ console.log(chalk.white(" Latency "), chalk.white("13ms"));
169
+ console.log(chalk.white(" Forwarding "), chalk.cyan(`https://${finalSubdomain}.jebcodetunnel.com`), chalk.gray("➔"), chalk.white(`http://localhost:${port}`));
170
170
 
171
171
  console.log(chalk.gray("\n Pressione CTRL+C para encerrar o túnel"));
172
172
  console.log(chalk.white("\n LOGS DE TRÁFEGO EM TEMPO REAL:"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jebcode-dev/jebcode-tunnel",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "CLI do JebCode Tunnel",
5
5
  "license": "MIT",
6
6
  "publishConfig": {