Comparing version 1.1.2 to 1.1.3
@@ -172,3 +172,3 @@ 'use strict'; | ||
// | ||
url.origin = url.protocol && url.host ? url.protocol +'//'+ url.host : 'null'; | ||
url.origin = url.protocol && url.host && url.protocol !== 'file:' ? url.protocol +'//'+ url.host : 'null'; | ||
url.href = url.toString(); | ||
@@ -239,3 +239,3 @@ } | ||
url.origin = url.protocol && url.host ? url.protocol +'//'+ url.host : 'null'; | ||
url.origin = url.protocol && url.host && url.protocol !== 'file:' ? url.protocol +'//'+ url.host : 'null'; | ||
url.href = url.toString(); | ||
@@ -242,0 +242,0 @@ |
{ | ||
"name": "url-parse", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"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
12408