@sveltejs/kit 1.0.0-next.265 → 1.0.0-next.266
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/assets/server/index.js +3 -1
- package/dist/cli.js +5 -4
- package/package.json +1 -1
package/assets/server/index.js
CHANGED
|
@@ -147,7 +147,9 @@ async function render_endpoint(event, mod) {
|
|
|
147
147
|
|
|
148
148
|
const { status = 200, body = {} } = response;
|
|
149
149
|
const headers =
|
|
150
|
-
response.headers instanceof Headers
|
|
150
|
+
response.headers instanceof Headers
|
|
151
|
+
? new Headers(response.headers)
|
|
152
|
+
: to_headers(response.headers);
|
|
151
153
|
|
|
152
154
|
const type = headers.get('content-type');
|
|
153
155
|
|
package/dist/cli.js
CHANGED
|
@@ -620,7 +620,8 @@ const options = object(
|
|
|
620
620
|
concurrency: number(1),
|
|
621
621
|
crawl: boolean(true),
|
|
622
622
|
createIndexFiles: error(
|
|
623
|
-
(keypath) =>
|
|
623
|
+
(keypath) =>
|
|
624
|
+
`${keypath} has been removed — it is now controlled by the trailingSlash option. See https://kit.svelte.dev/docs/configuration#trailingslash`
|
|
624
625
|
),
|
|
625
626
|
enabled: boolean(true),
|
|
626
627
|
entries: validate(['*'], (input, keypath) => {
|
|
@@ -677,7 +678,7 @@ const options = object(
|
|
|
677
678
|
|
|
678
679
|
serviceWorker: object({
|
|
679
680
|
register: boolean(true),
|
|
680
|
-
files: fun((filename) => !/\.
|
|
681
|
+
files: fun((filename) => !/\.DS_Store/.test(filename))
|
|
681
682
|
}),
|
|
682
683
|
|
|
683
684
|
// TODO remove this for 1.0
|
|
@@ -997,7 +998,7 @@ async function launch(port, https) {
|
|
|
997
998
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
998
999
|
}
|
|
999
1000
|
|
|
1000
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
1001
|
+
const prog = sade('svelte-kit').version('1.0.0-next.266');
|
|
1001
1002
|
|
|
1002
1003
|
prog
|
|
1003
1004
|
.command('dev')
|
|
@@ -1155,7 +1156,7 @@ async function check_port(port) {
|
|
|
1155
1156
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1156
1157
|
if (open) launch(port, https);
|
|
1157
1158
|
|
|
1158
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1159
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.266'}\n`));
|
|
1159
1160
|
|
|
1160
1161
|
const protocol = https ? 'https:' : 'http:';
|
|
1161
1162
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|