@sveltejs/kit 1.0.0-next.273 → 1.0.0-next.274
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 +3 -6
- package/assets/server/index.js +0 -1
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/client/start.js
CHANGED
|
@@ -736,11 +736,12 @@ class Renderer {
|
|
|
736
736
|
* status: number;
|
|
737
737
|
* error: Error;
|
|
738
738
|
* nodes: Array<Promise<CSRComponent>>;
|
|
739
|
-
* url: URL;
|
|
740
739
|
* params: Record<string, string>;
|
|
741
740
|
* }} selected
|
|
742
741
|
*/
|
|
743
|
-
async start({ status, error, nodes,
|
|
742
|
+
async start({ status, error, nodes, params }) {
|
|
743
|
+
const url = new URL(location.href);
|
|
744
|
+
|
|
744
745
|
/** @type {Array<import('./types').BranchNode | undefined>} */
|
|
745
746
|
const branch = [];
|
|
746
747
|
|
|
@@ -752,9 +753,6 @@ class Renderer {
|
|
|
752
753
|
|
|
753
754
|
let error_args;
|
|
754
755
|
|
|
755
|
-
// url.hash is empty when coming from the server
|
|
756
|
-
url.hash = window.location.hash;
|
|
757
|
-
|
|
758
756
|
try {
|
|
759
757
|
for (let i = 0; i < nodes.length; i += 1) {
|
|
760
758
|
const is_leaf = i === nodes.length - 1;
|
|
@@ -1483,7 +1481,6 @@ class Renderer {
|
|
|
1483
1481
|
* status: number;
|
|
1484
1482
|
* error: Error;
|
|
1485
1483
|
* nodes: Array<Promise<import('types/internal').CSRComponent>>;
|
|
1486
|
-
* url: URL;
|
|
1487
1484
|
* params: Record<string, string>;
|
|
1488
1485
|
* };
|
|
1489
1486
|
* }} opts
|
package/assets/server/index.js
CHANGED
package/dist/cli.js
CHANGED
|
@@ -998,7 +998,7 @@ async function launch(port, https) {
|
|
|
998
998
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
1001
|
+
const prog = sade('svelte-kit').version('1.0.0-next.274');
|
|
1002
1002
|
|
|
1003
1003
|
prog
|
|
1004
1004
|
.command('dev')
|
|
@@ -1156,7 +1156,7 @@ async function check_port(port) {
|
|
|
1156
1156
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1157
1157
|
if (open) launch(port, https);
|
|
1158
1158
|
|
|
1159
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1159
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.274'}\n`));
|
|
1160
1160
|
|
|
1161
1161
|
const protocol = https ? 'https:' : 'http:';
|
|
1162
1162
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|