@eui/tools 6.3.28 → 6.3.30

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.3.28
1
+ 6.3.30
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.3.30 (2023-02-12)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * v15 participants remote skeleton MWP-9235 [MWP-9235](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9235) ([d4fde0cf](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d4fde0cf6b3f038e1a061bfc7bd351af130ec6b0))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.3.29 (2023-02-12)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted v15 resolutions for detected vulnerabilities check - adapted styles audit for css files - MWP-9204 [MWP-9204](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9204) ([d61eeedd](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d61eeedd51e64306ad94495e6716cb7d221994c9))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.3.28 (2023-02-10)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.3.28",
3
+ "version": "6.3.30",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -128,7 +128,11 @@ const runStylesAudit = module.exports.runStylesAudit = (pkg, customPath) => {
128
128
  report.package = pkg.name;
129
129
  }
130
130
 
131
- let files = glob.sync('**/*.scss', { cwd: srcPath, nodir: true, follow: true, dot: true });
131
+ let files;
132
+ const scssFiles = glob.sync('**/*.scss', { cwd: srcPath, nodir: true, follow: true, dot: true });
133
+ const cssFiles = glob.sync('**/*.css', { cwd: srcPath, nodir: true, follow: true, dot: true });
134
+
135
+ files = [...scssFiles, ...cssFiles];
132
136
 
133
137
  report.scssFilesCount += files.length;
134
138
 
@@ -272,20 +276,20 @@ const runStylesAudit = module.exports.runStylesAudit = (pkg, customPath) => {
272
276
  if (report.htmlFilesCount !== 0) {
273
277
  const scssHtmlRatio = Math.floor(100 * report.scssFilesCount / report.htmlFilesCount);
274
278
  report.finalReport['scssHtmlRatio'] = {
275
- description: 'scss files VS html files',
279
+ description: 'scss/css files VS html files',
276
280
  value: `${report.scssFilesCount} out of ${report.htmlFilesCount} (${scssHtmlRatio}%)`,
277
281
  status: (scssHtmlRatio >= 25) ? 'CRITICAL' : (scssHtmlRatio >= 10 && scssHtmlRatio <= 25) ? 'IMPROVE' : 'OK',
278
282
  comment: null,
279
283
  }
280
284
  if (report.finalReport['scssHtmlRatio'].status === 'CRITICAL') {
281
- report.finalReport['scssHtmlRatio'].comment = 'The percentage of html files having scss declaration is too high';
285
+ report.finalReport['scssHtmlRatio'].comment = 'The percentage of html files having styles declaration is too high';
282
286
  }
283
287
  }
284
288
 
285
289
  if (report.htmlLinesCount !== 0) {
286
290
  const scssHtmlLinesRatio = Math.floor(100 * report.scssLinescount / report.htmlLinesCount);
287
291
  report.finalReport['scssHtmlLinesRatio'] = {
288
- description: 'scss lines count VS html lines count',
292
+ description: 'css lines count VS html lines count',
289
293
  value: `${report.scssLinescount} / ${report.htmlLinesCount} (${scssHtmlLinesRatio}%)`,
290
294
  status: (scssHtmlLinesRatio >= 25) ? 'CRITICAL' : (scssHtmlLinesRatio >= 10 && scssHtmlLinesRatio <= 25) ? 'IMPROVE' : 'OK',
291
295
  comment: null,
@@ -297,7 +301,7 @@ const runStylesAudit = module.exports.runStylesAudit = (pkg, customPath) => {
297
301
 
298
302
  if (report.scssFilesCount !== 0) {
299
303
  report.finalReport['scssEmptyFiles'] = {
300
- description: 'scss empty files',
304
+ description: 'scss/css empty files',
301
305
  value: `${report.scssEmptyFiles} out of ${report.scssFilesCount} (${Math.floor(100 * report.scssEmptyFiles / report.scssFilesCount)}%)`,
302
306
  status: (report.scssEmptyFiles !== 0) ? 'IMPROVE' : 'OK',
303
307
  comment: (report.scssEmptyFiles !== 0) ? 'Scss files without content should be cleaned up' : null
@@ -108,7 +108,7 @@ module.exports.audit = (pkg) => {
108
108
  }
109
109
 
110
110
  } else {
111
- tools.logWarning(JSON.stringify(vulnerabilityReport));
111
+ tools.logWarning(JSON.stringify(vulnerabilityReport, null, 2));
112
112
 
113
113
  let message = '';
114
114
  Object.entries(vulnerabilityReport.auditSummary).forEach((v) => {
@@ -35,7 +35,7 @@ import {
35
35
  } from '@csdr/integration/element';
36
36
  import {
37
37
  CONTAINER_MAPPED_PROVIDERS,
38
- } from '@csdr/integration';
38
+ } from '@csdr/integration/participant';
39
39
  import { RoutingModule } from './routing.module';
40
40
 
41
41
  import { FallbackComponent } from './fallback.component';
@@ -1,2 +1,3 @@
1
1
  {
2
+ "cacheable-request": ">=10.2.7"
2
3
  }