devtunnel-cli 3.0.40 → 3.0.41

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtunnel-cli",
3
- "version": "3.0.40",
3
+ "version": "3.0.41",
4
4
  "type": "module",
5
5
  "description": "DevTunnel-CLI — fast, zero-config tool to share local servers for development, testing, demos, and webhook debugging. npm i -g devtunnel-cli.",
6
6
  "main": "src/core/start.js",
package/src/core/start.js CHANGED
@@ -17,10 +17,10 @@ function getPackageVersion() {
17
17
  const pkgPath = join(PROJECT_ROOT, "package.json");
18
18
  if (existsSync(pkgPath)) {
19
19
  const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
20
- return pkg.version || "3.0.40";
20
+ return pkg.version || "3.0.41";
21
21
  }
22
22
  } catch (err) { }
23
- return "3.0.40";
23
+ return "3.0.41";
24
24
  }
25
25
 
26
26
  // Helper to run command
@@ -112,7 +112,21 @@ devtunnel-cli</code></pre>
112
112
  </ul>
113
113
 
114
114
  <hr>
115
- <p><small>Version 3.0.40 | Made with ❤︎ for developers worldwide</small></p>
115
+ <p><small>Version <span id="pkg-version">3.0.41</span> | Made with ❤︎ for developers worldwide</small></p>
116
+
117
+ <script>
118
+ (async function () {
119
+ try {
120
+ const res = await fetch('https://registry.npmjs.org/devtunnel-cli');
121
+ if (!res.ok) return;
122
+ const data = await res.json();
123
+ const latest = data && data['dist-tags'] && data['dist-tags'].latest;
124
+ if (latest) document.getElementById('pkg-version').textContent = latest;
125
+ } catch (e) {
126
+ // keep static version if fetch fails
127
+ }
128
+ })();
129
+ </script>
116
130
  </body>
117
131
 
118
132
  </html>