@codefresh-io/service-base 3.0.20 → 3.0.21

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