inflight-cli 1.0.0 → 1.0.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.
@@ -52,9 +52,10 @@ function browserAuth() {
52
52
  const { default: open } = await import("open");
53
53
  await open(authUrl);
54
54
  });
55
- setTimeout(() => {
55
+ const timeoutId = setTimeout(() => {
56
56
  server.close();
57
57
  reject(new Error("Authentication timed out after 5 minutes"));
58
58
  }, 5 * 60 * 1000);
59
+ server.once("close", () => clearTimeout(timeoutId));
59
60
  });
60
61
  }
@@ -88,8 +88,6 @@ export async function shareCommand() {
88
88
  }
89
89
  stagingUrl = input;
90
90
  }
91
- const spinner = p.spinner();
92
- // spinner.start("Creating version...");
93
91
  const result = await apiCreateVersion({
94
92
  apiKey: auth.apiKey,
95
93
  apiUrl: auth.apiUrl,
@@ -97,14 +95,12 @@ export async function shareCommand() {
97
95
  stagingUrl,
98
96
  gitInfo,
99
97
  }).catch((e) => {
100
- spinner.stop("Failed.");
101
98
  p.log.error(e.message);
102
99
  process.exit(1);
103
100
  });
104
- // spinner.stop("Version created");
105
101
  p.note(result.inflightUrl, "Your Inflight version");
106
- p.outro(pc.green("✓ Done") + " — opening Inflight...");
102
+ p.outro(pc.green("✓ Done") + " — opening staging URL...");
107
103
  const { default: open } = await import("open");
108
- await open(result.inflightUrl);
104
+ await open(stagingUrl);
109
105
  process.exit(0);
110
106
  }
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { shareCommand } from "./commands/share.js";
5
5
  const program = new Command();
6
6
  program
7
7
  .name("inflight")
8
- .description("Create and share design versions from the terminal")
8
+ .description("Get feedback directly on your staging URL")
9
9
  .version("0.1.0");
10
10
  program
11
11
  .command("login")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inflight-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Get feedback directly on your staging URL",
5
5
  "bin": {
6
6
  "inflight": "dist/index.js"