lockfile-lint
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -27,2 +27,8 @@ 'use strict' | ||
}) | ||
test('should handle exceptions when validators arent provided for runValidators method', () => { | ||
expect(() => { | ||
main.runValidators() | ||
}).toThrow('provided object must have a validators array list') | ||
}) | ||
}) | ||
@@ -29,0 +35,0 @@ |
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.3.1](https://github.com/lirantal/lockfile-lint/tree/master/packages/lockfile-lint/compare/lockfile-lint@1.3.0...lockfile-lint@1.3.1) (2019-06-18) | ||
**Note:** Version bump only for package lockfile-lint | ||
# 1.3.0 (2019-06-18) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "lockfile-lint", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A CLI to lint a lockfile for security policies", | ||
@@ -59,3 +59,3 @@ "bin": { | ||
"debug": "^4.1.0", | ||
"lockfile-lint-api": "^1.0.4", | ||
"lockfile-lint-api": "^1.0.5", | ||
"yargs": "^13.2.4" | ||
@@ -185,3 +185,3 @@ }, | ||
}, | ||
"gitHead": "85dbcdc5d12d314bfeb2d02149beec0d63ddd458" | ||
"gitHead": "3f7ae3e99df958b0fe8b72e6f9efbc8f655f2d52" | ||
} |
@@ -16,2 +16,6 @@ 'use strict' | ||
if (!Array.isArray(validators)) { | ||
throw new Error('provided object must have a validators array list') | ||
} | ||
validators.forEach(validator => { | ||
@@ -18,0 +22,0 @@ const validatorFunction = validatorFunctions.get(validator.name) |
@@ -11,3 +11,3 @@ 'use strict' | ||
function ValidateHostManager ({path, type, validatorOptions} = {}) { | ||
function ValidateHostManager ({path, type, validatorOptions}) { | ||
debug('validate-host-manager')( | ||
@@ -28,3 +28,3 @@ `invoked with validator options: ${JSON.stringify(validatorOptions)}` | ||
function ValidateHttpsManager ({path, type, validatorOptions} = {}) { | ||
function ValidateHttpsManager ({path, type, validatorOptions}) { | ||
debug('validate-host-manager')( | ||
@@ -31,0 +31,0 @@ `invoked with validator options: ${JSON.stringify(validatorOptions)}` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
33630
340
2
Updatedlockfile-lint-api@^1.0.5