@sveltejs/kit 1.0.0-next.234 → 1.0.0-next.235
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 +11 -6
- package/dist/chunks/index.js +11 -6
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/server/index.js
CHANGED
|
@@ -738,12 +738,7 @@ async function render_response({
|
|
|
738
738
|
params: ${devalue(params)}
|
|
739
739
|
}` : 'null'}
|
|
740
740
|
});
|
|
741
|
-
</script
|
|
742
|
-
<script>
|
|
743
|
-
if ('serviceWorker' in navigator) {
|
|
744
|
-
navigator.serviceWorker.register('${options.service_worker}');
|
|
745
|
-
}
|
|
746
|
-
</script>` : ''}`;
|
|
741
|
+
</script>`;
|
|
747
742
|
|
|
748
743
|
body += serialized_data
|
|
749
744
|
.map(({ url, body, json }) => {
|
|
@@ -756,6 +751,16 @@ async function render_response({
|
|
|
756
751
|
})
|
|
757
752
|
.join('\n\n\t');
|
|
758
753
|
}
|
|
754
|
+
|
|
755
|
+
if (options.service_worker) {
|
|
756
|
+
// always include service worker unless it's turned off explicitly
|
|
757
|
+
head += `
|
|
758
|
+
<script>
|
|
759
|
+
if ('serviceWorker' in navigator) {
|
|
760
|
+
navigator.serviceWorker.register('${options.service_worker}');
|
|
761
|
+
}
|
|
762
|
+
</script>`;
|
|
763
|
+
}
|
|
759
764
|
}
|
|
760
765
|
|
|
761
766
|
const segments = url.pathname.slice(options.paths.base.length).split('/').slice(2);
|
package/dist/chunks/index.js
CHANGED
|
@@ -728,12 +728,7 @@ async function render_response({
|
|
|
728
728
|
params: ${devalue(params)}
|
|
729
729
|
}` : 'null'}
|
|
730
730
|
});
|
|
731
|
-
</script
|
|
732
|
-
<script>
|
|
733
|
-
if ('serviceWorker' in navigator) {
|
|
734
|
-
navigator.serviceWorker.register('${options.service_worker}');
|
|
735
|
-
}
|
|
736
|
-
</script>` : ''}`;
|
|
731
|
+
</script>`;
|
|
737
732
|
|
|
738
733
|
body += serialized_data
|
|
739
734
|
.map(({ url, body, json }) => {
|
|
@@ -746,6 +741,16 @@ async function render_response({
|
|
|
746
741
|
})
|
|
747
742
|
.join('\n\n\t');
|
|
748
743
|
}
|
|
744
|
+
|
|
745
|
+
if (options.service_worker) {
|
|
746
|
+
// always include service worker unless it's turned off explicitly
|
|
747
|
+
head += `
|
|
748
|
+
<script>
|
|
749
|
+
if ('serviceWorker' in navigator) {
|
|
750
|
+
navigator.serviceWorker.register('${options.service_worker}');
|
|
751
|
+
}
|
|
752
|
+
</script>`;
|
|
753
|
+
}
|
|
749
754
|
}
|
|
750
755
|
|
|
751
756
|
const segments = url.pathname.slice(options.paths.base.length).split('/').slice(2);
|
package/dist/cli.js
CHANGED
|
@@ -933,7 +933,7 @@ async function launch(port, https) {
|
|
|
933
933
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
936
|
+
const prog = sade('svelte-kit').version('1.0.0-next.235');
|
|
937
937
|
|
|
938
938
|
prog
|
|
939
939
|
.command('dev')
|
|
@@ -1085,7 +1085,7 @@ async function check_port(port) {
|
|
|
1085
1085
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1086
1086
|
if (open) launch(port, https);
|
|
1087
1087
|
|
|
1088
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1088
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.235'}\n`));
|
|
1089
1089
|
|
|
1090
1090
|
const protocol = https ? 'https:' : 'http:';
|
|
1091
1091
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|