Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lockfile-lint-api

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lockfile-lint-api - npm Package Compare versions

Comparing version 5.1.5 to 5.1.6

11

CHANGELOG.md

@@ -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 @@

4

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc