You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #175, getNames is not following the expected behaviour.
It may return either a name or a names array. This can break integrations and may require weird code to handle this inconsistency. Perhaps we should add an options parameter: { alternativeNames?: boolean }.
By default, the library should return only the first name of the array (alternativeNames = false).
The text was updated successfully, but these errors were encountered:
This is an issue generated from this comment by @sebastien-prudhomme: #175 (comment)
Since #175,
getNames
is not following the expected behaviour.It may return either a name or a names array. This can break integrations and may require weird code to handle this inconsistency. Perhaps we should add an options parameter:
{ alternativeNames?: boolean }
.By default, the library should return only the first name of the array (alternativeNames = false).
The text was updated successfully, but these errors were encountered: