traforo 0.0.3 → 0.0.4

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { cac } from 'cac';
2
+ import { cac } from '@xmorse/cac';
3
3
  import { CLI_NAME, runTunnel, parseCommandFromArgv } from './run-tunnel.js';
4
4
  const { command, argv } = parseCommandFromArgv(process.argv);
5
5
  const cli = cac(CLI_NAME);
package/dist/client.js CHANGED
@@ -25,11 +25,11 @@ export class TunnelClient {
25
25
  throw new Error('Client is closed');
26
26
  }
27
27
  const wsUrl = `${this.options.serverUrl}/traforo-upstream?_tunnelId=${this.options.tunnelId}`;
28
- console.log(`Connecting to ${wsUrl}...`);
28
+ // console.log(`Connecting to ${wsUrl}...`)
29
29
  return new Promise((resolve, reject) => {
30
30
  this.ws = new WebSocket(wsUrl);
31
31
  this.ws.on('open', () => {
32
- console.log(`Connected! Tunnel URL: ${this.url}`);
32
+ console.log(`Connected with Traforo! Tunnel URL: ${this.url}`);
33
33
  resolve();
34
34
  });
35
35
  this.ws.on('error', (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "traforo",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "HTTP tunnel via Cloudflare Durable Objects and WebSockets",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,7 +38,8 @@
38
38
  "wrangler": "^4.24.3"
39
39
  },
40
40
  "dependencies": {
41
- "cac": "^6.7.14",
41
+ "@xmorse/cac": "^6.0.7",
42
+ "string-dedent": "^3.0.2",
42
43
  "ws": "^8.19.0"
43
44
  },
44
45
  "scripts": {