@lmzhen/dsh-evolution-core 0.3.41 → 0.3.43
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/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2760,7 +2760,7 @@ function assessStructureHealth(snapshot, thresholds = DEFAULT_HEALTH_THRESHOLDS)
|
|
|
2760
2760
|
};
|
|
2761
2761
|
const needs = snapshot.bodyChars >= thresholds.softBodyChars * 2;
|
|
2762
2762
|
if (needs) reasons.push(`body ${snapshot.bodyChars} chars is >= 2x the soft limit (${thresholds.softBodyChars}) — consider splitting or offloading`);
|
|
2763
|
-
else if (snapshot.bodyChars >= thresholds.softBodyChars) reasons.push(`body ${snapshot.bodyChars} chars above the soft limit (${thresholds.softBodyChars})`);
|
|
2763
|
+
else if (snapshot.bodyChars >= thresholds.softBodyChars) reasons.push(`body ${snapshot.bodyChars} chars at or above the soft limit (${thresholds.softBodyChars})`);
|
|
2764
2764
|
if (snapshot.bodyText && snapshot.bodyChars >= 2e3) {
|
|
2765
2765
|
const kb = Math.max(1, snapshot.bodyChars / 1024);
|
|
2766
2766
|
dims.stampDensityPerKb = (snapshot.bodyText.match(HEALTH_STAMP_RE) ?? []).length / kb;
|
package/package.json
CHANGED