@hitchy/plugin-auth 0.3.0 → 0.3.1

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 (35) hide show
  1. package/api/policy/authentication.js +80 -26
  2. package/api/service/auth/manager.js +36 -4
  3. package/api/service/authentication/passport.js +6 -5
  4. package/api/service/authentication/strategies.js +57 -34
  5. package/api/service/authorization/tree.js +8 -8
  6. package/coverage/index.html +38 -38
  7. package/coverage/plugin-auth/api/controller/index.html +1 -1
  8. package/coverage/plugin-auth/api/controller/user.js.html +1 -1
  9. package/coverage/plugin-auth/api/model/authorization/index.html +1 -1
  10. package/coverage/plugin-auth/api/model/authorization/rule.js.html +1 -1
  11. package/coverage/plugin-auth/api/model/index.html +1 -1
  12. package/coverage/plugin-auth/api/model/role.js.html +1 -1
  13. package/coverage/plugin-auth/api/model/user-to-role.js.html +1 -1
  14. package/coverage/plugin-auth/api/model/user.js.html +1 -1
  15. package/coverage/plugin-auth/api/policy/authentication.js.html +215 -50
  16. package/coverage/plugin-auth/api/policy/authorization.js.html +1 -1
  17. package/coverage/plugin-auth/api/policy/index.html +18 -18
  18. package/coverage/plugin-auth/api/policy/user.js.html +1 -1
  19. package/coverage/plugin-auth/api/service/auth/index.html +17 -17
  20. package/coverage/plugin-auth/api/service/auth/manager.js.html +109 -13
  21. package/coverage/plugin-auth/api/service/authentication/index.html +25 -25
  22. package/coverage/plugin-auth/api/service/authentication/passport.js.html +14 -11
  23. package/coverage/plugin-auth/api/service/authentication/strategies.js.html +132 -63
  24. package/coverage/plugin-auth/api/service/authorization/index.html +1 -1
  25. package/coverage/plugin-auth/api/service/authorization/node.js.html +1 -1
  26. package/coverage/plugin-auth/api/service/authorization/policy-generator.js.html +1 -1
  27. package/coverage/plugin-auth/api/service/authorization/tree.js.html +9 -9
  28. package/coverage/plugin-auth/config/auth.js.html +1 -1
  29. package/coverage/plugin-auth/config/index.html +1 -1
  30. package/coverage/plugin-auth/index.html +1 -1
  31. package/coverage/plugin-auth/index.js.html +2 -2
  32. package/coverage/tmp/coverage-8472-1648414315419-0.json +1 -0
  33. package/index.js +4 -1
  34. package/package.json +1 -1
  35. package/coverage/tmp/coverage-6744-1648396809135-0.json +0 -1
@@ -2,10 +2,10 @@
2
2
 
