@sveltejs/kit 1.0.0-next.255 → 1.0.0-next.256

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.
@@ -161,7 +161,7 @@ function crawl(html) {
161
161
  if (html[i + 1] === '!') {
162
162
  i += 2;
163
163
 
164
- if (html.substring(i, DOCTYPE.length).toUpperCase() === DOCTYPE) {
164
+ if (html.substr(i, DOCTYPE.length).toUpperCase() === DOCTYPE) {
165
165
  i += DOCTYPE.length;
166
166
  while (i < html.length) {
167
167
  if (html[i++] === '>') {
@@ -171,10 +171,10 @@ function crawl(html) {
171
171
  }
172
172
 
173
173
  // skip cdata
174
- if (html.substring(i, CDATA_OPEN.length) === CDATA_OPEN) {
174
+ if (html.substr(i, CDATA_OPEN.length) === CDATA_OPEN) {
175
175
  i += CDATA_OPEN.length;
176
176
  while (i < html.length) {
177
- if (html.substring(i, CDATA_CLOSE.length) === CDATA_CLOSE) {
177
+ if (html.substr(i, CDATA_CLOSE.length) === CDATA_CLOSE) {
178
178
  i += CDATA_CLOSE.length;
179
179
  continue main;
180
180
  }
@@ -184,10 +184,10 @@ function crawl(html) {
184
184
  }
185
185
 
186
186
  // skip comments
187
- if (html.substring(i, COMMENT_OPEN.length) === COMMENT_OPEN) {
187
+ if (html.substr(i, COMMENT_OPEN.length) === COMMENT_OPEN) {
188
188
  i += COMMENT_OPEN.length;
189
189
  while (i < html.length) {
190
- if (html.substring(i, COMMENT_CLOSE.length) === COMMENT_CLOSE) {
190
+ if (html.substr(i, COMMENT_CLOSE.length) === COMMENT_CLOSE) {
191
191
  i += COMMENT_CLOSE.length;
192
192
  continue main;
193
193
  }
@@ -215,7 +215,7 @@ function crawl(html) {
215
215
  if (
216
216
  html[i] === '<' &&
217
217
  html[i + 1] === '/' &&
218
- html.substring(i + 2, tag.length).toUpperCase() === tag
218
+ html.substr(i + 2, tag.length).toUpperCase() === tag
219
219
  ) {
220
220
  continue main;
221
221
  }
package/dist/cli.js CHANGED
@@ -994,7 +994,7 @@ async function launch(port, https) {
994
994
  exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
995
995
  }
996
996
 
997
- const prog = sade('svelte-kit').version('1.0.0-next.255');
997
+ const prog = sade('svelte-kit').version('1.0.0-next.256');
998
998
 
999
999
  prog
1000
1000
  .command('dev')
@@ -1152,7 +1152,7 @@ async function check_port(port) {
1152
1152
  function welcome({ port, host, https, open, loose, allow, cwd }) {
1153
1153
  if (open) launch(port, https);
1154
1154
 
1155
- console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.255'}\n`));
1155
+ console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.256'}\n`));
1156
1156
 
1157
1157
  const protocol = https ? 'https:' : 'http:';
1158
1158
  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.255",
3
+ "version": "1.0.0-next.256",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",