Comparing version 1.1.6 to 1.1.7
@@ -292,3 +292,4 @@ 'use strict'; | ||
case 'pathname': | ||
url.pathname = value.charAt(0) === '/' ? value : '/' + value; | ||
url.pathname = value.length && value.charAt(0) !== '/' ? '/' + value : value; | ||
break; | ||
@@ -295,0 +296,0 @@ |
{ | ||
"name": "url-parse", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Small footprint URL parser that works seamlessly across Node.js and browser environments", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
19568