inflight-cli 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.
@@ -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,11 +95,9 @@ 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
102
  p.outro(pc.green("✓ Done") + " — opening Inflight...");
107
103
  const { default: open } = await import("open");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inflight-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Get feedback directly on your staging URL",
5
5
  "bin": {
6
6
  "inflight": "dist/index.js"