Comparing version 1.4.0 to 1.5.0
@@ -0,1 +1,8 @@ | ||
# v1.5.0 | ||
- Prop usage graphs are now relative to the number of component usages, rather | ||
than relative to the number of total props used across all component usages. | ||
This means that a "full" prop bar corresponds to a prop used in every usage of | ||
that component. | ||
# v1.4.0 | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "jsx-info", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "displays a report of JSX component and prop usage", | ||
@@ -5,0 +5,0 @@ "bin": "src/jsx-info.js", |
@@ -112,4 +112,2 @@ const printer = require("./printer"); | ||
); | ||
const total = this._sumValues(props); | ||
const pairs = this._sortMap(props); | ||
@@ -120,3 +118,3 @@ const maxDigits = getMaxDigits(pairs.values()); | ||
" " + printer.styleNumber(count.toString().padStart(maxDigits)), | ||
" " + printer.textMeter(total, count), | ||
" " + printer.textMeter(componentUsage, count), | ||
" " + printer.stylePropName(propName) | ||
@@ -123,0 +121,0 @@ ); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22108
420