cli-tunnel 1.4.1 → 1.4.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/package.json +1 -1
  2. package/remote-ui/app.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-tunnel",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Tunnel any CLI app to your phone — PTY + devtunnel + xterm.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/remote-ui/app.js CHANGED
@@ -977,7 +977,7 @@
977
977
  history.replaceState(null, '', cleanUrl.toString());
978
978
  }
979
979
 
980
- const proto = location.protocol === 'https:' ? 'wss:' : 'ws:';
980
+ var proto = location.protocol === 'https:' ? 'wss:' : 'ws:';
981
981
 
982
982
  // If we have a ticket (from hub Connect button), use it directly
983
983
  if (ticketParam) {
@@ -985,7 +985,7 @@
985
985
  } else {
986
986
  // Exchange token for ticket
987
987
  try {
988
- const resp = await fetch('/api/auth/ticket', {
988
+ var resp = await fetch('/api/auth/ticket', {
989
989
  method: 'POST',
990
990
  headers: { 'Authorization': 'Bearer ' + savedToken }
991
991
  });