3
3
  module.exports = function() {
4
4
  const api = this;
5
- const { services } = api.runtime;
5
+ const { models, services } = api.runtime;
6
6
 
7
- const AlertLog = api.log( "hitchy:plugin:auth:alert" );
8
- const DebugLog = api.log( "hitchy:plugin:auth:debug" );
7
+ const logAlert = api.log( "hitchy:plugin:auth:alert" );
8
+ const logDebug = api.log( "hitchy:plugin:auth:debug" );
9
9
 
10
10
  /**
11
11
  * Implements policy handlers transparently managing authentication process
@@ -48,6 +48,43 @@ module.exports = function() {
48
48
  } );
49
49
  }
50
50
 
51
+ /**
52
+ * Discovers HTTP basic authentication header and processes it
53
+ * accordingly based local user database.
54
+ *
55
+ * @param {Hitchy.Core.IncomingMessage} req request descriptor
56
+ * @param {Hitchy.Core.ServerResponse} res response manager
57
+ * @param {Hitchy.Core.ContinuationHandler} next invoke to continue request handling
58
+ * @returns {void}
59
+ */
60
+ static handleBasicAuth( req, res, next ) {
61
+ if ( req.user ) {
62
+ next();
63
+ return;
64
+ }
65
+
66
+ const match = /^basic\s+([a-z0-9+/]+={1,2})$/i.exec( req.headers.authorization );
67
+ if ( !match ) {
68
+ next();
69
+ return;
70
+ }
71
+
72
+ const decoded = Buffer.from( match[1], "base64" ).toString( "utf8" );
73
+ const parts = /^([^:]+):(.+)$/.exec( decoded );
74
+ if ( !parts ) {
75
+ next();
76
+ return;
77
+ }
78
+
79
+ services.AuthManager.checkAuthentication( parts[1], parts[2] )
80
+ .then( user => {
81
+ req.user = user; // eslint-disable-line no-param-reassign
82
+
83
+ this.qualifyAuthenticated( req, res, next );
84
+ } )
85
+ .catch( next );
86
+ }
87
+
51
88
  /**
52
89
  * Authenticates a request, updates server-side session accordingly and
53
90
  * injects information on authentication result in response header.
@@ -59,8 +96,7 @@ module.exports = function() {
59
96
  */
60
97
  static login( req, res, next ) {
61
98
  const { strategy } = req.params;
62
- const { model, service } = this;
63
- const { AuthenticationStrategies, AuthenticationPassport, AuthManager } = service;
99
+ const { AuthenticationStrategies, AuthenticationPassport } = services;
64
100
  const defaultStrategy = AuthenticationStrategies.defaultStrategy();
65
101
 
66
102
  req.fetchBody()
@@ -71,37 +107,25 @@ module.exports = function() {
71
107
  AuthenticationPassport.authenticate( strategy || defaultStrategy )( req, res, err => {
72
108
  if ( err ) {
73
109
  reject( err );
74
- return;
75
- }
76
-
77
- if ( req.user ) {
78
- const { uuid, name } = req.user;
79
-
80
- AuthManager.listRolesOfUser( new model.User( uuid ) )
81
- .then( roles => {
82
- req.user.roles = roles; // eslint-disable-line no-param-reassign
83
-
84
- DebugLog( "authenticated as", req.user.name );
85
-
86
- res.set( "X-Authenticated-As", name );
87
- res.set( "X-Authorized-As", roles.join( "," ) );
88
-
89
- resolve();
90
- } )
91
- .catch( reject );
92
110
  } else {
93
- AuthenticationPolicy.logout( req, res, cause => ( cause ? reject( cause ) : resolve() ) );
111
+ this.qualifyAuthenticated( req, res, error => {
112
+ if ( error ) {
113
+ reject( error );
114
+ } else {
115
+ resolve();
116
+ }
117
+ } );
94
118
  }
95
119
  } );
96
120
  } );
97
121
  } )
98
122
  .then( next )
