@eui/tools 6.9.5 → 6.9.6

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.
@@ -1 +1 @@
1
- 6.9.5
1
+ 6.9.6
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.9.6 (2023-03-21)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * routes config v2 - added multiple remote entries based on eUI version for multiple envs targets - MWP-9204 [MWP-9204](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9204) ([fb5b9b9f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/fb5b9b9f768c727374d0cd0a463097de00fcbcb0))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.9.5 (2023-03-20)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.9.5",
3
+ "version": "6.9.6",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -474,10 +474,19 @@ const processRoutesConfigV2 = (project, envTarget, build, routesFileContent, eui
474
474
  }
475
475
 
476
476
  if (route.remote) {
477
- newAppRoute.data.featureName = defRoute.remoteDef.featureName;
478
- newAppRoute.data.moduleId = defRoute.remoteDef.moduleId;
479
- newAppRoute.data.elementTag = defRoute.remoteDef.elementTag;
480
- newAppRoute.data.iframe = defRoute.remoteDef.iframe;
477
+ const remoteDef = defRoute.remoteDefs.filter((r) => {
478
+ return r.euiVersion === route.euiVersion
479
+ })[0];
480
+ if (remoteDef) {
481
+ newAppRoute.data.moduleId = remoteDef.moduleId;
482
+ newAppRoute.data.elementTag = remoteDef.elementTag;
483
+ newAppRoute.data.iframe = remoteDef.iframe;
484
+
485
+ } else {
486
+ tools.logError('Remote route not found for: ');
487
+ console.log(route);
488
+ throw 'REMOTE_ROUTE_DEF_NOT_FOUND';
489
+ }
481
490
  }
482
491
 
483
492
  appRoutes.push(newAppRoute);