feat: refine FluentUrl class and enhance URL serializer with improved parsing logic

This commit is contained in:
2026-02-22 20:10:42 -05:00
parent 80065fee88
commit d2dbb6f93e
3 changed files with 73 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ import type {
} from '@/shared/types'
export class FluentUrl {
private config: FluentUrlConfig
private readonly config: FluentUrlConfig
private readonly protocol?: string
private readonly hostname?: string
private readonly paths: string[]
@@ -76,7 +76,7 @@ export class FluentUrl {
public clone(
options?: Partial<FLuentUrlPlainObject>,
config?: FluentUrlConfig,
config?: Partial<FluentUrlConfig>,
): FluentUrl {
return new FluentUrl(
mergeOptions(