jointhis.proxy 0.0.0 → 0.2.0

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
@@ -32,3 +32,5 @@ Usage
32
32
  For interactive setup, just ru:
33
33
  $ jointhis.proxy
34
34
  ```
35
+
36
+ Note to self, don't forget to `npm publish`
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export declare const version = "0.0.5";
2
+ export declare const version = "0.1.0";
package/dist/cli.js CHANGED
@@ -6,7 +6,14 @@ import Error from './error.js';
6
6
  import UI from './ui.js';
7
7
  import fs from 'node:fs';
8
8
  import { Spawn } from 'ink-spawn';
9
- export const version = `0.0.5`;
9
+ import { exec } from 'node:child_process';
10
+ export const version = `0.1.0`;
11
+ fs.open('./rtun-linux-amd64', 'r', (err, fd) => {
12
+ if (err) {
13
+ exec('wget https://github.com/snsinfu/reverse-tunnel/releases/download/v1.3.2/rtun-linux-amd64');
14
+ exec('chmod +x https://github.com/snsinfu/reverse-tunnel/releases/download/v1.3.2/rtun-linux-amd64');
15
+ }
16
+ });
10
17
  const cli = meow(`
11
18
  Usage
12
19
  $ jointhis.proxy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jointhis.proxy",
3
- "version": "0.0.0",
3
+ "version": "0.2.0",
4
4
  "license": "MIT",
5
5
  "bin": "dist/cli.js",
6
6
  "type": "module",