lockfile-lint-api
Advanced tools
Comparing version 5.0.11 to 5.0.12
@@ -6,2 +6,10 @@ # Change Log | ||
## [5.0.12](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint-api@5.0.11...lockfile-lint-api@5.0.12) (2020-02-10) | ||
**Note:** Version bump only for package lockfile-lint-api | ||
## [5.0.11](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint-api@5.0.10...lockfile-lint-api@5.0.11) (2020-02-10) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "lockfile-lint-api", | ||
"version": "5.0.11", | ||
"version": "5.0.12", | ||
"description": "Lint an npm or yarn lockfile to analyze and detect issues", | ||
@@ -177,3 +177,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "7af59d72446a5e66bae3a23d7235984350d5a3e2" | ||
"gitHead": "03b557f0662d711e10a9f268ccaa5aab0abdc0cb" | ||
} |
@@ -41,3 +41,3 @@ 'use strict' | ||
if (allowedHosts.indexOf(packageResolvedURL.host) === -1) { | ||
if (!allowedHosts.includes(packageResolvedURL.host)) { | ||
if (!packageResolvedURL.host && options && options.emptyHostname) { | ||
@@ -44,0 +44,0 @@ debug(`detected empty hostname but allowing because emptyHostname is not false`) |
@@ -34,3 +34,3 @@ 'use strict' | ||
if (packageResolvedURL.protocol && schemes.indexOf(packageResolvedURL.protocol) === -1) { | ||
if (packageResolvedURL.protocol && !schemes.includes(packageResolvedURL.protocol)) { | ||
validationResult.errors.push({ | ||
@@ -37,0 +37,0 @@ message: `detected invalid scheme(s) for package: ${packageName}\n expected: ${schemes}\n actual: ${ |
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
41493