@metascraper/helpers
Advanced tools
Comparing version 3.3.0 to 3.4.1
@@ -7,4 +7,4 @@ 'use strict' | ||
const sanetizeUrl = require('normalize-url') | ||
const { flow, isString } = require('lodash') | ||
const smartquotes = require('smartquotes') | ||
const { flow, isNil } = require('lodash') | ||
const toTitle = require('to-title-case') | ||
@@ -14,3 +14,3 @@ const urlRegex = require('url-regex') | ||
const isUrl = (url, {relative = true} = {}) => { | ||
if (isNil(url)) return false | ||
if (!isString(url)) return false | ||
if (!relative) return urlRegex().test(url) | ||
@@ -17,0 +17,0 @@ return isRelativeUrl(url) || urlRegex().test(url) |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://metascraper.js.org", | ||
"version": "3.3.0", | ||
"version": "3.4.1", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
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
3038