lirantal / lockfile-lint

Lint an npm or yarn lockfile to analyze and detect security issues
Apache License 2.0
781 stars 35 forks source link

fix(hostvalidator): support full urls for host #88

Closed lirantal closed 4 years ago

lirantal commented 4 years ago

Description

Support URLs provided for the host parameter by parsing them for the actual host.

Types of changes

codecov-io commented 4 years ago

Codecov Report

Merging #88 into master will decrease coverage by 0.42%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##            master      #88      +/-   ##
===========================================
- Coverage   100.00%   99.57%   -0.43%     
===========================================
  Files            8       11       +3     
  Lines          161      235      +74     
  Branches        33       40       +7     
===========================================
+ Hits           161      234      +73     
- Misses           0        1       +1     
Impacted Files Coverage Δ
...s/lockfile-lint-api/src/validators/ValidateHost.js 100.00% <100.00%> (ø)
packages/lockfile-lint/src/config.js 100.00% <0.00%> (ø)
packages/lockfile-lint/src/main.js 95.65% <0.00%> (ø)
packages/lockfile-lint/src/validators/index.js 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3ff6eb8...f6f6fae. Read the comment docs.