@sveltejs/kit 1.0.0-next.258 → 1.0.0-next.259
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 +9 -3
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/server/index.js
CHANGED
|
@@ -1555,9 +1555,15 @@ async function load_node({
|
|
|
1555
1555
|
|
|
1556
1556
|
// merge headers from request
|
|
1557
1557
|
for (const [key, value] of event.request.headers) {
|
|
1558
|
-
if (
|
|
1559
|
-
|
|
1560
|
-
|
|
1558
|
+
if (
|
|
1559
|
+
key !== 'authorization' &&
|
|
1560
|
+
key !== 'cookie' &&
|
|
1561
|
+
key !== 'host' &&
|
|
1562
|
+
key !== 'if-none-match' &&
|
|
1563
|
+
!opts.headers.has(key)
|
|
1564
|
+
) {
|
|
1565
|
+
opts.headers.set(key, value);
|
|
1566
|
+
}
|
|
1561
1567
|
}
|
|
1562
1568
|
|
|
1563
1569
|
opts.headers.set('referer', event.url.href);
|
package/dist/cli.js
CHANGED
|
@@ -995,7 +995,7 @@ async function launch(port, https) {
|
|
|
995
995
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
998
|
+
const prog = sade('svelte-kit').version('1.0.0-next.259');
|
|
999
999
|
|
|
1000
1000
|
prog
|
|
1001
1001
|
.command('dev')
|
|
@@ -1153,7 +1153,7 @@ async function check_port(port) {
|
|
|
1153
1153
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1154
1154
|
if (open) launch(port, https);
|
|
1155
1155
|
|
|
1156
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1156
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.259'}\n`));
|
|
1157
1157
|
|
|
1158
1158
|
const protocol = https ? 'https:' : 'http:';
|
|
1159
1159
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|