@yadurajfleetos/cli 0.1.2 → 0.1.3
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 +1 -1
- package/package.json +1 -1
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);
|