From b2d8ba389a8cf1a704f8183e794de7ada777b143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allen=20Zhang=20=28=E5=BC=A0=E6=B6=9B=29?= Date: Mon, 7 Oct 2024 19:47:01 +0800 Subject: [PATCH] feat: update --- packages/canyon-report/lib/reports/dynamic-data.js | 2 +- packages/canyon-report/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/canyon-report/lib/reports/dynamic-data.js b/packages/canyon-report/lib/reports/dynamic-data.js index a067e403..f4221319 100644 --- a/packages/canyon-report/lib/reports/dynamic-data.js +++ b/packages/canyon-report/lib/reports/dynamic-data.js @@ -40,7 +40,7 @@ const generateDynamicData = ({coverage,_instrumentCwd}) => { const jsonData = { content: data, coverage: { - ...coverage[key], + ...JSON.parse(coverage)[key], path: key.replaceAll(instrumentCwd+'/', ""), }, }; diff --git a/packages/canyon-report/package.json b/packages/canyon-report/package.json index cdd69a9d..268ede0c 100755 --- a/packages/canyon-report/package.json +++ b/packages/canyon-report/package.json @@ -1,6 +1,6 @@ { "name": "canyon-report", - "version": "0.0.8-beta-35", + "version": "0.0.8-beta-36", "description": "Canyon's Coverage Reporting Toolkit", "main": "./lib/index.js", "bin": "./lib/cli.js",