codeintel/lockfiles: Restore `package-lock.json` dev dependencies
Created by: tsenart
This commit moves the lockfile parsers we are using from github.com/aquasecurity/go-dep-parse in-tree and adapts them to our needs.
We do so because:
- Their
package-lock.json
parser skips dev dependencies which we want to parse. - We reduce unnecessary large array type conversions.
- We defer the removal of duplicates to the Service.
Test plan
Unit and integration tests.