@boomerang-io/webapp-spa-server 1.3.4-beta.5 → 1.3.4-beta.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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -53,7 +53,7 @@ function createBoomerangServer({
53
53
  app.use(compression());
54
54
 
55
55
  // Logging
56
- app.use(boomerangLogger.middleware);
56
+ app.use(boomerangLogger.healthMiddleware);
57
57
 
58
58
  // Security
59
59
  const helmet = require("helmet");
@@ -74,9 +74,9 @@ function createBoomerangServer({
74
74
  app.use(bodyParser.urlencoded({ extended: true }));
75
75
 
76
76
  // Initialize healthchecker and add routes
77
- // const healthchecker = new health.HealthChecker();
78
- // app.use("/health", health.LivenessEndpoint(healthchecker));
79
- // app.use("/ready", health.ReadinessEndpoint(healthchecker));
77
+ const healthchecker = new health.HealthChecker();
78
+ app.use("/health", health.LivenessEndpoint(healthchecker));
79
+ app.use("/ready", health.ReadinessEndpoint(healthchecker));
80
80
 
81
81
  // Create endpoint for the app serve static assets
82
82
  const appRouter = express.Router();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@boomerang-io/webapp-spa-server",
3
3
  "description": "Webapp Server for React-based SPA w/ client-side routing",
4
- "version": "1.3.4-beta.5",
4
+ "version": "1.3.4-beta.7",
5
5
  "author": {
6
6
  "name": "Tim Bula",
7
7
  "email": "timrbula@gmail.com"
@@ -25,7 +25,7 @@
25
25
  "start": "node tester.js"
26
26
  },
27
27
  "dependencies": {
28
- "@boomerang-io/logger-middleware": "1.0.1-beta.0",
28
+ "@boomerang-io/logger-middleware": "1.0.1-beta.3",
29
29
  "@cloudnative/health-connect": "^2.1.0",
30
30
  "body-parser": "^1.20.3",
31
31
  "compression": "^1.7.4",