xpose-cli 0.3.1 → 0.3.2

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/bin/install.js +8 -2
  2. package/package.json +2 -2
package/bin/install.js CHANGED
@@ -11,8 +11,14 @@ const crypto = require('crypto');
11
11
  * Fetches the pre-compiled Rust binary for the current platform.
12
12
  */
13
13
 
14
- const VERSION = '0.1.0';
15
- const REPO = 'user/xpose-cli'; // Placeholder
14
+ function getPackageVersion() {
15
+ const packageJsonPath = path.join(__dirname, '..', 'package.json');
16
+ const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
17
+ return pkg.version;
18
+ }
19
+
20
+ const VERSION = getPackageVersion();
21
+ const REPO = 'vkaylee/xpose-cli';
16
22
  const BASE_URL = `https://github.com/${REPO}/releases/download/v${VERSION}`;
17
23
 
18
24
  const BIN_DIR = path.join(os.homedir(), '.xpose', 'bin');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpose-cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Cloudflare Tunnel CLI for developers - Vivid TUI, auto-copy, and smart defaults.",
5
5
  "bin": {
6
6
  "xpose": "bin/cli.js"
@@ -33,4 +33,4 @@
33
33
  "dependencies": {
34
34
  "cli-progress": "^3.12.0"
35
35
  }
36
- }
36
+ }