@redhat-cloud-services/frontend-components-config-utilities 4.2.0 → 4.2.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.
@@ -28,6 +28,7 @@ type ChromeModuleAnalytics = {
28
28
  };
29
29
  export type ChromeModule = {
30
30
  manifestLocation: string;
31
+ cdnPath?: string;
31
32
  defaultDocumentTitle?: string;
32
33
  config?: object;
33
34
  moduleConfig?: ChromeGlobalModuleConfig;
@@ -14,7 +14,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  function moduleInterceptor(moduleRegistry, frontendCRD) {
15
15
  var _a;
16
16
  var moduleName = frontendCRD.objects[0].metadata.name;
17
- return __assign(__assign({}, moduleRegistry), (_a = {}, _a[moduleName] = frontendCRD.objects[0].spec.module, _a));
17
+ var cdnPath = frontendCRD.objects[0].spec.frontend.paths[0];
18
+ return __assign(__assign({}, moduleRegistry), (_a = {}, _a[moduleName] = __assign(__assign({}, frontendCRD.objects[0].spec.module), { cdnPath: cdnPath }), _a));
18
19
  }
19
20
  exports.default = moduleInterceptor;
20
21
  //# sourceMappingURL=module-interceptor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-interceptor.js","sourceRoot":"","sources":["../../../../packages/config-utils/src/feo/module-interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,SAAS,iBAAiB,CAAC,cAAoC,EAAE,WAAwB;;IACvF,IAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IACxD,6BACK,cAAc,gBAChB,UAAU,IAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,OAChD;AACJ,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"module-interceptor.js","sourceRoot":"","sources":["../../../../packages/config-utils/src/feo/module-interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,SAAS,iBAAiB,CAAC,cAAoC,EAAE,WAAwB;;IACvF,IAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IACxD,IAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC9D,6BACK,cAAc,gBAChB,UAAU,0BACN,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,KACrC,OAAO,SAAA,UAET;AACJ,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-config-utilities",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Utilities for shared config used in Red Hat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",