@fluid-app/fluid-cli 0.1.656 → 0.1.658
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/bin/fluid.mjs +2 -2
- package/dist/bin/fluid.mjs.map +1 -1
- package/dist/{hook-r99vp1GM.mjs → hook-B6o5hxNW.mjs} +34 -4
- package/dist/hook-B6o5hxNW.mjs.map +1 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/hook-r99vp1GM.mjs.map +0 -1
package/dist/bin/fluid.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { A as identityToken, B as isIdentityProfile, C as readConfig, D as getConfigDir, E as isStrictConfig, F as signInWithBrowser, G as getFluidApiBase, I as signOutIdentity, J as signup, K as redeemIdentityLink, L as resolveIdentityUrl, M as primeIdentityProfile, P as sessionFacts, T as writeConfig, U as confirmMfa, V as FLUID_API_ERROR, W as fetchUserCompanies, X as validateToken, Y as switchCompany, _ as getAuthToken, c as inputsModeActive, dt as rootCommand, ft as visibleOptions, g as getActiveProfile, i as INPUTS_MODE_ENV, k as describeIdentityError, l as registerInputsHook, mt as walkCommands, pt as visibleSubcommands, q as sendMfa, s as exitOnInputsError, u as createInputsReader, ut as filterCatalog, w as updateConfig, x as resolveCredentialSource } from "../hook-
|
|
2
|
+
import { A as identityToken, B as isIdentityProfile, C as readConfig, D as getConfigDir, E as isStrictConfig, F as signInWithBrowser, G as getFluidApiBase, I as signOutIdentity, J as signup, K as redeemIdentityLink, L as resolveIdentityUrl, M as primeIdentityProfile, P as sessionFacts, T as writeConfig, U as confirmMfa, V as FLUID_API_ERROR, W as fetchUserCompanies, X as validateToken, Y as switchCompany, _ as getAuthToken, c as inputsModeActive, dt as rootCommand, ft as visibleOptions, g as getActiveProfile, i as INPUTS_MODE_ENV, k as describeIdentityError, l as registerInputsHook, mt as walkCommands, pt as visibleSubcommands, q as sendMfa, s as exitOnInputsError, u as createInputsReader, ut as filterCatalog, w as updateConfig, x as resolveCredentialSource } from "../hook-B6o5hxNW.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -1278,7 +1278,7 @@ const whoamiCommand = new Command("whoami").description("Show the current authen
|
|
|
1278
1278
|
return;
|
|
1279
1279
|
}
|
|
1280
1280
|
const spinner = ora("Verifying token...").start();
|
|
1281
|
-
const result = await validateToken(profile.token ?? "");
|
|
1281
|
+
const result = await validateToken(profile.token ?? "", { baseUrl: process.env["FLUID_API_BASE"] || profile.baseUrl });
|
|
1282
1282
|
if (!result.success) {
|
|
1283
1283
|
spinner.fail(chalk.red("Token is no longer valid."));
|
|
1284
1284
|
console.log(chalk.dim(`Profile: ${profile.name}`));
|