@eui/tools 6.12.24 → 6.12.25
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.
- package/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/sandbox.js +1 -1
- package/scripts/csdr/audit/styles.js +17 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.12.
|
|
1
|
+
6.12.25
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.12.25 (2023-06-27)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* add exclusions to styles audit 3rd party deps scan - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([d82c9aa5](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d82c9aa54e976f3ca7a5a01b3551d552e248b590))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.12.24 (2023-06-27)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -1259,7 +1259,7 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
|
1259
1259
|
Promise.resolve()
|
|
1260
1260
|
.then(() => {
|
|
1261
1261
|
// old package without gates forced
|
|
1262
|
-
const pkg = configUtils.packages.getPackage('cc-
|
|
1262
|
+
const pkg = configUtils.packages.getPackage('cc-flex-ui', true);
|
|
1263
1263
|
console.log(pkg);
|
|
1264
1264
|
|
|
1265
1265
|
return auditUtils.styles.audit(pkg);
|
|
@@ -331,11 +331,26 @@ const runStylesAudit = (module.exports.runStylesAudit = (pkg, customPath) => {
|
|
|
331
331
|
console.log(deps);
|
|
332
332
|
|
|
333
333
|
const allowedScopes = configUtils.packages.getPackageScopes();
|
|
334
|
+
const exclusions = ['ag-grid', 'file-saver'];
|
|
335
|
+
|
|
334
336
|
let thirdPartyDeps = [];
|
|
335
337
|
deps.forEach((d) => {
|
|
336
338
|
const scope = d.split('/')[0];
|
|
339
|
+
|
|
340
|
+
// checking against allowed CSDR known package scopes
|
|
337
341
|
if (!allowedScopes.includes(scope)) {
|
|
338
|
-
|
|
342
|
+
|
|
343
|
+
// exclusions known
|
|
344
|
+
let exclusionFound = false;
|
|
345
|
+
exclusions.forEach((exc) => {
|
|
346
|
+
if (scope.indexOf(exc) > -1) {
|
|
347
|
+
exclusionFound = true;
|
|
348
|
+
}
|
|
349
|
+
})
|
|
350
|
+
|
|
351
|
+
if (!exclusionFound) {
|
|
352
|
+
thirdPartyDeps.push(d);
|
|
353
|
+
}
|
|
339
354
|
}
|
|
340
355
|
});
|
|
341
356
|
|
|
@@ -494,7 +509,7 @@ const runStylesAudit = (module.exports.runStylesAudit = (pkg, customPath) => {
|
|
|
494
509
|
report.finalReport['thirdPartyDependencies'] = {
|
|
495
510
|
description: 'Third party dependencies usage',
|
|
496
511
|
value: report.thirdPartyDependencies.count,
|
|
497
|
-
status: report.thirdPartyDependencies.count !== 0 ? '
|
|
512
|
+
status: report.thirdPartyDependencies.count !== 0 ? 'IMPROVE' : 'OK',
|
|
498
513
|
comment: report.thirdPartyDependencies.count !== 0 ? 'Use 3rd party dependencies only if really necessary (bundle size increase) - contact eUI team for more info' : null,
|
|
499
514
|
};
|
|
500
515
|
|