Comparing version 0.6.5 to 0.6.6
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.6.6](https://github.com/nuxt-contrib/ufo/compare/v0.6.5...v0.6.6) (2021-02-10) | ||
### Bug Fixes | ||
* bail base utils if base is / or empty ([bb09b06](https://github.com/nuxt-contrib/ufo/commit/bb09b0655d936fe06cfdafda8e5dcd8fcc230f06)) | ||
### [0.6.5](https://github.com/nuxt-contrib/ufo/compare/v0.6.4...v0.6.5) (2021-02-10) | ||
@@ -7,0 +14,0 @@ |
@@ -286,2 +286,5 @@ 'use strict'; | ||
function withBase(input, base) { | ||
if (!base || base === "/") { | ||
return input; | ||
} | ||
const _base = withoutTrailingSlash(base); | ||
@@ -294,2 +297,5 @@ if (input.startsWith(_base)) { | ||
function withoutBase(input, base) { | ||
if (!base || base === "/") { | ||
return input; | ||
} | ||
const _base = withoutTrailingSlash(base); | ||
@@ -296,0 +302,0 @@ if (input.startsWith(_base)) { |
{ | ||
"name": "ufo", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"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
41529
922