Closed umer2001 closed 3 years ago
I expect corresponding changes to the package.json file. The lock file is generated from there. not the other way around.
I believe the package-lock can be updated w/o the package.json being updated. For example if package.json has "somelibrary": "^4.1.0"
which allows a range anywhere from 4.1.0 to <5.0.0, the package-lock.json could have previously locked that to 4.3.1
. If a security patch is later released as 4.3.8
we'd want to lock ours to 4.3.8
, but the package.json's ^4.1.0
is still valid for either version.
I'd guess this was done by running npm audit fix
I heard someone volunteer to review. Thanks @ejfrancis lol.
@worldjoe @ejfrancis I did it by cloning repo and deleting package-lock.json file and running npm install. It created a new latest and compatible version of package-lock.json for me.
fix : #44 security updates
npm run lint
?fix/12-some-bug