REPL default to v4

pull/8802/head
Puru Vijay 2 years ago
parent 0596c4797d
commit 5439714509

@ -11,6 +11,6 @@ export async function load({ fetch, params, url }) {
return {
gist,
version: url.searchParams.get('version') || '4.0.0-next.2'
version: url.searchParams.get('version') || '4'
};
}

@ -32,7 +32,7 @@
onMount(() => {
if (data.version !== 'local') {
fetch(`https://unpkg.com/svelte@${data.version || '4.0.0-next.2'}/package.json`)
fetch(`https://unpkg.com/svelte@${data.version || '4'}/package.json`)
.then((r) => r.json())
.then((pkg) => {
version = pkg.version;

@ -1,7 +1,6 @@
import { json } from '@sveltejs/kit';
import * as session from '$lib/db/session';
import * as gist from '$lib/db/gist';
import { error } from '@sveltejs/kit';
import * as session from '$lib/db/session';
import { error, json } from '@sveltejs/kit';
export async function POST({ request }) {
const user = await session.from_cookie(request.headers.get('cookie'));

Loading…
Cancel
Save