metalsmith-beautify icon indicating copy to clipboard operation
metalsmith-beautify copied to clipboard

Update debug and js-beautify dependencies; remove unnecessary use of lodash

Open zackw opened this issue 1 year ago • 1 comments

This updates the dependencies on debug and js-beautify to current versions (^4.3.0 and ^1.14.0 respectively).

It also removes the dependency on lodash, which was only being used for things that can be done just as easily with built-in JavaScript functions (Array.forEach, Object.assign). That change was originally written by @khadro (https://github.com/Sitback/metalsmith-beautify/commit/632585e9784d4016e6dcb2b3545f91a9bd26d1cb), I only cleaned it up a little.

This fixes 2 npm audit complaints (debug <2.6.9 [low], lodash <4.17.20 [critical]) and so would close #6. It describes itself as version 0.2.2.

zackw avatar Dec 02 '22 16:12 zackw

updated version of patch avoids using const and arrow functions

zackw avatar Dec 02 '22 16:12 zackw