@decocms/parity 0.28.2 → 0.28.4

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/cli.js +2 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -47759,7 +47759,7 @@ function speedup(prodMs, candMs) {
47759
47759
  function deltaTone(prodMs, candMs) {
47760
47760
  if (prodMs <= 0 || candMs <= 0)
47761
47761
  return DECK.muted;
47762
- if (candMs < prodMs * 0.95)
47762
+ if (candMs < prodMs)
47763
47763
  return DECK.soft;
47764
47764
  if (candMs > prodMs * 1.05)
47765
47765
  return DECK.bad;
@@ -47770,7 +47770,7 @@ function pctChange(prodMs, candMs) {
47770
47770
  return "—";
47771
47771
  const change = (candMs - prodMs) / prodMs * 100;
47772
47772
  const sign = change > 0 ? "+" : "";
47773
- return `${sign}${change.toFixed(0)}%`;
47773
+ return `${sign}${change.toFixed(Math.abs(change) < 1 ? 1 : 0)}%`;
47774
47774
  }
47775
47775
  function figure(path, labelHtml, tone, href, scroll = false) {
47776
47776
  const uri = dataUri(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/parity",
3
- "version": "0.28.2",
3
+ "version": "0.28.4",
4
4
  "description": "E2E parity validator for site migrations. Compares prod vs cand and reports UI, functional, SEO, visual, and Web Vitals deltas with an LLM-ranked HTML report.",
5
5
  "type": "module",
6
6
  "license": "MIT",