@tarileo/avileo-catalog-cli 0.2.1 → 0.2.2

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/README.md CHANGED
@@ -5,7 +5,7 @@ The Avileo tenant-agent command line interface for a registered `tienda` catalog
5
5
  For a first-time human connection, use the temporary device authorization link:
6
6
 
7
7
  ```sh
8
- npx --yes @tarileo/avileo-catalog-cli@0.2.0 auth login --json
8
+ npx --yes @tarileo/avileo-catalog-cli@0.2.2 auth login --json
9
9
  ```
10
10
 
11
11
  The CLI prints only the verification URI, user code and status, opens the link
package/dist/index.js CHANGED
@@ -15902,12 +15902,10 @@ async function login(options) {
15902
15902
  const deviceAuth = options.deviceAuthFactory(baseUrl ? { baseUrl } : {});
15903
15903
  const start = await deviceAuth.start({ name: "Avileo CLI" });
15904
15904
  const browserOpened = await options.openBrowser(start.verificationUri);
15905
- if (!options.json()) {
15906
- process.stderr.write(
15907
- `Abr\xED ${start.verificationUri} y confirma el c\xF3digo ${start.userCode}. Esperando aprobaci\xF3n\u2026
15905
+ process.stderr.write(
15906
+ `Abr\xED ${start.verificationUri} y confirma el c\xF3digo ${start.userCode}. Esperando aprobaci\xF3n\u2026
15908
15907
  `
15909
- );
15910
- }
15908
+ );
15911
15909
  const expiresAt = Date.parse(start.expiresAt);
15912
15910
  const deadline = Number.isFinite(expiresAt) ? expiresAt : Date.now() + 10 * 60 * 1e3;
15913
15911
  while (Date.now() < deadline) {