Navigation Menu

Skip to content

Commit

Permalink
Add support for lockfileVersion === 2
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Oct 12, 2020
1 parent 45712fc commit b0a529c
Show file tree
Hide file tree
Showing 5 changed files with 4,439 additions and 1,971 deletions.
3 changes: 2 additions & 1 deletion functions/validate-lockfile.js
@@ -1,5 +1,6 @@
export default async function validateLockfile (lockfile) {
return lockfile.lockfileVersion === 1 && lockfile.requires === true
let validVersion = lockfile.lockfileVersion === 1 || lockfile.lockfileVersion === 2
return validVersion && lockfile.requires === true
? Promise.resolve()
: Promise.reject()
}

0 comments on commit b0a529c

Please sign in to comment.