dependency-cruiser 10.3.1-beta-1 → 10.3.1-beta-2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dependency-cruiser",
3
- "version": "10.3.1-beta-1",
3
+ "version": "10.3.1-beta-2",
4
4
  "description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
5
5
  "keywords": [
6
6
  "static analysis",
@@ -1,16 +1,18 @@
1
- const _difference = require("lodash/difference");
2
1
  const _uniqWith = require("lodash/uniqWith");
3
2
 
4
3
  function violationIsEqual(pLeftViolation, pRightViolation) {
4
+ let lReturnValue = false;
5
5
  if (
6
6
  pLeftViolation.rule.name === pRightViolation.rule.name &&
7
7
  pLeftViolation.cycle
8
8
  ) {
9
- return (
10
- _difference(pLeftViolation.cycle, pRightViolation.cycle).length === 0
11
- );
9
+ lReturnValue =
10
+ pLeftViolation.cycle.length === pRightViolation.cycle.length &&
11
+ pLeftViolation.cycle.every((pModuleName) =>
12
+ pRightViolation.cycle.includes(pModuleName)
13
+ );
12
14
  }
13
- return false;
15
+ return lReturnValue;
14
16
  }
15
17
 
16
18
  module.exports = function deDuplicateViolations(pViolations) {
@@ -23,6 +23,7 @@ function extractMetaData(pViolations) {
23
23
  error: 0,
24
24
  warn: 0,
25
25
  info: 0,
26
+ ignore: 0,
26
27
  }
27
28
  );
28
29
  }
package/src/meta.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* generated - don't edit */
2
2
 
3
3
  module.exports = {
4
- version: "10.3.1-beta-1",
4
+ version: "10.3.1-beta-2",
5
5
  engines: {
6
6
  node: "^12.20||^14||>=16",
7
7
  },
@@ -172,6 +172,7 @@ module.exports = {
172
172
  error: { type: "number" },
173
173
  warn: { type: "number" },
174
174
  info: { type: "number" },
175
+ ignore: { type: "number" },
175
176
  totalCruised: { type: "number" },
176
177
  totalDependenciesCruised: { type: "number" },
177
178
  ruleSetUsed: { $ref: "#/definitions/RuleSetType" },
@@ -271,6 +271,10 @@ export interface ISummary {
271
271
  * the number of errors in the dependencies
272
272
  */
273
273
  error: number;
274
+ /**
275
+ * the number of ignored notices in the dependencies
276
+ */
277
+ ignore: number;
274
278
  /**
275
279
  * the number of informational level notices in the dependencies
276
280
  */