@metascraper/helpers
Advanced tools
Comparing version 3.10.7 to 3.10.8
'use strict' | ||
const condenseWhitespace = require('condense-whitespace') | ||
const { trim, flow, isEmpty } = require('lodash') | ||
const condenseWhitespace = require('condense-whitespace') | ||
const isRelativeUrl = require('is-relative-url') | ||
@@ -25,7 +25,3 @@ const { resolve: resolveUrl } = require('url') | ||
const getAbsoluteUrl = (baseUrl, relativePath = '') => ( | ||
isRelativeUrl(relativePath) | ||
? resolveUrl(baseUrl, relativePath) | ||
: relativePath | ||
) | ||
const getAbsoluteUrl = (baseUrl, relativePath = '') => resolveUrl(baseUrl, relativePath) | ||
@@ -32,0 +28,0 @@ const getUrl = (baseUrl, relativePath, opts) => ( |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://metascraper.js.org", | ||
"version": "3.10.7", | ||
"version": "3.10.8", | ||
"main": "src/index.js", | ||
@@ -22,4 +22,4 @@ "author": { | ||
"is-relative-url": "~2.0.0", | ||
"lodash": "~4.17.4", | ||
"normalize-url": "~2.0.0", | ||
"lodash": "~4.17.10", | ||
"normalize-url": "github:microlinkhq/normalize-url", | ||
"smartquotes": "~2.3.1", | ||
@@ -26,0 +26,0 @@ "to-title-case": "~1.0.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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
3486
46
1
- Removeddecode-uri-component@0.2.2(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removednormalize-url@2.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprepend-http@2.0.0(transitive)
- Removedquery-string@5.1.1(transitive)
- Removedsort-keys@2.0.0(transitive)
- Removedstrict-uri-encode@1.1.0(transitive)
Updatedlodash@~4.17.10