@decocms/parity 0.33.55 → 0.33.57

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 +11 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -63037,6 +63037,14 @@ function joinUrl(base, path) {
63037
63037
  function shellQuote(value) {
63038
63038
  return /^[\w./:=-]+$/.test(value) ? value : `'${value.replace(/'/g, "'\\''")}'`;
63039
63039
  }
63040
+ function sourcePath(plan, c) {
63041
+ if (!c.file)
63042
+ return null;
63043
+ const dir = plan.source.dir;
63044
+ if (!dir)
63045
+ return c.file;
63046
+ return `${dir.replace(/\/+$/, "")}/${c.file.replace(/^\/+/, "")}`;
63047
+ }
63040
63048
  function disposition(c) {
63041
63049
  if (c.status === "pending" || c.status === "partial")
63042
63050
  return "build";
@@ -63081,6 +63089,7 @@ function pagePlan(plan, path, candUrl) {
63081
63089
  scope: c.scope ?? "page",
63082
63090
  origin: c.origin,
63083
63091
  selector,
63092
+ source: sourcePath(plan, c),
63084
63093
  against: d === "validate" ? { url: refUrl, kind } : null,
63085
63094
  command: checkable && candUrl && selector ? `parity section --prod ${shellQuote(joinUrl(refUrl, page.path))} --cand ${shellQuote(joinUrl(candUrl, page.path))} --selector ${shellQuote(selector)}` : null,
63086
63095
  note: c.reference?.note ?? null
@@ -68172,6 +68181,8 @@ ${DISPOSITION_STYLE[d](chalk22.bold(d))} (${rows.length})`);
68172
68181
  if (t.against?.kind === "reference") {
68173
68182
  console.log(chalk22.cyan(` reference: ${t.against.url}`));
68174
68183
  }
68184
+ if (t.source)
68185
+ console.log(chalk22.green(` source: ${t.source}`));
68175
68186
  if (t.command)
68176
68187
  console.log(chalk22.gray(` $ ${t.command}`));
68177
68188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/parity",
3
- "version": "0.33.55",
3
+ "version": "0.33.57",
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",