Support Yarnlock v2
Currently this library supports only Yarnlock v1.
With v2 lockfile, we see an error as such: https://gitlab.com/gitlab-org/gitlab-ui/-/jobs/1226398396
Phase 1
Skip v2 lockfile with exit code 0 regardless of tamper or breaking of it: !16 (closed)
Phase 2
Verify v2 lockfile with exit code 0 if tampered or broken: TBD
It looks like that we do not need to use any third-party library to support v2 lockfile.
https://www.npmjs.com/package/@yarn-tool/detect-yarnlock-version can be used for the detection of the version...
Edited by Takuya Noguchi