npm link # in this repo
npm i && npm run build
cd snyk repo
npm link snyk-nodejs-lockfile-parser
npm run build
node dist/cli/index.js test path/to/nodejs-lockfile-parser/test/fixtures/yarn/yarn2/big
Expected result: vulnerabilies are successfully scanned
What this does
Support very large
yarn.lock
files using yarn 2 package manager.Before:
After:
Furthermore this PR covers
Notes for the reviewer
Sorry about very big diff but most of the changes are just fixture changes, especially new huge lock file .
Most relevant files to review are:
yarn2-lock-parser.ts
To manually test please follow these steps:
Expected result: vulnerabilies are successfully scanned