@sveltejs/kit 1.0.0-next.307 → 1.0.0-next.308
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/chunks/index.js +0 -1
- package/dist/chunks/index2.js +6 -6
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
package/dist/chunks/index2.js
CHANGED
|
@@ -714,7 +714,7 @@ function crawl(html) {
|
|
|
714
714
|
if (html[i + 1] === '!') {
|
|
715
715
|
i += 2;
|
|
716
716
|
|
|
717
|
-
if (html.
|
|
717
|
+
if (html.slice(i, i + DOCTYPE.length).toUpperCase() === DOCTYPE) {
|
|
718
718
|
i += DOCTYPE.length;
|
|
719
719
|
while (i < html.length) {
|
|
720
720
|
if (html[i++] === '>') {
|
|
@@ -724,10 +724,10 @@ function crawl(html) {
|
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
// skip cdata
|
|
727
|
-
if (html.
|
|
727
|
+
if (html.slice(i, i + CDATA_OPEN.length) === CDATA_OPEN) {
|
|
728
728
|
i += CDATA_OPEN.length;
|
|
729
729
|
while (i < html.length) {
|
|
730
|
-
if (html.
|
|
730
|
+
if (html.slice(i, i + CDATA_CLOSE.length) === CDATA_CLOSE) {
|
|
731
731
|
i += CDATA_CLOSE.length;
|
|
732
732
|
continue main;
|
|
733
733
|
}
|
|
@@ -737,10 +737,10 @@ function crawl(html) {
|
|
|
737
737
|
}
|
|
738
738
|
|
|
739
739
|
// skip comments
|
|
740
|
-
if (html.
|
|
740
|
+
if (html.slice(i, i + COMMENT_OPEN.length) === COMMENT_OPEN) {
|
|
741
741
|
i += COMMENT_OPEN.length;
|
|
742
742
|
while (i < html.length) {
|
|
743
|
-
if (html.
|
|
743
|
+
if (html.slice(i, i + COMMENT_CLOSE.length) === COMMENT_CLOSE) {
|
|
744
744
|
i += COMMENT_CLOSE.length;
|
|
745
745
|
continue main;
|
|
746
746
|
}
|
|
@@ -768,7 +768,7 @@ function crawl(html) {
|
|
|
768
768
|
if (
|
|
769
769
|
html[i] === '<' &&
|
|
770
770
|
html[i + 1] === '/' &&
|
|
771
|
-
html.
|
|
771
|
+
html.slice(i + 2, i + 2 + tag.length).toUpperCase() === tag
|
|
772
772
|
) {
|
|
773
773
|
continue main;
|
|
774
774
|
}
|
package/dist/cli.js
CHANGED
|
@@ -870,7 +870,7 @@ async function launch(port, https, base) {
|
|
|
870
870
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}${base}`);
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
873
|
+
const prog = sade('svelte-kit').version('1.0.0-next.308');
|
|
874
874
|
|
|
875
875
|
prog
|
|
876
876
|
.command('dev')
|
|
@@ -1049,7 +1049,7 @@ async function check_port(port) {
|
|
|
1049
1049
|
function welcome({ port, host, https, open, base, loose, allow, cwd }) {
|
|
1050
1050
|
if (open) launch(port, https, base);
|
|
1051
1051
|
|
|
1052
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1052
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.308'}\n`));
|
|
1053
1053
|
|
|
1054
1054
|
const protocol = https ? 'https:' : 'http:';
|
|
1055
1055
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|