Comparing version 0.1.3 to 0.1.4
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.4](https://github.com/nuxt-contrib/ufo/compare/v0.1.3...v0.1.4) (2020-12-12) | ||
### Bug Fixes | ||
* **joinURL:** preserve params from input path ([8f8f10a](https://github.com/nuxt-contrib/ufo/commit/8f8f10af829046ad27696acec7b123fecd8dca43)) | ||
### [0.1.3](https://github.com/nuxt-contrib/ufo/compare/v0.1.2...v0.1.3) (2020-12-12) | ||
@@ -7,0 +14,0 @@ |
@@ -66,2 +66,7 @@ (function (global, factory) { | ||
const baseURL = parseURL(input0); | ||
for (const p of path) { | ||
p.url.searchParams.forEach((value, key) => { | ||
baseURL.url.searchParams.set(key, value); | ||
}); | ||
} | ||
baseURL.url.pathname = joinPath(baseURL.url.pathname, ...path.map((p) => p.url.pathname)); | ||
@@ -68,0 +73,0 @@ return normalizeURL(baseURL); |
@@ -64,2 +64,7 @@ 'use strict'; | ||
const baseURL = parseURL(input0); | ||
for (const p of path) { | ||
p.url.searchParams.forEach((value, key) => { | ||
baseURL.url.searchParams.set(key, value); | ||
}); | ||
} | ||
baseURL.url.pathname = joinPath(baseURL.url.pathname, ...path.map((p) => p.url.pathname)); | ||
@@ -66,0 +71,0 @@ return normalizeURL(baseURL); |
{ | ||
"name": "@nuxt/ufo", | ||
"version": "0.1.3", | ||
"version": "0.1.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
15705
251