@tokenoftrust/cli 3.7.0 → 3.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/cli",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Token of Trust developer CLI — clone a tenant store, run it locally with save→reload, and submit it for preview. Installs the `tot` command.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Token of Trust",
@@ -10,6 +10,9 @@
10
10
  export function countGate(results, gateName) {
11
11
  return results.reduce(
12
12
  (counts, page) => {
13
+ // A route with nothing to judge for this gate (a redirect route has no rendered page) is
14
+ // left out of the count rather than scored as unknown.
15
+ if (page.notApplicable?.includes(gateName)) return counts;
13
16
  const value = page.gates?.[gateName];
14
17
  if (value === true) counts.pass += 1;
15
18
  else if (value === false) counts.fail += 1;