Comparing version 1.1.0 to 1.1.1
'use strict'; | ||
var slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//; | ||
/** | ||
* These properties should not be copied or inherited from. This is only needed | ||
* for all non blob URL's as the a blob URL does not include a hash, only the | ||
* for all non blob URL's as a blob URL does not include a hash, only the | ||
* origin. | ||
@@ -39,5 +41,11 @@ * | ||
for (key in ignore) delete finaldestination[key]; | ||
} else if ('object' === type) for (key in loc) { | ||
if (key in ignore) continue; | ||
finaldestination[key] = loc[key]; | ||
} else if ('object' === type) { | ||
for (key in loc) { | ||
if (key in ignore) continue; | ||
finaldestination[key] = loc[key]; | ||
} | ||
if (finaldestination.slashes === undefined) { | ||
finaldestination.slashes = slashes.test(loc.href); | ||
} | ||
} | ||
@@ -44,0 +52,0 @@ |
{ | ||
"name": "url-parse", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17595
279
0