@redhat-cloud-services/frontend-components-config-utilities 1.5.8 → 1.5.9

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/package.json +1 -1
  2. package/proxy.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-config-utilities",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "description": "Utilities for shared config used in RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
package/proxy.js CHANGED
@@ -32,7 +32,8 @@ module.exports = ({
32
32
  target = '',
33
33
  keycloakUri = '',
34
34
  registry = [],
35
- isChrome = false
35
+ isChrome = false,
36
+ onBeforeSetupMiddleware = () => {}
36
37
  }) => {
37
38
  const proxy = [];
38
39
  const majorEnv = env.split('-')[0];
@@ -252,6 +253,8 @@ module.exports = ({
252
253
  });
253
254
  }
254
255
 
256
+ onBeforeSetupMiddleware({ chromePath });
257
+
255
258
  if (chromePath) {
256
259
  registerChrome({
257
260
  app,