@websline/cms-view-utils 1.15.0 → 1.15.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/package.json +49 -48
- package/src/middleware/withParaglide.js +2 -1
package/package.json
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
"name": "@websline/cms-view-utils",
|
|
3
|
+
"version": "1.15.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"src",
|
|
7
|
+
"dist",
|
|
8
|
+
"!src/**/*.test.js"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./src/index.js",
|
|
12
|
+
"./server": "./src/server.js",
|
|
13
|
+
"./integration": "./src/integration/cmsRoutes.js",
|
|
14
|
+
"./routes/*": "./src/routes/*",
|
|
15
|
+
"./components/*": "./src/components/*",
|
|
16
|
+
"./preview-bridge": "./dist/previewBridge.global.js",
|
|
17
|
+
"./edit-scroll": "./dist/editScroll.global.js",
|
|
18
|
+
"./dist/*": "./dist/*"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"altcha-lib": "2.6.0",
|
|
22
|
+
"jsonwebtoken": "^9.0.3",
|
|
23
|
+
"tailwind-merge": "^3.7.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@eslint/compat": "^2.1.1",
|
|
27
|
+
"@eslint/js": "^10.0.1",
|
|
28
|
+
"eslint": "^10.12.0",
|
|
29
|
+
"eslint-config-prettier": "^10.1.8",
|
|
30
|
+
"eslint-plugin-svelte": "^3.23.0",
|
|
31
|
+
"globals": "^17.13.0",
|
|
32
|
+
"prettier": "^3.9.9",
|
|
33
|
+
"prettier-plugin-svelte": "^4.1.1",
|
|
34
|
+
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
35
|
+
"tsup": "^8.5.1",
|
|
36
|
+
"vitest": "^5.0.3"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"astro": ">=5",
|
|
40
|
+
"svelte": "^5.0.0"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup",
|
|
44
|
+
"prepublishOnly": "pnpm build",
|
|
45
|
+
"format": "prettier --write .",
|
|
46
|
+
"lint": "prettier --check . && eslint .",
|
|
47
|
+
"test": "vitest run"
|
|
48
|
+
},
|
|
49
|
+
"sideEffects": false
|
|
50
|
+
}
|
|
@@ -32,7 +32,8 @@ const withParaglide = ({
|
|
|
32
32
|
if (locale) {
|
|
33
33
|
const headers = new Headers(request.headers);
|
|
34
34
|
headers.set(headerName, locale);
|
|
35
|
-
|
|
35
|
+
// Building from the original would consume its body, which Astro's rewrite still needs.
|
|
36
|
+
request = new Request(request.clone(), { headers });
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
const response = await paraglideMiddleware(request, () => handler());
|