kessler / license-report

create a short report about a project's dependencies (license, url etc)
MIT License
223 stars 39 forks source link

Error thrown when no dependency is found #126

Closed punowo closed 1 year ago

punowo commented 1 year ago

Hello. I'm using this in order to update lists of dependencies inside a few readmes. If the project has no dependency, it will throw this error.

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at default (file:///usr/local/lib/node_modules/license-report/node_modules/tablemark/dist/index.js:12:25)
    at formatAsMarkdown (file:///usr/local/lib/node_modules/license-report/lib/getFormatter.js:109:9)
    at file:///usr/local/lib/node_modules/license-report/index.js:59:17

I would expect it to just show nothing.

BePo65 commented 1 year ago

Fixed with pr #127.

punowo commented 1 year ago

Thank you.