Skip to content

Commit

Permalink
MAJ deps
Browse files Browse the repository at this point in the history
SvelteKit v2
ViteJS v5
Npm -> Bun
  • Loading branch information
mquandalle committed Dec 23, 2023
1 parent 0ccd3d9 commit cda6964
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 7,132 deletions.
Binary file added bun.lockb
Binary file not shown.
7,104 changes: 0 additions & 7,104 deletions package-lock.json

This file was deleted.

39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,32 @@
"type": "module",
"private": true,
"devDependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@playwright/test": "^1.35.1",
"@rollup/plugin-yaml": "^4.1.1",
"@sveltejs/adapter-vercel": "^3.0.1",
"@sveltejs/kit": "^1.21.0",
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@playwright/test": "^1.40.1",
"@rollup/plugin-yaml": "^4.1.2",
"@sveltejs/adapter-vercel": "^4.0.3",
"@sveltejs/kit": "^2.0.6",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"mdsvex": "^0.11.0",
"node-fetch": "^3.3.1",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"sharp": "=0.32.1",
"svelte": "^4.0.1",
"typescript": "^5.1.6",
"vite": "^4.3.9",
"vite-plugin-windicss": "^1.9.0",
"vitest": "^0.32.2",
"node-fetch": "^3.3.2",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"sharp": "^0.33.1",
"svelte": "^4.2.8",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vite-plugin-windicss": "^1.9.2",
"vitest": "^1.1.0",
"wget-improved": "^3.4.0",
"yaml": "^2.3.1"
"yaml": "^2.3.4"
},
"dependencies": {
"@etalab/decoupage-administratif": "^3.1.1",
"fuzzysort": "^2.0.4",
"jsdom": "^22.1.0",
"jsdom": "^23.0.1",
"playwright-aws-lambda": "^0.10.0",
"playwright-core": "^1.35.1",
"playwright-core": "^1.40.1",
"publicodes": "^1.0.0-beta.70"
}
}
}
2 changes: 1 addition & 1 deletion retrofit/routes/(search)/ville/[slug]/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function load({ params, fetch }) {
}
const resServer = await fetch('/api/ville?slug=' + encodeURIComponent(params.slug));
if (!resServer.ok) {
throw error(404);
error(404);
}
const ville = await resServer.json();
localisation.set(ville);
Expand Down
2 changes: 1 addition & 1 deletion retrofit/routes/api/ville/+server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function GET({ url }) {
const slug = url.searchParams.get('slug');
const ville = data.find((v) => v.slug === slug);
if (!ville) {
throw error(404);
error(404);
}

return new Response(JSON.stringify(rawCityToFullLocalisation(ville)), {
Expand Down
8 changes: 4 additions & 4 deletions src/lib/components/Details.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script>
import { page } from '$app/stores';
import AnimatedAmount from '$lib/components./../../lib/components/AnimatedAmount.svelte';
import DetailsLine from '$lib/components./../../lib/components/DetailsLine.svelte';
import Emoji from '$lib/components./../../lib/components/Emoji.svelte';
import Questions from '$lib/components./../../lib/components/Questions.svelte';
import AnimatedAmount from '$lib/components/AnimatedAmount.svelte';
import DetailsLine from '$lib/components/DetailsLine.svelte';
import Emoji from '$lib/components/Emoji.svelte';
import Questions from '$lib/components/Questions.svelte';
import { engine as baseEngine, getEngine } from '$lib/engine';
import { publicodeSituation, resetAnswers, veloCat } from '$lib/stores';
import { emojiCategory, titleCategory } from '$lib/utils';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(front)/(search)/ville/[slug]/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function load({ params }) {
const slug = params.slug;
const city = communes.find((c) => c.slug === slug);
if (!city) {
throw error(404);
error(404);
}

const localisation = rawCityToFullLocalisation(city);
Expand Down
4 changes: 2 additions & 2 deletions src/routes/(front)/departement/[slug]/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export async function load({ params }) {
const departement = _departementWithSlug.find((d) => slug === d.slug);

if (slug === 'paris') {
throw redirect(308, '/ville/paris');
redirect(308, '/ville/paris');
} else if (!departement) {
throw error(404);
error(404);
}

const region = regions.find((r) => departement.region === r.code);
Expand Down

0 comments on commit cda6964

Please sign in to comment.