@canyonjs/report-component 0.0.6 → 0.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -412,10 +412,10 @@ const CoverageDetail = ({ source, coverage, diff }) => {
412
412
  });
413
413
  })();
414
414
  const lineNumbersMinChars = (() => {
415
- return Math.max(...linesState.map((line) => line.hit)).toString().length + 8;
415
+ return Math.max(...linesState.map((line) => line.hit)).toString().length + 9;
416
416
  })();
417
417
  useEffect(() => {
418
- if (ref.current) {
418
+ if (ref.current && ref.current.innerHTML === "") {
419
419
  const dom = ref.current;
420
420
  const options = {
421
421
  value: source,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@canyonjs/report-component",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "author": "Travis Zhang<https://github.com/travzhang>",
6
6
  "repository": {
7
7
  "type": "git",