@telia-ace/alliance-portal 1.0.6-next.6 → 1.0.6-next.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @telia-ace/alliance-portal
2
2
 
3
+ ## 1.0.6-next.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 0f20a09: Change to unformatted JSON logs.
8
+ - Updated dependencies [0f20a09]
9
+ - @telia-ace/alliance-internal-node-utilities@1.0.3-next.4
10
+
3
11
  ## 1.0.6-next.6
4
12
 
5
13
  ### Patch Changes
@@ -56,8 +56,7 @@ let AppController = exports.AppController = class AppController {
56
56
  if (!req.query['wp-tag'] && !req.query['wp-version']) {
57
57
  distributionOptions.tag = this.configService.getOrThrow(config_2.ConfigKeys.WebprovisionsTag);
58
58
  }
59
- this.logger.trace({
60
- msg: 'opening portal',
59
+ this.logger.trace('opening portal', {
61
60
  user: req.oidc.user,
62
61
  distributionOptions,
63
62
  distributionUrl,
package/dist/index.js CHANGED
@@ -34,8 +34,7 @@ async function startPortal() {
34
34
  email: claims.email || claims.emails[0] || 'Empty email',
35
35
  objectId: claims.sub || claims.oid,
36
36
  };
37
- logger.trace({
38
- msg: 'decoded JWT and mapped claims to user, getting or creating user in database',
37
+ logger.trace('decoded JWT and mapped claims to user, getting or creating user in database', {
39
38
  claims,
40
39
  user,
41
40
  });
@@ -44,7 +43,7 @@ async function startPortal() {
44
43
  await (0, graphql_request_1.request)(configService.getOrThrow(alliance_internal_node_utilities_1.SharedConfigKeys.DbEndpoint), graphql_1.GetOrCreateUserDocument, { input: user }, {
45
44
  authorization: (0, alliance_internal_node_utilities_1.createSystemUserToken)(configService),
46
45
  });
47
- logger.trace({ msg: 'added user to database, if it did not already exist' });
46
+ logger.trace('added user to database, if it did not already exist');
48
47
  }
49
48
  catch { }
50
49
  // For easier testing as system admin during development
@@ -52,14 +51,12 @@ async function startPortal() {
52
51
  'true';
53
52
  if (!skipGroupClaimCheck) {
54
53
  const type = hasEnterpriseAdminRole(claims) ? 'system-admin' : 'user';
55
- logger.trace({ msg: 'updating user type according to user claims', type });
54
+ logger.trace('updating user type according to user claims', { type });
56
55
  try {
57
56
  await (0, graphql_request_1.request)(configService.getOrThrow(alliance_internal_node_utilities_1.SharedConfigKeys.DbEndpoint), graphql_1.SetUserTypeDocument, { input: { objectId: user.objectId, type } }, {
58
57
  authorization: (0, alliance_internal_node_utilities_1.createSystemUserToken)(configService),
59
58
  });
60
- logger.trace({
61
- msg: 'user type updated',
62
- });
59
+ logger.trace('user type updated');
63
60
  }
64
61
  catch { }
65
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/alliance-portal",
3
- "version": "1.0.6-next.6",
3
+ "version": "1.0.6-next.7",
4
4
  "description": "ACE Alliance portal",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
@@ -19,7 +19,7 @@
19
19
  "@nestjs/config": "^3.0.0",
20
20
  "@nestjs/core": "^10.1.0",
21
21
  "@nestjs/platform-express": "^10.1.0",
22
- "@telia-ace/alliance-internal-node-utilities": "1.0.3-next.3",
22
+ "@telia-ace/alliance-internal-node-utilities": "1.0.3-next.4",
23
23
  "express-openid-connect": "^2.16.0",
24
24
  "graphql": "^16.7.1",
25
25
  "graphql-request": "^6.1.0",