@sveltejs/kit 1.0.0-next.302 → 1.0.0-next.303
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 +5 -1
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/client/start.js
CHANGED
|
@@ -563,7 +563,11 @@ function create_client({ target, session, base, trailing_slash }) {
|
|
|
563
563
|
const current_token = (token = {});
|
|
564
564
|
let navigation_result = intent && (await load_route(intent, no_cache));
|
|
565
565
|
|
|
566
|
-
if (
|
|
566
|
+
if (
|
|
567
|
+
!navigation_result &&
|
|
568
|
+
url.origin === location.origin &&
|
|
569
|
+
url.pathname === location.pathname
|
|
570
|
+
) {
|
|
567
571
|
// this could happen in SPA fallback mode if the user navigated to
|
|
568
572
|
// `/non-existent-page`. if we fall back to reloading the page, it
|
|
569
573
|
// will create an infinite loop. so whereas we normally handle
|
package/dist/cli.js
CHANGED
|
@@ -869,7 +869,7 @@ async function launch(port, https) {
|
|
|
869
869
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
872
|
+
const prog = sade('svelte-kit').version('1.0.0-next.303');
|
|
873
873
|
|
|
874
874
|
prog
|
|
875
875
|
.command('dev')
|
|
@@ -1047,7 +1047,7 @@ async function check_port(port) {
|
|
|
1047
1047
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1048
1048
|
if (open) launch(port, https);
|
|
1049
1049
|
|
|
1050
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1050
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.303'}\n`));
|
|
1051
1051
|
|
|
1052
1052
|
const protocol = https ? 'https:' : 'http:';
|
|
1053
1053
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|