@eui/tools 6.21.121 → 6.21.123

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.121
1
+ 6.21.123
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.123 (2025-09-10)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * put back colorize of console log output - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([e6162a71](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e6162a71593344283922e46bda67450c2b0d4550))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.122 (2025-09-09)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted to flat console output color - to be backward compat with node18 - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([aaabd1d0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/aaabd1d0e48d1e976b2fc93f0c297c922f6ae842))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.121 (2025-09-09)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.121",
3
+ "version": "6.21.123",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -23,7 +23,12 @@ const apiUtils = require('./scripts/utils/api-utils');
23
23
  const versionUtils = require('./scripts/csdr/version/version-utils');
24
24
  const publishUtils = require('./scripts/utils/publish/publish-utils');
25
25
 
26
- tools.logSuccess('yellow', 'test');
26
+ tools.logInfo('test info');
27
+ tools.logSuccess('test success');
28
+ tools.logWarning('test warning');
29
+ tools.logError('test error');
30
+ tools.logBigTitle('test big title');
31
+ tools.logTitle('test title');
27
32
 
28
33
  // console.log(configUtils.packages.getPackages());
29
34
  // console.log(configUtils.packages.getPackage('eui-tools'));
@@ -1525,12 +1530,12 @@ tools.logSuccess('yellow', 'test');
1525
1530
  // })
1526
1531
 
1527
1532
 
1528
- Promise.resolve()
1529
- .then(() => {
1530
- const pkg = configUtils.packages.getPackage('cinea-ifksds-ui');
1531
- return metadataUtils.packageUtils.isNewPackageBuild(pkg);
1532
- })
1533
+ // Promise.resolve()
1534
+ // .then(() => {
1535
+ // const pkg = configUtils.packages.getPackage('cinea-ifksds-ui');
1536
+ // return metadataUtils.packageUtils.isNewPackageBuild(pkg);
1537
+ // })
1533
1538
 
1534
- .then((output) => {
1535
- console.log(output);
1536
- })
1539
+ // .then((output) => {
1540
+ // console.log(output);
1541
+ // })
@@ -8,7 +8,6 @@ const glob = require('glob');
8
8
  const childProcess = require("child_process");
9
9
  const execSync = childProcess.execSync;
10
10
  const semver = require('semver');
11
- // const chalk = require('chalk');
12
11
  const figlet = require('figlet');
13
12
  const figures = require('figures');
14
13
  const spawn = require('cross-spawn');
@@ -17,7 +16,7 @@ const execa = require('execa');
17
16
  const replace = require('replace-in-file');
18
17
  const xml2js = require('xml2js');
19
18
  const moment = require('moment');
20
- const util = require('node:util');
19
+ // const util = require('node:util');
21
20
 
22
21
  const isTestRunning = process.env._TEST;
23
22
 
@@ -678,11 +677,7 @@ function isSysConfigValid() {
678
677
 
679
678
  function logBigTitle(text) {
680
679
  console.log('\n\n');
681
- console.log(
682
- util.styleText('yellow',
683
- figlet.textSync(text, { horizontalLayout: 'full' })
684
- )
685
- );
680
+ console.log('\x1b[33m', figlet.textSync(text, { horizontalLayout: 'full' }) ,'\x1b[0m');
686
681
  console.log('\n');
687
682
  }
688
683
 
@@ -744,27 +739,27 @@ const log = (msg, type) => {
744
739
  if (type === 0 || !type) {
745
740
  prefix = figures.play;
746
741
  msgContent = `\n${currentDateTime} - ${prefix} ${msg.toUpperCase()}`;
747
- if (!isTestRunning) console.info(util.styleText('yellow', msgContent));
742
+ if (!isTestRunning) console.info('\x1b[33m', msgContent ,'\x1b[0m');
748
743
  }
749
744
  if (type === 1) {
750
745
  prefix = figures.pointer.repeat(3);
751
746
  msgContent = `${currentDateTime} - ${prefix} ${msg}`;
752
- if (!isTestRunning) console.info(util.styleText('cyan',msgContent));
747
+ if (!isTestRunning) console.info('\x1b[34m\x1b[1m', msgContent ,'\x1b[0m');
753
748
  }
754
749
  if (type === 2) {
755
750
  prefix = figures.pointer.repeat(6);
756
751
  msgContent = `${currentDateTime} - ${prefix} ${msg}\n`;
757
- if (!isTestRunning) console.info(util.styleText('green',msgContent));
752
+ if (!isTestRunning) console.info('\x1b[32m\x1b[1m', msgContent ,'\x1b[0m');
758
753
  }
759
754
  if (type === 3) {
760
755
  prefix = figures.pointer.repeat(6);
761
- msgContent = `${currentDateTime} - ${prefix} ${msg}`;
762
- console.info(util.styleText('red',msgContent));
756
+ msgContent = `\n${currentDateTime} - ${prefix} ${msg}`;
757
+ console.info('\x1b[31m\x1b[1m', msgContent ,'\x1b[0m');
763
758
  }
764
759
  if (type === 4) {
765
760
  prefix = figures.pointer.repeat(6);
766
761
  msgContent = `\n${currentDateTime} - ${prefix} ${msg}\n`;
767
- console.info(msgContent);
762
+ console.info('\x1b[33m', msgContent ,'\x1b[0m');
768
763
  }
769
764
  if (type === 5) {
770
765
  prefix = figures.star.repeat(3);