@eui/tools 6.21.119 → 6.21.121

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.119
1
+ 6.21.121
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.121 (2025-09-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * wrong node:util import - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([ab936efb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ab936efbe93a79f7c8718c78e0e9011357b9f303))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.120 (2025-09-09)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * remove chalk dependency - security issue - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([3765958b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3765958b6066da1f6619403df2ed112d6805dece))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.119 (2025-09-08)
2
20
 
3
21
  ##### Chores
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const spawn = require('cross-spawn');
4
- const chalk = require('chalk');
4
+ // const chalk = require('chalk');
5
5
 
6
6
  const args = process.argv.slice(2);
7
7
 
@@ -134,6 +134,6 @@ switch (script) {
134
134
  break;
135
135
  }
136
136
  default:
137
- console.log(chalk.red('Unknown script "' + script + '".'));
137
+ console.log('Unknown script "' + script + '".');
138
138
  break;
139
139
  }
@@ -1,67 +1,67 @@
1
1
  'use strict';
2
2
 
3
- const chalk = require('chalk');
3
+ // const chalk = require('chalk');
4
4
 
5
5
  const tools = require('../../scripts/utils/tools');
6
6
 
7
7
 
8
8
  const helpOutput = `
9
- ${chalk.yellow('eUI SCRIPTS - COMMANDS')}
9
+ ${'eUI SCRIPTS - COMMANDS'}
10
10
  ----------------------
11
11
 
12
12
  - Initialization of existing project / packages
13
13
 
14
- ${chalk.green('npm run init')}
14
+ ${'npm run init'}
15
15
  => interactive initialization of project, project and team can be selected from a list based on your global config
16
16
 
17
- ${chalk.green('npm run init -- --project <project-name>')}
17
+ ${'npm run init -- --project <project-name>'}
18
18
  => initialize the <project-name> with all the dependent packages as defined in the global config
19
19
 
20
- ${chalk.green('npm run init -- --project <project-name> --prjOnly')}
20
+ ${'npm run init -- --project <project-name> --prjOnly'}
21
21
  => initialize ONLY the <project-name> without any other packages
22
22
 
23
- ${chalk.green('npm run init -- --pkg <package-name>')}
23
+ ${'npm run init -- --pkg <package-name>'}
24
24
  => initalize the <package-name> and re-clone/re-pull all others repositories (project+packages) already present in your local env
25
25
 
26
- ${chalk.green('npm run init -- --pkg <package-name> --pkgOnly')}
26
+ ${'npm run init -- --pkg <package-name> --pkgOnly'}
27
27
  => initialize the <package-name> and only this package will be clone/pull
28
28
 
29
29
 
30
30
  - PACKAGE operations
31
31
 
32
- ${chalk.green('npm run pkg:init')}
32
+ ${'npm run pkg:init'}
33
33
  => New package creation, interactive where Scope / Package name and type can be selected
34
34
  => this implies that dev team is sending a Pull Request on the root package with the additional configuration updates
35
35
  for this package to be able to be known, by other teams and also the CI operations
36
36
 
37
- ${chalk.green('npm run pkg:build <package-name>')}
37
+ ${'npm run pkg:build <package-name>'}
38
38
  => Local build of <package-name> = folder name of package in /packages folder
39
39
  => Linting the package
40
40
  => Testing the package, with Karma/Jasmine for Angular / maven test for Java / Jest for NodeJS package
41
41
  => Compile the package into Angular v7 format / maven clean package / others, dependending on the package type
42
42
 
43
- ${chalk.green('npm run pkg:build <package-name> -- --deps')}
43
+ ${'npm run pkg:build <package-name> -- --deps'}
44
44
  => same as the generic command with pre-building all packages dependencies in the graph
45
45
  => dependencies between packages are defined into the [deps] array in the global package config file
46
46
  => graph is scanning dependencies of dependencies along the dependency tree
47
47
 
48
- ${chalk.green('npm run pkg:build <package-name> -- --skipLint')}
48
+ ${'npm run pkg:build <package-name> -- --skipLint'}
49
49
  => same as the generic command but skipping the linting operation
50
50
 
51
- ${chalk.green('npm run pkg:build <package-name> -- --skipTest')}
51
+ ${'npm run pkg:build <package-name> -- --skipTest'}
52
52
  => same as the generic command but skipping the testing operation
53
53
 
54
- ${chalk.green('npm run pkg:build <package-name> -- --skipLint --skipTest')}
54
+ ${'npm run pkg:build <package-name> -- --skipLint --skipTest'}
55
55
  => same as the generic command but skipping both linting and testing operations
56
56
 
57
- ${chalk.green('npm run pkg:build-all')}
57
+ ${'npm run pkg:build-all'}
58
58
  => build all packages installed locally, in dependencies order
59
59
 
60
60
 
61
61
 
62
62
  - APPLICATION operations : INIT
63
63
 
64
- ${chalk.green('npm run app:init')}
64
+ ${'npm run app:init'}
65
65
  => New application creation, interactive where Scope / app name
66
66
  => this implies that dev team is sending a Pull Request on the root package with the additional configuration updates
67
67
  for this application to be able to be known, by other teams and also the CI operations
@@ -70,17 +70,17 @@ const helpOutput = `
70
70
 
