Skip to content

normalizeIssueEntries

normalizeIssueEntries(entries): LoncaErrorIssue[]

Defined in: packages/core/src/errors.ts:152

Map an array of raw marketplace error entries into PII-safe LoncaErrorIssues. Each SDK extracts the array from its own (different) error-body shape, then calls this to do the shared, security-sensitive part: copy only message/field/code and never the raw entry, which can carry PII. String entries become { message }; object entries without a string message are skipped.

readonly unknown[]

LoncaErrorIssue[]

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.