Comparing version 0.6.3 to 0.6.4
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.6.4](https://github.com/nuxt-contrib/ufo/compare/v0.6.3...v0.6.4) (2021-02-08) | ||
### Bug Fixes | ||
* **joinURL:** don't allow double '//' when single slashes are passed ([#13](https://github.com/nuxt-contrib/ufo/issues/13)) ([e44fe2b](https://github.com/nuxt-contrib/ufo/commit/e44fe2bc3f8aa65a7c6a7c8d70458b8ccd73a979)) | ||
### [0.6.3](https://github.com/nuxt-contrib/ufo/compare/v0.6.2...v0.6.3) (2021-02-08) | ||
@@ -7,0 +14,0 @@ |
@@ -291,3 +291,6 @@ 'use strict'; | ||
for (const i of input) { | ||
url2 = withTrailingSlash(url2) + withoutLeadingSlash(i); | ||
const part = withoutLeadingSlash(i); | ||
if (part !== "/") { | ||
url2 = withTrailingSlash(url2) + part; | ||
} | ||
} | ||
@@ -294,0 +297,0 @@ return url2; |
{ | ||
"name": "ufo", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "URL utils for humans", | ||
@@ -5,0 +5,0 @@ "repository": "nuxt-contrib/ufo", |
Sorry, the diff of this file is not supported yet
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
39325
862