@tokenoftrust/cli 2.0.23 → 2.0.24

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/package.json +1 -1
  2. package/src/validate.mjs +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/cli",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
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",
package/src/validate.mjs CHANGED
@@ -538,6 +538,9 @@ function validateTrustStrip(block, file, at, out, tenantId) {
538
538
  }
539
539
 
540
540
  function validateFaq(block, file, at, out) {
541
+ if (block.lede !== undefined && (typeof block.lede !== "string" || !block.lede.trim())) {
542
+ out.push(mk(ERROR, "block-prop", file, `${at}.lede must be a non-empty plain-text string`));
543
+ }
541
544
  if (!Array.isArray(block.items)) {
542
545
  out.push(mk(ERROR, "block-prop", file, `${at}.items must be an array`));
543
546
  return;