This is similar to Do I commit the package-lock.json file created by npm 5? or Should package-lock.json also be published?
but for npm package. I was told that it's not recomended to commit this file to the repo (it's only recomended for applictions), but I can't find this information right now to confirm.
From the npm documentation:
One key detail about package-lock.json is that it cannot be published, and it will be ignored if found in any place other than the toplevel package
https://docs.npmjs.com/configuring-npm/package-lock-json.html
Does it mean that it shouldn't matter if I commit the file or not? I'm asking because github just found vulnerablity (again) in my repo (npm package) and it say that the vulnerablity is in package-lock.json (one was automaticaly fixed by dependecy bot - by PR). Does it mean that the npm package is also vulnerable or not if lock file is not in npm repository.
What are redomendaion about lock files for npm packages? Good reference website with this information will also be nice.