@goshenkata/dryscan-core 1.0.7 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goshenkata/dryscan-core",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Core library for DryScan - semantic code duplication analyzer",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "coverage": "c8 tsx ../node_modules/mocha/bin/mocha \"test/**/*.test.mjs\""
19
19
  },
20
20
  "engines": {
21
- "node": ">=18.0.0"
21
+ "node": ">=22.0.0"
22
22
  },
23
23
  "keywords": [
24
24
  "code-analysis",
package/src/DryScan.ts CHANGED
@@ -108,6 +108,7 @@ export class DryScan {
108
108
  version: 1,
109
109
  generatedAt: new Date().toISOString(),
110
110
  threshold: config.threshold,
111
+ grade: analysis.score.grade,
111
112
  score: analysis.score,
112
113
  duplicates: analysis.duplicates,
113
114
  };
package/src/types.ts CHANGED
@@ -30,6 +30,7 @@ export interface DuplicateReport {
30
30
  version: number;
31
31
  generatedAt: string;
32
32
  threshold: number;
33
+ grade: DuplicationScore["grade"];
33
34
  score: DuplicationScore;
34
35
  duplicates: DuplicateGroup[];
35
36
  }