@sveltejs/kit 1.0.0-next.550 → 1.0.0-next.551
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/kit",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.551",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/sveltejs/kit",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@types/node": "^16.11.68",
|
|
32
32
|
"@types/sade": "^1.7.4",
|
|
33
33
|
"@types/set-cookie-parser": "^2.4.2",
|
|
34
|
-
"marked": "^4.
|
|
34
|
+
"marked": "^4.2.2",
|
|
35
35
|
"rollup": "^2.79.1",
|
|
36
36
|
"svelte": "^3.52.0",
|
|
37
37
|
"svelte-preprocess": "^4.10.7",
|
|
@@ -236,7 +236,10 @@ export async function dev(vite, vite_config, svelte_config) {
|
|
|
236
236
|
dev: true,
|
|
237
237
|
etag: true,
|
|
238
238
|
maxAge: 0,
|
|
239
|
-
extensions: []
|
|
239
|
+
extensions: [],
|
|
240
|
+
setHeaders: (res) => {
|
|
241
|
+
res.setHeader('access-control-allow-origin', '*');
|
|
242
|
+
}
|
|
240
243
|
});
|
|
241
244
|
|
|
242
245
|
vite.middlewares.use(async (req, res, next) => {
|
|
@@ -1202,13 +1202,13 @@ export function create_client({ target, base, trailing_slash }) {
|
|
|
1202
1202
|
|
|
1203
1203
|
goto: (href, opts = {}) => {
|
|
1204
1204
|
// TODO remove for 1.0
|
|
1205
|
-
if ('keepfocus' in opts) {
|
|
1205
|
+
if ('keepfocus' in opts && !('keepFocus' in opts)) {
|
|
1206
1206
|
throw new Error(
|
|
1207
1207
|
'`keepfocus` has been renamed to `keepFocus` (note the difference in casing)'
|
|
1208
1208
|
);
|
|
1209
1209
|
}
|
|
1210
1210
|
|
|
1211
|
-
if ('noscroll' in opts) {
|
|
1211
|
+
if ('noscroll' in opts && !('noScroll' in opts)) {
|
|
1212
1212
|
throw new Error(
|
|
1213
1213
|
'`noscroll` has been renamed to `noScroll` (note the difference in casing)'
|
|
1214
1214
|
);
|