@yadurajfleetos/cli 0.1.3 → 0.1.5
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/commands/auth.js +2 -2
- package/dist/commands/nodes.js +1 -2
- package/package.json +1 -1
package/dist/commands/auth.js
CHANGED
|
@@ -63,10 +63,10 @@ function validApi(value) {
|
|
|
63
63
|
}
|
|
64
64
|
function getWebUrl(api) {
|
|
65
65
|
if (api.includes('fleetapi.plastikworld.xyz'))
|
|
66
|
-
return 'https://
|
|
66
|
+
return 'https://fleetapp.plastikworld.xyz';
|
|
67
67
|
if (api.includes('localhost:8080') || api.includes('127.0.0.1:8080'))
|
|
68
68
|
return 'http://localhost:5173';
|
|
69
|
-
return api.replace(/fleetapi\./, '
|
|
69
|
+
return api.replace(/fleetapi\./, 'fleetapp.');
|
|
70
70
|
}
|
|
71
71
|
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
72
72
|
async function browserAuth(profile) {
|
package/dist/commands/nodes.js
CHANGED
|
@@ -30,10 +30,9 @@ export const nodesCommand = {
|
|
|
30
30
|
// explicit empty JSON object keeps this body-less operation portable
|
|
31
31
|
// through proxies and avoids Node fetch's implicit text/plain type.
|
|
32
32
|
{ body: {} });
|
|
33
|
-
if (flags.json)
|
|
34
|
-
return console.log(JSON.stringify(body, null, 2));
|
|
35
33
|
console.log(`Run this on the machine you want to add:\n`);
|
|
36
34
|
console.log(` ${c.cyan(body.install_command)}\n`);
|
|
35
|
+
console.log(c.dim(` Or with npm: npx @yadurajfleetos/cli nodes pair\n`));
|
|
37
36
|
console.log(c.dim(`The token is single-use and expires ${relativeTime(body.expires_at)}.`));
|
|
38
37
|
return;
|
|
39
38
|
}
|