@axway/axway-central-cli 2.8.0-rc.1 → 2.8.0-rc.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.
@@ -157,17 +157,14 @@ class PlatformClient {
157
157
 
158
158
  async getServiceAccounts(filterRole) {
159
159
  const result = await _classPrivateFieldGet(this, _amplifySdk).client.list(await this.getAccountInfo());
160
- log('non filtered clients', result.clients); // If no filter, return all the service accounts
161
-
162
- if (!filterRole) {
163
- return result.clients || [];
164
- } // Filter service accounts by filterRole
160
+ let clients = result.clients || [];
165
161
 
162
+ if (filterRole) {
163
+ console.log('filter clients by ', filterRole);
164
+ clients = clients.filter(client => client === null || client === void 0 ? void 0 : client.roles.find(r => r === filterRole));
165
+ }
166
166
 
167
- log('filter clients by ', filterRole);
168
- const filteredClients = result === null || result === void 0 ? void 0 : result.clients.filter(client => client.roles.find(r => r === filterRole));
169
- log('filteredClients', filteredClients);
170
- return filteredClients;
167
+ return clients;
171
168
  }
172
169
 
173
170
  async getTeams() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axway/axway-central-cli",
3
- "version": "2.8.0-rc.1",
3
+ "version": "2.8.0-rc.2",
4
4
  "description": "Manage APIs, services and publish to the Unified Catalog",
5
5
  "homepage": "https://platform.axway.com",
6
6
  "author": {