@eui/tools 6.12.8 → 6.12.10

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.10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.12.10 (2023-06-20)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * get packagesVersions latest on newly created package failure during audit - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([1837c268](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1837c268860b67e2b8c7ab0527774b909fdf0737))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.12.9 (2023-06-19)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * 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))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.12.8 (2023-06-19)
2
20
 
3
21
  ##### 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.10",
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
-
@@ -223,7 +223,7 @@ module.exports.getPackageVersions = (pkg) => {
223
223
  module.exports.getPackageVersionsLatest = (pkg) => {
224
224
  const pkgVersionsJson = this.getPackageVersionsJson(pkg);
225
225
 
226
- if (pkgVersionsJson) {
226
+ if (pkgVersionsJson && pkgVersionsJson.versions) {
227
227
  return pkgVersionsJson.versions.filter((v) => {
228
228
  return v.version.indexOf('snapshot') === -1;
229
229
  });
@@ -260,7 +260,7 @@ module.exports.isNewPackageBuild = (pkg) => {
260
260
 
261
261
  if (firstPackageVersion) {
262
262
 
263
- if (versionsLatest.length === 0) {
263
+ if (versionsLatest && versionsLatest.length === 0) {
264
264
  tools.logInfo(`==> package has never been built for MASTER / latest version, package is considered new`);
265
265
  return true;
266
266