@mimik/init 5.0.3 → 5.1.0

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/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -96,6 +96,7 @@ module.exports = (app, rootDir, config, validates, cluster, options) => {
96
96
  const buildRequire = pathLib.join(buildDirectory, BUILD_FILENAME);
97
97
  const extractName = options ? options.extractName : null;
98
98
  const metrics = options ? options.metrics : null;
99
+ const oidcOps = options ? options.oidcOps : null;
99
100
  let apiFilename = serverSettings.api;
100
101
  let registration = false;
101
102
 
@@ -127,6 +128,9 @@ module.exports = (app, rootDir, config, validates, cluster, options) => {
127
128
  app.get(METRICS_ROUTE, metricsRoute(options));
128
129
  app.use(startHrTimeSet(metrics.APIRequestDuration));
129
130
  }
131
+ if (oidcOps && typeof oidcOps === 'function') {
132
+ oidcOps();
133
+ }
130
134
  if (extractName) { app.use(extractLogs(config, extractName, options)); }
131
135
  if (apiFilename[0] !== '/') apiFilename = pathLib.join(rootDir, apiFilename);
132
136
  logger.debug('location of the api file', { apiFilename }, correlationIdStart);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/init",
3
- "version": "5.0.3",
3
+ "version": "5.1.0",
4
4
  "description": "Init process for micro-service",
5
5
  "main": "index.js",
6
6
  "scripts": {