@sveltejs/kit 1.0.0-next.277 → 1.0.0-next.278
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/index5.js +2 -7
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/dist/chunks/index5.js
CHANGED
|
@@ -160,8 +160,6 @@ const TAG_OPEN = /[a-zA-Z]/;
|
|
|
160
160
|
const TAG_CHAR = /[a-zA-Z0-9]/;
|
|
161
161
|
const ATTRIBUTE_NAME = /[^\t\n\f />"'=]/;
|
|
162
162
|
|
|
163
|
-
const EXTERNAL = /\bexternal\b/;
|
|
164
|
-
|
|
165
163
|
const WHITESPACE = /[\s\n\r]/;
|
|
166
164
|
|
|
167
165
|
/** @param {string} html */
|
|
@@ -240,7 +238,6 @@ function crawl(html) {
|
|
|
240
238
|
}
|
|
241
239
|
}
|
|
242
240
|
|
|
243
|
-
let rel = '';
|
|
244
241
|
let href = '';
|
|
245
242
|
|
|
246
243
|
while (i < html.length) {
|
|
@@ -301,9 +298,7 @@ function crawl(html) {
|
|
|
301
298
|
i -= 1;
|
|
302
299
|
}
|
|
303
300
|
|
|
304
|
-
if (name === '
|
|
305
|
-
rel = value;
|
|
306
|
-
} else if (name === 'href') {
|
|
301
|
+
if (name === 'href') {
|
|
307
302
|
href = value;
|
|
308
303
|
} else if (name === 'src') {
|
|
309
304
|
hrefs.push(value);
|
|
@@ -335,7 +330,7 @@ function crawl(html) {
|
|
|
335
330
|
i += 1;
|
|
336
331
|
}
|
|
337
332
|
|
|
338
|
-
if (href
|
|
333
|
+
if (href) {
|
|
339
334
|
hrefs.push(href);
|
|
340
335
|
}
|
|
341
336
|
}
|
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.278');
|
|
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.278'}\n`));
|
|
1160
1160
|
|
|
1161
1161
|
const protocol = https ? 'https:' : 'http:';
|
|
1162
1162
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|