lockfile-lint
Advanced tools
Comparing version 1.3.4 to 2.0.0
@@ -6,2 +6,32 @@ # Change Log | ||
# [2.0.0](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@1.3.4...lockfile-lint@2.0.0) (2019-07-22) | ||
### Features | ||
* support npm lockfile parsing ([#2](https://github.com/lirantal/lockfile-lint/issues/2)) ([b94ab49](https://github.com/lirantal/lockfile-lint/commit/b94ab49)) | ||
### BREAKING CHANGES | ||
* exported lockfile parser util renamed | ||
* feat(parsers): compatability with new yarn/npm parsers | ||
BREAKING CHANGE | ||
* feat(parsers): support npm parser | ||
* build(yarn): update CI version of yarn | ||
* build(cache): disable all cache | ||
* fix(filenames): case-sensitive filename changed | ||
* fix(file): removed old file | ||
## [1.3.4](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@1.3.3...lockfile-lint@1.3.4) (2019-06-19) | ||
@@ -8,0 +38,0 @@ |
{ | ||
"name": "lockfile-lint", | ||
"version": "1.3.4", | ||
"version": "2.0.0", | ||
"description": "A CLI to lint a lockfile for security policies", | ||
@@ -59,3 +59,3 @@ "bin": { | ||
"debug": "^4.1.0", | ||
"lockfile-lint-api": "^1.0.7", | ||
"lockfile-lint-api": "^2.0.0", | ||
"yargs": "^13.2.4" | ||
@@ -185,3 +185,3 @@ }, | ||
}, | ||
"gitHead": "50626dd32553deb0486cc235fd43b9d1db081b20" | ||
"gitHead": "3739ad92ae0f272605c6f76f023e48cd2ce31003" | ||
} |
'use strict' | ||
const {ValidateHost, ParseLockFile, ValidateHttps} = require('lockfile-lint-api') | ||
const {ValidateHost, ParseLockfile, ValidateHttps} = require('lockfile-lint-api') | ||
const debug = require('debug') | ||
@@ -17,6 +17,7 @@ | ||
const options = { | ||
lockFilePath: path | ||
lockfilePath: path, | ||
lockfileType: type | ||
} | ||
const parser = new ParseLockFile(options) | ||
const parser = new ParseLockfile(options) | ||
const lockfile = parser.parseSync() | ||
@@ -34,6 +35,7 @@ const validator = new ValidateHost({packages: lockfile.object}) | ||
const options = { | ||
lockFilePath: path | ||
lockfilePath: path, | ||
lockfileType: type | ||
} | ||
const parser = new ParseLockFile(options) | ||
const parser = new ParseLockfile(options) | ||
const lockfile = parser.parseSync() | ||
@@ -40,0 +42,0 @@ const validator = new ValidateHttps({packages: lockfile.object}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35700
342
+ Addedlockfile-lint-api@2.3.0(transitive)
- Removedlockfile-lint-api@1.0.7(transitive)
Updatedlockfile-lint-api@^2.0.0