Closed cmawhorter closed 7 years ago
if protocol is absent from the object supplied to urn.format it should default to what's configured so it's easier to construct strings.
currently, you can't do
urn.format({ nid: 'blah', nss: 'blah' });
and must instead
urn.format({ protocol: 'urn', nid: 'blah', nss: 'blah' });
or
urn.format(urn.build({ nid: 'blah', nss: 'blah' }));
if protocol is absent from the object supplied to urn.format it should default to what's configured so it's easier to construct strings.
currently, you can't do
and must instead
or