gitea push

This commit is contained in:
2026-05-09 12:19:29 -06:00
parent 06113c95b8
commit 429461e985
1481 changed files with 74306 additions and 52475 deletions
+2 -2
View File
@@ -288,8 +288,8 @@ function withoutBase(input, base) {
if (nextChar && nextChar !== "/" && nextChar !== "?") {
return input;
}
const trimmed = input.slice(_base.length);
return trimmed[0] === "/" ? trimmed : "/" + trimmed;
const trimmed = input.slice(_base.length).replace(/^\/+/, "");
return "/" + trimmed;
}
function withQuery(input, query) {
const parsed = parseURL(input);
+1 -1
View File
@@ -529,7 +529,7 @@ declare function isEmptyURL(url: string): boolean;
*
* @group utils
*/
declare function isNonEmptyURL(url: string): boolean;
declare function isNonEmptyURL(url: string): boolean | "";
/**
* Joins multiple URL segments into a single URL.
*
+1 -1
View File
@@ -529,7 +529,7 @@ declare function isEmptyURL(url: string): boolean;
*
* @group utils
*/
declare function isNonEmptyURL(url: string): boolean;
declare function isNonEmptyURL(url: string): boolean | "";
/**
* Joins multiple URL segments into a single URL.
*
+1 -1
View File
@@ -529,7 +529,7 @@ declare function isEmptyURL(url: string): boolean;
*
* @group utils
*/
declare function isNonEmptyURL(url: string): boolean;
declare function isNonEmptyURL(url: string): boolean | "";
/**
* Joins multiple URL segments into a single URL.
*
+2 -2
View File
@@ -286,8 +286,8 @@ function withoutBase(input, base) {
if (nextChar && nextChar !== "/" && nextChar !== "?") {
return input;
}
const trimmed = input.slice(_base.length);
return trimmed[0] === "/" ? trimmed : "/" + trimmed;
const trimmed = input.slice(_base.length).replace(/^\/+/, "");
return "/" + trimmed;
}
function withQuery(input, query) {
const parsed = parseURL(input);
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "ufo",
"version": "1.6.3",
"version": "1.6.4",
"description": "URL utils for humans",
"repository": "unjs/ufo",
"license": "MIT",
@@ -31,18 +31,18 @@
"test": "pnpm lint && vitest run --typecheck"
},
"devDependencies": {
"@types/node": "^25.0.8",
"@vitest/coverage-v8": "^4.0.17",
"automd": "^0.4.2",
"@types/node": "^25.6.0",
"@vitest/coverage-v8": "^4.1.5",
"automd": "^0.4.3",
"changelogen": "^0.6.2",
"eslint": "^9.39.2",
"eslint": "^10.2.1",
"eslint-config-unjs": "^0.6.2",
"jiti": "^2.6.1",
"prettier": "^3.7.4",
"typescript": "^5.9.3",
"prettier": "^3.8.3",
"typescript": "^6.0.3",
"unbuild": "^3.6.1",
"untyped": "^2.0.0",
"vitest": "^4.0.17"
"vitest": "^4.1.5"
},
"packageManager": "pnpm@10.28.0"
"packageManager": "pnpm@10.33.2"
}