@sveltejs/kit 1.0.0-next.242 → 1.0.0-next.243
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 +2 -2
- package/dist/chunks/index.js +2 -2
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/server/index.js
CHANGED
|
@@ -1018,6 +1018,7 @@ async function load_node({
|
|
|
1018
1018
|
|
|
1019
1019
|
const resolved = resolve(event.url.pathname, requested.split('?')[0]);
|
|
1020
1020
|
|
|
1021
|
+
/** @type {Response} */
|
|
1021
1022
|
let response;
|
|
1022
1023
|
|
|
1023
1024
|
// handle fetch requests for static assets. e.g. prebaked data, etc.
|
|
@@ -1048,7 +1049,6 @@ async function load_node({
|
|
|
1048
1049
|
} else if (is_root_relative(resolved)) {
|
|
1049
1050
|
const relative = resolved;
|
|
1050
1051
|
|
|
1051
|
-
// TODO: fix type https://github.com/node-fetch/node-fetch/issues/1113
|
|
1052
1052
|
if (opts.credentials !== 'omit') {
|
|
1053
1053
|
uses_credentials = true;
|
|
1054
1054
|
|
|
@@ -1090,7 +1090,7 @@ async function load_node({
|
|
|
1090
1090
|
} else {
|
|
1091
1091
|
// we can't load the endpoint from our own manifest,
|
|
1092
1092
|
// so we need to make an actual HTTP request
|
|
1093
|
-
|
|
1093
|
+
response = await fetch(new URL(requested, event.url).href, {
|
|
1094
1094
|
method: opts.method || 'GET',
|
|
1095
1095
|
headers: opts.headers
|
|
1096
1096
|
});
|
package/dist/chunks/index.js
CHANGED
|
@@ -912,6 +912,7 @@ async function load_node({
|
|
|
912
912
|
|
|
913
913
|
const resolved = resolve(event.url.pathname, requested.split('?')[0]);
|
|
914
914
|
|
|
915
|
+
/** @type {Response} */
|
|
915
916
|
let response;
|
|
916
917
|
|
|
917
918
|
// handle fetch requests for static assets. e.g. prebaked data, etc.
|
|
@@ -942,7 +943,6 @@ async function load_node({
|
|
|
942
943
|
} else if (is_root_relative(resolved)) {
|
|
943
944
|
const relative = resolved;
|
|
944
945
|
|
|
945
|
-
// TODO: fix type https://github.com/node-fetch/node-fetch/issues/1113
|
|
946
946
|
if (opts.credentials !== 'omit') {
|
|
947
947
|
uses_credentials = true;
|
|
948
948
|
|
|
@@ -984,7 +984,7 @@ async function load_node({
|
|
|
984
984
|
} else {
|
|
985
985
|
// we can't load the endpoint from our own manifest,
|
|
986
986
|
// so we need to make an actual HTTP request
|
|
987
|
-
|
|
987
|
+
response = await fetch(new URL(requested, event.url).href, {
|
|
988
988
|
method: opts.method || 'GET',
|
|
989
989
|
headers: opts.headers
|
|
990
990
|
});
|
package/dist/cli.js
CHANGED
|
@@ -933,7 +933,7 @@ async function launch(port, https) {
|
|
|
933
933
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
936
|
+
const prog = sade('svelte-kit').version('1.0.0-next.243');
|
|
937
937
|
|
|
938
938
|
prog
|
|
939
939
|
.command('dev')
|
|
@@ -1085,7 +1085,7 @@ async function check_port(port) {
|
|
|
1085
1085
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1086
1086
|
if (open) launch(port, https);
|
|
1087
1087
|
|
|
1088
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1088
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.243'}\n`));
|
|
1089
1089
|
|
|
1090
1090
|
const protocol = https ? 'https:' : 'http:';
|
|
1091
1091
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|