@eui/tools 4.17.6 → 4.17.7

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
- 4.17.6
1
+ 4.17.7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 4.17.7 (2021-12-02)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * updated handlebars to 4.7.7 in v13 resolutions - enabled back UI auditing - fixed teams display on init - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([bd101f2d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/bd101f2d6466308c21bd4bdc57a504a5cdc810a6))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 4.17.6 (2021-11-30)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.17.6",
3
+ "version": "4.17.7",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -120,10 +120,10 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
120
120
  // return initUtils.meta.init();
121
121
  // })
122
122
 
123
- return Promise.resolve()
124
- .then(() => {
125
- return metadataUtils.stats.run();
126
- })
123
+ // return Promise.resolve()
124
+ // .then(() => {
125
+ // return metadataUtils.stats.run();
126
+ // })
127
127
 
128
128
  // return Promise.resolve()
129
129
  // .then(() => {
@@ -630,3 +630,17 @@ return Promise.resolve()
630
630
  // tools.logBanner('this is the content of the banner');
631
631
  // })
632
632
 
633
+ return Promise.resolve()
634
+ .then(() => {
635
+ const csdrProjects = configUtils.projects.getCsdrProjects().filter((p) => {
636
+ return p.initListVisible === true;
637
+ }).map(p => ({ name: p.name, value: p.name }));
638
+ console.log(csdrProjects);
639
+
640
+ const teams = configUtils.projects.getTeamsProject(csdrProjects, answersProject.project)
641
+ .map(t => ({ name: getLabelTeam(t), value: t }))
642
+ .sort((a, b) => a.name > b.name ? 1 : a.name < b.name ? -1 : 0)
643
+ .concat([{ name: '* Install all packages', value: 'all' }]);
644
+
645
+ console.log(teams);
646
+ })
@@ -50,7 +50,7 @@ module.exports.audit = (pkg) => {
50
50
  .then(() => {
51
51
  return Promise.resolve()
52
52
  .then(() => {
53
- return execa.shellSync('yarn audit --level moderate', { cwd: process.cwd(), stdio: 'inherit' });
53
+ return execa.shellSync('yarn audit --level high', { cwd: process.cwd(), stdio: 'inherit' });
54
54
  })
55
55
  .catch((e) => {}) // it can fail
56
56
  })
@@ -61,7 +61,7 @@ module.exports.audit = (pkg) => {
61
61
  .then(() => {
62
62
  const auditFile = path.join(process.cwd(), 'audit.json');
63
63
  tools.logInfo(`Creating audit file`)
64
- return execa.shellSync(`yarn audit --level moderate --json > ${auditFile}`, { cwd: process.cwd(), stdio: 'inherit' });
64
+ return execa.shellSync(`yarn audit --level high --json > ${auditFile}`, { cwd: process.cwd(), stdio: 'inherit' });
65
65
  })
66
66
  .then(() => {
67
67
  tools.logSuccess();
@@ -17,7 +17,9 @@ module.exports.start = () => {
17
17
  type: "list",
18
18
  name: "project",
19
19
  message: "Which app / project do you work on?",
20
- choices: csdrProjects.map(p => ({ name: p.name, value: p.name }))
20
+ choices: csdrProjects.filter((p) => {
21
+ return p.initListVisible === true;
22
+ }).map(p => ({ name: p.name, value: p.name }))
21
23
  });
22
24
 
23
25
  const answersTeam = await inquirer.prompt({
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "lodash": ">=4.17.21",
3
- "handlebars": ">=4.5.3",
3
+ "handlebars": ">=4.7.7",
4
4
  "mem": ">=4.3.0 <=8.1.1",
5
5
  "https-proxy-agent": ">=2.2.3",
6
6
  "minimatch": ">=3.0.4",
@@ -32,9 +32,9 @@ module.exports.install = (pkg, isMaster) => {
32
32
 
33
33
 
34
34
  // AUDIT DEPENDENCIES
35
- // .then(() => {
36
- // return auditUtils.audit(pkg);
37
- // })
35
+ .then(() => {
36
+ return auditUtils.audit(pkg);
37
+ })
38
38
 
39
39
 
40
40
  .catch((e) => {