@boomerang-io/webapp-spa-server 1.3.4-beta.0 → 1.3.4-beta.10

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/README.md CHANGED
@@ -108,6 +108,7 @@ HTML_HEAD_INJECTED_DATA_KEYS
108
108
  - PRODUCT_APPS_ENV_URL
109
109
  - PRODUCT_ENV_URL
110
110
  - PRODUCT_SERVICE_ENV_URL
111
+ - ICA_ENABLE_MACS
111
112
 
112
113
  PORT
113
114
 
package/config.js CHANGED
@@ -17,4 +17,5 @@ exports.defaultHtmlHeadInjectDataKeys = [
17
17
  "PRODUCT_SERVICE_ENV_URL",
18
18
  "PRODUCT_APPS_ENV_URL",
19
19
  "PRODUCT_ENV_URL",
20
+ "ICA_ENABLE_MACS",
20
21
  ];
package/index.js CHANGED
@@ -33,6 +33,7 @@ function createBoomerangServer({
33
33
  HTML_HEAD_INJECTED_SCRIPTS,
34
34
  BUILD_DIR = "build",
35
35
  CORS_CONFIG,
36
+ DEBUG_ENABLED = false
36
37
  } = process.env;
37
38
 
38
39
  const appCorsConfig = corsConfig || parseJSONString(CORS_CONFIG);
@@ -53,7 +54,7 @@ function createBoomerangServer({
53
54
  app.use(compression());
54
55
 
55
56
  // Logging
56
- app.use(boomerangLogger.middleware);
57
+ app.use(DEBUG_ENABLED ? boomerangLogger.debugHealthMiddleware : boomerangLogger.healthMiddleware);
57
58
 
58
59
  // Security
59
60
  const helmet = require("helmet");
@@ -75,10 +76,7 @@ function createBoomerangServer({
75
76
 
76
77
  // Initialize healthchecker and add routes
77
78
  const healthchecker = new health.HealthChecker();
78
- app.use("/health", health.LivenessEndpoint(healthchecker).then(middleware => {
79
- logger.info("Testing");
80
- logger.info(middleware);
81
- }));
79
+ app.use("/health", health.LivenessEndpoint(healthchecker));
82
80
  app.use("/ready", health.ReadinessEndpoint(healthchecker));
83
81
 
84
82
  // Create endpoint for the app serve static assets
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.0",
4
+ "version": "1.3.4-beta.10",
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.0",
28
+ "@boomerang-io/logger-middleware": "1.0.1-beta.5",
29
29
  "@cloudnative/health-connect": "^2.1.0",
30
30
  "body-parser": "^1.20.3",
31
31
  "compression": "^1.7.4",