@pmate/cli 0.16.3 → 0.16.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.
Files changed (2) hide show
  1. package/dist/index.js +13 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20028,6 +20028,13 @@ var AccountCommandHandler = class {
20028
20028
  for (const item of items) {
20029
20029
  ui.info(item.account.id, {
20030
20030
  mobile: item.account.mobile,
20031
+ profiles: item.profiles.map((profile) => ({
20032
+ id: profile.id,
20033
+ app: profile.app,
20034
+ nickName: profile.nickName,
20035
+ userName: profile.userName,
20036
+ role: profile.role
20037
+ })),
20031
20038
  nickNames: item.nickNames,
20032
20039
  roles: item.roles.map((role) => `${role.namespace}/${role.role}`)
20033
20040
  });
@@ -20686,6 +20693,8 @@ function parseAccountArgs(tokens) {
20686
20693
  while (rest.length > 0) {
20687
20694
  const token = rest.shift();
20688
20695
  switch (token) {
20696
+ case void 0:
20697
+ break;
20689
20698
  case "--account":
20690
20699
  account2 = requireValue6(rest, token);
20691
20700
  break;
@@ -20703,6 +20712,10 @@ function parseAccountArgs(tokens) {
20703
20712
  json2 = true;
20704
20713
  break;
20705
20714
  default:
20715
+ if (!token.startsWith("-") && !account2 && !mobile && !nickName) {
20716
+ account2 = token;
20717
+ break;
20718
+ }
20706
20719
  throw new Error(`Unknown account view option: ${token}`);
20707
20720
  }
20708
20721
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/cli",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "description": "CLI utilities for the pMate project",
5
5
  "license": "MIT",
6
6
  "bin": {