@sveltejs/kit 1.0.0-next.294 → 1.0.0-next.295
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/client/start.js +4 -5
- package/dist/chunks/index2.js +2 -2
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/client/start.js
CHANGED
|
@@ -864,11 +864,6 @@ function create_client({ target, session, base, trailing_slash }) {
|
|
|
864
864
|
}
|
|
865
865
|
);
|
|
866
866
|
|
|
867
|
-
if (res.status === 204) {
|
|
868
|
-
// fallthrough
|
|
869
|
-
return;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
867
|
if (res.ok) {
|
|
873
868
|
const redirect = res.headers.get('x-sveltekit-location');
|
|
874
869
|
|
|
@@ -880,6 +875,10 @@ function create_client({ target, session, base, trailing_slash }) {
|
|
|
880
875
|
};
|
|
881
876
|
}
|
|
882
877
|
|
|
878
|
+
if (res.status === 204) {
|
|
879
|
+
// fallthrough
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
883
882
|
props = await res.json();
|
|
884
883
|
} else {
|
|
885
884
|
status = res.status;
|
package/dist/chunks/index2.js
CHANGED
|
@@ -368,7 +368,7 @@ export class Server {
|
|
|
368
368
|
|
|
369
369
|
respond(request, options = {}) {
|
|
370
370
|
if (!(request instanceof Request)) {
|
|
371
|
-
throw new Error('The first argument to
|
|
371
|
+
throw new Error('The first argument to server.respond must be a Request object. See https://github.com/sveltejs/kit/pull/3384 for details');
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
return respond(request, this.options, options);
|
|
@@ -431,7 +431,7 @@ async function build_server(
|
|
|
431
431
|
const relative = path__default.relative(config.kit.files.routes, resolved);
|
|
432
432
|
|
|
433
433
|
const name = relative.startsWith('..')
|
|
434
|
-
? posixify(path__default.join('entries/
|
|
434
|
+
? posixify(path__default.join('entries/fallbacks', path__default.basename(file)))
|
|
435
435
|
: posixify(path__default.join('entries/pages', relative));
|
|
436
436
|
input[name] = resolved;
|
|
437
437
|
});
|
package/dist/cli.js
CHANGED
|
@@ -870,7 +870,7 @@ async function launch(port, https) {
|
|
|
870
870
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
873
|
+
const prog = sade('svelte-kit').version('1.0.0-next.295');
|
|
874
874
|
|
|
875
875
|
prog
|
|
876
876
|
.command('dev')
|
|
@@ -1043,7 +1043,7 @@ async function check_port(port) {
|
|
|
1043
1043
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1044
1044
|
if (open) launch(port, https);
|
|
1045
1045
|
|
|
1046
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1046
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.295'}\n`));
|
|
1047
1047
|
|
|
1048
1048
|
const protocol = https ? 'https:' : 'http:';
|
|
1049
1049
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|