lockfile-lint-api
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.3.0](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint-api@2.2.0...lockfile-lint-api@2.3.0) (2019-11-07) | ||
### Features | ||
* **errors:** provide the actual bad string in ValidateScheme ([#20](https://github.com/lirantal/lockfile-lint/issues/20)) ([45fb7d2](https://github.com/lirantal/lockfile-lint/commit/45fb7d2)) | ||
# [2.2.0](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint-api@2.1.4...lockfile-lint-api@2.2.0) (2019-10-24) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "lockfile-lint-api", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Lint an npm or yarn lockfile to analyze and detect issues", | ||
@@ -176,3 +176,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "dfa2a3021c4567860d3a59f81efea0cef76ec61c" | ||
"gitHead": "abc71fa09a39ef2975648ac540eb4c57534ee463" | ||
} |
@@ -42,3 +42,5 @@ 'use strict' | ||
validationResult.errors.push({ | ||
message: `detected invalid host for package: ${packageName}`, | ||
message: `detected invalid host(s) for package: ${packageName}\n expected: ${allowedHosts}\n actual: ${ | ||
packageResolvedURL.host | ||
}\n`, | ||
package: packageName | ||
@@ -45,0 +47,0 @@ }) |
@@ -33,3 +33,5 @@ 'use strict' | ||
validationResult.errors.push({ | ||
message: `detected non-https protocol used for package: ${packageName}`, | ||
message: `detected invalid protocol for package: ${packageName}\n expected: ${HTTPS_PROTOCOL}\n actual: ${ | ||
packageResolvedURL.protocol | ||
}\n`, | ||
package: packageName | ||
@@ -36,0 +38,0 @@ }) |
@@ -32,7 +32,8 @@ 'use strict' | ||
} | ||
if (schemes.indexOf(packageResolvedURL.protocol) === -1) { | ||
// throw new Error(`detected invalid origin for package: ${packageName}`) | ||
validationResult.errors.push({ | ||
message: `detected invalid scheme for package: ${packageName}`, | ||
message: `detected invalid scheme(s) for package: ${packageName}\n expected: ${schemes}\n actual: ${ | ||
packageResolvedURL.protocol | ||
}\n`, | ||
package: packageName | ||
@@ -39,0 +40,0 @@ }) |
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
36121
316