normalize-url
Advanced tools
Comparing version 3.0.0 to 3.0.1
'use strict'; | ||
const {URL} = require('url'); | ||
// TODO: Use the `URL` global when targeting Node.js 10 | ||
const URLParser = typeof URL === 'undefined' ? require('url').URL : URL; | ||
@@ -30,3 +31,3 @@ function testParameter(name, filters) { | ||
const urlObj = new URL(urlString); | ||
const urlObj = new URLParser(urlString); | ||
@@ -33,0 +34,0 @@ if (opts.normalizeHttps && urlObj.protocol === 'https:') { |
{ | ||
"name": "normalize-url", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Normalize a URL", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
8122
84