@sveltejs/kit 1.0.0-next.274 → 1.0.0-next.275
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 +26 -17
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/client/start.js
CHANGED
|
@@ -778,6 +778,7 @@ class Renderer {
|
|
|
778
778
|
|
|
779
779
|
if (props) {
|
|
780
780
|
node.uses.dependencies.add(url.href);
|
|
781
|
+
node.uses.url = true;
|
|
781
782
|
}
|
|
782
783
|
|
|
783
784
|
branch.push(node);
|
|
@@ -1291,7 +1292,9 @@ class Renderer {
|
|
|
1291
1292
|
/** @type {Record<string, any>} */
|
|
1292
1293
|
let props = {};
|
|
1293
1294
|
|
|
1294
|
-
|
|
1295
|
+
const is_shadow_page = has_shadow && i === a.length - 1;
|
|
1296
|
+
|
|
1297
|
+
if (is_shadow_page) {
|
|
1295
1298
|
const res = await fetch(
|
|
1296
1299
|
`${url.pathname}${url.pathname.endsWith('/') ? '' : '/'}__data.json${url.search}`,
|
|
1297
1300
|
{
|
|
@@ -1329,25 +1332,31 @@ class Renderer {
|
|
|
1329
1332
|
});
|
|
1330
1333
|
}
|
|
1331
1334
|
|
|
1332
|
-
if (node
|
|
1333
|
-
if (
|
|
1334
|
-
|
|
1335
|
-
}
|
|
1336
|
-
if (node.loaded.error) {
|
|
1337
|
-
status = node.loaded.status;
|
|
1338
|
-
error = node.loaded.error;
|
|
1335
|
+
if (node) {
|
|
1336
|
+
if (is_shadow_page) {
|
|
1337
|
+
node.uses.url = true;
|
|
1339
1338
|
}
|
|
1340
1339
|
|
|
1341
|
-
if (node.loaded
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1340
|
+
if (node.loaded) {
|
|
1341
|
+
if (node.loaded.fallthrough) {
|
|
1342
|
+
return;
|
|
1343
|
+
}
|
|
1344
|
+
if (node.loaded.error) {
|
|
1345
|
+
status = node.loaded.status;
|
|
1346
|
+
error = node.loaded.error;
|
|
1347
|
+
}
|
|
1348
1348
|
|
|
1349
|
-
|
|
1350
|
-
|
|
1349
|
+
if (node.loaded.redirect) {
|
|
1350
|
+
return {
|
|
1351
|
+
redirect: node.loaded.redirect,
|
|
1352
|
+
props: {},
|
|
1353
|
+
state: this.current
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
if (node.loaded.stuff) {
|
|
1358
|
+
stuff_changed = true;
|
|
1359
|
+
}
|
|
1351
1360
|
}
|
|
1352
1361
|
}
|
|
1353
1362
|
} else {
|
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.275');
|
|
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.275'}\n`));
|
|
1160
1160
|
|
|
1161
1161
|
const protocol = https ? 'https:' : 'http:';
|
|
1162
1162
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|