@verbaly/sveltekit 0.48.0 → 0.50.0
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/dist/index.d.ts +6 -6
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Routing, SwitchLocaleOptions, switchLocale } from "verbaly";
|
|
2
2
|
//#region src/index.d.ts
|
|
3
|
-
declare const LOCALE_COOKIE: string;
|
|
3
|
+
export declare const LOCALE_COOKIE: string;
|
|
4
4
|
interface HandleEvent {
|
|
5
5
|
request: Request;
|
|
6
6
|
url: URL;
|
|
@@ -21,21 +21,21 @@ interface HandleInput {
|
|
|
21
21
|
event: HandleEvent;
|
|
22
22
|
resolve(event: HandleEvent, opts?: ResolveOptions): Response | Promise<Response>;
|
|
23
23
|
}
|
|
24
|
-
interface VerbalyHandleOptions {
|
|
24
|
+
export interface VerbalyHandleOptions {
|
|
25
25
|
locales: string[];
|
|
26
26
|
fallback?: string;
|
|
27
27
|
cookie?: string | false;
|
|
28
28
|
routing?: Routing;
|
|
29
29
|
base?: string;
|
|
30
30
|
}
|
|
31
|
-
declare function verbalyHandle(options: VerbalyHandleOptions): ({ event, resolve }: HandleInput) => Response | Promise<Response>;
|
|
32
|
-
interface VerbalyRerouteOptions {
|
|
31
|
+
export declare function verbalyHandle(options: VerbalyHandleOptions): ({ event, resolve }: HandleInput) => Response | Promise<Response>;
|
|
32
|
+
export interface VerbalyRerouteOptions {
|
|
33
33
|
locales: string[];
|
|
34
34
|
base?: string;
|
|
35
35
|
}
|
|
36
|
-
declare function verbalyReroute(options: VerbalyRerouteOptions): ({ url }: {
|
|
36
|
+
export declare function verbalyReroute(options: VerbalyRerouteOptions): ({ url }: {
|
|
37
37
|
url: URL;
|
|
38
38
|
}) => string;
|
|
39
39
|
//#endregion
|
|
40
|
-
export {
|
|
40
|
+
export { type SwitchLocaleOptions, switchLocale };
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/sveltekit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "SvelteKit SSR integration for Verbaly: per-request locale negotiation and flash-free hydration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"verbaly": "^0.
|
|
43
|
+
"verbaly": "^0.50.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@sveltejs/kit": "^2.70.3",
|
|
47
47
|
"svelte": "^5.57.0",
|
|
48
|
-
"verbaly": "^0.
|
|
48
|
+
"verbaly": "^0.50.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsdown",
|