@yadurajfleetos/cli 0.1.2 → 0.1.4

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/api.js CHANGED
@@ -35,7 +35,7 @@ export async function request(method, path, opts = {}) {
35
35
  });
36
36
  let res;
37
37
  try {
38
- res = await send(profile.accessToken);
38
+ res = await send(opts.auth === false ? undefined : profile.accessToken);
39
39
  }
40
40
  catch (err) {
41
41
  throw new CliError(`Could not reach ${profile.api}. Is the control plane running?\n ${String(err)}`, EXIT.failure);
@@ -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://fleet.plastikworld.xyz';
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\./, 'fleet.');
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yadurajfleetos/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Fleet OS command-line interface for deploying and orchestrating services on user-owned hardware",
5
5
  "type": "module",
6
6
  "license": "MIT",