@i18n-micro/route-strategy 1.1.30 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -190
- package/dist/generate.d.cts +33 -0
- package/dist/generate.d.ts +33 -0
- package/dist/index.cjs +1 -5
- package/dist/index.d.cts +5 -6
- package/dist/index.d.ts +5 -6
- package/dist/index.mjs +402 -558
- package/dist/paths.d.cts +32 -0
- package/dist/paths.d.ts +32 -0
- package/dist/route-generator.d.cts +58 -0
- package/dist/route-generator.d.ts +35 -36
- package/dist/rules.d.cts +35 -0
- package/dist/rules.d.ts +35 -0
- package/package.json +21 -21
- package/dist/core/builder.d.ts +0 -31
- package/dist/core/context.d.ts +0 -53
- package/dist/core/localization-disabled.d.ts +0 -3
- package/dist/core/localized-paths.d.ts +0 -20
- package/dist/locale-route-access.d.ts +0 -6
- package/dist/strategies/abstract.d.ts +0 -47
- package/dist/strategies/factory.d.ts +0 -3
- package/dist/strategies/no-prefix.d.ts +0 -13
- package/dist/strategies/prefix-and-default.d.ts +0 -8
- package/dist/strategies/prefix-except-default.d.ts +0 -12
- package/dist/strategies/prefix.d.ts +0 -7
- package/dist/strategies/types.d.ts +0 -17
- package/dist/utils/common.d.ts +0 -9
- package/dist/utils/index.d.cts +0 -3
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/locales.d.ts +0 -9
- package/dist/utils/path.d.ts +0 -8
package/dist/utils/path.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function normalizeRouteKey(key: string): string;
|
|
2
|
-
export declare const normalizePath: (routePath: string) => string;
|
|
3
|
-
export declare const removeLeadingSlash: (routePath: string) => string;
|
|
4
|
-
export declare function joinPath(...segments: string[]): string;
|
|
5
|
-
/** Alias paths for percent-encoded variants of non-ASCII localized routes. */
|
|
6
|
-
export declare function buildEncodedPathAliases(routePath: string): string[];
|
|
7
|
-
export declare function buildFullPath(locale: string | string[], basePath: string, customRegex?: string | RegExp): string;
|
|
8
|
-
export declare function buildFullPathNoPrefix(basePath: string): string;
|