stoat.run 0.1.2 → 0.1.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/README.md CHANGED
@@ -20,4 +20,4 @@ stoat status
20
20
 
21
21
  ## Environment
22
22
 
23
- - `STOAT_CONTROL_PLANE_URL` (default: `https://cp.discova.us`)
23
+ - `STOAT_CONTROL_PLANE_URL` (default: `https://cp.stoat.run`)
package/dist/bin.cjs CHANGED
@@ -564,7 +564,7 @@ var InteractiveMode = class {
564
564
  };
565
565
 
566
566
  // src/commands/http.ts
567
- var CONTROL_PLANE_URL = process.env["STOAT_CONTROL_PLANE_URL"] ?? "https://cp.discova.us";
567
+ var CONTROL_PLANE_URL = process.env["STOAT_CONTROL_PLANE_URL"] ?? "https://cp.stoat.run";
568
568
  async function httpCommand(port, options) {
569
569
  const localPort = parseInt(port, 10);
570
570
  if (isNaN(localPort) || localPort < 1 || localPort > 65535) {
@@ -648,7 +648,7 @@ async function httpCommand(port, options) {
648
648
  tunnel.sendGoAway("user_quit");
649
649
  tunnel.stop();
650
650
  clearSession();
651
- interactive.stop();
651
+ interactive?.stop();
652
652
  process.exit(0);
653
653
  }
654
654
  });
@@ -657,7 +657,7 @@ async function httpCommand(port, options) {
657
657
  tunnel.sendGoAway("user_quit");
658
658
  tunnel.stop();
659
659
  clearSession();
660
- interactive.stop();
660
+ interactive?.stop();
661
661
  process.exit(0);
662
662
  });
663
663
  process.on("SIGTERM", () => {
@@ -682,7 +682,7 @@ async function httpCommand(port, options) {
682
682
  }
683
683
 
684
684
  // src/commands/status.ts
685
- var CONTROL_PLANE_URL2 = process.env["STOAT_CONTROL_PLANE_URL"] ?? "https://cp.discova.us";
685
+ var CONTROL_PLANE_URL2 = process.env["STOAT_CONTROL_PLANE_URL"] ?? "https://cp.stoat.run";
686
686
  function isProcessAlive(pid) {
687
687
  try {
688
688
  process.kill(pid, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stoat.run",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Share your localhost in one command",
5
5
  "license": "MIT",
6
6
  "author": "sic-em",