71
71
  - APPLICATION operations : SERVE
72
72
 
73
- ${chalk.green('npm run app:serve <project-name>')}
73
+ ${'npm run app:serve <project-name>'}
74
74
  => Serve your application, using default Angular CLI "ng serve" app will be serverd on localhost:4200
75
75
 
76
76
 
77
77
 
78
78
  - APPLICATION operations : BUILD
79
79
 
80
- ${chalk.green('npm run app:build <project-name>')}
80
+ ${'npm run app:build <project-name>'}
81
81
  => Build the <project-name> with default build configuration as defined in the angular-config.json file of the app
82
82
 
83
- ${chalk.green('npm run app:build <project-name> -- --configuration=<configuration-name>')}
83
+ ${'npm run app:build <project-name> -- --configuration=<configuration-name>'}
84
84
  => Build the <project-name> with the build configuration provided, it should be defined in the angular-config.json file of the app
85
85
  => Default configurations of a default CSDR app skeleton are :
86
86
  => "production": run with AOT and with production files replacement (very fast / bigger bundles)
@@ -90,14 +90,14 @@ const helpOutput = `
90
90
 
91
91
  - Re-synchronization - proper to CSDR local dev
92
92
 
93
- ${chalk.green('npm run sync')}
93
+ ${'npm run sync'}
94
94
  => Re-sync your local dev env, all previously generated files will be re-generated against the global config
95
95
  => Upgrade of dependencies will occur after the sync (npm run upgrade:deps)
96
96
 
97
- ${chalk.green('npm run sync-only ----> equivalent to npm run sync -- --skipInstall')}
97
+ ${'npm run sync-only ----> equivalent to npm run sync -- --skipInstall'}
98
98
  => Only do the re-sync operation without upgrading the dependencies
99
99
 
100
- ${chalk.green('npm run upgrade:deps')}
100
+ ${'npm run upgrade:deps'}
101
101
  => Only do the upgrade of dependencies operation, scanning of all the projects/packages present in your local will be done
102
102
  dependencies for each will then be injected in the package.json root and then installed against their latest snapshot versions
103
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.119",
3
+ "version": "6.21.121",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -13,7 +13,6 @@
13
13
  "inquirer": "6.5.0",
14
14
  "execa": "1.0.0",
15
15
  "figlet": "1.5.2",
16
- "chalk": "4.1.2",
17
16
  "fs-extra": "9.0.0",
18
17
  "replace-in-file": "4.1.3",
19
18
  "semver": "7.7.1",
package/sandbox.js CHANGED
@@ -23,6 +23,7 @@ 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
27
 
27
28
  // console.log(configUtils.packages.getPackages());
28
29
  // console.log(configUtils.packages.getPackage('eui-tools'));
@@ -8,7 +8,7 @@ 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');
11
+ // const chalk = require('chalk');
12
12
  const figlet = require('figlet');
13
13
  const figures = require('figures');
14
14
  const spawn = require('cross-spawn');
@@ -17,6 +17,7 @@ const execa = require('execa');
17
17
  const replace = require('replace-in-file');
18
18
  const xml2js = require('xml2js');
19
19
  const moment = require('moment');
20
+ const util = require('node:util');
20
21
 
21
22
  const isTestRunning = process.env._TEST;
22
23
 
@@ -678,7 +679,7 @@ function isSysConfigValid() {
678
679
  function logBigTitle(text) {
679
680
  console.log('\n\n');
680
681
  console.log(
681
- chalk.yellow(
682
+ util.styleText('yellow',
682
683
  figlet.textSync(text, { horizontalLayout: 'full' })
683
684
  )
684
685
  );
@@ -743,46 +744,46 @@ const log = (msg, type) => {
743
744
  if (type === 0 || !type) {
744
745
  prefix = figures.play;
745
746
  msgContent = `\n${currentDateTime} - ${prefix} ${msg.toUpperCase()}`;
746
- if (!isTestRunning) console.info(chalk.yellow(msgContent));
747
+ if (!isTestRunning) console.info(util.styleText('yellow', msgContent));
747
748
  }
748
749
  if (type === 1) {
749
750
  prefix = figures.pointer.repeat(3);
750
751
  msgContent = `${currentDateTime} - ${prefix} ${msg}`;
751
- if (!isTestRunning) console.info(chalk.cyan(msgContent));
752
+ if (!isTestRunning) console.info(util.styleText('cyan',msgContent));
752
753
  }
753
754
  if (type === 2) {
754
755
  prefix = figures.pointer.repeat(6);
755
756
  msgContent = `${currentDateTime} - ${prefix} ${msg}\n`;
756
- if (!isTestRunning) console.info(chalk.green(msgContent));
757
+ if (!isTestRunning) console.info(util.styleText('green',msgContent));
757
758
  }
758
759
  if (type === 3) {
759
760
  prefix = figures.pointer.repeat(6);
760
761
  msgContent = `${currentDateTime} - ${prefix} ${msg}`;
761
- console.info(chalk.red(msgContent));
762
+ console.info(util.styleText('red',msgContent));
762
763
  }
763
764
  if (type === 4) {
764
765
  prefix = figures.pointer.repeat(6);
765
766
  msgContent = `\n${currentDateTime} - ${prefix} ${msg}\n`;
766
- console.info(chalk.keyword('yellow')(msgContent));
767
+ console.info(msgContent);
767
768
  }
768
769
  if (type === 5) {
769
770
  prefix = figures.star.repeat(3);
770
771
  msgContent = `${currentDateTime} - ${prefix} ${msg}\n`;
771
- console.info(chalk.keyword('yellow')(msgContent));
772
+ console.info(msgContent);
772
773
  }
773
774
  if (type === 6) {
774
775
  prefix = figures.star.repeat(3)
775
776
  msgContent = prefix + ' ' + msg + ' ' + prefix;
776
777
  console.info('\n\n');
777
- console.info(chalk.keyword('yellow')(figures.star.repeat(msgContent.length)));
778
- console.info(chalk.keyword('yellow')(msgContent));
779
- console.info(chalk.keyword('yellow')(figures.star.repeat(msgContent.length)));
778
+ console.info(figures.star.repeat(msgContent.length));
779
+ console.info(msgContent);
780
+ console.info(figures.star.repeat(msgContent.length));
780
781
  console.info('\n');
781
782
  }
782
783
  if (type === 7) {
783
784
  prefix = figures.pointer.repeat(10);
784
785
  msgContent = `${currentDateTime} - ${prefix} ${msg}`;
785
- console.info(chalk.keyword('yellow')(msgContent));
786
+ console.info(msgContent);
786
787
  }
787
788
  }
788
789