biz-a-cli 2.2.0 → 2.3.0

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/bin/hub.js +10 -9
  2. package/package.json +1 -1
package/bin/hub.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const yargs = require('yargs');
4
4
  const IDLE_SOCKET_TIMEOUT_MILLISECONDS = 1000 * 30;
@@ -62,13 +62,14 @@ return new Promise((resolve, reject) => {
62
62
  let subdomain = argv['subdomain'].toString();
63
63
  let server = argv['server'].toString();
64
64
 
65
- if (server.includes('https://')) {
66
- url = `https://${subdomain}.${server.slice(8)}`;
67
- } else if (server.includes('http://')) {
68
- url = `http://${subdomain}.${server.slice(7)}`;
69
- } else {
70
- url = `https://${subdomain}.${server}`;
71
- }
65
+ // if (server.includes('https://')) {
66
+ // url = `https://${subdomain}.${server.slice(8)}`;
67
+ // } else if (server.includes('http://')) {
68
+ // url = `http://${subdomain}.${server.slice(7)}`;
69
+ // } else {
70
+ // url = `https://${subdomain}.${server}`;
71
+ // }
72
+ url = server;
72
73
 
73
74
  // resolve promise with requested URL
74
75
  resolve(url);
@@ -76,7 +77,7 @@ return new Promise((resolve, reject) => {
76
77
  });
77
78
  });
78
79
  socket.on('incomingClient', (clientId) => {
79
- // console.log(clientId, 'incoming clientId')
80
+ console.log(clientId, 'incoming clientId')
80
81
  // console.log(`connecting to ${argv['hostname']}:${argv['port']}`)
81
82
  let client = net.connect(argv['port'], argv['hostname']);
82
83
  // let client = net.createConnection(argv['port'], argv['hostname']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-a-cli",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {