fmvilas / swagger-node-codegen

An OpenAPI 3.x/Swagger 2 code generator for Node.js
Apache License 2.0
200 stars 55 forks source link

Upgraded lodash, fix npm audit failures #51

Closed andy-viv closed 5 years ago

andy-viv commented 5 years ago

There are some security vulnerabilities reported by npm audit for the versions of lodash and handlebars that are specified currently. This PR fixes both.

The code changes in lib/swagger2.js are required for the upgrade from lodash 3.x to 4.x. I used the lodash-migrate tool to help with this.

fmvilas commented 5 years ago

Thanks for the fix, @andy-viv. It's already on npm version 1.6.3.

andy-viv commented 5 years ago

Thanks for the quick turnaround @fmvilas!