jointhis.proxy 0.2.0 → 0.2.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.
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export declare const version = "0.1.0";
2
+ export declare const version = "0.2.1";
package/dist/cli.js CHANGED
@@ -7,11 +7,13 @@ import UI from './ui.js';
7
7
  import fs from 'node:fs';
8
8
  import { Spawn } from 'ink-spawn';
9
9
  import { exec } from 'node:child_process';
10
- export const version = `0.1.0`;
10
+ export const version = `0.2.1`;
11
+ // Get backend executable
11
12
  fs.open('./rtun-linux-amd64', 'r', (err, fd) => {
12
13
  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');
14
+ exec('wget https://github.com/snsinfu/reverse-tunnel/releases/download/v1.3.2/rtun-linux-amd64').on('exit', function () {
15
+ exec('chmod +x ./rtun-linux-amd64');
16
+ });
15
17
  }
16
18
  });
17
19
  const cli = meow(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jointhis.proxy",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "license": "MIT",
5
5
  "bin": "dist/cli.js",
6
6
  "type": "module",
@@ -17,27 +17,27 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "fs": "0.0.1-security",
20
- "ink": "^4.1.0",
20
+ "ink": "^4.4.1",
21
21
  "ink-select-input": "^6.2.0",
22
22
  "ink-spawn": "^0.1.4",
23
23
  "ink-stepper": "^0.2.1",
24
24
  "ink-text-input": "^6.0.0",
25
25
  "meow": "^11.0.0",
26
- "react": "^18.2.0"
26
+ "react": "^18.3.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@sindresorhus/tsconfig": "^3.0.1",
30
- "@types/react": "^18.0.32",
30
+ "@types/react": "^18.3.28",
31
31
  "@vdemedes/prettier-config": "^2.0.1",
32
- "ava": "^5.2.0",
33
- "chalk": "^5.2.0",
32
+ "ava": "^5.3.1",
33
+ "chalk": "^5.6.2",
34
34
  "eslint-config-xo-react": "^0.27.0",
35
- "eslint-plugin-react": "^7.32.2",
36
- "eslint-plugin-react-hooks": "^4.6.0",
35
+ "eslint-plugin-react": "^7.37.5",
36
+ "eslint-plugin-react-hooks": "^4.6.2",
37
37
  "ink-testing-library": "^3.0.0",
38
38
  "prettier": "^2.8.8",
39
- "ts-node": "^10.9.1",
40
- "typescript": "^5.0.3",
39
+ "ts-node": "^10.9.2",
40
+ "typescript": "^5.9.3",
41
41
  "xo": "^0.53.1"
42
42
  },
43
43
  "ava": {