@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.
@@ -433,7 +433,6 @@ async function dev({ cwd, port, host, https, config }) {
433
433
  fs: {
434
434
  allow: [
435
435
  ...new Set([
436
- config.kit.files.assets,
437
436
  config.kit.files.lib,
438
437
  config.kit.files.routes,
439
438
  config.kit.outDir,
@@ -714,7 +714,7 @@ function crawl(html) {
714
714
  if (html[i + 1] === '!') {
715
715
  i += 2;
716
716
 
717
- if (html.substr(i, DOCTYPE.length).toUpperCase() === DOCTYPE) {
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.substr(i, CDATA_OPEN.length) === CDATA_OPEN) {
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.substr(i, CDATA_CLOSE.length) === CDATA_CLOSE) {
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.substr(i, COMMENT_OPEN.length) === COMMENT_OPEN) {
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.substr(i, COMMENT_CLOSE.length) === COMMENT_CLOSE) {
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.substr(i + 2, tag.length).toUpperCase() === tag
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.307');
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.307'}\n`));
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.0.0-next.307",
3
+ "version": "1.0.0-next.308",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",