@ai-matrx/records 0.72.0 → 0.72.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.
@@ -300,9 +300,9 @@ function footprintOf(spec) {
300
300
  const dimensions = spec.dimensions?.length ?? 0;
301
301
  const tables = (spec.tables?.length ?? 0) + (spec.sharedBlocks?.length ?? 0);
302
302
  const parts = [
303
- counted(tables, ["table", "tables"]),
304
- counted(spec.views?.length ?? 0, ["view", "views"]),
305
- counted(spec.forms?.length ?? 0, ["form", "forms"]),
303
+ ...tables ? [counted(tables, ["table", "tables"])] : [],
304
+ ...spec.views?.length ? [counted(spec.views.length, ["view", "views"])] : [],
305
+ ...spec.forms?.length ? [counted(spec.forms.length, ["form", "forms"])] : [],
306
306
  ...dimensions ? [counted(dimensions, ["dimension set", "dimension sets"])] : [],
307
307
  ...TEMPLATE_EXTRA_KINDS.filter((k) => extras[k]).map((k) => counted(extras[k] ?? 0, EXTRA_WORDS[k]))
308
308
  ];