instatunnel 1.0.18 → 1.0.20

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
File without changes
package/bin/it CHANGED
Binary file
Binary file
Binary file
Binary file
package/bin/it-linux-386 CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/bin/it.ps1 CHANGED
File without changes
package/install.js CHANGED
@@ -114,17 +114,39 @@ async function downloadBinary() {
114
114
  if (fs.existsSync(sourceBinaryPath)) {
115
115
  log('✅ Using pre-compiled binary: ' + sourceBinaryName, 'green');
116
116
 
117
+ // Set permissions on source binary first
118
+ try {
119
+ fs.chmodSync(sourceBinaryPath, 0o755);
120
+ } catch (chmodError) {
121
+ // Ignore chmod errors on Windows
122
+ if (platform !== 'windows') {
123
+ console.warn('Warning: Could not set permissions on source binary');
124
+ }
125
+ }
126
+
117
127
  // Copy to main binary names
118
128
  const mainBinaryPath = path.join(binDir, BINARY_NAME + extension);
119
129
  const aliasBinaryPath = path.join(binDir, 'it' + extension);
120
130
 
131
+ // Remove existing files if they exist
132
+ try {
133
+ if (fs.existsSync(mainBinaryPath)) fs.unlinkSync(mainBinaryPath);
134
+ if (fs.existsSync(aliasBinaryPath)) fs.unlinkSync(aliasBinaryPath);
135
+ } catch (unlinkError) {
136
+ // Continue if we can't remove existing files
137
+ }
138
+
121
139
  fs.copyFileSync(sourceBinaryPath, mainBinaryPath);
122
140
  fs.copyFileSync(sourceBinaryPath, aliasBinaryPath);
123
141
 
124
142
  // Make executable on Unix systems
125
143
  if (platform !== 'windows') {
126
- fs.chmodSync(mainBinaryPath, '755');
127
- fs.chmodSync(aliasBinaryPath, '755');
144
+ try {
145
+ fs.chmodSync(mainBinaryPath, 0o755);
146
+ fs.chmodSync(aliasBinaryPath, 0o755);
147
+ } catch (chmodError) {
148
+ console.warn('Warning: Could not set executable permissions');
149
+ }
128
150
  }
129
151
 
130
152
  log('✅ InstaTunnel CLI installed successfully!', 'green');
@@ -165,9 +187,9 @@ async function downloadBinary() {
165
187
 
166
188
  // Make executable on Unix systems
167
189
  if (platform !== 'windows') {
168
- fs.chmodSync(sourceBinaryPath, '755');
169
- fs.chmodSync(mainBinaryPath, '755');
170
- fs.chmodSync(aliasBinaryPath, '755');
190
+ fs.chmodSync(sourceBinaryPath, 0o755);
191
+ fs.chmodSync(mainBinaryPath, 0o755);
192
+ fs.chmodSync(aliasBinaryPath, 0o755);
171
193
  }
172
194
 
173
195
  log('✅ InstaTunnel CLI installed successfully!', 'green');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instatunnel",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
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": {