@codefresh-io/service-base 3.0.21 → 3.0.22

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/infra/config.js +1 -6
  2. package/package.json +1 -1
package/infra/config.js CHANGED
@@ -116,12 +116,7 @@ base.logger = {
116
116
  try {
117
117
  const authEntity = getAuthenticatedEntity().toJson({ partial: true });
118
118
  if (_.get(authEntity, 'activeAccount')) {
119
- // eslint-disable-next-line max-len
120
- authEntity.activeAccount = _.pick(authEntity.activeAccount, ['type', 'id', 'name', 'activeAccount.name', 'activeAccount.id']);
121
- }
122
-
123
- if (_.get(authEntity, 'account')) {
124
- authEntity.account = _.pick(authEntity.account, ['type', 'id', 'name', 'account.name', 'account.id']);
119
+ authEntity.activeAccount = _.omit(authEntity.activeAccount, 'features');
125
120
  }
126
121
  return authEntity;
127
122
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefresh-io/service-base",
3
- "version": "3.0.21",
3
+ "version": "3.0.22",
4
4
  "main": "index.js",
5
5
  "description": "",
6
6
  "bin": {