@eui/tools 6.12.8 → 6.12.9

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.12.8
1
+ 6.12.9
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.12.9 (2023-06-19)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * material indices counter - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([548cba0e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/548cba0e73baed5dad282577306dca2658fb6d8d))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.12.8 (2023-06-19)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.8",
3
+ "version": "6.12.9",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -33,6 +33,9 @@ const runStylesAudit = module.exports.runStylesAudit = (pkg, customPath) => {
33
33
  if (indiceContent.indexOf(exclusion) > -1) {
34
34
  excluded = true;
35
35
  }
36
+ if (indiceContent === '') {
37
+ excluded = true;
38
+ }
36
39
  })
37
40
 
38
41
  if (!excluded) {
@@ -52,9 +55,7 @@ const runStylesAudit = module.exports.runStylesAudit = (pkg, customPath) => {
52
55
 
53
56
  if (indicesContent && indicesContent.length !== 0) {
54
57
  indicesContent.forEach((ic) => {
55
- ic.forEach((icd) => {
56
- count++;
57
- });
58
+ count++;
58
59
  });
59
60
  }
60
61
 
@@ -317,7 +318,7 @@ const runStylesAudit = module.exports.runStylesAudit = (pkg, customPath) => {
317
318
  );
318
319
 
319
320
  report.material.count += recalculateIndicesCount(indicesContent);
320
- report.material.indices = [...report.material.indices, indicesContent];
321
+ report.material.indices = [...report.material.indices, ...indicesContent];
321
322
 
322
323
  let allModulesIndices = [];
323
324
  regex = /EuiAllModule/gi;
@@ -662,4 +663,3 @@ module.exports.audit = (pkg) => {
662
663
  })
663
664
 
664
665
  }
665
-