@yapyak/sveltekit 0.0.18 → 0.0.19
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 +1 -3
- package/dist/index.js +1 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Handle } from "@sveltejs/kit/hooks";
|
|
2
|
-
//#region src/handle.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Handle for SvelteKit. Provides yapyak's per-request locale context.
|
|
5
4
|
*
|
|
@@ -22,5 +21,4 @@ import { Handle } from "@sveltejs/kit/hooks";
|
|
|
22
21
|
* export const handle = sequence(yapyakHandle, authHandle);
|
|
23
22
|
* ```
|
|
24
23
|
*/
|
|
25
|
-
export declare const handle: Handle;
|
|
26
|
-
//#endregion
|
|
24
|
+
export declare const handle: Handle;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getLocale, getTextDirection } from "yapyak";
|
|
2
2
|
import { withResponse } from "yapyak/adapter";
|
|
3
|
-
|
|
3
|
+
// src/handle.ts
|
|
4
4
|
const LANG_PLACEHOLDER = "%yapyak.lang%";
|
|
5
5
|
const DIR_PLACEHOLDER = "%yapyak.dir%";
|
|
6
6
|
/**
|
|
@@ -29,5 +29,4 @@ const handle = ({ event, resolve }) => withResponse(event.request, () => resolve
|
|
|
29
29
|
const locale = getLocale();
|
|
30
30
|
return html.replaceAll(LANG_PLACEHOLDER, locale).replaceAll(DIR_PLACEHOLDER, getTextDirection(locale));
|
|
31
31
|
} }));
|
|
32
|
-
//#endregion
|
|
33
32
|
export { handle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yapyak/sveltekit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "SvelteKit adapter for yapyak.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@sveltejs/kit": "3.0
|
|
36
|
-
"svelte": "5.57.
|
|
37
|
-
"tsdown": "0.23.
|
|
35
|
+
"@sveltejs/kit": "3.1.0",
|
|
36
|
+
"svelte": "5.57.2",
|
|
37
|
+
"tsdown": "0.23.2",
|
|
38
38
|
"typescript": "6.0.3",
|
|
39
|
-
"vitest": "5.0.
|
|
39
|
+
"vitest": "5.0.5",
|
|
40
40
|
"@yapyak/tsdown-config": "0.0.0",
|
|
41
41
|
"@yapyak/typescript-config": "0.0.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@sveltejs/kit": ">=3",
|
|
45
|
-
"yapyak": "0.0.
|
|
45
|
+
"yapyak": "0.0.19"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
|
-
"node": ">=22.
|
|
48
|
+
"node": ">=22.23.4"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|