99
123
  .catch( err => {
100
- AlertLog( err );
124
+ logAlert( err );
101
125
 
102
126
  AuthenticationPolicy.logout( req, res, cause => {
103
127
  if ( cause ) {
104
- AlertLog( `applying logout policy after failed login has caused another issue: ${cause.stack}` );
128
+ logAlert( `applying logout policy after failed login has caused another issue: ${cause.stack}` );
105
129
  }
106
130
 
107
131
  next( err );
@@ -109,6 +133,36 @@ module.exports = function() {
109
133
  } );
110
134
  }
111
135
 
136
+ /**
137
+ * Extends request descriptor in case some authenticated user has been
138
+ * found recently.
139
+ *
140
+ * @param {Hitchy.Core.IncomingMessage} req request descriptor
141
+ * @param {Hitchy.Core.ServerResponse} res response manager
142
+ * @param {Hitchy.Core.ContinuationHandler} next invoke to continue request handling
143
+ * @returns {void}
144
+ */
145
+ static qualifyAuthenticated( req, res, next ) {
146
+ if ( req.user ) {
147
+ const { uuid, name } = req.user;
148
+
149
+ services.AuthManager.listRolesOfUser( new models.User( uuid ) )
150
+ .then( roles => {
151
+ req.user.roles = roles; // eslint-disable-line no-param-reassign
152
+
153
+ logDebug( "authenticated as", req.user.name );
154
+
155
+ res.set( "X-Authenticated-As", name );
156
+ res.set( "X-Authorized-As", roles.join( "," ) );
157
+
158
+ next();
159
+ } )
160
+ .catch( next );
161
+ } else {
162
+ AuthenticationPolicy.logout( req, res, next );
163
+ }
164
+ }
165
+
112
166
  /**
113
167
  * Drops any existing authentication on current request's user.
114
168
  *
@@ -2,9 +2,9 @@
2
2
 
3
3
  module.exports = function() {
4
4
  const api = this;
5
- const { models } = api.runtime;
5
+ const { models, services } = api.runtime;
6
6
 
7
- const DebugLog = api.log( "hitchy:plugin:auth:debug" );
7
+ const logDebug = api.log( "hitchy:plugin:auth:debug" );
8
8
 
9
9
  /**
10
10
  * Implements several helper methods meant to simplify user/role management.
@@ -227,7 +227,7 @@ module.exports = function() {
227
227
  const users = await this.listUsersOfRole( role );
228
228
 
229
229
  if ( users.length > 0 ) {
230
- DebugLog( "admin user found" );
230
+ logDebug( "admin user found" );
231
231
 
232
232
  return users;
233
233
  }
@@ -241,7 +241,7 @@ module.exports = function() {
241
241
  } else {
242
242
  const config = api.config.auth.admin;
243
243
 
244
- DebugLog( "creating admin user" );
244
+ logDebug( "creating admin user" );
245
245
 
246
246
  user = new models.User();
247
247
 
@@ -255,6 +255,38 @@ module.exports = function() {
255
255
 
256
256
  return [user];
257
257
  }
258
+
259
+ /**
260
+ * Checks if named user can be authenticated locally using provided
261
+ * password.
262
+ *
263
+ * @param {string} username name of user to authenticate
264
+ * @param {string} password password of named to user
265
+ * @return {Promise<User>} promises successfully authenticated user
266
+ */
267
+ static async checkAuthentication( username, password ) {
268
+ const candidates = ( await models.User
269
+ .find( { eq: { name: username } }, {}, { loadRecords: true } ) )
270
+ .filter( user => !user.strategy || user.strategy === "local" );
271
+
272
+ switch ( candidates.length ) {
273
+ case 0 :
274
+ throw new services.HttpException( 400, `no such local user: ${username}` );
275
+
276
+ case 1 : {
277
+ const [user] = candidates;
278
+
279
+ if ( await user.verifyPassword( password ) ) {
280
+ return user;
281
+ }
282
+
283
+ throw new services.HttpException( 403, "invalid password" );
284
+ }
285
+
286
+ default :
287
+ throw new services.HttpException( 400, "ambiguous username" );
288
+ }
289
+ }
258
290
  }
259
291
 
260
292
  return AuthManager;
@@ -4,8 +4,9 @@ const PassportLib = require( "passport" );
4
4
 
5
5
  module.exports = function() {
6
6
  const api = this;
7
- const AlertLog = api.log( "hitchy:plugin:auth:alert" );
8
- const DebugLog = api.log( "hitchy:plugin:auth:debug" );
7
+
8
+ const logAlert = api.log( "hitchy:plugin:auth:alert" );
9
+ const logDebug = api.log( "hitchy:plugin:auth:debug" );
9
10
 
10
11
  const passport = new PassportLib.Passport();
11
12
 
@@ -21,7 +22,7 @@ module.exports = function() {
21
22
 
22
23
  // set up passport to persist current user in server-side session
23
24
  passport.serializeUser( ( user, done ) => {
24
- DebugLog( `serializeUser: { name: ${user.name}, uuid: ${user.uuid} }` );
25
+ logDebug( `serializeUser: { name: ${user.name}, uuid: ${user.uuid} }` );
25
26
 
26
27
  done( null, user.uuid );
27
28
  } );
@@ -40,7 +41,7 @@ module.exports = function() {
40
41
  .then( roles => {
41
42
  user.roles = roles;
42
43
 
43
- DebugLog( `still authenticated user: name: ${user.name}, uuid: ${user.uuid}, roles: ${roles.join( "," )}` );
44
+ logDebug( `still authenticated user: name: ${user.name}, uuid: ${user.uuid}, roles: ${roles.join( "," )}` );
44
45
 
45
46
  done( null, user );
46
47
  } )
@@ -60,7 +61,7 @@ module.exports = function() {
60
61
  try {
61
62
  passport.use( name, strategy );
62
63
  } catch ( error ) {
63
- AlertLog( `using passport strategy ${name} failed:`, error );
64
+ logAlert( `using passport strategy ${name} failed:`, error );
64
65
  }
65
66
  }
66
67
  }
@@ -17,9 +17,9 @@ const RemoteAuthCustomData = new Map();
17
17
 
18
18
  module.exports = function() {
19
19
  const api = this;
20
- const { models } = api.runtime;
20
+ const { models, services } = api.runtime;
21
21
 
22
- const AlertLog = api.log( "hitchy:plugin:auth:alert" );
22
+ const logAlert = api.log( "hitchy:plugin:auth:alert" );
23
23
 
24
24
  /**
25
25
  * Fetches named user's local profile.
@@ -57,46 +57,69 @@ module.exports = function() {
57
57
  */
58
58
  class AuthenticationStrategies {
59
59
  /**
60
- * Generates local strategy authenticating user based on local user
61
- * model managed in local ODM.
60
+ * Picks user based on provided name and checks if provided password is
61
+ * matching or not.
62
62
  *
63
- * @returns {Strategy} generated strategy for use with passport.js
63
+ * @param {string} username name of user to authenticate
64
+ * @param {string} password named user's password for authentication
65
+ * @param {function(Error?, object, object)} done invoked with optional error, authenticated user or some message as feedback
66
+ * @returns {void}
64
67
  */
65
- static generateLocal() {
66
- const strategy = new LocalStrategy( ( name, password, done ) => {
67
- models.User
68
- .find( { eq: { name } }, {}, { loadRecords: true } )
69
- .then( matches => {
70
- switch ( matches.length ) {
71
- case 0 :
72
- done( null, false, { message: "Incorrect username." } );
68
+ static checkAuthentication( username, password, done ) {
69
+ models.User
70
+ .find( { eq: { username } }, {}, { loadRecords: true } )
71
+ .then( matches => {
72
+ switch ( matches.length ) {
73
+ case 0 :
74
+ done( null, false, { message: "Incorrect username." } );
75
+ return undefined;
76
+
77
+ case 1 : {
78
+ const [user] = matches;
79
+
80
+ if ( user.strategy && user.strategy !== "local" ) {
81
+ done( null, false, { message: "Authenticating this user requires different strategy." } );
73
82
  return undefined;
83
+ }
74
84
 
75
- case 1 : {
76
- const [user] = matches;
77
-
78
- if ( user.strategy && user.strategy !== "local" ) {
79
- done( null, false, { message: "Authenticating this user requires different strategy." } );
80
- return undefined;
85
+ return user.verifyPassword( password ).then( result => {
86
+ if ( result ) {
87
+ done( null, user );
88
+ } else {
89
+ done( null, false, { message: "Incorrect password." } );
81
90
  }
91
+ } );
92
+ }
82
93
 
83
- return user.verifyPassword( password ).then( result => {
84
- if ( result ) {
85
- done( null, user );
86
- } else {
87
- done( null, false, { message: "Incorrect password." } );
88
- }
89
- } );
90
- }
94
+ default :
95
+ done( null, false, { message: "Ambiguous username." } );
96
+ return undefined;
97
+ }
98
+ } )
99
+ .catch( err => {
100
+ logAlert( err );
101
+ done( err );
102
+ } );
103
+ }
91
104
 
92
- default :
93
- done( null, false, { message: "Ambiguous username." } );
94
- return undefined;
95
- }
105
+ /**
106
+ * Generates local strategy authenticating user based on local user
107
+ * model managed in local ODM.
108
+ *
109
+ * @returns {Strategy} generated strategy for use with passport.js
110
+ */
111
+ static generateLocal() {
112
+ const strategy = new LocalStrategy( ( name, password, done ) => {
113
+ services.AuthManager.checkAuthentication( name, password, done )
114
+ .then( user => {
115
+ done( null, user );
96
116
  } )
97
- .catch( err => {
98
- AlertLog( err );
99
- done( err );
117
+ .catch( error => {
118
+ if ( error instanceof services.HttpException && Math.floor( error.statusCode / 100 ) === 4 ) {
119
+ done( null, false, { message: error.message } );
120
+ } else {
121
+ done( error );
122
+ }
100
123
  } );
101
124
  } );
102
125
 
@@ -4,8 +4,8 @@ module.exports = function() {
4
4
  const api = this;
5
5
  const { services, models } = api.runtime;
6
6
 
7
- const AlertLog = api.log( "hitchy:plugin:auth:alert" );
8
- const DebugLog = api.log( "hitchy:plugin:auth:debug" );
7
+ const logAlert = api.log( "hitchy:plugin:auth:alert" );
8
+ const logDebug = api.log( "hitchy:plugin:auth:debug" );
9
9
 
10
10
  let cachedTree;
11
11
 
@@ -102,7 +102,7 @@ module.exports = function() {
102
102
  addRule( rule ) {
103
103
  const { selector, role, user, accept } = rule;
104
104
 
105
- DebugLog( "adding authorization rule", { selector, role, user, accept } );
105
+ logDebug( "adding authorization rule", { selector, role, user, accept } );
106
106
 
107
107
  const node = this.selectNode( selector );
108
108
 
@@ -126,7 +126,7 @@ module.exports = function() {
126
126
  removeRule( rule ) {
127
127
  const { selector, role, user, accept } = rule;
128
128
 
129
- DebugLog( "removing authorization rule", { selector, role, user, accept } );
129
+ logDebug( "removing authorization rule", { selector, role, user, accept } );
130
130
 
131
131
  const node = this.selectNode( selector, false );
132
132
 
@@ -169,7 +169,7 @@ module.exports = function() {
169
169
  }
170
170
  } );
171
171
  } catch ( cause ) {
172
- AlertLog( cause.message );
172
+ logAlert( cause.message );
173
173
  return false;
174
174
  }
175
175
 
@@ -213,7 +213,7 @@ module.exports = function() {
213
213
  const users = {};
214
214
  const roles = {};
215
215
 
216
- DebugLog( `restoring ${entries.length} authorization rule(s) from database` );
216
+ logDebug( `restoring ${entries.length} authorization rule(s) from database` );
217
217
 
218
218
  for ( const entry of entries ) {
219
219
  const userKey = entry.user ? entry.user.toString( "hex" ) : undefined;
@@ -251,7 +251,7 @@ module.exports = function() {
251
251
  loadFromConfiguration( configuration ) {
252
252
  const { authorizations = {} } = configuration || {};
253
253
 
254
- DebugLog( `loading authorization(s) from configuration` );
254
+ logDebug( `loading authorization(s) from configuration` );
255
255
 
256
256
  const processLevel = ( source, prefix ) => {
257
257
  const names = Object.keys( source );
@@ -282,7 +282,7 @@ module.exports = function() {
282
282
  [isRole ? "role" : "user"]: id,
283
283
  } );
284
284
  } else {
285
- AlertLog( `invalid user/role selector in ${key || "rule"} on ${name}` );
285
+ logAlert( `invalid user/role selector in ${key || "rule"} on ${name}` );
286
286
  }
287
287
  }
288
288
  }
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">87.43% </span>
26
+ <span class="strong">85.89% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>1899/2172</span>
28
+ <span class='fraction'>1961/2283</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">85.21% </span>
33
+ <span class="strong">85.22% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>317/372</span>
35
+ <span class='fraction'>323/379</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">89.36% </span>
40
+ <span class="strong">88.77% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>84/94</span>
42
+ <span class='fraction'>87/98</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">87.43% </span>
47
+ <span class="strong">85.89% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>1899/2172</span>
49
+ <span class='fraction'>1961/2283</span>
50
50
  </div>
51
51
 
52
52
 
@@ -134,47 +134,47 @@
134
134
 
135
135
  <tr>
136
136
  <td class="file medium" data-value="plugin-auth/api/policy"><a href="plugin-auth/api/policy/index.html">plugin-auth/api/policy</a></td>
137
- <td data-value="67.82" class="pic medium">
138
- <div class="chart"><div class="cover-fill" style="width: 67%"></div><div class="cover-empty" style="width: 33%"></div></div>
137
+ <td data-value="68.5" class="pic medium">
138
+ <div class="chart"><div class="cover-fill" style="width: 68%"></div><div class="cover-empty" style="width: 32%"></div></div>
139
139
  </td>
140
- <td data-value="67.82" class="pct medium">67.82%</td>
141
- <td data-value="345" class="abs medium">234/345</td>
142
- <td data-value="88.57" class="pct high">88.57%</td>
143
- <td data-value="35" class="abs high">31/35</td>
144
- <td data-value="72.72" class="pct medium">72.72%</td>
145
- <td data-value="11" class="abs medium">8/11</td>
146
- <td data-value="67.82" class="pct medium">67.82%</td>
147
- <td data-value="345" class="abs medium">234/345</td>
140
+ <td data-value="68.5" class="pct medium">68.5%</td>
141
+ <td data-value="400" class="abs medium">274/400</td>
142
+ <td data-value="85.71" class="pct high">85.71%</td>
143
+ <td data-value="42" class="abs high">36/42</td>
144
+ <td data-value="76.92" class="pct medium">76.92%</td>
145
+ <td data-value="13" class="abs medium">10/13</td>
146
+ <td data-value="68.5" class="pct medium">68.5%</td>
147
+ <td data-value="400" class="abs medium">274/400</td>
148
148
  </tr>
149
149
 
150
150
  <tr>
151
151
  <td class="file high" data-value="plugin-auth/api/service/auth"><a href="plugin-auth/api/service/auth/index.html">plugin-auth/api/service/auth</a></td>
152
- <td data-value="96.55" class="pic high">
153
- <div class="chart"><div class="cover-fill" style="width: 96%"></div><div class="cover-empty" style="width: 4%"></div></div>
152
+ <td data-value="95.22" class="pic high">
153
+ <div class="chart"><div class="cover-fill" style="width: 95%"></div><div class="cover-empty" style="width: 5%"></div></div>
154
154
  </td>
155
- <td data-value="96.55" class="pct high">96.55%</td>
156
- <td data-value="261" class="abs high">252/261</td>
157
- <td data-value="90.32" class="pct high">90.32%</td>
158
- <td data-value="62" class="abs high">56/62</td>
155
+ <td data-value="95.22" class="pct high">95.22%</td>
156
+ <td data-value="293" class="abs high">279/293</td>
157
+ <td data-value="85.29" class="pct high">85.29%</td>
158
+ <td data-value="68" class="abs high">58/68</td>
159
159
  <td data-value="100" class="pct high">100%</td>
160
- <td data-value="9" class="abs high">9/9</td>
161
- <td data-value="96.55" class="pct high">96.55%</td>
162
- <td data-value="261" class="abs high">252/261</td>
160
+ <td data-value="10" class="abs high">10/10</td>
161
+ <td data-value="95.22" class="pct high">95.22%</td>
162
+ <td data-value="293" class="abs high">279/293</td>
163
163
  </tr>
164
164
 
165
165
  <tr>
166
166
  <td class="file high" data-value="plugin-auth/api/service/authentication"><a href="plugin-auth/api/service/authentication/index.html">plugin-auth/api/service/authentication</a></td>
167
- <td data-value="90" class="pic high">
168
- <div class="chart"><div class="cover-fill" style="width: 90%"></div><div class="cover-empty" style="width: 10%"></div></div>
167
+ <td data-value="82.48" class="pic high">
168
+ <div class="chart"><div class="cover-fill" style="width: 82%"></div><div class="cover-empty" style="width: 18%"></div></div>
169
169
  </td>
170
- <td data-value="90" class="pct high">90%</td>
171
- <td data-value="330" class="abs high">297/330</td>
172
- <td data-value="71.42" class="pct medium">71.42%</td>
173
- <td data-value="49" class="abs medium">35/49</td>
174
- <td data-value="92.85" class="pct high">92.85%</td>
175
- <td data-value="14" class="abs high">13/14</td>
176
- <td data-value="90" class="pct high">90%</td>
177
- <td data-value="330" class="abs high">297/330</td>
170
+ <td data-value="82.48" class="pct high">82.48%</td>
171
+ <td data-value="354" class="abs high">292/354</td>
172
+ <td data-value="79.06" class="pct medium">79.06%</td>
173
+ <td data-value="43" class="abs medium">34/43</td>
174
+ <td data-value="86.66" class="pct high">86.66%</td>
175
+ <td data-value="15" class="abs high">13/15</td>
176
+ <td data-value="82.48" class="pct high">82.48%</td>
177
+ <td data-value="354" class="abs high">292/354</td>
178
178
  </tr>
179
179
 
180
180
  <tr>
@@ -215,7 +215,7 @@
215
215
  <div class='footer quiet pad2 space-top1 center small'>
216
216
  Code coverage generated by
217
217
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
218
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
218
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
219
219
  </div>
220
220
  </div>
221
221
  <script src="prettify.js"></script>
@@ -95,7 +95,7 @@
95
95
  <div class='footer quiet pad2 space-top1 center small'>
96
96
  Code coverage generated by
97
97
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
98
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
99
99
  </div>
100
100
  </div>
101
101
  <script src="../../../prettify.js"></script>
@@ -352,7 +352,7 @@ module.exports = function() {
352
352
  <div class='footer quiet pad2 space-top1 center small'>
353
353
  Code coverage generated by
354
354
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
355
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
355
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
356
356
  </div>
357
357
  </div>
358
358
  <script src="../../../prettify.js"></script>
@@ -95,7 +95,7 @@
95
95
  <div class='footer quiet pad2 space-top1 center small'>
96
96
  Code coverage generated by
97
97
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
98
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
99
99
  </div>
100
100
  </div>
101
101
  <script src="../../../../prettify.js"></script>
@@ -211,7 +211,7 @@ module.exports = function() {
211
211
  <div class='footer quiet pad2 space-top1 center small'>
212
212
  Code coverage generated by
213
213
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
214
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
214
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
215
215
  </div>
216
216
  </div>
217
217
  <script src="../../../../prettify.js"></script>
@@ -125,7 +125,7 @@
125
125
  <div class='footer quiet pad2 space-top1 center small'>
126
126
  Code coverage generated by
127
127
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
128
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
128
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
129
129
  </div>
130
130
  </div>
131
131
  <script src="../../../prettify.js"></script>
@@ -184,7 +184,7 @@ module.exports = function() {
184
184
  <div class='footer quiet pad2 space-top1 center small'>
185
185
  Code coverage generated by
186
186
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
187
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
187
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
188
188
  </div>
189
189
  </div>
190
190
  <script src="../../../prettify.js"></script>
@@ -151,7 +151,7 @@ module.exports = function() {
151
151
  <div class='footer quiet pad2 space-top1 center small'>
152
152
  Code coverage generated by
153
153
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
154
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
154
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
155
155
  </div>
156
156
  </div>
157
157
  <script src="../../../prettify.js"></script>
@@ -736,7 +736,7 @@ module.exports = function() {
736
736
  <div class='footer quiet pad2 space-top1 center small'>
737
737
  Code coverage generated by
738
738
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
739
- at Sun Mar 27 2022 18:00:09 GMT+0200 (Mitteleuropäische Sommerzeit)
739
+ at Sun Mar 27 2022 22:51:56 GMT+0200 (Mitteleuropäische Sommerzeit)
740
740
  </div>
741
741
  </div>
742
742
  <script src="../../../prettify.js"></script>