Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@kemitchell kemitchell released this 23 Aug 22:08
· 21 commits to master since this release

The objects returned by the function may now contain a number of additional metadata properties describing the kind of license value passed.

  1. returned.spdx === true when the argument was an SPDX license expression, with or without permitted LicenseRef identifiers.
  2. typeof returned.inFile === 'string' where the argument was a "SEE LICENSE..." value.
  3. 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.