@sveltejs/kit 1.0.0-next.232 → 1.0.0-next.233
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/app/navigation.js +1 -3
- package/assets/client/singletons.js +5 -2
- package/assets/server/index.js +2 -2
- package/dist/chunks/index.js +2 -2
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/app/navigation.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { renderer, router
|
|
1
|
+
import { renderer, router } from '../client/singletons.js';
|
|
2
2
|
import { g as get_base_uri } from '../chunks/utils.js';
|
|
3
3
|
|
|
4
|
-
const router = /** @type {import('../client/router').Router} */ (router$1);
|
|
5
|
-
|
|
6
4
|
/**
|
|
7
5
|
* @param {string} name
|
|
8
6
|
*/
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* The router is nullable, but not typed that way for ease-of-use
|
|
3
|
+
* @type {import('./router').Router}
|
|
4
|
+
*/
|
|
2
5
|
let router;
|
|
3
6
|
|
|
4
7
|
/** @type {import('./renderer').Renderer} */
|
|
@@ -11,7 +14,7 @@ let renderer;
|
|
|
11
14
|
* }} opts
|
|
12
15
|
*/
|
|
13
16
|
function init(opts) {
|
|
14
|
-
router = opts.router;
|
|
17
|
+
router = /** @type {import('../client/router').Router} */ (opts.router);
|
|
15
18
|
renderer = opts.renderer;
|
|
16
19
|
}
|
|
17
20
|
|
package/assets/server/index.js
CHANGED
|
@@ -691,8 +691,8 @@ async function render_response({
|
|
|
691
691
|
}
|
|
692
692
|
// prettier-ignore
|
|
693
693
|
head += Array.from(css)
|
|
694
|
-
|
|
695
|
-
|
|
694
|
+
.map((dep) => `\n\t<link${styles.has(dep) ? ' disabled media="(max-width: 0)"' : ''} rel="stylesheet" href="${options.prefix + dep}">`)
|
|
695
|
+
.join('');
|
|
696
696
|
|
|
697
697
|
if (page_config.router || page_config.hydrate) {
|
|
698
698
|
head += Array.from(js)
|
package/dist/chunks/index.js
CHANGED
|
@@ -680,8 +680,8 @@ async function render_response({
|
|
|
680
680
|
}
|
|
681
681
|
// prettier-ignore
|
|
682
682
|
head += Array.from(css)
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
.map((dep) => `\n\t<link${styles.has(dep) ? ' disabled media="(max-width: 0)"' : ''} rel="stylesheet" href="${options.prefix + dep}">`)
|
|
684
|
+
.join('');
|
|
685
685
|
|
|
686
686
|
if (page_config.router || page_config.hydrate) {
|
|
687
687
|
head += Array.from(js)
|
package/dist/cli.js
CHANGED
|
@@ -912,7 +912,7 @@ async function launch(port, https) {
|
|
|
912
912
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
913
913
|
}
|
|
914
914
|
|
|
915
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
915
|
+
const prog = sade('svelte-kit').version('1.0.0-next.233');
|
|
916
916
|
|
|
917
917
|
prog
|
|
918
918
|
.command('dev')
|
|
@@ -1064,7 +1064,7 @@ async function check_port(port) {
|
|
|
1064
1064
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1065
1065
|
if (open) launch(port, https);
|
|
1066
1066
|
|
|
1067
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1067
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.233'}\n`));
|
|
1068
1068
|
|
|
1069
1069
|
const protocol = https ? 'https:' : 'http:';
|
|
1070
1070
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|