instatunnel 1.0.16 → 1.0.18

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/bin/instatunnel CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  @echo off
2
2
  setlocal
3
3
  set "args=%*"
4
- "%~dp0instatunnel.exe" %args%
4
+ "%~dp0instatunnel" %args%
5
5
  endlocal
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env pwsh
2
+ $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+ $exe="$basedir/instatunnel"
4
+ & $exe $args
5
+ exit $LASTEXITCODE
package/bin/it CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/bin/it.cmd CHANGED
@@ -1,5 +1,5 @@
1
1
  @echo off
2
2
  setlocal
3
3
  set "args=%*"
4
- "%~dp0it.exe" %args%
4
+ "%~dp0it" %args%
5
5
  endlocal
package/bin/it.ps1 ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env pwsh
2
+ $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+ $exe="$basedir/it"
4
+ & $exe $args
5
+ exit $LASTEXITCODE
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require('child_process');
4
+ const path = require('path');
5
+ const os = require('os');
6
+
7
+ const platform = os.platform();
8
+ const binDir = path.join(__dirname, 'bin');
9
+
10
+ let binaryName = 'instatunnel';
11
+ let binaryPath = path.join(binDir, binaryName);
12
+
13
+ // Use the direct binary path
14
+ const child = spawn(binaryPath, process.argv.slice(2), {
15
+ stdio: 'inherit',
16
+ shell: false
17
+ });
18
+
19
+ child.on('error', (error) => {
20
+ console.error('Failed to start instatunnel:', error.message);
21
+ process.exit(1);
22
+ });
23
+
24
+ child.on('exit', (code, signal) => {
25
+ if (signal) {
26
+ process.kill(process.pid, signal);
27
+ } else {
28
+ process.exit(code || 0);
29
+ }
30
+ });
package/it-wrapper.js ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require('child_process');
4
+ const path = require('path');
5
+ const os = require('os');
6
+
7
+ const platform = os.platform();
8
+ const binDir = path.join(__dirname, 'bin');
9
+
10
+ let binaryName = 'it';
11
+ let binaryPath = path.join(binDir, binaryName);
12
+
13
+ // Use the direct binary path
14
+ const child = spawn(binaryPath, process.argv.slice(2), {
15
+ stdio: 'inherit',
16
+ shell: false
17
+ });
18
+
19
+ child.on('error', (error) => {
20
+ console.error('Failed to start it:', error.message);
21
+ process.exit(1);
22
+ });
23
+
24
+ child.on('exit', (code, signal) => {
25
+ if (signal) {
26
+ process.kill(process.pid, signal);
27
+ } else {
28
+ process.exit(code || 0);
29
+ }
30
+ });
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "instatunnel",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Expose your localhost to the internet instantly - the ngrok alternative that's 40% cheaper with superior UX",
5
5
  "main": "install.js",
6
6
  "bin": {
7
- "instatunnel": "./bin/instatunnel",
8
- "it": "./bin/it"
7
+ "instatunnel": "./instatunnel-wrapper.js",
8
+ "it": "./it-wrapper.js"
9
9
  },
10
10
  "scripts": {
11
11
  "postinstall": "node install.js",
@@ -68,6 +68,8 @@
68
68
  "preferGlobal": true,
69
69
  "files": [
70
70
  "install.js",
71
+ "instatunnel-wrapper.js",
72
+ "it-wrapper.js",
71
73
  "uninstall.js",
72
74
  "test.js",
73
75
  "bin/",