@sveltejs/kit 1.0.0-next.268 → 1.0.0-next.269
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 +7 -2
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/server/index.js
CHANGED
|
@@ -1550,6 +1550,7 @@ async function load_node({
|
|
|
1550
1550
|
? await load_shadow_data(
|
|
1551
1551
|
/** @type {import('types/internal').SSRPage} */ (route),
|
|
1552
1552
|
event,
|
|
1553
|
+
options,
|
|
1553
1554
|
!!state.prerender
|
|
1554
1555
|
)
|
|
1555
1556
|
: {};
|
|
@@ -1854,10 +1855,11 @@ async function load_node({
|
|
|
1854
1855
|
*
|
|
1855
1856
|
* @param {import('types/internal').SSRPage} route
|
|
1856
1857
|
* @param {import('types/hooks').RequestEvent} event
|
|
1858
|
+
* @param {import('types/internal').SSROptions} options
|
|
1857
1859
|
* @param {boolean} prerender
|
|
1858
1860
|
* @returns {Promise<import('types/endpoint').ShadowData>}
|
|
1859
1861
|
*/
|
|
1860
|
-
async function load_shadow_data(route, event, prerender) {
|
|
1862
|
+
async function load_shadow_data(route, event, options, prerender) {
|
|
1861
1863
|
if (!route.shadow) return {};
|
|
1862
1864
|
|
|
1863
1865
|
try {
|
|
@@ -1934,9 +1936,12 @@ async function load_shadow_data(route, event, prerender) {
|
|
|
1934
1936
|
|
|
1935
1937
|
return data;
|
|
1936
1938
|
} catch (e) {
|
|
1939
|
+
const error = coalesce_to_error(e);
|
|
1940
|
+
options.handle_error(error, event);
|
|
1941
|
+
|
|
1937
1942
|
return {
|
|
1938
1943
|
status: 500,
|
|
1939
|
-
error
|
|
1944
|
+
error
|
|
1940
1945
|
};
|
|
1941
1946
|
}
|
|
1942
1947
|
}
|
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.269');
|
|
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.269'}\n`));
|
|
1160
1160
|
|
|
1161
1161
|
const protocol = https ? 'https:' : 'http:';
|
|
1162
1162
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|