@floomhq/floom 1.0.22 → 1.0.23
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/dist/login.js +3 -2
- package/package.json +1 -1
package/dist/login.js
CHANGED
|
@@ -174,10 +174,11 @@ function waitForCallback(port, provider) {
|
|
|
174
174
|
});
|
|
175
175
|
server.listen(port, "127.0.0.1", () => {
|
|
176
176
|
const target = `${apiUrl}/auth/cli?port=${port}&provider=${provider}&state=${encodeURIComponent(state)}`;
|
|
177
|
+
process.stdout.write(c.dim("If the browser does not open, copy this URL:") +
|
|
178
|
+
`\n${c.cyan(target)}\n\n`);
|
|
177
179
|
open(target).catch((e) => {
|
|
178
180
|
const msg = e instanceof Error ? e.message : String(e);
|
|
179
|
-
process.stdout.write(c.yellow(`Could not auto-open browser (${msg}).\n`)
|
|
180
|
-
c.dim(`Open this URL manually: ${target}\n`));
|
|
181
|
+
process.stdout.write(c.yellow(`Could not auto-open browser (${msg}).\n`));
|
|
181
182
|
});
|
|
182
183
|
});
|
|
183
184
|
});
|