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.
Parameters
Section titled “Parameters”publisherName
Section titled “publisherName”string | undefined
The raw Publisher.Name, if the record had one.
fallbackLabel
Section titled “fallbackLabel”string
Label for records carrying no publisher at all.
Returns
Section titled “Returns”string
The display label for the owning package.