The objects returned by the function may now contain a number of additional metadata properties describing the kind of license value passed.
returned.spdx === true
when the argument was an SPDX license expression, with or without permittedLicenseRef
identifiers.typeof returned.inFile === 'string'
where the argument was a"SEE LICENSE..."
value.returned.unlicensed === true
where the argument was"UNLICENSED"
or"UNLICENSED"
.
Properties returned by previous versions remain unchanged, except for a small punctuation change to clarify the message describing valid values.