lockfile-lint-api
Advanced tools
Comparing version 5.1.5 to 5.1.6
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.1.6](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint-api@5.1.5...lockfile-lint-api@5.1.6) (2020-05-13) | ||
### Bug Fixes | ||
* support host:port syntax ([#94](https://github.com/lirantal/lockfile-lint/issues/94)) ([37d8eef](https://github.com/lirantal/lockfile-lint/commit/37d8eef)) | ||
## [5.1.5](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint-api@5.1.2...lockfile-lint-api@5.1.5) (2020-05-13) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "lockfile-lint-api", | ||
"version": "5.1.5", | ||
"version": "5.1.6", | ||
"description": "Lint an npm or yarn lockfile to analyze and detect issues", | ||
@@ -177,3 +177,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "a9bf2112535cb68c71d50b9f0c326147aa50cdda" | ||
"gitHead": "fe4290d81a46e4353a351a09bd54cedbf33aa932" | ||
} |
@@ -36,8 +36,11 @@ 'use strict' | ||
const host = REGISTRY[allowedHost] ? REGISTRY[allowedHost] : allowedHost | ||
let hostValue | ||
let hostValue = host | ||
try { | ||
const parsedHost = new URL(host) | ||
hostValue = parsedHost.host | ||
if (parsedHost.host) { | ||
hostValue = parsedHost.host | ||
} | ||
} catch (error) { | ||
hostValue = host | ||
debug(`failed parsing a URL object from given host value so using as is: ${host}`) | ||
} | ||
@@ -47,2 +50,3 @@ | ||
}) | ||
const isPassing = allowedHosts.includes(packageResolvedURL.host) | ||
@@ -49,0 +53,0 @@ if (!isPassing) { |
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
45497
385