@tokenoftrust/cli 7.5.7 → 7.5.8

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": "7.5.7",
3
+ "version": "7.5.8",
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
@@ -28,7 +28,6 @@ import { createRedirectShadowCollector, shadowedRedirectMessage } from "./redire
28
28
  import { pageSlugFindings } from "./page-slugs.mjs";
29
29
  import { ANALYTICS_DECLARATION_FILE, analyticsDeclarationFindings } from "./analytics-declaration.mjs";
30
30
  import { parseSku, skuCollisions, skuFindings } from "./sku.mjs";
31
- import { resolveKnownProductCompliance } from "./known-product-catalog.mjs";
32
31
 
33
32
  export {
34
33
  TOT_CONFIG_KEYS,
@@ -171,11 +170,7 @@ function productClassificationGaps(product) {
171
170
  const gaps = new Set();
172
171
  for (const variant of variants) {
173
172
  const explicitFlavors = collectCatalogFlavorLabels(product, variant);
174
- const known =
175
- (!explicitCategory && merchantType.length === 0) || explicitFlavors.length === 0
176
- ? resolveKnownProductCompliance(product, variant)
177
- : undefined;
178
- const category = explicitCategory ?? (merchantType.length === 0 ? known?.category : undefined);
173
+ const category = explicitCategory;
179
174
  const categoryClassified = Boolean(category) || merchantType.length > 0;
180
175
  if (!categoryClassified) gaps.add("category");
181
176
  const haystack = [
@@ -196,10 +191,7 @@ function productClassificationGaps(product) {
196
191
  const containsNicotine =
197
192
  !isAccessory &&
198
193
  (nicOptionSaysNonZero || (!nicOptionSaysZero && CATALOG_NICOTINE_HINTS.some((n) => haystack.includes(n))));
199
- const knownFlavors = (known?.flavors ?? [])
200
- .map((f) => String(f ?? "").trim().toLowerCase())
201
- .filter((f) => Boolean(f) && !CATALOG_NICOTINE_FORMAT_LABELS.has(f));
202
- const flavorClassified = explicitFlavors.length > 0 || knownFlavors.length > 0;
194
+ const flavorClassified = explicitFlavors.length > 0;
203
195
  if ((containsNicotine || !categoryClassified) && !flavorClassified) gaps.add("flavor");
204
196
  }
205
197
  return ["category", "flavor"].filter((g) => gaps.has(g));