Skip to content

normalizePublisherName

normalizePublisherName(publisherName, fallbackLabel): string

Defined in: packages/simply-core/src/metadata/packageAttribution.ts:69

Turn a raw Tooling API Publisher.Name into the label a report should show.

There are two distinct “not in a package” cases and they mean different things: an explicit <local> publisher means unpackaged metadata in this org, while a missing publisher usually means a standard, Salesforce-shipped component. Callers pick their own label for the second case because it’s user-visible in generated reports.

string | undefined

The raw Publisher.Name, if the record had one.

string

Label for records carrying no publisher at all.

string

The display label for the owning package.