diff --git a/packages/canyon-backend/package.json b/packages/canyon-backend/package.json index 028c07df..cac4534c 100755 --- a/packages/canyon-backend/package.json +++ b/packages/canyon-backend/package.json @@ -25,7 +25,7 @@ "@prisma/client": "5.16.1", "axios": "^1.7.9", "body-parser": "^1.20.3", - "canyon-data": "^2.0.0-beta.7", + "canyon-data": "^2.0.0-beta.8", "canyon-map": "^2.0.0-beta.6", "class-transformer": "^0.5.1", "class-validator": "^0.14.1", @@ -70,4 +70,4 @@ "tsconfig-paths": "^4.2.0", "typescript": "^5.7.2" } -} \ No newline at end of file +} diff --git a/packages/canyon-collect/package.json b/packages/canyon-collect/package.json index 62956e6d..9ae33441 100644 --- a/packages/canyon-collect/package.json +++ b/packages/canyon-collect/package.json @@ -18,7 +18,7 @@ "@nestjs/platform-express": "^10.4.15", "@nestjs/typeorm": "^10.0.2", "@prisma/client": "5.16.1", - "canyon-data": "^2.0.0-beta.7", + "canyon-data": "^2.0.0-beta.8", "canyon-map": "^2.0.0-beta.6", "class-transformer": "^0.5.1", "class-validator": "^0.14.1", @@ -54,4 +54,4 @@ "tsconfig-paths": "^4.2.0", "typescript": "^5.7.2" } -} \ No newline at end of file +} diff --git a/packages/canyon-data/package.json b/packages/canyon-data/package.json index 2d77fab9..3e97dd3a 100644 --- a/packages/canyon-data/package.json +++ b/packages/canyon-data/package.json @@ -1,6 +1,6 @@ { "name": "canyon-data", - "version": "2.0.0-beta.8", + "version": "2.0.0-beta.9", "description": "", "type": "module", "exports": { diff --git a/packages/canyon-data/src/utils/line.ts b/packages/canyon-data/src/utils/line.ts index 1193d1f6..43176214 100755 --- a/packages/canyon-data/src/utils/line.ts +++ b/packages/canyon-data/src/utils/line.ts @@ -84,6 +84,7 @@ export function calculateNewLineCoverageForSingleFile( branchRange.locations.forEach((location, index) => { // branch类型是if,并且有多个分支的,第一个if的location范围是整个分支的范围,所以如果它未覆盖,会导致标注的时候整个分支红色,先剔除。 if ( + coverage.b[key]&& coverage.b[key][index] === 0 && specialLogicByIf(branchRange, index) ) { diff --git a/packages/canyon-report/package.json b/packages/canyon-report/package.json index 2b1b2ebd..a65b4490 100644 --- a/packages/canyon-report/package.json +++ b/packages/canyon-report/package.json @@ -24,7 +24,7 @@ "antd": "^5.22.6", "axios": "^1.7.9", "canyon-core": "^0.1.1-beta.3", - "canyon-data": "^2.0.0-beta.7", + "canyon-data": "^2.0.0-beta.8", "commander": "^12.1.0", "istanbul-lib-coverage": "^3.2.2", "istanbul-lib-report": "^3.0.1", @@ -49,4 +49,4 @@ "tailwindcss": "^3.4.17", "typescript": "^5.7.2" } -} \ No newline at end of file +}