@postonus/cli 0.1.65 → 0.1.67
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/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12900,7 +12900,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
12900
12900
|
}
|
|
12901
12901
|
|
|
12902
12902
|
// src/version.ts
|
|
12903
|
-
var CLI_VERSION = "0.1.
|
|
12903
|
+
var CLI_VERSION = "0.1.67";
|
|
12904
12904
|
|
|
12905
12905
|
// src/client.ts
|
|
12906
12906
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
@@ -13298,6 +13298,7 @@ async function login() {
|
|
|
13298
13298
|
}
|
|
13299
13299
|
if (clientId !== carried.clientId) await writeConfig({ ...carried, clientId, apiUrl });
|
|
13300
13300
|
void open2(device.verification_uri_complete).catch(() => {
|
|
13301
|
+
printStatus(`Could not open a browser. Open ${device.verification_uri_complete} yourself.`);
|
|
13301
13302
|
});
|
|
13302
13303
|
const finish = async (tokens) => {
|
|
13303
13304
|
await writeConfig({
|
|
@@ -13508,6 +13509,7 @@ async function connectChannel(options) {
|
|
|
13508
13509
|
printStatus(`Opening ${platform.toLowerCase()} authorization in your browser\u2026`);
|
|
13509
13510
|
printStatus(redirectUrl);
|
|
13510
13511
|
void open3(redirectUrl).catch(() => {
|
|
13512
|
+
printStatus(`Could not open a browser. Open the link above.`);
|
|
13511
13513
|
});
|
|
13512
13514
|
if (!options.wait) {
|
|
13513
13515
|
printStatus("Run `postonus channels list` once you have approved it.");
|