local-loop-by-ayan 1.0.0 → 1.0.1

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/dist/index.js +4 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8,14 +8,13 @@ const commander_1 = require("commander");
8
8
  const socket_io_client_1 = require("socket.io-client");
9
9
  const axios_1 = __importDefault(require("axios"));
10
10
  const chalk_1 = __importDefault(require("chalk"));
11
- const dotenv_1 = __importDefault(require("dotenv"));
12
- dotenv_1.default.config();
11
+ const PRODUCTION_SERVER = 'https://localloop-server.onrender.com';
13
12
  const program = new commander_1.Command();
14
13
  program
15
- .version('1.0.0')
16
- .requiredOption('-p, --port <number>', 'Local port to forward', process.env.DEFAULT_PORT)
14
+ .version('1.0.1')
15
+ .requiredOption('-p, --port <number>', 'Local port to forward', '3000')
17
16
  .option('-s, --subdomain <string>', 'Desired subdomain', 'random-dev')
18
- .option('-h, --host <string>', 'Proxy Server URL', process.env.PROXY_HOST)
17
+ .option('-h, --host <string>', 'Proxy Server URL', process.env.PROXY_HOST || PRODUCTION_SERVER)
19
18
  .parse(process.argv);
20
19
  const options = program.opts();
21
20
  const LOCAL_TARGET = `http://localhost:${options.port}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-loop-by-ayan",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "bin": {
5
5
  "super-loop": "./dist/index.js"
6
6
  },