@odla-ai/brand 0.8.2 → 0.8.3

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/dist/index.cjs CHANGED
@@ -503,7 +503,13 @@ function rowAsWritten(ns, row) {
503
503
  return changed ? out : row;
504
504
  }
505
505
  function receiptAsWritten(row) {
506
- return rowAsWritten(BRAND_NS.approvalReceipt, row);
506
+ const normalized = rowAsWritten(BRAND_NS.approvalReceipt, row);
507
+ if (!record(normalized)) return normalized;
508
+ const systemAttrs = Object.keys(normalized).filter((key) => key.startsWith("$"));
509
+ if (systemAttrs.length === 0) return normalized;
510
+ const out = { ...normalized };
511
+ for (const key of systemAttrs) delete out[key];
512
+ return out;
507
513
  }
508
514
  function proposalAsWritten(row) {
509
515
  return rowAsWritten(BRAND_NS.proposal, row);