@eui/tools 6.21.66 → 6.21.68

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.21.66
1
+ 6.21.68
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.68 (2025-04-24)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * remotes extra route for unknown-user injection - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([ee9e7e1b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ee9e7e1b0c9789518c1ba620b2e73a18e004d621))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.67 (2025-04-24)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * add debug of module.ts replacement for remote skeleton options - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([db6090c8](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/db6090c8cf1614924f0096356d4bd472ce827e87))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.66 (2025-04-24)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.66",
3
+ "version": "6.21.68",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -202,7 +202,6 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
202
202
  const optionZipkinDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'zipkin.json'));
203
203
  const optionDynatraceDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'dynatrace.json'));
204
204
  const optionParticipantDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'participant.json'));
205
- const optionUnknownUserExtraRouteDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'unknown-user-extra-route.json'));
206
205
  const optionDynamicFormsDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'dynamic-forms.json'));
207
206
 
208
207
  tools.logInfo(`copying full sources skeleton : ${fullCommonPath} ==> ${remoteSrcPath}`);
@@ -298,20 +297,6 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
298
297
  pushContent(optionDynamicFormsDef);
299
298
  }
300
299
 
301
- // extra routes
302
- if (remote.skeletonConfig.extraUrls) {
303
- let extraUrlsConfigPlaceholder = "", extraUrlsRoutesPlaceholder = "", extraUrlsImportsPlaceholder = "";
304
- remote.skeletonConfig.extraUrls.forEach((url) => {
305
- extraUrlsConfigPlaceholder += `${url.name}: '${url.path}', `;
306
- extraUrlsRoutesPlaceholder += `{ path: appConfig.global.${url.name}, children: ${url.import} },`;
307
- extraUrlsImportsPlaceholder += `${url.import},`;
308
- });
309
-
310
- tools.replaceInPath(remoteSrcPath, "// EXTRA_URLS_CONFIG_PLACEHOLDER", extraUrlsConfigPlaceholder);
311
- tools.replaceInPath(remoteSrcPath, "// EXTRA_URLS_ROUTES_PLACEHOLDER", extraUrlsRoutesPlaceholder);
312
- tools.replaceInPath(remoteSrcPath, "// EXTRA_URLS_IMPORTS_PLACEHOLDER", extraUrlsImportsPlaceholder);
313
- }
314
-
315
300
  // participant
316
301
  if (remote.skeletonConfig.options.participant) {
317
302
  tools.copy(optionParticipantPath, remoteSrcPath);
@@ -334,10 +319,24 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
334
319
  tools.replaceInPath(remoteSrcPath, "@root.npm.pkg@", remote.skeletonConfig.rootNpmPkg);
335
320
  }
336
321
 
337
- // unknow-user-extra-route
322
+ // extra routes
323
+ let extraUrlsConfigPlaceholder = "", extraUrlsRoutesPlaceholder = "", extraUrlsImportsPlaceholder = "";
324
+
325
+ if (remote.skeletonConfig.extraUrls) {
326
+ remote.skeletonConfig.extraUrls.forEach((url) => {
327
+ extraUrlsConfigPlaceholder += `${url.name}: '${url.path}', `;
328
+ extraUrlsRoutesPlaceholder += `{ path: appConfig.global.${url.name}, children: ${url.import} },`;
329
+ extraUrlsImportsPlaceholder += `${url.import},`;
330
+ });
331
+ }
332
+ // unknown-user extra route
338
333
  if (remote.skeletonConfig.options.unknownUserExtraRoute) {
339
- pushContent(optionUnknownUserExtraRouteDef);
334
+ extraUrlsRoutesPlaceholder += "{ path: 'unknown-user', children: routes },";
340
335
  }
336
+
337
+ tools.replaceInPath(remoteSrcPath, "// EXTRA_URLS_CONFIG_PLACEHOLDER", extraUrlsConfigPlaceholder);
338
+ tools.replaceInPath(remoteSrcPath, "// EXTRA_URLS_ROUTES_PLACEHOLDER", extraUrlsRoutesPlaceholder);
339
+ tools.replaceInPath(remoteSrcPath, "// EXTRA_URLS_IMPORTS_PLACEHOLDER", extraUrlsImportsPlaceholder);
341
340
  }
342
341
 
343
342
  // replace option in module.ts placeholders
@@ -368,6 +367,10 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = tru
368
367
  tools.replaceInPath(remoteSrcPath, '@root.npm.pkg@', remote.skeletonConfig.rootNpmPkg);
369
368
 
370
369
 
370
+ tools.logInfo('module.ts replaced content result : ');
371
+ const moduleTsContent = tools.getFileContent(moduleTsPath);
372
+ console.log(moduleTsContent);
373
+
371
374
  tools.logSuccess('OK => copy done - Tokens replaced');
372
375
  }
373
376
  })
@@ -1,4 +0,0 @@
1
- {
2
- "imports": "import { routes } from '@root.npm.pkg@';",
3
- "providers": "provideSectionEntryRoutesConfig([{ path: `${appConfig.global.baseUrl}`, children: routes },{ path: `unknown-user`, children: routes }]),"
4
- }