@sveltejs/kit 1.0.0-next.197 → 1.0.0-next.198
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/dist/cli.js +2 -2
- package/dist/ssr.js +6 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -817,7 +817,7 @@ async function launch(port, https) {
|
|
|
817
817
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
818
818
|
}
|
|
819
819
|
|
|
820
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
820
|
+
const prog = sade('svelte-kit').version('1.0.0-next.198');
|
|
821
821
|
|
|
822
822
|
prog
|
|
823
823
|
.command('dev')
|
|
@@ -982,7 +982,7 @@ async function check_port(port) {
|
|
|
982
982
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
983
983
|
if (open) launch(port, https);
|
|
984
984
|
|
|
985
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
985
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.198'}\n`));
|
|
986
986
|
|
|
987
987
|
const protocol = https ? 'https:' : 'http:';
|
|
988
988
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|
package/dist/ssr.js
CHANGED
|
@@ -587,6 +587,9 @@ async function render_response({
|
|
|
587
587
|
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style>
|
|
588
588
|
<noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
|
|
589
589
|
<script async src="https://cdn.ampproject.org/v0.js"></script>`;
|
|
590
|
+
init += options.service_worker
|
|
591
|
+
? '<script async custom-element="amp-install-serviceworker" src="https://cdn.ampproject.org/v0/amp-install-serviceworker-0.1.js"></script>'
|
|
592
|
+
: '';
|
|
590
593
|
} else if (include_js) {
|
|
591
594
|
// prettier-ignore
|
|
592
595
|
init = `<script type="module">
|
|
@@ -625,7 +628,9 @@ async function render_response({
|
|
|
625
628
|
}
|
|
626
629
|
|
|
627
630
|
if (options.service_worker) {
|
|
628
|
-
init +=
|
|
631
|
+
init += options.amp
|
|
632
|
+
? `<amp-install-serviceworker src="${options.service_worker}" layout="nodisplay"></amp-install-serviceworker>`
|
|
633
|
+
: `<script>
|
|
629
634
|
if ('serviceWorker' in navigator) {
|
|
630
635
|
navigator.serviceWorker.register('${options.service_worker}');
|
|
631
636
|
}
|