0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 08:32:05 +01:00

default to beta version

This commit is contained in:
Rich Harris 2019-02-06 19:03:03 -05:00
parent 809039910b
commit e2ff2f1d66
4 changed files with 5 additions and 5 deletions

View File

@ -1533,7 +1533,7 @@
"dev": true
},
"eslint-plugin-svelte3": {
"version": "git+https://github.com/sveltejs/eslint-plugin-svelte3.git#5fc4861d4b191649b0badf4f9a4c2470f08b237e",
"version": "git+https://github.com/sveltejs/eslint-plugin-svelte3.git#6c9cc7b733663f8b9c68817ddd50d6bf4f5052c3",
"from": "git+https://github.com/sveltejs/eslint-plugin-svelte3.git#semver:*",
"dev": true
},

View File

@ -8,7 +8,7 @@
import Output from './Output/index.html';
import InputOutputToggle from './InputOutputToggle.html';
export let version = 'alpha'; // TODO change this to latest when the time comes
export let version = 'beta'; // TODO change this to latest when the time comes
export let app;
export let embedded = false;

View File

@ -1,7 +1,7 @@
<script context="module">
export function preload({ query }) {
return {
version: query.version || 'alpha',
version: query.version || 'beta',
gist: query.gist,
demo: query.demo
};

View File

@ -1,7 +1,7 @@
<script context="module">
export function preload({ query }) {
return {
version: query.version || 'alpha',
version: query.version || 'beta',
gist_id: query.gist,
demo: query.demo || 'hello-world'
};
@ -52,7 +52,7 @@
onMount(() => {
if (version !== 'local') {
fetch(`https://unpkg.com/svelte@${version || 'alpha'}/package.json`)
fetch(`https://unpkg.com/svelte@${version || 'beta'}/package.json`)
.then(r => r.json())
.then(pkg => {
version = pkg.version;